Earlier quoted context omitted.
Rust is the first language since C++ that can improve/not hinder runtime speed while making development safer, so I definately see its future. The only problem is that the compiler is very slow now, so it doesn't scale to large code bases, which is a no-go in my company. Hopefully the Rust team understands that this is not only a would-be-nice to have feature (I see learning the borrow checker as a smaller problem)
I believe incremental compilation is already being worked on, which should speed up your compiles (well, the first compile would be slow, but subsequent compiles would be faster).
Ask HN: Will Rust ever become a mainstream systems programming language?
201–210 of 291 posts
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#202Earlier quoted context omitted.
Maybe it's nostalgia for pre-Web 2.0 designs but I love your website; it has character and feels personal compared to most pages I peruse.
Thanks. I've never built a website before, but now I've built a website, and a web server + cms client at the same time. I've been thinking of open sourcing the code at some point in the future. The website stores all the content in a database, uses handlebar templates to generate HTML pages, stores the generated HTML pages in a concurrent hash map compressed with the native Rust implementation of Zopfli, and only re…
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#203I think it has a fair chance (Go is a "systems" language and grew very quickly). I also believe you'll see it pop up in unikernels as well. Why, you ask? Because there's always 1 person that starts a project that gets traction. I don't see it growing and replacing C++ though. I don't think there's much incentive post C++11 to really consider porting anything (even small things) over. Most of the features Rust gets pr…
> (1) Ridiculous - if you need segfault protection, you're a bad programmer. Let's be honest, you don't segfault unless you're doing something idiotic. I've not segfaulted in the past 8 years in anything but assembly. So let me get this straight. Is your position that Google's Chrome developers (just to name one project) are idiots? You can't hold your opinion without believing that Google, and in fact pretty much ev…
https://dev.chromium.org/Home/chromium-security/bugs/using-c...
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#204Earlier quoted context omitted.
> Using exceptions would be unprofessional. Unless it happens to be the best tools for the particular scenario... > then all of my carefully crafted error-handling routines would go up in flames No just sandbox the code inside a try catch... > pattern matching is the best method of clearly displaying intents and possible downfalls. You are stating an opinions as a fact here.
> No just sandbox the code inside a try catch... This works fine if it's just a matter of rolling back a database transaction or releasing file handles (b/c someone else is doing all the work for you). But if you have more complicated invariants, your try catch has to handle restoring those invariants, no matter what path your code took.
The most important feature is that catch blocks are executed before the stack is unwond, providing the ability for a handler to signal back to the context where the error occurred how it should be handled.
It's sad that no other languages implement this and instead simply decide that exceptions are bad.
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#205Earlier quoted context omitted.
Maybe it's nostalgia for pre-Web 2.0 designs but I love your website; it has character and feels personal compared to most pages I peruse.
Thanks. I've never built a website before, but now I've built a website, and a web server + cms client at the same time. I've been thinking of open sourcing the code at some point in the future. The website stores all the content in a database, uses handlebar templates to generate HTML pages, stores the generated HTML pages in a concurrent hash map compressed with the native Rust implementation of Zopfli, and only re…
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#206Earlier quoted context omitted.
https://www.rust-lang.org/en-US/friends.html
That's 60 companies. Granted there's bound to be a few more but calling it "pretty mainstream" based on that seems like a stretch to me. Though not a flawless datapoint I'd rather use something like the TIOBE[1] index, which puts Rust at 0,37% rating, or position 41, right below Erlang. I hope that'll change, I think Rust has some interesting concepts and could be a notable step forward for some things that we've alw…
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#207Earlier quoted context omitted.
Why you might care is that if you build something today, that something could reap some benefit in the future from the language becoming "mainstream". Possible benefits: * users not going "gack, this is written in an obscure language that we have to install to build it". * the implementation quality being better: the thing I write now will benefit from the language being less of a moving target and with fewer bugs, b…
For point one, it helps that Rust is one of the easiest languages I have ever worked with to install the compiler run-time, pull dependencies, build, run, and distribute. So at the very least, it won't get in your way if you just want to distribute a static binary, or give your users a few commands to compile it themselves, even if it is "some weird language". On point two, Rust is not a moving target, in the sense t…
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#208Earlier quoted context omitted.
If rust ever gets to the point where it's not much harder to write than java/c# then why not got for the fastest one and avoid performance death by a thousand cuts? A millisecond here and there can add up. And then there's the environmental cost of slower code. How many tonnes of CO2 emissions are higher level languages responsible for daily?
> If rust ever gets to the point where it's not much harder to write than java/c# then why not got for the fastest one and avoid performance death by a thousand cuts? Sure. If it's just as easy for the task then why not? But I wouldn't recommend Rust for web development for the same reason I wouldn't recommend C++ for web dev: complexity. Obviously, this is entirely subjective but I don't think either language will e…
I'm interested - how do you teach it? I would have thought that the type system could make these things easier to visualise rather than harder, but then I don't have teaching experience.
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#209Earlier quoted context omitted.
You mean hobbyist ? All the AAA games are still written in C++, none of the big studios is even considering to switch. Rust type system/restrictions would get into the way more than it would help in AAA game dev. Memory safety is not a problem in game development, they will just patch the bugs. Studios have whole ecosystems written in C++ that works for them. Benefits are really low compared to costs, that's why it's…
Type restrictions aren't really a problem, but in fact really helps out game development in the long run. > Memory safety is not a problem in game development, they will just patch the bugs. You must not have played any Bethesda titles. That said, there is much more to Rust than memory safety. That's just a side effect of the safe parallelism -- it's a minor story.
Did you ever seen AAA game source code?
> You must not have played any Bethesda titles.
I've played. Most bugs I've seen were logic errors, doesn't matter which language you would pick.
Re: Ask HN: Will Rust ever become a mainstream systems programming language?
#210Earlier quoted context omitted.
They are shipping ripgrep with VS code.
But shipping a program using rust != using rust. If that was the case I've used Erlang despite never having written a single line of it because I've shipped rabbitmq.