Ludovic Courtès on Nostr: I wonder: there was JavaScript and people would write compilers that emit JavaScript ...
I wonder: there was JavaScript and people would write compilers that emit JavaScript from some other high-level language.
Now there’s Wasm, which is supposedly a better compiler target, but it took a lot of effort to add GC to Wasm, and even that isn’t fully baked AIUI. Also, IIUC, browsers implement JS mostly separately from Wasm, too.
Weren’t we better off just emitting JS, incidental complexity and all?
(I’m asking this as a newbie, bear with me!)
Now there’s Wasm, which is supposedly a better compiler target, but it took a lot of effort to add GC to Wasm, and even that isn’t fully baked AIUI. Also, IIUC, browsers implement JS mostly separately from Wasm, too.
Weren’t we better off just emitting JS, incidental complexity and all?
(I’m asking this as a newbie, bear with me!)