Skip to content

Commit

Permalink
No longer proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
yglukhov committed Nov 23, 2023
1 parent a37263e commit 0e1b6df
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# wasmrt [![Build Status](https://github.com/yglukhov/wasmrt/workflows/CI/badge.svg?branch=master)](https://github.com/yglukhov/wasmrt/actions?query=branch%3Amaster)

Disclaimer. This is a proof of concept, use with caution.

Compile nim to wasm
```nim
import wasmrt
Expand All @@ -26,9 +24,5 @@ function runNimWasm(w){for(i of WebAssembly.Module.exports(w)){n=i.name;if(n[0]=
```
`runNimWasm` takes the output of `WebAssembly.compile` function. E.g. to run a wasm file in nodejs, use smth like [runwasm.js](https://github.com/yglukhov/wasmrt/blob/master/tests/runwasm.js)

# Caveats
- Exceptions work with `--exceptions:goto`.
- Orc GC should work. But default GC should be disabled on start, and should be run carefully close to the stack bottom, otherwise it can collect live references.

# Why no Emscripten?
The goal of this project is to produce self-contained standalone wasm files from nim code, without any JS glue, or "desktop platform emulation".

0 comments on commit 0e1b6df

Please sign in to comment.