~vdupras/dusk-wasm

WASM port of Dusk OS
Improve JIT of realiased words
Re-enable JIT for now

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~vdupras/dusk-wasm
read/write
git@git.sr.ht:~vdupras/dusk-wasm

You can also use your local clone with git send-email.

#Dusk on WASM

Dusk OS has a peculiar target: WASM on a modern browser. It's represented as a graphical console with a fully functional Dusk OS prompt in a browser tab.

#Requirements

  • mtools
  • AssemblyScript (which needs, ahem, NPM): npm -g install assemblyscript

AssemblyScript is not strictly needed, you can also use compile.html.

#Building

  1. make kernel.wasm or open compile.html in a browser to build it.
  2. make wasm.img.
  3. In a modern browser, open index.html.
  4. In the first file selection prompt, choose kernel.wasm.
  5. In the second one, select wasm.img
  6. After a few seconds, you'll have a Dusk OS prompt.

Note that the WASM target is much, much slower than other Dusk OS targets.

The appropriate version of Dusk is automatically downloaded by Make. If you already have a Dusk you want to target, you can use the DUSKDIR environment variable.

#See it in action

In a hurry? You can see this thing in action at https://schierlm.users.sourceforge.net/duskos-wasm-temp/

#Authorship

Most of the code in Dusk OS has been written by Virgil Dupras, but the WASM port has been written by Michael Schierl.