Skip to content
 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExportWebAssembly

This package is very experimental.

The main purpose of this package is to generate WebAssembly and/or JavaScript from Julia code.

Example:

myfun(x) = sum((x, x, 1.0))

export_bitcode("myfun.bc", myfun, Tuple{Float64})

This generates an LLVM bitcode file in WebAssembly format that can be converted with Emscripten/Binaryen to WebAssembly.

Note that there's nothing in place (yet) to actually convert to WebAssembly.

This package uses the awesome LLVM.jl package. It includes code directly adapted from CUDAnative.jl. LLVM.jl requires special installation instructions--it requires a source build of Julia (see their site for more info).

About

[WIP] Export Julia functions to WebAssembly and JavaScript

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages