Question about WebAssembly

Max Haughton maxhaton at gmail.com
Thu Oct 3 15:33:54 UTC 2019


On Wednesday, 2 October 2019 at 10:23:45 UTC, Sebastiaan Koppe 
wrote:
> On Wednesday, 2 October 2019 at 09:26:56 UTC, materus wrote:
>> [...]
>
> The short answer is manpower.
>
> Long answer depends on what you mean by working. Go produces 
> very large binaries, and C# currently works by emulating dlls 
> in your browser. TinyGo is an option but doesn't support the 
> full language [https://tinygo.org/lang-support/]. Rust is the 
> most mature, mostly because it doesn't have a runtime to port, 
> so it is a lot easier.
>
> With D the main issue is that someone needs to port druntime to 
> wasm. I am working on it in my spare time, but progress is slow.
>
> Here are some examples of what I have got running:
>
> https://skoppe.github.io/spasm/examples/todo-mvc/ -> famous 
> todo-mvc
> https://skoppe.github.io/spasm-imgui/ -> use c++ library
> https://skoppe.github.io/spasm/examples/underrun/ -> ported js 
> game
> https://skoppe.github.io/spasm-tradingview-example/index.html 
> ->  calling typescript

Is there still a barrier on having syscalls to use, e.g. being 
able to implement malloc/free? Assuming it's technically possible 
I would like to work on this but probably in 2020 :(


More information about the Digitalmars-d mailing list