News for hackers. Stuff that matters.
Re:Moonbit: The fast, compact and user friendly language for... by hongbo_zhang on Saturday August 19, 2023 @06:53AM (#37187446)
> Will things change as WebAssembly evolves?

Yes, but we also plan to support old Wasm versions, like 1.0 etc.

Note Moonbit is designed in a modular way that it should be easy to target different backends (JS, Native). Currently we are focused on make the Wasm experience optimal(including the debugger)

Re:Moonbit: The fast, compact and user friendly language for... by DonHopkins on Saturday August 19, 2023 @08:15AM (#37187968)
Thank you!

What I meant wasn't Moonbit targeting JavaScript, but integrating Moonbit compiled into WebAssembly with JavaScript, making it so they can call back and forth to each other more easily, like Embind wraps C++ classes, methods, and functions with glue so they are exposed and callable as JavaScript classes, methods, and functions.

Kind of like what SWIG or Boost.Python (which inspired Embind) does, too.

The plumbing for integrating JavaScript and WebAssembly is evolving (especially with respect to passing objects and garbage collection).