asm-dom
fengari
Our great sponsors
asm-dom | fengari | |
---|---|---|
7 | 24 | |
2,773 | 1,765 | |
- | 1.4% | |
0.0 | 0.0 | |
about 1 year ago | almost 1 year ago | |
C++ | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
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.
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
-
At least it's not java
Wasm is already around for a while. There are probably some libs to access the dom and frameworks around that wrap the js part completely Found this after a short search https://github.com/mbasso/asm-dom Also Blazor seems to work fine, but didn't really test it beside playing around a little bit with it
-
alia - A Declarative UI Library for C++
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.
fengari
-
Lua: The Little Language That Could
it should be possible, the article mentions https://fengari.io/ (a Lua VM written in JavaScript)
-
OmG jAVaScRiPt InSeCuRe. LuA bETtEr.
Check out Fengari or Lapis. Fun fact: itch.io is written primarily in Lua, and started by the same person who made Lapis and MoonScript.
-
Lua is the fourth-fastest growing language on GitHub
I was real excited to see these recently... have you tried any? https://fengari.io/ is the one I was most intrigued by.
-
How to embed lua in a JS webapp?
Hello, there is also fengari: https://fengari.io/
-
PyScript
Other languages have done that :)
Lua in the browser: https://fengari.io/
And then you can use that to run Fennel, a Lisp that compiles to Lua https://fennel-lang.org/
I think TypeScript also has a script you can include that lets you put your TS code in a special script tag, and it gets compiled in-browser.
-
Intro to PyScript: Run Python in your web browser
just use lua, it’s what should have been used for web scripting anyways
-
Upcoming interview with Roberto Ierusalimschy
Please stop this stuck in the mud nonsense. Anyone stumbling upon lua.org might think the project is dead already. The material is great, close to the best, but its presentation is pure shite. Not mobile friendly (what kinds of device do you think the majority of people in the Global South use?). We live in a world of code highlighting, none of that in PiL. We live in a world where Fengari allows Lua to run in the browser, does that make an appearance on lua.org, allowing users to immediately play with the language? Of course not! It's almost as if the Lua team is trying to push away potential users.
-
A First Look at PyScript: Python in the Web Browser – Real Python
why not use lua
-
I really like to think of PyScript as the “Minecraft of software development”
Just use lua https://fengari.io/
-
What can I create with Lua?
Definitely the most surprising use-case for Lua that I've seen is http://lua.space/webdev/why-we-rewrote-lua-in-js which discusses https://fengari.io/.
What are some alternatives?
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
pypyjs - PyPy compiled to JavaScript
skia-opengl-emscripten - DEPRECATED! ~~C++ HTML/CSS UI. Supports subset of HTML/CSS. Based on chromium/cobalt.foo without JavaScript overhead. Uses SKIA 2D graphics library. Can be used to build UI for cross-platform app, game or website. Can support browser as HTML5 web framework or WebGL UI renderer.~~
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
snabbdom - A virtual DOM library with focus on simplicity, modularity, powerful features and performance.
emscripten - Emscripten: An LLVM-to-WebAssembly Compiler
wasmr - Execute WebAssembly from R using wasmer
lunatic - Lunatic is an Erlang-inspired runtime for WebAssembly
lunasvg - lunasvg is a standalone SVG rendering library in C++
wasm-libxml2 - A quick experiment to build and run libxml2 as a WebAssembly module.
pretty-diff - Pretty printing a diff of two values
lua-cmake - Embed lua with CMake