5 ms·
He is right. Such rewrites cause a lot of problems if your compiler doesn't help you with avoiding data races. But there is another way.
by idiomaticrust 3y ago
He is right. Such rewrites cause a lot of problems if your compiler doesn't help you with avoiding data races.
But there is another way.
- hnarn 3y ago> But there is another way. Ok?
- mycall 3y agoMicrosoft SQL Server has SQLOS which is another way [0]. [0] https://www.thegeekdiary.com/what-is-sql-server-operating-system-sqlos/ https://www.thegeekdiary.com/what-is-sql-server-operating-sy...
- carstenhag 3y agoThe person probably implied that Postgres should switch to another toolchain that guarantees more things at compile time, so probably Rust.
- blincoln 3y agoIf the existing code is old-school enough to use thousands of global variables in a thread-unsafe way, seems like changing it enough to compile as safe Rust code would push the "non-trivial" envelope pretty far.
- bb88 3y agoYou can take a chunk of code and just rewrite it in Rust. You'll learn a lot quickly by this.
- steve_adams_86 3y agoIt’s sort of like the inverse of the Matrix when Neo learns kung fu. You realize that you actually don’t know how to program :)
- tylerhou 3y agoThe boundaries within database code are not clear. There are too many interlocking parts to take a nontrivial chunk and rewrite it Rust.
- chc 3y agoI think it's meant to imply the solution given in their username ("idiomatic Rust").
- lelanthran 3y ago> I think it's meant to imply the solution given in their username ("idiomatic Rust"). I think "Idiom: a tic (Rust)" can also fit if I squint hard enough and decide it looks like a definition from an online dictionary :-)
- avgcorrection 3y agoDon’t mind the gimmick gallery (username).
- deleted 3y ago[deleted]
- zilti 3y agoIndeed, Zig is a nice language for this