Cross-platform compatibility
Emscripten enables developers to compile C and C++ code to WebAssembly or JavaScript, allowing the same codebase to run on multiple platforms, such as browsers and node.js, without needing additional platform-specific adaptations.
Leverage existing libraries
Developers can utilize a vast ecosystem of existing C and C++ libraries by compiling them for the web, saving time and resources required for rewriting or finding alternatives developed in JavaScript.
Performance optimization
Emscripten's compilation to WebAssembly provides near-native performance for web applications, making it suitable for compute-intensive tasks like gaming, simulations, and data processing.
Familiar toolchain
Developers can use familiar tools like CMake and others as part of their Emscripten workflow, making it easier for those with C/C++ backgrounds to adapt and integrate into their web development processes.
Me and a friend build our own Graphics engines based on https://learnopengl.com I can highly recommend this to everyone who gets started with computer graphics. It is a lot of new information but not the most modern Graphics library, but the information will help you understand the field and pickup any other graphics library quicker. Once I had a small project up and running I started looking at... - Source: Hacker News / 6 months ago
Https://infinitemac.org, which is https://basilisk.cebix.net compiled for the web using https://emscripten.org. - Source: Hacker News / over 1 year ago
One place that I’ve found some real, open source unit tests to look at for an example is in the emsdk for emscripten: https://emscripten.org. Source: over 1 year ago
I am playing around with Emscipten which wraps around clang to compile C/C++ code in WASM binary and provide some glue-code API to embed WASM binary into JavaScript. Look into MDN Docs and Emscripten SDK to get started. - Source: dev.to / over 1 year ago
Elm is a different approach that compiles into JavaScript. In the extreme case, you have Emscripten which will compile many language into JavaScript but will feel really clumsy compared to using JavaScript in a lot of cases. Source: almost 2 years ago
SQLite is a pretty popular database and it's a critical dependency for many different applications. By compiling it to Wasm32-wasi, you can add it to any WebAssembly module. This enables a new set of possibilities for Wasm and SQLite. For example, now you can run a full WordPress application in the browser [1][2] / server [3] using the same Wasm module. Note that for the browser these projects use Emscripten [4],... - Source: Hacker News / almost 2 years ago
The emscripten interface for the assimp library. It runs entirely in the browser, and allows you to import 40+ 3D file formats and access the result in JSON or glTF format. This is not a full port of assimp, but an easy to use interface to access it's functionality. Source: almost 2 years ago
Three.js is written in JS and loads like a JS library on a modern website. Godot is a binary application transpiled to WASM (with the help of emscripten), resulting in a pretty large initial payload. Godot provides JS integration, but it feels less "native" with its layers of abstraction. Source: almost 2 years ago
WebAssembly's origins date back to Alon Zakai's incredible effort to build C++ to JavaScript. In 2015, we demonstrated the power of this technology to make scientific computational sustainable and accessible. Try it -- reproducibility is still possible all these years later, with no installation (or maintenance!) required. - Source: dev.to / about 2 years ago
Afaik they use C++ with emscripten with WebGL for their rendering. Source: about 2 years ago
Then use Emscripten (the C++ -> js, asm.js, wasm compiler) to cross compile to the web. Source: about 2 years ago
To bring the mocap data the browser I used emscripten to compile the project to WebAssembly. It's amazing how nowadays you can develop your app as a desktop application, and then bring it to the web by compiling it to WASM. Source: about 2 years ago
For Node.js or the Browser, build the project with the default Emscripten toolchain. - Source: dev.to / about 2 years ago
Windows has very weak sandboxing built in but potentially them running it in a web browser (i.e you compiling your program with Emscripten C++ -> JS/WebAssembly). Source: over 2 years ago
Implementing said things, however, can be tricky, and the community is kind of spread all over the place. Rust is popular, but involves a lot of crates and boilerplate code being strapped on. C/C++ is an easy way of targeting WASM using Emscripten, and I'm sure it works well, but I feel it fits in the same place as Rust where a lot needs to be strapped on to bring you up to production speed. - Source: dev.to / over 2 years ago
Post-university, I've learned most everything I've learned at work. I've done a few projects outside of work with non-work-related tech, like using emscripten to compile C++ to run in a web browser. Source: over 2 years ago
The tool for C++ to WASM compilation is called Emscripten. I personally haven't used it, never had the use case, but I've heard and seen good results from it. Source: over 2 years ago
I've been doing quite a bit of work with Emscripten, trying to build traditional C++ classes to manage a website, fed through jquery. I quite like Emscripten, and the produced WebAssembly code is crazy fast. All-in-all, I'd recommend giving it a try. Source: over 2 years ago
If you want to do it this way and use imgui, you can create your imgui c++ application as you would for a regular desktop and use Emscripten which now supports webassembly. Source: over 2 years ago
And WebAssembly is growing in popularity. It is not a language directly; it enables other languages client-side, including C# and C++. If you doubt that C++ can be used in a browser then you need to learn about Emscripten and WebAssembly. Source: over 2 years ago
I put WebAssembly (Wasm) first here because I'm a big fan of this technology. It allows all kind of software developers to use the programming language that they love. I prefer to work with the emscripten compiler tool chain and find it quite convenient for me. - Source: dev.to / over 2 years ago
Do you know an article comparing Emscripten to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Emscripten. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.