News for hackers. Stuff that matters.
Re:Ask HN: How to compare different programming languages by MichaelCrawford on Tuesday June 23, 2015 @08:48AM (#9764252)
Assembly code is best for performance but it is a huge pita.
Re:Ask HN: How to compare different programming languages by indoindo on Tuesday June 23, 2015 @09:03AM (#9764328)
Of course, but how to determine languages that near ASM performance
Re:Ask HN: How to compare different programming languages by MichaelCrawford on Tuesday June 23, 2015 @09:44AM (#9764542)
C, c++ and ask permit allocation on the stack. Many others require dynamic allocation. Whether one language is faster depends on whether the problem at hand can take advantage of stack allocation.
Re:Ask HN: How to compare different programming languages by MichaelCrawford on Tuesday June 23, 2015 @10:13AM (#9764724)
Most modern computers have caches. On the whole they speed you up but some access patterns lead caches to slow you down. Some instruction set architectures have more registers than others.

So the fastest language also has to consider the hardware it is used on.

Re:Ask HN: How to compare different programming languages by indoindo on Tuesday June 23, 2015 @10:29AM (#9764835)
Thank you very much! insightful comments!
Re:Ask HN: How to compare different programming languages by MichaelCrawford on Tuesday June 23, 2015 @11:24AM (#9765242)
Some people just aren't very good coders. No language will make their programs run faster. What will are books like effective c++, effective java and refactoring.

The fastest language only makes sense when the code is written by an expert.