3 ms·
What would be the best/lightest GUI-via-the-browser framework to employ with a program compiled as a Cosmopolitan fat binary? (say, Qt WebAssembly? ...somethin
by DrNosferatu 3y ago
What would be the best/lightest GUI-via-the-browser framework to employ with a program compiled as a Cosmopolitan fat binary?
(say, Qt WebAssembly? ...something else?)
Or is there a even better route to run-anywhere Cosmopolitan apps with a GUI?
- radiator 3y agoPerhaps, by the same authors, redbean, which "embeds Lua, SQLite, and MbedTLS into a fork() driven application server" ... " a great fit for when you want to build an app that's vertically integrated into a single tiny file that runs on nearly all PCs and servers". It looks like as of now, greenbean exists as well.
- rlawson 3y agoI second this. I'm a Java dev and so have been porting Spring Petclinic to redbean using fullmoon which is a Lua framework built on top of redbean by Paul Kulchenko (who also is the author of ZeroBrane studio - a nice lightweight Lua ide which I have been using). https://github.com/pkulchenko/fullmoon https://github.com/pkulchenko/fullmoon So far it's been a lovely experience and Paul is super responsive. Redbean is massively faster at startup so I can build/bounce to do hot reload in real time basically where the spring app takes about 6 seconds to start up.
- mscdex 3y agoGenerally speaking (I've not tested this kind of setup with the cosmopolitan libc) what I've done in the past with C is use something like libmicrohttpd along with some web assets linked into the executable (`xxd -i` can help you with the assets). That gives you a single (small) binary where you can use HTML/CSS/JS for the main GUI and logic. You can then integrate additional libraries as you please, such as sqlite3 to give yourself fast, local database access over an endpoint on the embedded HTTP/S/2 (or websocket) server.
- VikingCoder 3y agoI wish Wt were more open: https://www.webtoolkit.eu/wt https://www.webtoolkit.eu/wt Qt was doing their own thing for a while but scrubbed it, I think... Something something Flutter Web?