November 24, 2022
On Friday, 18 November 2022 at 02:00:40 UTC, Adam D Ruppe wrote:
> On Friday, 18 November 2022 at 00:55:57 UTC, AnimusPEXUS wrote:
>
> I took Sebastiaan's thing from two years ago and applied it to new druntime here:
>
> https://github.com/adamdruppe/dmd/tree/wasm
>
>

Have question(s) on Sebastiaan's wasm.

1. Sebastiaan, does your wasm realization concentrates primarily on wasi interfacing, or will it allows wasm usage in [wasm]+[js glue] fashion?
2. if [wasm]+[js glue] fashion is not supported by Sebastiaan's wasm realization, then I, I think need to concentrate on [wasm]+[js glue] variant. so if this is the case, then how to separate [wasm wasi] version from [wasm]+[js glue] version in druntime.
3. if [wasm]+[js glue] doesn't have place in druntime, then how to properly organize forking/patching of druntime?
November 25, 2022
On Thursday, 24 November 2022 at 20:22:43 UTC, AnimusPEXUS wrote:
> Have question(s) on Sebastiaan's wasm.
>
> 1. Sebastiaan, does your wasm realization concentrates primarily on wasi interfacing, or will it allows wasm usage in [wasm]+[js glue] fashion?

DRuntime depends on libc. So if you want to use DRuntime in WASM you need a WASM implementation of libc. That is what WASI-libc provides.

Why WASI? Well, it is the interface many WASM runtimes use.

That is all my DRuntime 'port' does.

> 2. if [wasm]+[js glue] fashion is not supported by Sebastiaan's wasm realization, then I, I think need to concentrate on [wasm]+[js glue] variant. so if this is the case, then how to separate [wasm wasi] version from [wasm]+[js glue] version in druntime.

Interfacing with JS is out of the scope of the DRuntime WASM/WASI port.

In the Spasm library I have a bindgen tool that spits out D/JS glue code based on web IDL files.

It allows you to call pretty much every web api out there.

Before my current job I briefly worked on one that creates D/JS glue code for typescript libraries. It isn't finished, but it shows its viable.
1 2
Next ›   Last »