Note: this project is no longer actively-maintained, and Julia WASM work has advanced significantly since it was put together. See for example Keno/julia-wasm.
This repository is a harebrained attempt to create a web application that takes Julia code and converts it to something that can run on the web via either
- Tom Short's ExportWebAssembly.jl, CodeGen.jl and Emscripten.
- Mike Innes's Charlotte.jl and the WebAssembly Binary Toolkit.
After each tool converts your julia function to either javascript or wasm it loads the result into the browser window so that you can test it out. This is all very experimental, so don't be surprised when things don't work.
You can try it here. Note: this project is now using Heroku's free dynos, so the first request will take up to ~40 seconds extra if no one has used the site in a while.
The API for the Charlotte.jl conversion is written in HTTP.jl with a bit of help from Joseki.jl, and is intended to serve as an example API written entirely in Julia.