Hacker News new | past | comments | ask | show | jobs | submit login

It looks like Rust can interop with JS via WebASM?

https://stackoverflow.com/questions/65000209/how-to-call-rus...






Of 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.


But why use JavaScript at all if you can just compile it all to WebAssembly?

Because 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: