▲ 546 ▼ Which side are you? Javascript or Typescript (i.postimg.cc) submitted 3 years ago by mastermind@lemm.ee to c/programmer_humor@programming.dev 224 comments fedilink hide all child comments
[–] Knusper@feddit.de 69 points 3 years ago (3 children) I'm choosing the third side: WebAssembly permalink fedilink source hideshow 6 child comments replies: [–] QuazarOmega@lemy.lol 35 points 3 years ago (1 child) Blazingly fast 🦀🦀🦀 permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 4 points 3 years ago* (1 child) Incredibly powerful type system λλλ And the best part, those two interop better than in native code. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago (1 child) those two interop better than in native code Really? Why is that? permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 2 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago Oh I had no idea, thanks for explaining! permalink fedilink source parent [–] redcalcium@lemmy.institute 13 points 3 years 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? permalink fedilink source parent [–] Static_Rocket@lemmy.world 6 points 3 years ago (1 child) Have they finally dumped the required js stub loader? permalink fedilink source parent hideshow 2 child comments replies: [–] Knusper@feddit.de 10 points 3 years 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. permalink fedilink source parent
[–] QuazarOmega@lemy.lol 35 points 3 years ago (1 child) Blazingly fast 🦀🦀🦀 permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 4 points 3 years ago* (1 child) Incredibly powerful type system λλλ And the best part, those two interop better than in native code. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago (1 child) those two interop better than in native code Really? Why is that? permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 2 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago Oh I had no idea, thanks for explaining! permalink fedilink source parent
[–] marcos@lemmy.world 4 points 3 years ago* (1 child) Incredibly powerful type system λλλ And the best part, those two interop better than in native code. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago (1 child) those two interop better than in native code Really? Why is that? permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 2 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago Oh I had no idea, thanks for explaining! permalink fedilink source parent
[–] QuazarOmega@lemy.lol 1 point 3 years ago (1 child) those two interop better than in native code Really? Why is that? permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 2 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago Oh I had no idea, thanks for explaining! permalink fedilink source parent
[–] marcos@lemmy.world 2 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 1 point 3 years ago Oh I had no idea, thanks for explaining! permalink fedilink source parent
[–] QuazarOmega@lemy.lol 1 point 3 years ago Oh I had no idea, thanks for explaining! permalink fedilink source parent
[–] redcalcium@lemmy.institute 13 points 3 years 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? permalink fedilink source parent
[–] Static_Rocket@lemmy.world 6 points 3 years ago (1 child) Have they finally dumped the required js stub loader? permalink fedilink source parent hideshow 2 child comments replies: [–] Knusper@feddit.de 10 points 3 years 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. permalink fedilink source parent
[–] Knusper@feddit.de 10 points 3 years 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. permalink fedilink source parent