Hacker GitHub

← All repos

mbasso/asm-dom

View on GitHub ↗ ★ 2,825 C++

A minimal WebAssembly virtual DOM to build C++ SPA (Single page applications)

16 mentions on Hacker News by 12 people: 5 stories, 11 comments · first 2017-05-20 · latest 2022-06-27

Mentions per year 16 mentions · busiest year 2017 (8)
20082026
  1. …for DOM manipulation exist (I haven't searched for other languages which compile to WASM): https://github.com/mbasso/asm-dom https://github.com/sycamore-rs/sycamore I think solving the problem of DOM access on the library level is exactly…
    comment by flohofwoe · 2022-06-27 · in WebAssembly and C++
  2. Via https://github.com/mbasso/asm-dom ? (for example). For every complex self generated challenge there is an even more complex solution?
    comment by intc · 2022-02-20 · in Fengari – Lua for the Browser
  3. There are already several libs that compile to WebAssembly and let you manipulate the DOM, e.g. https://github.com/mbasso/asm-dom You can already call out to small JS code snippets that work on the DOM from WAM, and since DOM manipulation…
    comment by flohofwoe · 2018-06-21 · in V8 release v6.8
  4. …which that could be ported to WASM. Here's an example of someone who has written one already: https://github.com/mbasso/asm-dom
  5. …io/emscripten-site/docs/porting/conne... also debug this project and see how it controls html via c++ https://github.com/mbasso/asm-dom
    comment by billconan · 2018-01-20 · in Can webassembly push output to JavaScript?
  6. Rust -- https://github.com/koute/stdweb C++ -- https://github.com/mbasso/asm-dom I don't know exactly how these work but Emscripten allows interop both ways (embedding JS in native code and calling native code from JS) --…
  7. …folks will, replace Javascript. [1]: https://github.com/WebAssembly/design/blob/master/FAQ.md [2]: https://github.com/mbasso/asm-dom
  8. …bridge this gap by using javascript as a bridge or "glue" between WebAssembly and the DOM. Example: https://github.com/mbasso/asm-dom > Page scripting will still be done in JS for several years. There are people who thought that corporate…
  9. https://github.com/mbasso/asm-dom/commit/1e1659ebc2357bf34be... Is in the example the usual place to put this?
    comment by simooooo · 2017-05-21 · in Asm-Dom – WebAssembly Virtual DOM
  10. …are meant to imply different meanings, or if they are just different styles for the same thing: https://github.com/mbasso/asm-dom/blob/master/src/js/domApi.... 'setAttribute'(nodePtr, attr, value) { 'parentNode': nodePtr => (…
    comment by DonHopkins · 2017-05-20 · in Asm-Dom – WebAssembly Virtual DOM
  11. …I assume either snabbdom was used as a starting point or the inspiration is very much wilful? [0] https://github.com/mbasso/asm-dom#inline-example [1] https://github.com/snabbdom/snabbdom#inline-example
    comment by masklinn · 2017-05-20 · in Asm-Dom – WebAssembly Virtual DOM