Hacker News new | ask | show | jobs
by rustfreeforme 6 hours ago
> Good thing Rust doesn't just fix that one class of problems, but also provides better tooling to fix other classes too. Classes of problems that could be fixed with the other features of Rust mentioned later like the Hind...

Wow, what a magical language! [ waves hands vigorously ] will fix all the problems which are inevitably introduced by auto-porting from one language to another, or by manually rewriting everything from scratch. Rust doesn't obey the same laws of the software universe as other languages, it seems.

Rust will even automatically rewrite itself to use its own special idioms rather than whatever loser idioms it has sadly inherited from the C/C++ code which the developer, in his infinite benevolence, has decided to lift from its Dark Ages level of inadequacy to Modern Language Standards, with nothing but joy and happiness as the result. Miraculous.

Or is this a "just use magic AI to do it all bro", type situation?

In the latter case, why don't I just use the magic AI to auto-magically solve my C/C++ problems, rather than rewrite the entire universe from scratch? You know, like Google claims to have done for Chromium C++ sources in this very news article?

> ...the vast majority of these features don't even run at compile time. Some of them can't even be implemented in C. For starters, show me an example of a Hindley Milner type system implemented for (how can someone improve a strictly compile time feature, static typing, with a runtime implementation is beyond me)

What part of "I don't care about any of that crap" aren't you grasping?

This is the type of shit noobs are always wringing their hands about, as they want new toys to play with and/or maximum guardrails to cover for their ineptitude. Which is exactly why Google wants these kind of things, as their median developer is some kid fresh out of college. They want a magic language that will protect the idiot programmer from himself and eliminate all errors, so that any trained monkey can use it, as they plan to train actual monkeys to do this if they can somehow get away with it.

Well, that isn't Rust. Not even close. It's just the next horror show masquerading as a "fix."

2 comments

It is obvious that you are just trolling, but for other readers: our production app went from 50-100 unexplained sentry errors in typescript to 0 sentry errors in rust.

The language absolutely helps fix logic errors.

It's something that becomes immediately clear as soon as you start using the language in earnest.

What if I told you TypeScript sucks?
> Wow, what a magical language! [ waves hands vigorously ] will fix all the problems which are inevitably introduced by auto-porting from one language to another, or by manually rewriting everything from scratch. Rust doesn't obey the same laws of the software universe as other languages, it seems. Or is this a "just use magic AI bro", type situation?

Nope, that's just your own prejudices speaking. We already cited features (seen in and inspired by other languages) and you handwaved them away with "I don't care". You are the one fixated on C and C++. You are a C evangelist, if I were to make a guess. And that's on you.

> In the latter case, why don't I just use the to auto-magically solve my C/C++ problems, rather than rewrite the entire universe from scratch? You know, like Google claims to have done for Chromium C++ sources in this very news article?

You certainly can. But to spin this the other way around: in lieu of the Bun case, why not use it to rewrite the project in Rust, Zig, D or any language of your choice (yes, even C)? Given the role harnesses have in keeping agents in check, it seems plausible that languages with stricter safety features help agents avoid common issues.

> This is the type of shit noobs are always wringing their hands about as they need maximum guardrails to cover for their ineptitude.

You seem to be forgetting that proper software engineering is just as much about managing developers and their skills as the actual code structure. If a tool helps noobs produce better quality code, specially ones without as many vulnerabilities, why not employ it? Also, it's not like experts are immune to mistakes either.

> if I were to make a guess

This is your problem. You keep guessing, and guessing, and guessing, constantly missing the mark. You keep arguing, and arguing, and arguing, because you just really, really, really want to be right, but you just really, really, really aren't.

> But to spin this the other way around: in lieu of the Bun case, why not use it to rewrite the project in Rust, Zig, D or any language of your choice (yes, even C)?

Because as I just explained to you -- pay attention -- there is no way to magically do that, without introducing bugs. Period. Bun being the canonical example of the sort of dumpster fire that comes from trying to hop from one language to the next like a woman changes shoes. Their code is notoriously junky and they switched to Rust as if it was the actual solution to their problems, rather than just a hype-chasing marketing stunt.

The actual solution is to hire competent engineers and write quality code. Idiots do not write good code in any language.

> Given the role harnesses have in keeping agents in check, it seems plausible that languages with stricter safety features help agents avoid common issues.

lol

I thank God that none of the shit code you and your pet AI write will ever touch my PC.

> You seem to be forgetting that proper software engineering is just as much about managing developers and their skills as the actual code structure.

You keep missing the point, over and over and over again, in your zealous desire to Be Right.

As I said about 15 times already: the problem with Chromium IS GOOGLE, not C++.

GOOGLE desires to own the entire world.

GOOGLE wants Chromium to run on everything, everywhere, and be everything to everyone.

GOOGLE wants to track and monitor everything everyone does, at all times.

Chromium, as a result, is a giant, bloated, buggy heap of shit, THAT CANNOT be properly maintained IN ANY LANGUAGE, due to the extreme level of bloat.

GOOGLE is the author of their own misfortune here, not C++. Making their project into an unholy chimaera of C++/Rust isn't going to solve any of their problems, but only worsen them.

Everything else is just noise. No, Rust isn't some magic language that just magically makes everything better, as I already told you that you will learn over the next couple decades. But don't take my word for it, just keep doing what you're doing.