MikeInnes / Charlotte.jl

Charlotte's Web Scale
Other
113 stars 13 forks source link

Nicer export interface #3

Open MikeInnes opened 6 years ago

MikeInnes commented 6 years ago

We should be able to write something like

@wasm begin
  foo(Int, Int)::Int
  bar(Float64)::Bool
end

and have this directly create a WebAssembly binary. Perhaps even wrapper code so that foo and bar can be immediately imported and used from JS.