3 ms·
GUI development is really fucking broken. I get it, it's hard to compete with a standardized platform with a probably billion man hours poured into it but I'm r
by adamnemecek 5y ago
GUI development is really fucking broken. I get it, it's hard to compete with a standardized platform with a probably billion man hours poured into it but I'm really hoping that Rust will make it possible to write native and web experiences from one codebase.
- throwaway81348 5y agowhy Rust in particular?
- hiptobecubic 5y agoWhat does rust have to do with this?
- zer0-c00l 5y agoit allows OP to farm karma effectively
- ashton314 5y agoAppears to be backfiring somewhat. I say that as a Rust enthusiast.
- adamnemecek 5y agoIts the first language that lends itself to be used both on the desktop fornative GUIs as well as in the browser.
- hiptobecubic 5y agoWhat? My understanding is that there isn't a native GUI toolkit written in rust for any platform at all. At least, not one that isn't a toy project.
- r00tanon 5y agoI missed the /s ?
- iso8859-1 5y agoThis post is talking mostly about CSS and it shows a document object model tree. JavaScript is also used, given that he mentions React. Among these options, it seems that Rust is most similar to JavaScript. But this whole article would be the same if React was written with Rust instead. So what is the broken part of GUI development, and why is Rust positioned to fix it? As I see it, not much would change if we used Rust instead of JavaScript, except that it could be harder to diagnose when ReactInRust is being used.
- virchau13 5y agoThe broken part is that it is worth it to use an inefficient rendering method (lots of JS generated by React + an interpreter and GC + a render tree (React VDOM) + an overcomplicated element tree (DOM) + a rendering system) instead of an efficient rendering system (if React-in-Rust existed, it would be native executables manipulating an in memory tree for a renderer, removing at least two layers of complications). And this seems to be simply because the React+JS model works so well for DX compared to the rest that it allows for way faster feature implementation.
- jkelleyrtp 5y agoI’ve been working on this :) https://dioxuslabs.com/ https://dioxuslabs.com/
- eyelidlessness 5y agoAmusingly, SwiftUI seems much better suited to this use case than any other lower level language, while Elm and Clojure are much more obvious contenders. In any case, the space is crowded with DSLs and the expression-based DSLs are the ones that generally keep gaining traction.
- SkyMarshal 5y ago> I get it, it's hard to compete with a standardized platform with a probably billion man hours poured into it Are you talking about the MacOS System Preferences app, which has probably been around since Macs switched to Intel, or about React? Either could fit that description.
- adamnemecek 5y agoI'm talking about WebKit.
- maxloh 5y agoHow about flutter? It uses native views.
- heavyset_go 5y agoAs far as I'm aware, Flutter is like Qt and React Native in that its platform controls are redrawn to look like native controls.
- skydhash 5y agoFlutter replaces the entire views with its own rendering engine. That has caused some issues with consistency.