Hacker News new | ask | show | jobs
by rhn_mk1 1173 days ago
Oh, no, it isn't. Take the speed of Haskell or Prolog. They are much slower than Rust at runtime.
2 comments

There are even more:

  - Java (compiled AOT, anyone remembers how dead slow code GCJ produced?)
  - Go (not always as bad as Java, but not perfect either)
GCJ was always a toy compiler, if you want good AOT Java code check the commercial JDKs that have been in business for the last 20 years.
First of all Prolog is usually not AOT compiled rather JITed, secondly regarding Haskell, it is an issue with the skill set of the developer more than anything.
Given expert skills in both Haskell and Rust, Rust is by far the fastest performing language. And if you use idiomatic Haskell the difference is even bigger. E.g. if you use lots of Monad transformers and lazy evaluation.
The optimisation lies between keyboard and chair.

Plus if one lacks the ability to write high performance Haskell code, they definitely aren't experts.