3 ms·
Someday soon I hope webasm gets another decent compiled language targeted for JS speedups. Something interoperable with JS. For analogies, look no further than
by jvanderbot 2y ago
Someday soon I hope webasm gets another decent compiled language targeted for JS speedups. Something interoperable with JS.
For analogies, look no further than ASM in the early days and the motivations that brought us C, but with the lessons learned as well.
Rust is fine for this, except for interoperability.
- metadat 2y agoIt looks like Rust can interop with JS via WebASM? https://stackoverflow.com/questions/65000209/how-to-call-rust-from-js-and-back https://stackoverflow.com/questions/65000209/how-to-call-rus...
- jvanderbot 2y agoOf course that's why we're discussing it. I'm referring to stronger interop like how you can embed ASM in C, and therefore CPP. Like a JS/TS that can have compiled blocks specified in the same language, preferably inline? I'm reaching here.
- peutetre 2y agoBut why use JavaScript at all if you can just compile it all to WebAssembly?
- wiseowise 2y agoBecause I have better use of my time than waiting for 2 minute compile times on every little change. And believe it or not - I actually like JS with object destructuring, Promises and async/await.