Earlier quoted context omitted.
I started by looking at the dependencies. Then I lost count, so I ran wc -l Cargo.lock 1467 Cargo.lock Easily over a thousand dependencies. And "rewritten in Rust" is supposed to be a good thing? I bet this doesn't even compile faster than the original.
Do you pick your databases based on how quickly they compile and how many dependencies they have? I normally chose based on factors like performance and reputation for reliability
Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
581–590 of 756 posts
Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#582Don’t understand these rewrites. - typically they are behind a single person. That’s usually bad because of spf - typically they are achieved in a very short amount of time, so the author hasn’t acquired any discipline in creating the project. That means it’s unlikely the author is going to stick to the project in the mid and long term - anyone that wants to contribute to the project needs to pay. Needs to pay tokens…
It's useful to show the actual team that it's possible. From there, they can make the decision of whether to go the bun route with more information.
Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#583Earlier quoted context omitted.
With programs large enough tests aren't going to ever be enough. Formal verification might work, but then who checks the specification for bugs?
I really wonder where all of these people who believe that tests perfectly encapsulate the behaviour of software come from. Maybe it's because LLMs happen to work better when you give them acceptance criteria and people struggle to distinguish between "better" and "good"?
Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#584Don’t understand these rewrites. - typically they are behind a single person. That’s usually bad because of spf - typically they are achieved in a very short amount of time, so the author hasn’t acquired any discipline in creating the project. That means it’s unlikely the author is going to stick to the project in the mid and long term - anyone that wants to contribute to the project needs to pay. Needs to pay tokens…
"Status:
pgrust is not production-ready yet. It is not performance optimized yet."
The maintainer is not suggesting you use this for anything yourself. So why do you care about spf or (lol) his "discipline in creating the project"?
Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#585Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#586Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#587Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#588Earlier quoted context omitted.
It's not just unsafe, it's this: let r = unsafe { &*p }; It looks as if it's building structs out of information in (mutable pointers) to other structs without an Rc in sight. Which makes sense for a C parser: you've got a table with data, so you just link to it. It's fast, and when you know you're not going to touch it, it's safe. But this doesn't make the Rust code any better than the C code.
Note that the code I believe you are referring to is from the parser which was generated with c2rust. The Postgres parser is generated from yacc/bison so rather than try to rewrite it idiomatically, I did so mechanically.
Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#589Earlier quoted context omitted.
There are hundreds of comment chains about this already, go troll somewhere else.
If you’re going to make a confident blanket claim, be ready to back it up - and asking for clarification is not trolling, by the way. You should be ready to engage in technical conversations if you want to make technical claims.
Re: Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
#590Earlier quoted context omitted.
I started by looking at the dependencies. Then I lost count, so I ran wc -l Cargo.lock 1467 Cargo.lock Easily over a thousand dependencies. And "rewritten in Rust" is supposed to be a good thing? I bet this doesn't even compile faster than the original.
Do you pick your databases based on how quickly they compile and how many dependencies they have? I normally chose based on factors like performance and reputation for reliability