4 ms·
What's under the hood? The source code is parsed to an AST, which is then executed. It began with a Java-Applet. When WebAssembly appeared, I ported it to C++
by chkas 8y ago
What's under the hood?
The source code is parsed to an AST, which is then executed. It began with a Java-Applet. When WebAssembly appeared, I ported it to C++ with a JS/HTML interface and added graphics. Recently I converted the C++ part to C, which halved the size of the wasm file.
- soapdog 8y agoReally liked that! Congratulations on your work, it is very inspiring. I am also trying to build small languages, for fun, I think the web could use more languages. One example that is quite amazing in my opinion is Pyret, I think you might like it, check it out at https://www.pyret.org https://www.pyret.org
- mbel 8y ago> Recently I converted the C++ part to C, which halved the size of the wasm file. So you are saying that "costless" abstractions of C++ actually had some cost? Who would have thought.
- deleted 8y ago[deleted]
- wrs 8y agoI believe the philosophy of C++ is that features you don’t use should have zero runtime cost.
- coldtea 8y ago>So you are saying that "costless" abstractions of C++ actually had some cost? Who would have thought. Size obviously doesn't count. Obviously abstractions will produce more code.
- Skunkleton 8y agoSize doesn't count?
- thefounder 8y agoWith 5G it won't
- coldtea 8y agoFor web delivery it does. For server/desktop delivery, which is C++ original and major domain, for which those "costless abstractions" were developed, no. It's not like Stroustrup, Stepanov and co had web assembly and constrained mobile devices loading webpages in mind when designing C++. The idea of "costless abstractions" was about them not losing runtime speed -- not costless in code size. So the parent's comment doesn't really apply.
- dvh 8y agoI have a question for wasm, is it possible to temporary suspend the execution of wasm program and then continue execution, e.g. tomorrow?