Design: Best lower level language to "prepare" for more mainstream adoption of wasm ?

Created on 16 Jan 2019  路  2Comments  路  Source: WebAssembly/design

Hi,

Given that one wouldn't have any particular experience in any lower level (ie. compared to JS) language apart from the basics, which language that will be source to wasm compilation would you typically recommend to learn/get into ???

Precisely, I was hesitating between C++ and Rust, so would you say Rust will be(is?) a "typical" source language (i.e. at least at same level as C/C++) for compilation into WASM ?

Maybe another language than those two ?

Thanks a lot for your advice, hoping this 'issue' is placed conveniently.

Most helpful comment

AssemblyScript is another good option.

All 2 comments

AssemblyScript is another good option.

I don't think this is the right place to discuss this, but personally I think Rust is easier to learn than C++.

Rust has excellent built-in support for compiling to wasm. It also supports emscripten, but that tends to be a bit slower and heavier.

And it has strong support for JS interop as well, with wasm-pack, wasm-bindgen, and stdweb.

There is also an official Rust + Wasm working group whose purpose is to build and ensure excellent Wasm support for Rust.

By "official" I mean actually officially a part of Rust, and run by Rust team members.

(Disclaimer: I am a part of the Rust + Wasm working group, so I'm not an unbiased third-party observer)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

konsoletyper picture konsoletyper  路  6Comments

dpw picture dpw  路  3Comments

artem-v-shamsutdinov picture artem-v-shamsutdinov  路  6Comments

mfateev picture mfateev  路  5Comments

ghost picture ghost  路  7Comments