HN is about interesting stuff. Rust is VERY interesting: Novel memory management, low-level, great tooling, can ACTUALLY compete against C/C++ across the board, have a lot of modern stuff: ML heritage, functional idioms (but you can do imperative code, not worry!), const/immutability promoted, NOT NULL thank you very much!, UTF-8 string "oh amazing", a lot of edge cases accounted for... And, with interesting tools yo…
Ask HN: What's the Deal with HN and Rust?
91–100 of 108 posts
Re: Ask HN: What's the Deal with HN and Rust?
#92Earlier quoted context omitted.
> and it just isn't an issue for me You have those two findings from Google and Microsoft that roughly 2/3 of the vulnerabilities that they find in their code are memory related, so it is definitely something that someone finds important. Also, if you have large scale codebase that is serving millions of people, the assurance of less bugs is much better starting proposition than maybe it won't fail.
I wonder if part of the problem Google and Microsoft has is they have so many developers having so little real-world experience in a language such as C++? Back in the day we used to be very careful with who did C++ work because it makes it so easy for inexperienced developers to shoot themselves in the foot. But really though, for an established team not having these kinds of issues and not having a lot of new hires…
Re: Ask HN: What's the Deal with HN and Rust?
#93Earlier quoted context omitted.
I'm hoping to hear something other than debugging memory corruption errors. I've worked in C++ for 15 years in 4 different organizations and across many different teams and memory corruption was never really an issue, certainly not enough of an issue to abandon C++ and adopt a whole new ecosystem. This is the primary reason I hear for adopting Rust and it just isn't an issue for me so I'm interested in learning what…
> and it just isn't an issue for me You have those two findings from Google and Microsoft that roughly 2/3 of the vulnerabilities that they find in their code are memory related, so it is definitely something that someone finds important. Also, if you have large scale codebase that is serving millions of people, the assurance of less bugs is much better starting proposition than maybe it won't fail.
Re: Ask HN: What's the Deal with HN and Rust?
#94Re: Ask HN: What's the Deal with HN and Rust?
#95Go: Too much Google influence and GC/allocation being constrained by it's authors. Swift: Same for Apple, see above Nim/Zig/Crystal/Elixir: Too behind in terms of widespread support and development. (At least not as good as rust)
Re: Ask HN: What's the Deal with HN and Rust?
#96Well, many people don’t want to pay the factor of 2 performance cost of a managed language like Java and strcpy in C is Turing complete and most code has to portable to at least x86 and ARM (often both 32 and 64 bits) so assembly is out…
> strcpy in C is Turing complete How so? You've made this claim twice ( https://news.ycombinator.com/item?id=27910640 ), but I can find nothing else to back this up. We know about C++ templates "accidentally" being discovered to be Turing complete, but I've never heard of strcpy() being so... while((*p++=*q++)); ... I'm not seeing it. Honest question, can you shed light on how this can be?
Re: Ask HN: What's the Deal with HN and Rust?
#97HN is about interesting stuff. Rust is VERY interesting: Novel memory management, low-level, great tooling, can ACTUALLY compete against C/C++ across the board, have a lot of modern stuff: ML heritage, functional idioms (but you can do imperative code, not worry!), const/immutability promoted, NOT NULL thank you very much!, UTF-8 string "oh amazing", a lot of edge cases accounted for... And, with interesting tools yo…
While Nim has of course evolved, it was first released publicly in 2008, and I believe began in private around 2003..2004. Nim is also safe [1] and competes fine with C/C++ across the board, IMO { as do many other PLs. }. [1] https://uploads.peterme.net/nimsafe.html
Re: Ask HN: What's the Deal with HN and Rust?
#98Earlier quoted context omitted.
While Nim has of course evolved, it was first released publicly in 2008, and I believe began in private around 2003..2004. Nim is also safe [1] and competes fine with C/C++ across the board, IMO { as do many other PLs. }. [1] https://uploads.peterme.net/nimsafe.html
I understand, and I don't say Rust was first, instead, that having high-profile new langs make people interested in new langs (like nim), because it draw attention to that...
Re: Ask HN: What's the Deal with HN and Rust?
#99You're not wrong. HN Rust articles: 4 in the last 24 hours (not including this one) https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu... HN Go articles: 0 in the last 24 hours https://hn.algolia.com/?dateRange=all&page=1&prefix=true&que... JavaScript: 5 in the last 24 hours - a much more popular language but none of these got to the front page https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...…
Re: Ask HN: What's the Deal with HN and Rust?
#100Earlier quoted context omitted.
Wasn't Amazon buying ownership of it recently? Seems a substantial disadvantage if that comes to pass
Amazon is a member of the Rust Foundation, they haven’t “bought” the language. Edit to add: https://foundation.rust-lang.org/members/
Interested in reasons to believe Amazon are not going to determine the future of the language, I'm at least six months out of date.