Can someone educate me why GC based languages aren't supported in wasm ?
WebAssembly
41–50 of 98 posts
Re: WebAssembly
#42Earlier quoted context omitted.
what i am envisioning here is the content of a webpage compiled with ads therein. it would be desirable by the googles of the world for this very reason.
Advertisers would hate that kind of model. They want perfectly targeted and customized ads for each individual viewer. Baking the ads into the content or page itself would be going back about 20 years in their world.
Re: WebAssembly
#43Can someone educate me why GC based languages aren't supported in wasm ?
Re: WebAssembly
#44My 2c about wasm so far: I've tried go, rust, c/cpp, webassembly. go - big bundle sizes because of gc I am guessing, idk. c/cpp - I haven't touched c/cpp in a really really long time, but probably the other really good fit. rust - I see rust as the successor to what I would've used c/cpp for, but not sure if rust ecosystem is still fully there. Last time, I had some weird issues with wasm-bindgen. AssemblyScript(AS)…
Re: WebAssembly
#45Earlier quoted context omitted.
Determinism! [0] I'm switching a browser game side project from Typescript to WebAssembly because determinism enables a simpler style of multiplayer. Instead of relying on a server to manage state, I can just send inputs p2p like a modern fighting game (with rollback [1]). Then the game acts just like singleplayer! For a hobbyist like me, WebAssembly makes the minefield of multiplayer so much easier to navigate. [0]:…
What's nondeterministic about TypeScript / JavaScript?
Look how much spread there is in the JS, and how little there is in the wasm.
Depending on what you're doing, this may or may not matter to you.
Re: WebAssembly
#46I made a couple of short explainer videos on it:
- design goals and instruction set:https://youtu.be/VOaSaShAYb0
- mechanizing safety proofs for wasm: https://youtu.be/zsPVbmEPTlA
Re: WebAssembly
#47Can someone educate me why GC based languages aren't supported in wasm ?
Wasm itself is at the level of assembly, not the level of JavaScript. If you want to compile a GC'd language to wasm, you have to bring your own garbage collector and compile it to wasm as well. That's not a showstopper from wasm's perspective, and several languages have done just that, but porting a GC to a new compilation target can be a bit of work.
Re: WebAssembly
#48Earlier quoted context omitted.
It's a pretty common blogging method. Google and many other orgs do that too.
Is it? Can you provide some links to examples?
Beware the lure of MDX/equivalents. If you want to provide structure to your content and maintain it colocated to where you use it (or imported and type checked for where you have that kind of reusability), components in Markdown is an awful experience. Inverting that and writing Markdown within posts is my current solution. It’s not as nice as a plain .md file but it lets me mix writing and structure without compromise
Re: WebAssembly
#49Re: WebAssembly
#50Can someone educate me why GC based languages aren't supported in wasm ?
Wasm itself is at the level of assembly, not the level of JavaScript. If you want to compile a GC'd language to wasm, you have to bring your own garbage collector and compile it to wasm as well. That's not a showstopper from wasm's perspective, and several languages have done just that, but porting a GC to a new compilation target can be a bit of work.