Hacker News new | ask | show | jobs
by simonask 20 days ago
Calling it "vibes" is just so unserious.

If you would like the Rust language to have a formal specification, I would suggest you look at ways to help that happen. There is already the Ferrocene[1] project.

The safety model of Rust is extremely well described in detail. It's not particularly hard to understand, either. Are you worried that there is some kind of fundamental flaw in the design, we're just waiting to discover it, and it will all come crumbling down? My suggestion would be to start by understanding Rust's type system and why it works the way it does, and you will very quickly build an intuition ("vibes") that it obviously works.

[1]: https://ferrocene.dev/

1 comments

If your intuitive understanding of Rust is that its type system "obviously works", then you have developed an incorrect understanding! There are many documented cases where it does not work, and there is an active project to change its design so it works in more cases.

I don't think we should accept this kind of vibes-based reasoning from C programmers who are confident their programs don't have any memory bugs, and we shouldn't accept it from people trying to sell us programming languages either.

I think it's reasonable to say that Rust successfully prevents a lot of memory issues, and that it's it's a good choice for lots of projects. But it frustrates me when people try to dishonestly argue that it's perfect and then retreat to arguing that the implementation is flawed but the design is perfect, because neither statement is true but they take a lot of oxygen away from efforts to improve the situation.

> There are many documented cases where it does not work, and there is an active project to change its design so it works in more cases.

Are you referring to the implementation or the model? Because there are several bugs in the implementation, but they are very clearly bugs.

If you're aware of any actual holes in the type system as it is designed, I think the Rust lang team would be very interested in hearing about your paper!

I am referring to the one that exists in material reality, and not just the collective imagination of the people making this dishonest argument.
Wait, so you believe that unless the program's behavior is described by an ISO standard document, bugs cannot exist?

"It's a feature, not a bug!" taken to the next level. I guess I admire your dedication to obstructing reasonable discourse.

The problem isn't that Rust doesn't have bugs in it. The problem is when people try to say that Rust is an "implementation" of some thing that does not have bugs. This is only true because it's not possible for there to be bugs in a standard which does not exist. It creates the impression that the Rust team did design work that they have not actually done yet.

"But my mental model of Rust is not detailed enough to notice the bugs!" That's great, but that's also true of every bug, including the ones that are caused by major design defects, so it's not really saying much.