Live data from Hacker News

One Year with Rust: I wrote a full featured application in rust, and so can you

vitiral.github.io

21–30 of 39 posts

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#21

Seems odd to compare Rust and Python. They're different levels of abstraction and I think are both great languages that serve different use cases. I'm always going to be more productive in Python. And Python has an awesome ecosystem for web apps. Rust gives you native compiled binaries, concurrency, and speed in general. Why you'd consider these two languages for the same app is beyond me.

I really wish python had a good concurrency story, it would last far longer as a language if it did. The GIL is why it's reducing in popularity.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#22

Seems odd to compare Rust and Python. They're different levels of abstraction and I think are both great languages that serve different use cases. I'm always going to be more productive in Python. And Python has an awesome ecosystem for web apps. Rust gives you native compiled binaries, concurrency, and speed in general. Why you'd consider these two languages for the same app is beyond me.

I agree and disagree. They are very different, but rust can do pretty much anything that python can do -- but do it better. The only time I would be more productive in python is if the app is very small (like a script).

Any bigger than that and rust is the right hammer for my nails. Probably just personal preference, but I strongly prefer the type safety and performance guarantees of rust.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#23

How do I make a GUI application in rust? Does it have support for Qt, MFC, or maybe WPF?

Just personal opinion here, but I think GUI's should/are being phased out. I much prefer writing a front-end web app and package it inside the application. That's what artifact does.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#24
post #13

What I would like to see is story from someone that is C/C++ expert and transitioned to Rust with their performance sensitive software, not side/hobbyist project, but real product working in production. I am interested in challenges that this person/team had, in which situations using unsafe was a must, what kind of performance problems they had with Rust abstractions (not all are cost-free) etc. And I emphasize on p…

not that I know of, it would be awesome to hear about! Personally I think rust would excel at database development.

This doesn't answer your question, but rust is looking really good in the benchmarks game lately: http://benchmarksgame.alioth.debian.org/u64q/rust.html

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#25
post #2

I've been doing a lot of rust lately and I have to say it blows c/c++ out of the water. Sure, c/c++ has more libs, but almost every other feature in rust is fantastic, and wrapping a clib via ffi is really easy in rust. My only (minor) complaint with rust is that they aren't pushing no_std enough IMHO, but I'm biased since all my code is no_std :) so obviously I'd like to see a lot less work in the stdlib and more on…

By that way, in referring to C++, are you referring to modern C++ or C with classes? Whenever is see people criticizing C/C++, I suspect they are doing C with classes style programming and (rightfully) hating that.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#26
post #2

I've been doing a lot of rust lately and I have to say it blows c/c++ out of the water. Sure, c/c++ has more libs, but almost every other feature in rust is fantastic, and wrapping a clib via ffi is really easy in rust. My only (minor) complaint with rust is that they aren't pushing no_std enough IMHO, but I'm biased since all my code is no_std :) so obviously I'd like to see a lot less work in the stdlib and more on…

By that way, in referring to C++, are you referring to modern C++ or C with classes? Whenever is see people criticizing C/C++, I suspect they are doing C with classes style programming and (rightfully) hating that.

>I suspect they are doing C with classes style programming and (rightfully) hating that.

Rightfully? People resort(ed) to "C with classes" to make C++ tolerable and/or reliable.

If anything, it's the opposite: when most people complain about C++ it's about C++ itself, the full language, and its whole baggage of features and their obscure interactions and intricacies. Not about using C++ as C with classes.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#27
post #18
post #13

What I would like to see is story from someone that is C/C++ expert and transitioned to Rust with their performance sensitive software, not side/hobbyist project, but real product working in production. I am interested in challenges that this person/team had, in which situations using unsafe was a must, what kind of performance problems they had with Rust abstractions (not all are cost-free) etc. And I emphasize on p…

On vacation so no links, but check out posts from Andrew Gallant (ripgrep, regex), any of the Servo/WebRender/Stylo experience reports from the Firefox team, and I there're some reddit comments out there about Rust's use in production at Dropbox.

thanks for the pointers; I was curious about Dropbox's approach and found this thread in the rust sub, if others are interested: https://www.reddit.com/r/rust/comments/4adabk/the_epic_story...

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#28
post #21

Seems odd to compare Rust and Python. They're different levels of abstraction and I think are both great languages that serve different use cases. I'm always going to be more productive in Python. And Python has an awesome ecosystem for web apps. Rust gives you native compiled binaries, concurrency, and speed in general. Why you'd consider these two languages for the same app is beyond me.

I really wish python had a good concurrency story, it would last far longer as a language if it did. The GIL is why it's reducing in popularity.

> The GIL is why it's reducing in popularity.

Unlikely. Python, Ruby, PHP, Javascript all do not have in-process parallelism.

In contrast, C/C++, Java/Scala/Clojure, Go, and Rust all have in-process parallelism.

This just furthers seabrookmx's point that Python and Rust belong to two different classes of useful languages.

---

P.S. Python's multiprocessing module is an order of magnitude better/easier than anything in the other scripting languages I listed.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#29
post #23

How do I make a GUI application in rust? Does it have support for Qt, MFC, or maybe WPF?

Just personal opinion here, but I think GUI's should/are being phased out. I much prefer writing a front-end web app and package it inside the application. That's what artifact does.

But at present I don't know how to use this approach for the imaging or CAD software I develop.

I need the ability to share GPU data between front and back ends, along with accurate timings for the control of various hardware devices. This is possible with Java (think the design of MATLAB or Mathematica) but the additional glue to enable cross language communication doubles the code size. That is why I'm sticking to C++ and Qt.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#30
post #23

How do I make a GUI application in rust? Does it have support for Qt, MFC, or maybe WPF?

Just personal opinion here, but I think GUI's should/are being phased out. I much prefer writing a front-end web app and package it inside the application. That's what artifact does.

I'm pretty sure that its just case of low-hanging fruit; its difficult to claim that webapps are at all effecient in their work, its just that most gui's don't actually have much work to do. But native apps are clearly preferable when a heavy interface is part of your app's usage
Post reply on HN