Re:Ruby Outperforms C: Breaking the Catch-22
by john_the_writer on Saturday September 09, 2023 @03:09AM
(#37442953)
But by that logic ruby is faster still since the compile time is 0. Less than zero really because it can be modified in flight.
[ Parent
| on HN ]
Re:Ruby Outperforms C: Breaking the Catch-22
by fredrikholm on Saturday September 09, 2023 @03:27AM
(#37443053)
The trade offs between the two are huge.
Go programs compile in less than a second, or several seconds for huge projects, where idiomatic Go gets you within the same order of magnitude to that of C(++), with some memory overhead. Concurrency is first class, GC pauses exist but are seldom an issue.
Idiomatic Ruby runs several orders of magnitude slower, with a huge memory overhead, and is rife with runtime gymnastics. Concurrency is an expensive hack, with stop-the-world GC.