skia-opengl-emscripten
asm-dom
Our great sponsors
skia-opengl-emscripten | asm-dom | |
---|---|---|
2 | 7 | |
2 | 2,773 | |
- | - | |
0.0 | 0.0 | |
over 3 years ago | about 1 year ago | |
C++ | C++ | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
skia-opengl-emscripten
-
How to use C++ as backend
You can even render html using c++ in brower via Emscripten, example: https://github.com/blockspacer/skia-opengl-emscripten/tree/master/docs
-
The best option for desktop GUI?
NoesisGUI looks good https://github.com/blockspacer/skia-opengl-emscripten/issues/6
asm-dom
-
Blazor United - When it ships it would be the most glorious way to do web with .NET
Aside from Blazor there's already some other projects like Yew (rust), seed (rust), asm-dom (C++) and vugu (Go) and more that have decent followings and activity. A lot more (especially managed languages) are waiting for some features to come online like wasm GC and host bindings (direct wasm access to browser apis which includes the DOM). It'll take a bit of time, but it'll get there eventually.
-
WebAssembly and C++
FWIW if you look around, C++ and Rust libraries 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 the right way to tackle this problem. The library user don't need to care about specific WASM features, and the library implementation can be simplified when those WASM features become available (and also implement per-browser fallback paths)
- I really don't get it.
- Fengari – Lua for the Browser
-
alia - A Declarative UI Library for C++
Emscripten also provides a lot of the API for interacting with HTML5 in C++. Unfortunately, it doesn't have access to the DOM, so I'm using asm-dom as a bridge for that.
Thanks for the kind words! :-) Yeah, you've got a good description of the use case for it. You give me too much credit though. :-) It's built on top of Emscripten, which handles a lot of the low-level bindings between C++ and the browser. Also, asm-dom helps fill in a big gap between C++ and the DOM.
What are some alternatives?
cefpython - Python bindings for the Chromium Embedded Framework (CEF)
nodegui - A library for building cross-platform native desktop applications with Node.js and CSS 🚀. React NodeGui : https://react.nodegui.org and Vue NodeGui: https://vue.nodegui.org
C++ REST SDK - The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
snabbdom - A virtual DOM library with focus on simplicity, modularity, powerful features and performance.
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
Skity - A light weight 2D Vector Graphic renderer library writing in c++ for OpenGL3.3+ / OpenGLES3.0+ / Vulkan 1.1+/ WebGL2 with WASM
fengari - 🌙 φεγγάρι - The Lua VM written in JS ES6 for Node and the browser
wasmr - Execute WebAssembly from R using wasmer
lunasvg - lunasvg is a standalone SVG rendering library in C++
EmGlue - 🕸️ Glue C++ to your browser! Universal bindings for JavaScript/Wasm using Glue and Embind.
bergamot-translator - Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.
liblava - Modern and easy-to-use library for Vulkan