Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
risingwave-labs.com
Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
1–10 of 307 posts
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#2What can’t it do.
And like Linux it’s written in C. Not that means much.
“Never bet against Postgres”.
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#3Finally somebody understands this.
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#4> Rust is easy to learn. For seasoned C++ programmers, Rust is easy to learn. When they first start out, Rust learners usually spend most of their time making sense of ownership and lifetime. Even if they don't explicitly express these concepts in code, experienced C++ engineers always keep these two concepts in mind when programming in C++. Finally somebody understands this.
Rust is not difficult because of lifetimes, it just gets in the way of freely prototyping what you want.
This situation is slowly improving with the compiler getting better and better.
Then there is some annoying macro usage. Some Rust code looks truly alien.
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#5Building a database is brave or stupid or both. Over the last 15 or 20 years I’ve tried lots of databases of all flavors and every time come back to Postgres. What can’t it do. And like Linux it’s written in C. Not that means much. “Never bet against Postgres”.
[1] https://en.wikipedia.org/wiki/PostgreSQL#Release_history
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#6Building a database is brave or stupid or both. Over the last 15 or 20 years I’ve tried lots of databases of all flavors and every time come back to Postgres. What can’t it do. And like Linux it’s written in C. Not that means much. “Never bet against Postgres”.
Why not combine Postgres for OLTP workloads alongside another database for fast analytics/time series, optimised to deal with high throughput ingestion and low latency queries?
NB: I am one of the co-founder of an open-source time series database (questdb)
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#7Building a database is brave or stupid or both. Over the last 15 or 20 years I’ve tried lots of databases of all flavors and every time come back to Postgres. What can’t it do. And like Linux it’s written in C. Not that means much. “Never bet against Postgres”.
And it's still too easy to shoot yourself in the foot, by deadlocking, or using up all the server's resources with a query that looks very similar to one that was fine.
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#8Building a database is brave or stupid or both. Over the last 15 or 20 years I’ve tried lots of databases of all flavors and every time come back to Postgres. What can’t it do. And like Linux it’s written in C. Not that means much. “Never bet against Postgres”.
Stop larping as graybeards, and try to actually do something instead of endlessly bike shedding your cargo cult.
Re: Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
#9I couldn't agree more with this comment. As great as the community is, there's a lot of projects that are just not maintained. I wish this was different.