Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebAssembly target #34

Closed
mverleg opened this issue Mar 11, 2018 · 4 comments
Closed

Add WebAssembly target #34

mverleg opened this issue Mar 11, 2018 · 4 comments
Assignees

Comments

@mverleg
Copy link
Collaborator

mverleg commented Mar 11, 2018

Try to have both native and WebAssembly. If that complicates things too much or takes a lot of time, then only WebAssembly is also an option (for now).

@mverleg
Copy link
Collaborator Author

mverleg commented Mar 26, 2018

https://www.hellorust.com/setup/wasm-target/
https://www.hellorust.com/demos/add/index.html
http://thecodebarbarian.com/getting-started-with-webassembly-in-node.js.html

How to run wasm locally so I can do tests?

How to wrap it in JS? I need at least loading and delegate to a webworker.

@mverleg
Copy link
Collaborator Author

mverleg commented Mar 26, 2018

@mverleg mverleg self-assigned this Mar 27, 2018
@mverleg
Copy link
Collaborator Author

mverleg commented Apr 29, 2018

My current plan is to only target wasm for now, using binaryen IR as target to get optimizations. Skip LLVM for now, web is the primary (first) target and won't need heavy optimization as that likely happens in the browser anyway. Binaryen can do some optimizations on wasm for optimized mode (might break source map).

@mverleg
Copy link
Collaborator Author

mverleg commented Apr 29, 2018

This got a little mixed up; split into:

#47 for the compiler itself
#48 for a target to compile Mango to

@mverleg mverleg closed this as completed Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant