Skip to content
forked from saghul/wasi-lab

Some WASI experiments 🧪☣️☠️

Notifications You must be signed in to change notification settings

ericflo/wasi-lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duktape

Duktape is an embeddable JavaScript engine, with a focus on portability and compact footprint.

Original Source: https://github.com/svaarala/duktape

Modifications: We made some changes to adapt the codebase to the WASI interface.

Running

You can run duktape on your browser: https://webassembly.sh/?run-command=duk

Or you can run it locally in your shell:

wapm install -g duktape

Without any arguments a simple REPL will be launched.

# Run a file
duk --dir=. examples/hello_world.js

# Run the REPL
duk

With wasmtime

First build it by following the instructions in "Building".

# Run a file
wasmtime --dir examples/ build/duk.wasm -- examples/hello_world.js

# Run the REPL
wasmtime --dir . build/duk.wasm

Building

The following script will install wasienv and build the Wasm binary.

./build.sh

About

Some WASI experiments 🧪☣️☠️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.6%
  • C++ 1.4%