3 ms·
Wasm could have had a concept of a string. I frequently mourn the rejection of the imo excellent stringref proposal. https://github.com/WebAssembly/stringref ht
by davexunit 1y ago
Wasm could have had a concept of a string. I frequently mourn the rejection of the imo excellent stringref proposal. https://github.com/WebAssembly/stringref https://github.com/WebAssembly/stringref
- adzm 1y agowasm 3 has the JavaScript string built-in now according to TFA
- davexunit 1y agoThat's a different thing. There is still no string type. JS string built-ins are a kludge for web targets only.
- titzer 1y agoJust reimplement those JS string builtins in another host environment and provide it as a Wasm library. Stringref was basically just proposing pushing JS strings down into Wasm, which many in the CG saw as a big chunk of one specific platform just moving down a layer, into the engine.
- davexunit 1y agoHaving used and implemented stringref and having seen the built-ins proposal I really think stringref is a much better developer experience and the CG is wrong. The built-ins are better than nothing but it's a terrible hack.