3 ms·
I'm not sure what you mean by "hasn't taken off". Scala is pretty thriving in these parts: I.e., we use Scala where I work. Headhunters contact me about open Sc
by nessus42 14y ago
I'm not sure what you mean by "hasn't taken off". Scala is pretty thriving in these parts: I.e., we use Scala where I work. Headhunters contact me about open Scala positions. A few months back there was a Scala symposium down the street that had several hundred attendees. There is a local user group that is "sold out every month. I.e., the room holds 75 people, and more than that number always wants to attend. Etc.
It takes a long time for a new general purpose programming language to displace existing general purpose programming languages if it doesn't fill a very particular niche for which there is a great demand.
Re performance, I recently implemented an algorithm in Scala that performs quite well. It didn't at first, but it was very easy for me to profile it using Java profiling tools and to tighten a couple of loops where most of the CPU was being consumed. I don't have any deep knowledge of Scala collections, but I know how to use a profiler. I don't think the initial implementation would have performed any better if it had been written in Java.
Once I had gotten things speedy enough, I was further able to speed everything up by 4X just by changing a collection to the parallel version of the collection. Then all four cores could crunch on it. If I had 8 cores, it would have no doubt run 8X faster. That parallelization came from tweaking only one line of code! I would have never achieved this 4X speedup in Java.