News for hackers. Stuff that matters.
Re:120ms to 30ms: Python to Rust by neonsunset on Thursday June 27, 2024 @08:11PM (#40816555)
I really love the Rust/C# combo. It's like viewing the same problem, with roughly the same set of tools but with a slider between control over the memory and type system expressiveness and getting out of your way with good defaults at the cost of non-deterministic memory behavior:

- Iter expressions / LINQ

- High and low effort variants of async/await with Tasks/Futures

- Generics with full monomorphization and traits / Generics with struct monomorphization and constraints over interfaces

- par_iter / Parallel and PLINQ

- crates / nuget packages

Today, when you move past C# or Kotlin, you really aren't improving your productivity by picking any interpreted and dynamically typed languages, but lose out on performance massively. Just look at this throughput graph I posted recently in another discussion: https://github.com/LesnyRumcajs/grpc_bench/discussions/441 pay attention where Python, Ruby, Node and Elixir are.

There are no comments on this comment yet.