News for hackers. Stuff that matters.
Re:Meet Crystal language in its birthday. It is compiled and... by knz42 on Saturday September 07, 2013 @04:25AM (#6344372)
"Just a whole bunch of inefficiencies in the implementation."

That's a common misconception: what makes a language "faster" than another is not only more or less optimizations in the compiler or efficiencies in the runtime. There are language features that just kill performance. The typical culprits, in descending order of cost:

- dynamic typing

- dynamic dispatch (virtual methods)

- mandated bounds checking

- existence of an "eval" function

- mandated introspection

Re:Meet Crystal language in its birthday. It is compiled and... by qznc on Saturday September 07, 2013 @08:25AM (#6344857)
To write fast code, you have to use the right data structures (impossible if everything is a hash map), manage memory (possible even with garbage collection), and be able to inline everything in the inner loops (introspection,eval,etc make this hard).