News for hackers. Stuff that matters.
Re:Scala Native by melling on Monday August 19, 2019 @09:26PM (#20743129)
I briefly looked at Scala 9 years ago.

Where does one begin these days? My books are outdated?

Someone mentioned looking at Cats:

https://typelevel.org/cats/

Re:Scala Native by spir on Monday August 19, 2019 @09:54PM (#20743244)
Scala 3 launches in 2020 after a new compiler was written over a five year period. The new compiler is named "Dotty".

A Tour of Scala 3 https://www.youtube.com/watch?v=_Rnrx2lo9cw

Also, GraalVM's ahead of time compilation is somewhat of a competitor to Scala native https://www.graalvm.org/docs/reference-manual/aot-compilatio...

Cat is great, this book is too http://underscore.io/books/scala-with-cats/

Re:Scala Native by pjmlp on Tuesday August 20, 2019 @05:36AM (#20745111)
GraalVM's ahead of time compilation is not the sole competitor, most commercial JDKs do offer some kind of AOT support.
Re:Scala Native by coldtea on Tuesday August 20, 2019 @06:25AM (#20745318)
Yes, you often mention them, but nobody [1] uses those, whereas GraalVM, due to coming Oracle and eventually being some kind of default (itself, not the AOT option per se), might do better.

[1] Where nobody = roughly as many people use CL/Haskell in production, and in any case, not any number to write home about...

Re:Scala Native by pjmlp on Tuesday August 20, 2019 @06:37AM (#20745375)
Apparently they have been in business since 2000's.

It bet that they have much more deployments in production than CL/Haskell, given the embedded space.

Re:Scala Native by coldtea on Tuesday August 20, 2019 @11:28AM (#20748028)
Probably, just wanting to take a jab at you :-)

My point really being that, yeah, JVM-AOT existed since forever, but they have always been niche in the grand scheme of things (especially since you need a commercial license for most, and in this industry, after 2000, that's almost a death kiss).

If Sun had bundled the same option and made it easy to use, it would be a whole different story.

Re:Scala Native by pjmlp on Tuesday August 20, 2019 @12:07PM (#20748540)
Yeah the typical wanted to be payed, but not wanting to pay for the work of others.

Thankfully corporations business levels works a bit differently, hence the rise of dual licenses.

Re:Scala Native by dwohnitmok on Monday August 19, 2019 @09:59PM (#20743263)
I would not recommend looking at Cats without prior Scala experience unless you already have prior experience with a statically typed functional language (such as an ML or Haskell). Almost all educational material for Cats assumes at least a basic familiarity with Scala.

Any of the books here will be fine: https://docs.scala-lang.org/books.html. A few are a bit old, but they all get the job done. There's a lack of good coverage for Scala 2.13 (the most recent version), but 2.13 is more or less compatible with 2.11 and 2.12. Its only big change is the collections library, but luckily 2.13's collections library is far simpler than 2.11 and 2.12's and its usage is mostly source compatible.

So if you're learning Scala from a 2.12 or 2.11 book and want to make sure you're fine for 2.13, just don't try to understand any complicated CanBuildFrom machinery (which you never really needed to know for 2.11 and 2.12) and just trust that 2.13 has a much simpler approach.

Re:Scala Native by vturner on Monday August 19, 2019 @10:46PM (#20743439)
Does anyone think the coursera courses are worth it? I signed up and am working through them in my free time.
Re:Scala Native by mark_l_watson on Tuesday August 20, 2019 @12:31AM (#20743854)
I took Martin’s Scala class years ago and it was awesome. He is a great lecturer.
Re:Scala Native by acjohnson55 on Tuesday August 20, 2019 @07:19AM (#20745609)
I loved it years ago. To date, it's the only Coursera course I completed.
Re:Scala Native by cheriot on Tuesday August 20, 2019 @12:32AM (#20743862)