r/CodingHelp • u/handsome-guy-here • Oct 27 '26
[C] what is/are the best resources for learning web assembly?
yes, i already know C, although im at least aware that there are some special functions when applying it to web assembly
i'm going to school in a bit so i won't be able to read/answer your comments just yet sry
6
Upvotes
•
u/AutoModerator Oct 27 '26
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Traveling-Techie Oct 27 '26
I e never heard the term “web assembly” before.
1
u/gofuckadick Oct 27 '26 edited Oct 27 '26
With your C background, I'd recommend looking into Emscripten, which lets you compile C/C++ programs to WebAssembly. Their getting-started tutorial walks you through compiling and running your first programs in a browser.
A few other useful resources that I have saved:
If you prefer books, WebAssembly in Action by Gerard Gallant is worth looking into. It's specifically focused on C/C++ and Emscripten, and covers compiling native code to WebAssembly, JavaScript interoperability, memory, debugging, and more.
Edit: The book is cheaper directly from the publisher.
Edit 2: if you expand the table of contents on Manning's website, you can apparently read the entire book through the embedded preview reader. It's a bit cramped, but all the chapters seem to actually be accessible. However, if you try to open it in the full liveBook reader and enter your email address, you're prompted to purchase the book. Just FYI.
1
u/DanKegel Oct 30 '26
Web assembly keeps changing, the component model makes language interop much easier. Old wasm books may not cover it.
Google this:
wasi preview 2 tinygo rust c js interop