recentpopularlog in

mcherm : ocaml   3

Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml - Tristan Hume
A *really* good case study: for a course, several competent teams wrote the same program is various languages. Afterward, the code size was compared. Slight advantage to Python and Scala, but mostly it depended on the design decisions, not the language.
programming  programminglanguages  rust  scala  python  haskell  C++  ocaml  via:HackerNews 
june 2019 by mcherm
The "C is Efficient" Language Fallacy : Good Math, Bad Math
People often say "C is fast" because "C is close to the machine". But it's not true. C is close to how machines used to work long ago. Today, they have caching, pipelining and lots of other tricks. Often C is primitive enough that the compiler doesn't dare be "smart" (because of things like "aliasing" -- do these 2 pointers point to the same memory?). Mark Chu-Carroll tried several different languages (well optimized) on a real-world problem and found OCaml to be fastest!
optimization  programming  parallelprogramming  languages  compiler  via:reddit  markcc  ocaml 
may 2009 by mcherm

Copy this bookmark:





to read