DEV Community

Discussion on: Types: When I use, when I don't.

Collapse
 
yawaramin profile image
Yawar Amin

Scala's compiler is notoriously slow :-) Check out OCaml for an example of a powerful type system and lightning-fast compiles. You won't feel like going back to Scala ;-)

Collapse
 
tomerbendavid profile image
Tomer Ben David • Edited

Thanks, I'll check it out the next time I wait for the scala compiler to complete it's compilation ;) very soon, I heard from one of my best friends (the internet ;) that multicore programming is one of the cons of OCaml vs Haskell, which is a thing to take in the list of consideration. I mean the way in which is supports parallelism.

Collapse
 
yawaramin profile image
Yawar Amin

Multicore is not a problem unless you're doing 'embarassingly parallelisable' computations like counting, summing, etc. :-) Even then OCaml libraries like Async Parallel offer multicore options.

For pretty much everything else, OCaml's single-threaded performance outstrips pretty much everything short of C/C++.