News for hackers. Stuff that matters.
Re:Ask HN: Which is the fastest programming language and why? by imaginenore on Sunday January 29, 2017 @01:21PM (#13515691)
(Assuming, we're not talking about distributed solutions)

The fastest way would be to create an ASIC: hardware designed to run your algorithm specifically.

Something simpler and a bit slower would be an FPGA.

Below that is a GPU implementation of your code, assuming it can be parallelized.

Below that is hand-crafted assembly by someone who is smarter than a good compiler.

Below that is hand-crafted C/C++ or Fortran code.

Here are benchmarks of various languages for various problems:

N-body: https://benchmarksgame.alioth.debian.org/u64q/performance.ph...

Spectral-norm: http://benchmarksgame.alioth.debian.org/u64q/performance.php...

Digits of pi: http://benchmarksgame.alioth.debian.org/u64q/performance.php...

FASTA: http://benchmarksgame.alioth.debian.org/u64q/performance.php...

Re:Ask HN: Which is the fastest programming language and why? by igouy on Tuesday January 31, 2017 @10:13AM (#13531157)
> Below that is hand-crafted C/C++ or Fortran code.

Only with the qualifier "by someone who is smarter than a good compiler" and the qualifier "with unlimited time".