Reddit Reddit reviews Scala High Performance Programming

We found 2 Reddit comments about Scala High Performance Programming. Here are the top ones, ranked by their Reddit score.

Computers & Technology
Books
Computer Programming
Software Design, Testing & Engineering
Software Development
Scala High Performance Programming
Check price on Amazon

2 Reddit comments about Scala High Performance Programming:

u/jimeux · 12 pointsr/scala

Was it The High Cost of AnyVal subclasses... by any chance? The same topic is also covered in Scala High Performance Programming, which I happened to read after the article.

u/mian2zi3 · 6 pointsr/scala

We've experienced the same problem. Probably my biggest regret in choosing Scala. I don't know if there is any easy answer. Basically, I studied the generated bytecode until I got a good feel for how various constructs were getting compiled.

The performant subset ... looks like Java. While loops, explicit primitive types, no type parameters (or specialization), and no Scala collections. But be wary of specialization, it definitely interacts badly with other language features and lead to incorrectly generated bytecode. See:

https://axel22.github.io/2013/11/03/specialization-quirks.html

(Quirks, ha!)

I haven't read it yet, but Chapter 3 of High Performance Scala Programming discusses various language features and the corresponding bytecode:

https://www.amazon.com/Scala-Performance-Programming-Vincent-Theron/dp/178646604X