by Simon DanischDec 19 2018
Julia & graphic enthusiast. Interested in high performance computing, GPUs and machine learning.

Webassembly Base

Keno Fischer, Simon Danisch
#Add some dependencies we need:
apt-get update
apt-get install git python -y
# Julia dependencies
apt-get install build-essential libatomic1 python gfortran perl wget m4 cmake pkg-config

# Install Webassembly SDK
git clone
cd emsdk
./emsdk install latest
./emsdk activate latest
# Compile Julia on master
cd ..
git clone
cd julia

# Checkout Keno's wasm branch
make -j8
# Make a backup of the flisp files
#p src/julia_flisp.boot src/julia_flisp.boot.bak
#p src/ src/
source .//emsdk/
cd julia
git checkout kf/wasm
echo "override CC=emcc
override CXX=emcc
override OS=wasm
override JULIA_THREADS=0
override USE_SYSTEM_BLAS=1
override USE_SYSTEM_LIBM=1
override DISABLE_LIBUNWIND=1" >> Make.user
touch src/julia_flisp.boot
touch src/

make -C deps/ clean-utf8proc
make -C deps/ install-utf8proc
make -C src
emcc -Isrc/support -Lusr/lib -ljulia ui/repl-wasm.c --preload-file base/boot.jl --no-heap-copy -g4 -s -s WASM=1 -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -o hello.html

install http server master branch to run a server

julia -e 'using Pkg; pkg"add HTTP#master"'