News for hackers. Stuff that matters.
Re:ShenScript – An Implementation of the Shen Language for J... by uryga on Saturday January 02, 2021 @10:21AM (#25613366)
[caveat emptor: my knowledge of WASM stuff is mostly based on blog posts and HN comments, and may be outdated. corrections welcome]

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

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.