Hacker GitHub

← All repos

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

Mentions per year 148 mentions · busiest year 2013 (21)
20082026
  1. …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)
  2. …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
  3. …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
  4. …"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
  5. …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
  6. OP here: see also < https://github.com/emscripten-core/emscripten/discussions/25... >
  7. …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
  8. …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
  9. …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?
  10. …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?
  11. …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
  12. …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
  13. …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
  14. …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
  15. …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...
  16. …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…
  17. 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...
  18. …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…
  19. …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
  20. 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)
  21. …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,…
  22. …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
  23. …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…
  24. …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
  25. …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
  26. …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
  27. …WebAssembly using LLVM and Binaryen." A 32-bit Clang is present in my own emsdk installation. [0] https://github.com/emscripten-core/emscripten/
  28. …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
  29. …to implement flash.net.DatagramSocket [0]: https://github.com/WebAssembly/design/issues/1251 [1]: https://github.com/emscripten-core/emscripten/issues/5196
  30. …> - 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…
  31. 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++
  32. …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
  33. …/www.figma.com/blog/webassembly-cut-figmas-load-time-... https://github.com/mdn/webassembly-examples/ https://github.com/emscripten-core/emscripten/wiki/Porting-E...
  34. …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)
  35. https://github.com/kripken/emscripten
  36. As historical background: Python was one of the early emscripten asm.js experiments: https://github.com/kripken/emscripten/tree/master/tests/pyth...
  37. > I don't know of any programs that are distributed as C to be run directly like javascript. https://github.com/kripken/emscripten
  38. …- Physics engines, retro games/emulators, entire operating systems, and many many more: https://github.com/kripken/emscripten/wiki/Porting-Examples-...
  39. …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…
  40. …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…
  41. …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
  42. …More specifically, Emscripten seems to be exactly what you're describing: https://github.com/kripken/emscripten
  43. …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 (…
  44. …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-...
  45. 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
  46. …'dont break userspace' attitude and there is longstanding prior art for this on freebsd. see: https://github.com/kripken/emscripten/blob/6dc4ac5f9e4d8484e...
  47. 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
  48. …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,…
  49. …compile LLVM yourself with WebAssembly experimental target enabled, as explained in the link. [1] https://github.com/kripken/emscripten/wiki/New-WebAssembly-B...
  50. …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