4 ms·
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.
by john_the_writer 3y ago
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.
- fredrikholm 3y agoThe 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.
- Mawr 3y agoOnly if the compilation speed difference is worth the loss of performance. That seems unlikely for most use cases because the speed gain is small while the performance loss is severe.