DEV Community

Discussion on: Why programming languages are slow

Collapse
 
mtalijanac profile image
mtalijanac • Edited

Your usage of word syntax is just wrong. You could argue that a semantics of a language has an impact on speed because semantics puts constraints on compiler generated code. But to say that syntax has anything with speed is just wrong. Just look at for loop:

C, Java, C#:
for (int i = 0; i < 10; i++) 

Clojure:
(for-loop [i 0 (< i 10) (inc i)])     
Enter fullscreen mode Exit fullscreen mode

Completely different syntax. But which one is faster? The one with better compiler because semantics is the same and compilers don't care about syntax. Syntax is used to ease reading for humans. It is literally stripped out of code in compile pass. It means nothing in performance game.

Anyway all other points in article are wrong or badly phrased:

  • Like assuming inherit speed of language. Yes there is a speed to a language but you assume it is some kind of static property. It isn't.
  • Premise of being fast and low level somehow implies bad or lacking syntax. When in real world if C++ is of anything guilty: it is of too much syntax. And Rust and Go are pretty elegant for what they are.
  • And those conclusion about nice using extensions or JNI!? Just no.

So this article is just wrong. Like the complete body of article is build on wording and assumptions which are just wrong. With facts and conclusion which are wrong.