Did you know you can compile C/C++ for the web?

avatar

Screen Shot 2021-03-31 at 2.53.27 PM.png

Did you know you can compile C/C++ for the web?

It's called emscripten and it will take your ANSI C or C++ and compile it (LLVM) into Webassembly which can then be called/launched from plain old HTML and JavaScript!

Not only can you use your standard libraries, it also allows you to use things like SDL.

Yep, even UnityUnity and UnrealUnreal - full games or multimedia developed in C but running in your web browser.

Webassembly in a good browser is so performant it opens up a whole bunch of possibilities, not least to give new life to old code.

Even Python has been compiled to run as an interpreter right in your browser.
Screen Shot 2021-03-31 at 3.15.37 PM.png

The Emscripten SDK (emsdk) can be used on Linux, Windows or MacOS, either using the download, compiling natively, or using Docker/Homebrew.



0
0
0.000
2 comments
avatar

Congratulations @makerhacks! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You distributed more than 47000 upvotes.
Your next target is to reach 48000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Feedback from the April 1st Hive Power Up Day
0
0
0.000