Using wasmer to implement a compiler #3883
Unanswered
bcpeinhardt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
I'm in the early stages of figuring out how to add WASM as a target for the Gleam programming language. Gleam is a functional statically typed language that compiles to Erlang and/or JavaScript. I'd like to add WASM to that list of targets.
The compiler is already set up well for generating code from the parsed AST, so I figure I'll produce WAT, use your llvm compiler to optimize the naive wasm and then set up the compiler cli to use the wasmer runtime as a default for a command like
gleam run --target=webassembly
. The compiler and cli are implemented in rust btw.A lot of this depends on the GC proposal but lets just ignore that for a minute :)
I'm starting this discussion because I'm still a little unclear on the available tools and would love to be pointed to the more relevant tools for this task/ informed of a more efficient use of the wasmer toolchain.
Beta Was this translation helpful? Give feedback.
All reactions