Skip to content

Comment on Ask HN: Fastest language for iteration and arrays manipulation?parent

Comments

Because language choice is more than just about whether it's the fastest for your specific concern at the moment; it may be slow or non-ideal in other situations. C++ in general is pretty fast. I may be biased since I used to write C/C++ optimizations for a living.

I can't speak for other languages; languages with JIT optimizations could in theory be faster than fully optimized C++ code, since it could take advantage of run-time information, such as hot paths and hot fields.

If you care about the fastest performance possible, you're asking the wrong question. I'd benchmark different languages for the specific code I want.

Thanks for the answer, I understand better your point. What I understand from your messages is that C++ should be a good solution.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.