MHN
Add a comment on Hacker News →
3 of 155 comments
  1. One correction I'd make to the article's taxonomy: Ruby is an object oriented language not an Algol. Its inspiration is Smalltalk, and much of the standard library naming comes from that route (eg collect rather than map).

    Ruby is object oriented from the ground up. Everything (and I do mean everything) is an object, and method call is conceived as passing messages to objects.

    While Ruby is most often compared to Python (an Algol), they come from very different evolutionary routes, and have converged towards the same point in the ecosystem. I think of Ruby as a cuddly Alpaca compared to Python's spitting camel.

    1. Ruby keywords are not objects.

  2. I recently revisited a language comparison project, a specific benchmark tallying the cycle decompositions in parallel of the 3,715,891,200 signed permutations on 10 letters. I kept a dozen languages as finalists, different philosophies but all choices I could imagine making for my research programming. Rather than "ur" I was looking for best modern realizations of various paradigms. And while I measured performance I also considered ease of AI help, and my willingness to review and think in the code. I worked hard to optimize each language, a form of tourism made possible by AI.

    The results surprised me:

                 F#  100    19.17s  ±0.04s
                C++   96    19.92s  ±0.13s
               Rust   95    20.20s  ±0.38s
             Kotlin   89    21.51s  ±0.04s
              Scala   88    21.68s  ±0.04s
      Kotlin-native   81    23.69s  ±0.11s
       Scala-native   77    24.72s  ±0.03s
                Nim   69    27.92s  ±0.04s
              Julia   63    30.54s  ±0.08s
              Swift   52    36.86s  ±0.03s
              Ocaml   47    41.10s  ±0.10s
            Haskell   40    47.94s  ±0.06s
               Chez   39    49.46s  ±0.04s
               Lean   10   198.63s  ±1.02s
    
    https://github.com/Syzygies/Compare