jtpio / xtl-wasm

A subset of the xtl library compiled to WebAssembly

Home Page:https://xtl-wasm.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xtl-wasm

A subset of the xtl library compiled to WebAssembly.

List of currently supported functions:

  • xhash/murmur2_x86

Status

This is still an experiment 🧪 ⚡

Demo: https://xtl-wasm.now.sh/

Installation

This package has not been published yet.

Dev Setup

conda create -n xtl-wasm -c conda-forge python=3 cmake openjdk xtl yarn -y

# Get the emsdk repo
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk/

# Download and install the latest SDK tools.
./emsdk install latest

# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate latest

# source the env file
source ./emsk_env.sh

export CPLUS_INCLUDE_PATH=${CONDA_PREFIX}/include

yarn run build:xtl

This will generate the WASM and JS files in the public/dist/ folder.

To build the demo web app:

yarn run build

Then start a local server with:

yarn run start

This will open a new tab in the web browser with the demo app.

References

About

A subset of the xtl library compiled to WebAssembly

https://xtl-wasm.now.sh


Languages

Language:TypeScript 82.7%Language:HTML 12.8%Language:C++ 4.5%