Re:ShenScript – An Implementation of the Shen Language for J...
by eyelidlessness on Saturday January 02, 2021 @01:28PM
(#25615034)
> also, DOM/window APIs
And Node/Deno APIs as well.
And Node/Deno APIs as well.
in general transpiling to JS lets you reuse the JS runtime (if your language is similar enough), e.g. the garbage collector. also, DOM/window APIs, which are likely why you'd want your language to run in a browser.
with WASM, you have to ship a runtime/interpreter for your language, often adding more than a few MB of overhead to any page using your wasm-compiled-language, and interop with the DOM and other browser stuff is (afaik) still in a pretty rough state. i think C# with Blazor managed to work around it, but it's tough