Pharo on Emscripten (WebAssembly)

PK
Pavel Krivanek
Mon, Mar 8, 2021 9:47 PM

Hi,

I just want to note that in 2019, I tried to build a Pharo VM to
WebAssembly using Emscripten. It was not really working but I was able to,
at least, build and run the VM.

[image: EmPharo.png]
The code is here: https://github.com/pavel-krivanek/EmPharo

Maybe someone will be interested enough to try to push it :-)

The main issues I found:

  • the VM seems to use the long jumps and in very ugly way - it specifies
    assembler labels and then it jumps to them
  • heartbeat
  • atomic operations (probably not so critical)

Cheers,
-- Pavel

Hi, I just want to note that in 2019, I tried to build a Pharo VM to WebAssembly using Emscripten. It was not really working but I was able to, at least, build and run the VM. [image: EmPharo.png] The code is here: https://github.com/pavel-krivanek/EmPharo Maybe someone will be interested enough to try to push it :-) The main issues I found: - the VM seems to use the long jumps and in very ugly way - it specifies assembler labels and then it jumps to them - heartbeat - atomic operations (probably not so critical) Cheers, -- Pavel