3 ms·
> What’s a concrete problem Rust could solve for me? How about first class support for writing a GUI application? Though I don't think GUIs need to be a primar
by gw 12y ago
> What’s a concrete problem Rust could solve for me? How about first class support for writing a GUI application?
Though I don't think GUIs need to be a primary focus, there are some useful projects already. The rgtk library [1] is the best so far. It is the first Rust project I contributed to. It is currently broken due to the changes in the language, but that should be fixed relatively soon. GTK is more natural to interface with than Qt or WxWidgets because it is written in C.
[1] https://github.com/jeremyletang/rgtk https://github.com/jeremyletang/rgtk
- freehunter 12y agoI would love a programming language with first class cross platform GUI support. And by that, I mean native code with a web GUI. I was really excited about Elm for that reason, but the installation process is abhorrent and overly complicated. It'd be nice to write a program that runs on my local machine and presents its GUI through Firefox without needing to depend on a third party library or having to worry about writing HTML, Javascript, and CSS.
- gw 12y agoThe best solution I've found for that is Clojure and ClojureScript. That combination allows you to create a single, self-contained jar file that runs a local web server and opens a localhost address using your default browser. From there, it serves the web app you wrote. My IDE called Nightcode (see nightcode.info) has a template for that. You just click "New Project", give it a name, and then choose the "Web" template. It will generate a project that builds a single jar file like I described. Sorry for being off-topic but I figured it might be what you want.