Emsdk engines : other than NodeJS ?

53 views
Skip to first unread message

laurent bernabe

unread,
Jul 11, 2019, 10:07:50 AM7/11/19
to emscripten-discuss
Hi everyone,

I've just noticed that, emsdk configuration describes entries for V8engine, and that js_engines is an array.
In my current configuration, only the NodeJS engine is installed, but I also would like to install V8engine and use it.

What is the easiest way to do that ? I'm under Kubuntu 19.04 64 bit ?

Thanks in advance,

Regards

Alon Zakai

unread,
Jul 11, 2019, 12:00:58 PM7/11/19
to emscripte...@googlegroups.com
jsvu is a nice way to install multiple JS/wasm VMs,


--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/183fbf46-7294-4582-8e2e-3978d4f3fba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

laurent bernabe

unread,
Jul 11, 2019, 3:10:55 PM7/11/19
to emscripten-discuss
Thank you very much,

I am going to install and try it right now.

Sam Clegg

unread,
Jul 16, 2019, 6:01:01 PM7/16/19
to emscripte...@googlegroups.com
Can I ask what you use case is? Is there a reason you would want to
use something like d8 or jsc? In terms of emscripten support, node
is by far the most tested JS command line environment.
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/ed30bc8f-c8dc-4509-8e69-d4bfb2639d60%40googlegroups.com.

J Decker

unread,
Jul 16, 2019, 10:10:19 PM7/16/19
to emscripten-discuss
https://github.com/WAVM/WAVM  WebAssembly Virtual Machine

This is a standalone VM for WebAssembly. It can load both the standard binary format, and the text format defined by the WebAssembly reference interpreter. For the text format, it can load both the standard stack machine syntax and the old-fashioned AST syntax used by the reference interpreter, and all of the testing commands.  

Cervus implements a WebAssembly "usermode" on top of the Linux kernel (which tries to follow the CommonWAspecification), enabling wasm applications to run directly in ring 0, while still ensuring safety and security. 

https://github.com/mbasso/awesome-wasm#non-web-embeddings  Curated list of awesome things regarding WebAssembly (wasm) ecosystem.
 
(that's an anchor link to a list of other wasm runtimes)



Things like that?  I had found another that was the 'linux ring0' thing but it actually looked more like a bytecode interpreter.
 

laurent bernabe

unread,
Jul 17, 2019, 3:52:39 AM7/17/19
to emscripten-discuss
Thank you both for your answers,

in fact what I have in mind is simply to be able to run Stockfish chess engine inside a React Native application.

And in React Native, we can neither user NodeJS API nor rely on window object. Even with a Webview, I run into some issues.


Le mercredi 17 juillet 2019 04:10:19 UTC+2, J Decker a écrit :
https://github.com/WAVM/WAVM  WebAssembly Virtual Machine

This is a standalone VM for WebAssembly. It can load both the standard binary format, and the text format defined by the WebAssembly reference interpreter. For the text format, it can load both the standard stack machine syntax and the old-fashioned AST syntax used by the reference interpreter, and all of the testing commands.  

Cervus implements a WebAssembly "usermode" on top of the Linux kernel (which tries to follow the CommonWAspecification), enabling wasm applications to run directly in ring 0, while still ensuring safety and security. 

https://github.com/mbasso/awesome-wasm#non-web-embeddings  Curated list of awesome things regarding WebAssembly (wasm) ecosystem.
 
(that's an anchor link to a list of other wasm runtimes)



Things like that?  I had found another that was the 'linux ring0' thing but it actually looked more like a bytecode interpreter.
 

On Tue, Jul 16, 2019 at 3:01 PM 'Sam Clegg' via emscripten-discuss <emscripte...@googlegroups.com> wrote:
Can I ask what you use case is?   Is there a reason you would want to
use something like d8 or jsc?   In terms of emscripten support, node
is by far the most tested JS command line environment.

On Thu, Jul 11, 2019 at 12:11 PM laurent bernabe
<laurent...@gmail.com> wrote:
>
> Thank you very much,
>
> I am going to install and try it right now.
>
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/ed30bc8f-c8dc-4509-8e69-d4bfb2639d60%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.

Sam Clegg

unread,
Jul 17, 2019, 3:27:47 PM7/17/19
to emscripte...@googlegroups.com
On Tue, Jul 16, 2019 at 7:10 PM J Decker <d3c...@gmail.com> wrote:
>
> https://github.com/WAVM/WAVM WebAssembly Virtual Machine
>
> This is a standalone VM for WebAssembly. It can load both the standard binary format, and the text format defined by the WebAssembly reference interpreter. For the text format, it can load both the standard stack machine syntax and the old-fashioned AST syntax used by the reference interpreter, and all of the testing commands.
>
> https://github.com/cervus-v/cervus
> Cervus implements a WebAssembly "usermode" on top of the Linux kernel (which tries to follow the CommonWAspecification), enabling wasm applications to run directly in ring 0, while still ensuring safety and security.
>
> https://github.com/mbasso/awesome-wasm#non-web-embeddings Curated list of awesome things regarding WebAssembly (wasm) ecosystem.
>
> (that's an anchor link to a list of other wasm runtimes)
>
> https://github.com/appcypher/awesome-wasm-runtimes
>
> https://github.com/CraneStation/wasmtime
>
> Things like that? I had found another that was the 'linux ring0' thing but it actually looked more like a bytecode interpreter.
>

emscripten is currently pretty tied to JS embeddings. While you may
be able to get some emscripten-build wasm modules to run without JS
there is limited official support for this. I'm not saying we
shouldn't or wouldn't consider adding it, just that is unsupported and
untested as of today.

Also, IIUC OP is specifically asking about other JS embeddings.

>
> On Tue, Jul 16, 2019 at 3:01 PM 'Sam Clegg' via emscripten-discuss <emscripte...@googlegroups.com> wrote:
>>
>> Can I ask what you use case is? Is there a reason you would want to
>> use something like d8 or jsc? In terms of emscripten support, node
>> is by far the most tested JS command line environment.
>>
>> On Thu, Jul 11, 2019 at 12:11 PM laurent bernabe
>> <laurent...@gmail.com> wrote:
>> >
>> > Thank you very much,
>> >
>> > I am going to install and try it right now.
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
>> > To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/ed30bc8f-c8dc-4509-8e69-d4bfb2639d60%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28iiQQKEP9AFyZ6PyhuEQFep5PNY9Pc8uJOpgvpO0OVHA%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAA2GJqU3GJfgZ2Pz%2Bcif63B4owD1e_c67mRWqYOLPyhpKmLJqQ%40mail.gmail.com.

laurent bernabe

unread,
Jul 18, 2019, 4:11:44 AM7/18/19
to emscripten-discuss
Ok, I understand.

Thank you anyway for your answers.

As a workaround, I went back to programming in Android native
>> > To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
>> > To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/ed30bc8f-c8dc-4509-8e69-d4bfb2639d60%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28iiQQKEP9AFyZ6PyhuEQFep5PNY9Pc8uJOpgvpO0OVHA%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages