Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtpio/xtl-wasm
A subset of the xtl library compiled to WebAssembly
https://github.com/jtpio/xtl-wasm
murmur2 wasm webassembly xtl
Last synced: 2 days ago
JSON representation
A subset of the xtl library compiled to WebAssembly
- Host: GitHub
- URL: https://github.com/jtpio/xtl-wasm
- Owner: jtpio
- Created: 2020-10-17T08:03:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-17T13:34:15.000Z (about 4 years ago)
- Last Synced: 2024-10-16T22:26:47.539Z (22 days ago)
- Topics: murmur2, wasm, webassembly, xtl
- Language: TypeScript
- Homepage: https://xtl-wasm.now.sh
- Size: 199 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xtl-wasm
A subset of the [`xtl`](https://github.com/xtensor-stack/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
```bash
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.shexport 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:
```bash
yarn run build
```Then start a local server with:
```bash
yarn run start
```This will open a new tab in the web browser with the demo app.
## References
- `xtl`, the x template library: https://github.com/xtensor-stack/xtl
- Emscripten: https://emscripten.org/