Surfing on wave.. WASM
Adam D. Ruppe
destructionator at gmail.com
Tue May 28 14:49:48 UTC 2019
On Tuesday, 28 May 2019 at 14:30:00 UTC, Sebastiaan Koppe wrote:
> I wanted to focus on calling js function with little overhead.
Yeah, and I like how you have a pretty good amount of type safety.
One of the things I like about strings though is working with
existing code. Like if I can just, on the D side, do
`window.my_own_object` I think that will be pretty cool.
> btw. for the strings you can have a look at
Indeed, that is next on my list. Actually, I kinda think I could
pass D slices in general pretty directly as an i64, something
like ptr << 32 | length... and a reinterpret cast on the D side
could just work to do that. But that might be too clever for my
own good.
(actually it briefly crossed my mind to define a communication
bytecode thing to build calls but lolol, defining some kind of
stack-based bytecode in javascript so our stack-based bytecode
from javascript can communicated to javascript. absurd.)
More information about the Digitalmars-d
mailing list