You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just to document some helpful pointers to code that might help for Charlotte development. Here's a start:
Walt is an MIT-licensed JavaScript package that compiles a JavaScript-like language to WebAssembly. It's a close match to the WebAssembly/Charlotte approach. Right now, it looks like it can do:
Arrays
Composite objects
Direct binary wasm generation without extra tools
The text was updated successfully, but these errors were encountered:
wasm-ffi is a JavaScript package that helps with interoperability of JavaScript and WebAssembly. For example, it handles calling wasm functions with string or array arguments. Currently, it supports wasm compiled by C and Rust, and AssemblyScript is upcoming. It looks like a great fit for use with Charlotte. I'm not sure we have to do much on our end to support it other than following the C ffi when we write out structs, arrays, and strings to memory.
wasm-bindgen is another interop package. This one is more Rust-focused, but it might have some helpful ideas.
Cheerp is hybrid like Charlotte in that it can compile to either JS or WASM (it compiles C/C++). It's GPL2, so we can't look at the code. I assume we can look at the docs. Blog here.
This is just to document some helpful pointers to code that might help for Charlotte development. Here's a start:
The text was updated successfully, but these errors were encountered: