wren icon indicating copy to clipboard operation
wren copied to clipboard

Support publishing to npm automatically?

Open jtenner opened this issue 5 years ago • 2 comments

Web Assembly is awesome and portable. Let's get this language into developer hands in the browser, node and maybe deno via emscripten.

Let's use this thread for discussion.

jtenner avatar Jun 17 '20 18:06 jtenner

For onlookers, wren runs via emscripten right here https://wren.io/try/ I've got work going on a project/ folder that would build with minimal config (i.e where is emsdk?) and output some sensible default builds, making it easy to get a build for inclusion elsewhere.

To add detail: emscripten has SO many configurable options that the only possibility is a sensible default for some obvious use cases. For example, there's initial experimental support for dynamic linking, and there's static linking obviously, which you'd then include in your build. You can also just include the source as always, so one relevant question is what does the npm module actually contain.

ruby0x1 avatar Jun 17 '20 18:06 ruby0x1

so one relevant question is what does the npm module actually contain.

I was imagining the prebuilt Web Assembly source and to go with that a nice JS API wrapper... to make hosting Wren inside JS apps as easy as it is hosting it inside a C codebase, etc. Obviously some of this work is done already since it works on the website.

joshgoebel avatar Apr 25 '21 22:04 joshgoebel