• 27 Posts
  • 1.57K Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle



  • Ah, I’m not saying there’s a different force being applied to feather vs. hammer. The meme above doesn’t mean that they “fall faster” in the sense that the hammer falls at a higher velocity. It’s rather colloquial usage of “faster” to mean “finishes sooner”. Because what does happen, is that the hammer collides sooner with Earth, since the hammer pulls the Earth towards itself ever-so-slightly stronger than the feather does.

    I guess, for this to work, you cannot drop hammer and feather at the same time in the same place, since they would both pull Earth towards themselves with a combined force. You need to drop them one after another for the stronger pull of the hammer to have an effect.

    So, this is also going off of this formula:

    F = G * mass_1 * mass_2 / distance²
    

    But setting mass_1 as Earth’s mass and mass_2 as either the feather’s or hammer’s mass. A higher mass_2 ultimately leads to a higher force of attraction F.











  • As the other comment said, outside the browser WASI is what does IO. As for DOM access in the browser, I doubt they want to reimplement the DOM API, because:

    • It’s insanely complex. This wouldn’t be done within one release, but rather take years to add a substantial amount of APIs.
    • No one wants to have to maintain two versions of the DOM API documentation. You’d need to basically translate the entirety of MDN to some WASM API description. And in the end, hardly anyone would read it either way, because they’re likely using some wrapper library to interact with the API.
    • If you’re using such a wrapper library anyways, it hardly matters to most people, whether this library generates JS API calls or some WASM API calls.

    I try to stay as far away from JS as possible, and I do not think it’s worth developing a WASM DOM API. With a competent framework, you can develop complex web-UIs without ever touching JavaScript, which is good enough for me.




  • Jujutsu is a Git frontend, from what I understand, much like there’s tons of Git GUIs. So, you interact with it in a different way, but you still push to a Git repository and others can interact with your code by using Git.

    I guess, it somewhat lessens the grip of Git, because they can hook different backend services (e.g. Subversion, Mercurial, Fossil) into this frontend, and from what I understand, they plan to develop an own backend eventually. But yeah, for now, the communication standard is still Git.



  • somewhat logical, but entirely in practice verb-noun command structure.

    That’s supposed to be “impractical”, not “in practice”, for others reading along.

    For example, the “proper” command to list a directory is: Get-ChildItem
    The “proper” command to fetch a webpage is: Invoke-WebRequest https://example.com/

    In these particular cases, they do have aliases defined, so you can use ls, dir and curl instead, but …yeah, that’s still generally what the command names are like.

    It’s partially more verbose than C#, which is one of the most verbose programming languages out there. I genuinely feel like this kind of defeats the point of having a scripting language in the first place, when it isn’t succinct.
    Like, you’re hardly going to use it interactively, because it is so verbose, so you won’t know the commands very well. Which means, if you go to write a script with Powershell, you’ll need to look up how to do everything just as much as with a full-fledged programming language. And I do typically prefer the better tooling of a full-fledged programming language…


  • Yeah, reading this news made me realize that this key is going to be pretty much objectively less useful on Windows, because Microsoft won’t let you rebind keys.

    I mean, presumably there’s going to be someone who finds it useful – whatever this key is going to do on Windows – and maybe Microsoft puts in more effort to integrate it into the OS than what you can easily replicate on Linux.

    But there’s also going to be lots of users, who will have no use for the functionality – whatever this key is going to do on Windows. And for those users, it’s just a completely useless key on their keyboard…