Ephera

@Ephera@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Ephera,

The == operator in JS will try to cast the things being compared and do all kinds of ‘smart’ assumptions about what equality means. This is why everyone uses === instead…

Ephera,

Sure, but you can get frameworks that generate that for you. I’ve written whole webpages in WASM without writing any JS.

You don’t get around reading JS documentation, though. Especially the DOM API is just documented as JS, and you basically hope that your framework makes it obvious enough how to write that in your non-JS language of choice.

Ephera,

There’s actually in theory all the pieces in place to use a different scripting language, because in the early days, there really were multiple. But yeah, the massive DOM API is only really standardized+implemented+documented for JS, so you don’t get around it in the end.

As the others said, though, WebAssembly is starting to become a thing and the JS boilerplate for calling the DOM API can be generated for you.

Ephera,

I used to think so, too, but on the one hand, the DOM API is absolutely massive. Going through the standardization, implementation and documentation process another time would take decades.

And on the other hand, a language-agnostic API in WebAssembly would mean specifying it WebAssembly itself. And well, it’s Assembly-like, so what’s currently a single line for calling a JS function would turn into tens of lines of low-level code.

Ultimately, you’d want code from some other high-level language to give you a summary of how you may need to call your language-specific wrapper. In practice, that’s likely even worse than translating it from JS, because the high-level call isn’t standardized.

Ephera,

No, they’re discussing the way forward and what they think makes sense. In fact, they’re even clearly stating that there will be pain, because Wayland intentionally does less than X11. And they’re encouraging people with unsolved pain points to speak up.

Ephera,

I’m guessing, this is a Santa that doesn’t magically fly through the air, but actually sleighs on the ground…

Ephera,

It’s funny, because you can clearly see that it’s a bathtub and a shelf.

Ephera, (edited )

Oh hi, have you considered joining the best Lemmy community, !dcss? 🙃

If you’re into zombies and post-apocalyptic survival, CDDA always looks like a blast to play: cataclysmdda.org

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #