Earlier quoted context omitted.
Wasn't Rust invented to write a GUI? A webbrowser can be regarded as a kind of GUI.
No, it was invented to write a generic (web) rendering engine. So, even if we consider a web app as a GUI, Rust wasn't invented for writing that (you still use CSS, HTML, JS etc for that part). It was invented for writing the backend for that UI. In other words, Rust is not GTK (a UI library), it's C (the language the UI library itself is written in).
Rust in 2018: easier to use
181–190 of 305 posts
Re: Rust in 2018: easier to use
#182Earlier quoted context omitted.
Neither I think Rust is fit for that purpose, any GC language is a better fit in terms of productivity, unless we are speaking about tiny IoT devices with a few KBs. Also, it is not yet fit for writing GUI code. It is quite far from what is possible to achieve today in Qt/WPF/Cocoa/Android/... tooling and even the latest NLL improvements don't fix all issues regarding writing callbacks.
> Neither I think Rust is fit for that purpose, any GC language is a better fit in terms of productivity There is nothing in Rust that makes it inherently unfit for APIs or the web. To dismiss the entire language is simply lazy. Having GC also doesn't necessarily make one language superior to another. While http ecosystem is still in active development, if there was really a choice between Rust and JS for e.g. writin…
Re: Rust in 2018: easier to use
#183Earlier quoted context omitted.
No, it was invented to write a generic (web) rendering engine. So, even if we consider a web app as a GUI, Rust wasn't invented for writing that (you still use CSS, HTML, JS etc for that part). It was invented for writing the backend for that UI. In other words, Rust is not GTK (a UI library), it's C (the language the UI library itself is written in).
Ok what is the GUI of Firefox written in/using?
Re: Rust in 2018: easier to use
#184Earlier quoted context omitted.
You're comparing a language to an OS and three GUI frameworks.
I think there's some merit to the statement nonetheless - e.g. Qt is native to C++ and its API designed around C++ language features and semantics in many ways. There has been success in writing bindings for languages that can emulate those semantics without too much pain (e.g. PyQt), but Rust is not one of them. Inside the Rust community, there's been a lot of debate about what an idiomatic Rust API for a GUI toolki…
Re: Rust in 2018: easier to use
#185Well it is super easy to develop hello world in Rust. Yay! Last time I checked there was no decent HTTP client and the documentation is just non existent for that subpar library. There were lost of promises about the newer version of async io library yet it is still WIP as of today. The performance was 30 times less than the same code in Java and after consulting many Rust developers nobody could tell me why. It is n…
So if a language can't do HTTP and async I/O (with state-of-the-art performance) then we shouldn't consider any other possible application for it? Rust is not Java, you have better languages to build webservers with.
Re: Rust in 2018: easier to use
#186Earlier quoted context omitted.
> Neither I think Rust is fit for that purpose, any GC language is a better fit in terms of productivity There is nothing in Rust that makes it inherently unfit for APIs or the web. To dismiss the entire language is simply lazy. Having GC also doesn't necessarily make one language superior to another. While http ecosystem is still in active development, if there was really a choice between Rust and JS for e.g. writin…
Except it takes 10x time to write anything backend related. Why would you choose Rust over Java / C# / Go ect ...?
Re: Rust in 2018: easier to use
#187This is going to sound weird, but I would like to see a garbage-collected Rust. Take away the borrow checker, and you still have a modern language with UTF-8 support out-of-the-box, algebraic data types, pattern matching, a focus on performance, and great tooling (cargo + rustup = OCaml almost fits the bill (Rust is inspired by OCaml after all), but the tooling around it is lacking to put it mildly.
I wonder how threading would work without the borrow checker though. It would be cool if you could still have the "fearless concurrency part".
Re: Rust in 2018: easier to use
#188Earlier quoted context omitted.
I think there's some merit to the statement nonetheless - e.g. Qt is native to C++ and its API designed around C++ language features and semantics in many ways. There has been success in writing bindings for languages that can emulate those semantics without too much pain (e.g. PyQt), but Rust is not one of them. Inside the Rust community, there's been a lot of debate about what an idiomatic Rust API for a GUI toolki…
Qt uses way more than vanilla C++ though, it practically has its own dsl for a whole host of things.
There's a small number of macros that a custom preprocessor expands to (very pedestrian) generated code, but they are optional to use (though it's certainly uncommon not to use them) and these days there's template-based versions of some of them that are preferred and steadily finding adoption over the macro ones because they're superior. Beyond that there's a few more normal preprocessor-based macros that are entirely optional.
In that sense Qt also tracks vanilla C++ very closely and has adopted features from newer language versions at a fairly steady pace and swiftly for such a large production library set.
None of this matters much to my point though - that was about much more basic language semantics like classes-based OOP and the absence of ownership rules.
Re: Rust in 2018: easier to use
#189Earlier quoted context omitted.
Except it takes 10x time to write anything backend related. Why would you choose Rust over Java / C# / Go ect ...?
Except that number is completely made up. Why do believe it takes ten times as long?
Re: Rust in 2018: easier to use
#190Earlier quoted context omitted.
I wouldn't be too pessimistic about a project just because the main author stopped pushing changes for one month in the holliday season. It also happened in August for the same project and work resumed later at a fast path.
If the project has only one main author, I would be. Even more so if they are on and off and not paid for it. Heck, TextMate and somewhat Sublime Text had such issues with 1 single dev, and those are projects that actually make them money...