←back to thread

348 points giuliomagnifico | 3 comments | | HN request time: 0.614s | source
Show context
shevy-java ◴[] No.46243731[source]
Hmmmm.

My biggest gripe with the Tor project is that it is so slow.

I don't think merely moving to Rust makes Tor faster either. And I am also not entirely convinced that Rust is really better than C.

replies(10): >>46243753 #>>46243757 #>>46243847 #>>46244186 #>>46244200 #>>46244358 #>>46244381 #>>46244536 #>>46244541 #>>46245224 #
1. xedrac ◴[] No.46245224[source]
I agree it probably won't make it faster. But there is absolutely no comparison when it comes to safety/stability. I've written a ton of C code, and it's just not even close. Rust really outshines C and C++ in this regard, and by a very large margin too.
replies(1): >>46245521 #
2. udhghhe ◴[] No.46245521[source]
How much C++ have you written? Not C, but C++.

Do you like pattern matching in Rust? It is one of the features that Rust does decently well at.

replies(1): >>46270954 #
3. xedrac ◴[] No.46270954[source]
I've written C++ for 15 years. It's the language I have the most experience with. And yes, pattern matching is a must, particularly for any language that has sum types.