emscripten-core/emscripten
View on GitHub ↗ ★ 27,756 C++
Emscripten: An LLVM-to-WebAssembly Compiler
148 mentions on Hacker News by 123 people: 14 stories, 134 comments · first 2011-04-16 · latest 2026-06-13
20082026
-
…most use cases (especially C code bases which typically don't have a high allocation frequency): https://github.com/emscripten-core/emscripten/blob/main/syst... ...and Seb Aaltonen's offset allocator (used for allocating GPU buffers in his…
comment by flohofwoe · 2026-06-13 · in Orthodox C++ (2016) -
…the one from the virtual terminal. emscripten-core/emscripten > "New File System Implementation": https://github.com/emscripten-core/emscripten/issues/15041#i... : > [ BrowserFS, isomorphic-git/lightningfs, ] pyodide/pyodide: "Native file…
comment by westurner · 2026-03-17 · in Node.js needs a virtual file system -
…really, if AI works so well, why are all those issues still open? Look, almost 2K issues open here: https://github.com/emscripten-core/emscripten/issues If AI really works like non-technical people think it does, why doesn't Google just…
comment by zb3 · 2026-02-07 · in You Are Here -
…"Import custom memory manager?" · Issue #24851 · emscripten-core/emscripten https://github.com/emscripten-core/emscripten/issues/24851 Just learned about Cage: Cage does Hardware-Accelerated Safe WebAssembly (WASM) with LLVM with supp
comment by westurner · 2025-12-02 · in Ghostty compiled to WASM with xterm.js API compatibility -
…open source GH repositories. What about a demo that shows how this can be used to fix for example https://github.com/emscripten-core/emscripten/issues/24792 ?
comment by zb3 · 2025-11-18 · in Google Antigravity -
OP here: see also < https://github.com/emscripten-core/emscripten/discussions/25... >
comment by sgbeal · 2025-09-22 · in SQLite 3.51.0 supports 64-bit browser-side WASM -
…be supported, and I literally opened a PR to add coroutine support based on JSPI to emscripten: https://github.com/emscripten-core/emscripten/pull/25111 JSPI-based coroutines are much faster than the old Asyncify ones (my demo shows that).…
comment by zb3 · 2025-09-17 · in WASM 3.0 Completed -
…for most C code (e.g. code with low alloc/free frequency) and only adds minimal size overhead: https://github.com/emscripten-core/emscripten/blob/main/syst...
comment by flohofwoe · 2025-09-17 · in WASM 3.0 Completed -
…Code: https://emscripten.org/docs/porting/connecting_cpp_and_javas... Embind's bind.cpp plumbing: https://github.com/emscripten-core/emscripten/blob/main/syst... C Emscripten macros (like EM_ASM_): https://livebook.manning.com/book/webassem…
comment by DonHopkins · 2025-07-23 · in When Is WebAssembly Going to Get DOM Support? -
…builds with Emscripten don't really work that well. A lot of the syscalls don't really go anywhere: https://github.com/emscripten-core/emscripten/blob/main/syst... A non-standalone build is possible, but even though Emscripten does use…
comment by jchw · 2025-07-08 · in WebAssembly: Yes, but for What? -
…rewriting the Emscripten shims to externrefs. PS: probably not worth the effort (see last comment: https://github.com/emscripten-core/emscripten/issues/20021 )
comment by flohofwoe · 2025-01-19 · in WASM GC isn't ready for realtime graphics -
…well use a slow-and-small allocator like emmalloc since allocator overhead doesn't matter anymore: https://github.com/emscripten-core/emscripten/blob/main/syst... (e.g. if memory management overhead shows up in the profiler, the proper…
comment by flohofwoe · 2025-01-19 · in WASM GC isn't ready for realtime graphics -
…runtime for webassembly target > It only works for #pragma omp parallel for num_threads(N) [1] https://github.com/emscripten-core/emscripten/issues/13892 [2] https://github.com/Tencent/ncnn/blob/master/src/simpleomp.h [3]…
comment by dsp_person · 2024-11-14 · in OpenMP 6.0 -
…so Pyodide could do with a version bump. Looks like it inherits that version from emscripten: https://github.com/emscripten-core/emscripten/blob/main/tool...
comment by simonw · 2024-10-15 · in Sqlite3 WebAssembly -
…same thing and can't be used for HTTP requests without the server expecting a WebSocket connection: https://github.com/emscripten-core/emscripten/issues/5196#is...
comment by SethMLarson · 2024-01-30 · in Python HTTP library 'urllib3' now works in the browser -
…true. Emscripten implements (much of) the SDL 1.2 (and also SDL_mixer 1.2) API in Javascript here: https://github.com/emscripten-core/emscripten/blob/main/src/... . On the other hand SDL 2 (and SDL_mixer 2) are proper ports (which you…
comment by versteegen · 2024-01-16 · in Show HN: A minimal working Rust / SDL2 / WASM browser game -
That is not true, SDL2 port is written in C and it has to be compiled. Here's where it's built https://github.com/emscripten-core/emscripten/blob/main/tool...
comment by a1o · 2024-01-15 · in Show HN: A minimal working Rust / SDL2 / WASM browser game -
…are still discovering bugs in the toolchain (see this recent issue filed by one of our engineers) https://github.com/emscripten-core/emscripten/issues/20137 The challenge of the perf-testing at scale in our company is helping developers to…
comment by imslavko · 2023-08-30 · in Keeping Figma Fast: perf-testing the WASM editor -
…https://github.com/emscripten-forge/recipes/tree/main/recipe... Re: emscripten fs implementations: https://github.com/emscripten-core/emscripten/issues/15041#i... https://github.com/jupyterlite/jupyterlite/issues/315
comment by westurner · 2023-03-04 · in Show HN: Classic FPS Wolfenstein 3D brought in the browser via Emscripten -
Emscripten has been under active development since at least 2010. Here's the commit frequency history https://github.com/emscripten-core/emscripten/graphs/contrib... and an article from 2012 about using it…
comment by williamstein · 2023-01-13 · in Alpine Linux in the Browser (2020) -
…Javascript. I eventually gave up without making any upstreamable progress. Relevant github issue: https://github.com/emscripten-core/emscripten/issues/11792 A quote from that thread: > Btw, this issue shouldn't be tagged good-first-bug,…
comment by jitl · 2022-10-30 · in CoWasm: An alternative to Emscripten, based on Zig (demo: Python in the browser) -
…Emscripten's own documentation (you'll note I'm transcoding from c++ due to prior familiarity): https://github.com/emscripten-core/emscripten/issues/17143 This is not a dig on emscripten, merely pointing out that it's probably not mature…
comment by scottLobster · 2022-09-22 · in The Reason Java Is Still Popular -
…memcpy-roundtrip into and out of the WASM heap (for instance see here in Emscripten's WebGPU shim: https://github.com/emscripten-core/emscripten/blob/37aa752eb... ). Ideally the array view could either be mapped directly into the WASM…
comment by flohofwoe · 2022-08-23 · in Accessing WebAssembly reference-typed arrays from C++ -
…shims can disappear completely. (here's an example of such a shim for WebGPU in the Emscripten SDK: https://github.com/emscripten-core/emscripten/blob/main/src/... )
comment by flohofwoe · 2021-10-15 · in V8 Release v9.6 -
…a bit of overhead. If you want something faster, you can use the native WebGL bindings [1] [0] https://github.com/emscripten-core/emscripten/blob/main/src/... [1] https://github.com/emscripten-core/emscripten/blob/main/test...
comment by Jasper_ · 2021-08-15 · in React Renderer for Three.js -
…are much smaller (yet slower) alternatives like Emscripten's emmalloc (which is just 1.4 kloc: https://github.com/emscripten-core/emscripten/blob/main/syst... ). Are there similar smaller alternatives for VMA? As for the motivation: my 3D…
comment by flohofwoe · 2021-07-21 · in Vulkan Memory Allocator -
…WebAssembly using LLVM and Binaryen." A 32-bit Clang is present in my own emsdk installation. [0] https://github.com/emscripten-core/emscripten/
comment by LegionMammal978 · 2021-05-25 · in WASM SYNTH, or, how music taught me the beauty of math -
…to WASM with e.g. emscripten or WASI was one considered alternative. "Emscripten & WASI & POSIX" https://github.com/emscripten-core/emscripten/issues/9479
comment by westurner · 2021-01-05 · in Termux no longer updated on Google Play -
…to implement flash.net.DatagramSocket [0]: https://github.com/WebAssembly/design/issues/1251 [1]: https://github.com/emscripten-core/emscripten/issues/5196
comment by zwetan · 2020-05-28 · in Nitrome to convert its Flash game library to HTML5 -
…> - Video games Video games (not talking about Flash/HTML5 games) are on the web platform. https://github.com/emscripten-core/emscripten/wiki/Porting-E... If you count streaming in, AAA games can be played from the browser since a while…
comment by oefrha · 2020-03-19 · in The reckless, infinite scope of web browsers -
Yes! Part of the cross-platform story here is an Emscripten port of webgpu.h, https://github.com/emscripten-core/emscripten/pull/10218 So you can write an application and run it either natively (using Dawn or wgpu-native) or on the Web (as…
comment by azakai · 2020-02-07 · in Dawn, a WebGPU Implementation in C++ -
…since we have the JS+wasm option for now, and native support coming, that's maybe not worth it. [1] https://github.com/emscripten-core/emscripten/wiki/WebAssemb... [2] https://www.youtube.com/watch?v=qQOP6jqZqf8
comment by azakai · 2019-10-11 · in Libc++ 9.0.0 adds explicit support for WASI -
…/www.figma.com/blog/webassembly-cut-figmas-load-time-... https://github.com/mdn/webassembly-examples/ https://github.com/emscripten-core/emscripten/wiki/Porting-E...
comment by grungleshnorts · 2019-03-28 · in Standardizing WASI: A system interface to run WebAssembly outside the web -
…as it's mostly just a modification/refinement of what Emscripten was already doing successfully https://github.com/emscripten-core/emscripten acting as a build target for the vast majority of C/C++ code out there, and Emscripten is not at…
comment by pmarreck · 2019-02-28 · in Immersive Linear Algebra (2016) -
https://github.com/kripken/emscripten
comment by sigstoat · 2018-05-17 · in A pure JavaScript implementation of Git for Node and browsers -
As historical background: Python was one of the early emscripten asm.js experiments: https://github.com/kripken/emscripten/tree/master/tests/pyth...
comment by fulafel · 2018-02-06 · in Perspective: Streaming pivot visualization via WebAssembly -
> I don't know of any programs that are distributed as C to be run directly like javascript. https://github.com/kripken/emscripten
comment by dymk · 2017-12-19 · in Introduction to WebAssembly: why should we care? -
…- Physics engines, retro games/emulators, entire operating systems, and many many more: https://github.com/kripken/emscripten/wiki/Porting-Examples-...
comment by arnioxux · 2017-12-19 · in Introduction to WebAssembly: why should we care? -
…LLVM, and possibly drop its asm.js compiler in favor of running wasm2asm on LLVM's wasm output: https://github.com/kripken/emscripten/issues/5827 Aside from keeping emscripten's code smaller / more maintainable and allowing the team to…
comment by buu700 · 2017-11-26 · in Rust: Enable WebAssembly backend by default -
…but it never worked well, especially because you can't have binary XHR outside webworkers. https://github.com/kripken/emscripten/commit/e2046bb8ce2b2cc... But I don't understand, why is VFSync superior to something like NFS? It seems that…
comment by iso-8859-1 · 2017-09-18 · in JSLinux – Run Linux or other Operating Systems in your browser -
…pull request on emscripten is a fantastic step forward and I'm very excited to see it's completion: https://github.com/kripken/emscripten/pull/5367
comment by Tanner · 2017-09-13 · in I don’t know who the Web Audio API is designed for -
…More specifically, Emscripten seems to be exactly what you're describing: https://github.com/kripken/emscripten
comment by acemarke · 2017-08-09 · in Ask HN: Can JavaScript be treated like machine language? -
…fun to extend it and add new API for HTML5 platform features. I implemented the glfw joystick API ( https://github.com/kripken/emscripten/pull/5175 ) on top of the HTML5 Gamepad API, and drop callbacks on top of the HTML5 File Drop API (…
comment by satoshinm · 2017-07-27 · in Show HN: Teachcraft – Learn Python through Minecraft -
…how to make a slippymap[1] in C. The same way Doom has been compiled and run in the browser. https://github.com/kripken/emscripten/wiki/Porting-Examples-...
comment by homarp · 2017-07-13 · in Analyzing GitHub, how developers change programming languages over time -
Why not just compile phplib using https://github.com/kripken/emscripten and call the library functions directly?
comment by megamindbrian · 2017-07-12 · in Babel-preset-php: PHP7 to ES7 syntax translator -
…'dont break userspace' attitude and there is longstanding prior art for this on freebsd. see: https://github.com/kripken/emscripten/blob/6dc4ac5f9e4d8484e...
comment by wrmsr · 2017-04-17 · in Show HN: Asmble – Compile WebAssembly to the JVM -
On Chrome you need to turn wasm on apparently. The emscripten GH ( https://github.com/kripken/emscripten/wiki/WebAssembly ) says you should also use Canary, but I see chrome://flags/#enable-webassembly in my Chrome flags, so I turned that…
comment by joatmon-snoo · 2017-03-18 · in Lua VM running in a WASM environment -
…WebAssembly + SDL2. The test_sdl2* tests in emscripten's test suite have working samples in them, https://github.com/kripken/emscripten/blob/master/tests/test... A full SDL1 testcase is in the tutorial,…
comment by azakai · 2017-03-01 · in WebAssembly consensus and end of Browser Preview -
…compile LLVM yourself with WebAssembly experimental target enabled, as explained in the link. [1] https://github.com/kripken/emscripten/wiki/New-WebAssembly-B...
comment by n00b101 · 2017-02-28 · in WebAssembly consensus and end of Browser Preview -
…into C/C++ in case the standard functions don't quite do the right thing with EM_ASM: [3] [1] https://github.com/kripken/emscripten/blob/6dc4ac5f9e4d8484e... [2] https://github.com/kripken/emscripten/blob/6dc4ac5f9e4d8484e... [3]…
comment by flohofwoe · 2017-02-27 · in Emscripten/HTML integration tips