logoalt Hacker News

scelerattoday at 4:42 PM1 replyview on HN

How much of the performance differences come down to language or compiler choice in these examples?

Would I see the same kinds of performance gains or losses avoiding or using certain patterns in Go or Rust or Java? Are they the same examples as in C++?

What about dynamic languages like ruby or python or javascript?


Replies

nylonstrungtoday at 8:05 PM

I believe in Rust there would be almost no performance hit due to the compiler using monomorphizing everything via the "zero-cost abstraction" we love to brag about