this post was submitted on 08 Sep 2023
526 points (94.0% liked)

Programmer Humor

18969 readers
903 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 66 points 11 months ago (3 children)

I'm choosing the third side: WebAssembly

[โ€“] [email protected] 33 points 11 months ago (1 children)

Blazingly fast ๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€

[โ€“] [email protected] 4 points 11 months ago* (last edited 11 months ago) (1 children)

Incredibly powerful type system ฮปฮปฮป

And the best part, those two interop better than in native code.

[โ€“] [email protected] 1 points 11 months ago (1 children)

those two interop better than in native code

Really? Why is that?

[โ€“] [email protected] 2 points 11 months ago (1 children)

The wasm ABI allows for a bit more flexibility than the C one.

I'm not sure how much impact it has on practice (probably very little, otherwise somebody would have fixed it), but in native code there's a lot of potential for mismatching behaviors from the two different runtimes.

[โ€“] [email protected] 1 points 11 months ago

Oh I had no idea, thanks for explaining!

[โ€“] [email protected] 12 points 11 months ago

You can even compile Fortran code to wasm and run it on a web browser. Who need Javascript's puny 64bit floating point precision when you can have Fortran's superior 128bit floating point precision?

[โ€“] [email protected] 5 points 11 months ago (1 children)

Have they finally dumped the required js stub loader?

[โ€“] [email protected] 9 points 11 months ago

No, but GUI frameworks can generate it for you. Same goes for DOM access, for which there's normally only a JavaScript API.

So, you'll likely want to read JS, when researching what events or properties you can read/write for certain HTML nodes in the DOM, but with a mature GUI framework, you should not need to write any JS.