Hacker News new | ask | show | jobs
by 6r17 619 days ago
Project that does not need rust "Web, or IO" -> What would you actually choose to make an API then ? Python ? Ruby ? Did you compare benchmarks from rust server to python servers ? Did you actually feel the difference ?
2 comments

Most web servers aren't doing anything computationally complex and there's a lot of tech to help you scale to multiple servers, so single server performance usually isn't really critical.

Web stuff is about developer speed. So familiarity, libraries, and tooling. There are plenty of good options.

Anything that needs to be performant can go in it's own service.

I will say that a rust service, even when doing relatively simple stuff, can scale well in the cloud due to small memory footprint, fast startup time when auto-scaling in containers, and no need for a JIT to "warm up" before it has high throughout and consistent low latency. Building something with these qualities on a framework like Rocket is pretty straightforward, IME.
Building a web app with rocket is like using a fine BMW to go on highway. It just feels right- I love Guards and what not he added in his framework ; absolutely refreshing work !
Have you heard of something called climate change ?
I agree in principle, but it's not something for individual charity to solve. The cost of pollution should be factored into energy prices with a tax.

Then everyone will know, numerically, whether Python is worth it. Maybe it is!

> What would you actually choose to make an API then ? Python ? Ruby ?

Python, Ruby, Go, PHP, C#, Java, TypeScript, Elixir.

Performance benchmarks when writing APIs as 1st concern? Really? 99% of the cases this should be the last criteria.

Monthly reminder that a good part of instagram still runs on Django/Python.