Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust makes concurrency really easy, at least in comparison to C or C++. It has great cross-platform frameworks available, like Tokio which pgvecto.rs uses, and makes using them safe and straightforward.


C also makes concurrency very easy. So easy the uncareful regularly shoot off both feet. Too easy.


It's hard to get concurrency right in C


I wonder if having that sort of "safe concurrency" causes developers to overuse concurrency and introduce coordination costs.

Do we know that tokio's concurrency strategy is optimal for database access?


Let’s assume that this is true. Then is the solution to go back to C where it is hard to get concurrency running correctly? Seems backwards thinking.


No, the solution is to keep the thing that's running quite well in c unless you can prove that it's better?


Starting with a claimed 20x speedup seems like proving it's better? https://modelz.ai/blog/pgvecto-rs




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: