News for hackers. Stuff that matters.
Re:Is Ruby Too Slow for Web-Scale? by flavio81 on Tuesday July 11, 2017 @02:56PM (#14746946)
> If you do stupid shit with rails it will take 5.1 seconds and if you do stupid shit with Golang it will take 5.05 seconds.

Honestly, if you do the same stupid shit with Go, it will take 0.51 seconds, according to many benchmarks out there.

> So, Is python slow because it's taking 20ms vs 12ms?

No, bad code is bad code. But on companies that have good programmers, sometimes you do hit a performance problem caused by the platform, and then you have to either a. throw more money (more servers, more CPU cores, more mem), or b. rewrite that section in other language. Actually, for example this is what some Python libraries do, for example Numpy has a lot of code actually implemented in C, not python.

Re:Is Ruby Too Slow for Web-Scale? by bpicolo on Tuesday July 11, 2017 @03:27PM (#14747201)
> Honestly, if you do the same stupid shit with Go, it will take 0.51 seconds, according to many benchmarks out there

The whole point is that CPU-bound web framework time is never the bottleneck for most companies. Golang doesn't change your database network latency.

If you DO hit the rare cpu bottleneck, you can offload it to services, cffi, whatever. It's so astonishingly rare that it doesn't make sense to optimize for most of the time.