News for hackers. Stuff that matters.
Re:Postgres rewritten in Rust, now passing 100% of the Postg... by diziet on Thursday July 09, 2026 @06:07PM (#48853009)
I love llm coding. I don't know what I am looking at here

https://github.com/malisper/pgrust/blob/main/Cargo.lock

What is happening.

No PRs? No Make files? I understand running tests and debugging is the workflow, but where do you log things? How do you orchestrate builds? Etc.

Re:Postgres rewritten in Rust, now passing 100% of the Postg... by nemothekid on Thursday July 09, 2026 @06:17PM (#48853113)
`Cargo.lock` is a lockfile machine generated by Cargo. It's similar to package-lock.json. In any case, its machine generated the old fashioned way.
Re:Postgres rewritten in Rust, now passing 100% of the Postg... by diziet on Friday July 10, 2026 @05:26AM (#48857704)
I am fully aware what Cargo.lock is. What I am surprised at is how many dependencies there are.
Re:Postgres rewritten in Rust, now passing 100% of the Postg... by kaoD on Friday July 10, 2026 @04:14AM (#48857180)
> I love llm coding. I don't know what I am looking at here

There might be some correlation here.

Re:Postgres rewritten in Rust, now passing 100% of the Postg... by diziet on Friday July 10, 2026 @05:26AM (#48857706)
I am fully aware what Cargo.lock is. What I am surprised at is how many dependencies there are.
Re:Postgres rewritten in Rust, now passing 100% of the Postg... by kaoD on Friday July 10, 2026 @05:37AM (#48857778)
Sorry, the wording confused me.

The project itself seems to be structued around 1.4k micro-crates[0] which I admit is a bit weird. Rust's compilation unit is the crate unlike C's per-file compilation unit, so if this was a 1:1 AI-assisted translation from the original Postgres source this might be an artifact of the translation.

[0] https://github.com/malisper/pgrust/blob/main/Cargo.toml

Re:Postgres rewritten in Rust, now passing 100% of the Postg... by malisper on Friday July 10, 2026 @07:35AM (#48858533)
This is correct. We first used c2rust to translate the C into unsafe Rust. The generated Rust code had one crate per C compilation unit. We then took the unsafe unidiomatic Rust and one crate at a time converted it to safe Rust.
Re:Postgres rewritten in Rust, now passing 100% of the Postg... by r_lee on Friday July 10, 2026 @05:51AM (#48857873)
it's like node_modules but cooler
Re:Postgres rewritten in Rust, now passing 100% of the Postg... by antonvs on Friday July 10, 2026 @01:48PM (#48863030)
Like most modern languages, Rust has its own build system and package manager, Cargo. Everything you're referring to relates to that, and has nothing to do with LLM coding.

Edit: saw the clarification in another comment. But, in that case the essential point seems to be "I'm not familiar with something, therefore it's suspect."