Data

Scala 2.12.5 is here!

1 min read

Scala 2.12.5 version has been released. Scala is a popular programming language for a data scientist. It is mostly favored by aspiring or seasoned data scientists who are planning to work with Apache Spark for Big Data analysis.

With the new version 2.12.5, Scala has brought in four major highlights. Most importantly, Scala 2.12.5 is binary compatible with the whole Scala 2.12 series.

Major highlights:

  • When compiling on Java 9 or higher, the new-release N flag changes the compilation classpath to match the JDK version N. This works for the JDK itself and for multi-release JARs on the classpath.
  • With the new -Ybackend-parallelism N compiler flag, the backend can now run bytecode serialization, classfile writing, and method-local optimizations (-opt:l:method) in parallel on N threads.
  • The raw”” and s”” string interpolators are now intercepted by the compiler to produce more efficient bytecode.
  • The -Ycache-plugin-class-loader and -Ycache-macro-class-loader flags enable caching of classloaders for compiler plugins and macro definitions. This can lead to significant performance improvements.

Other features include:

  • The apply method on the PartialFunction companion object is now deprecated.
  • Scala JARs (library, reflect, compiler) now have an Automatic-Module-Name attribute in their manifests.
  • Enabling unused warnings now lead to fewer false positives.
  • Explicit eta-expansion (foo _) of a nullary method no longer gives a deprecation warning.

Scala releases are available through a variety of channels, including:

However, there is regression since 2.12.4 when compiling code on Java 9 or 10 that uses macros. Users must either compile on Java 8 or wait for 2.12.6.

You can check out all closed bugs and merged PRs for further details.

Sugandha Lahoti

Content Marketing Editor at Packt Hub. I blog about new and upcoming tech trends ranging from Data science, Web development, Programming, Cloud & Networking, IoT, Security and Game development.

Share
Published by
Sugandha Lahoti

Recent Posts

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago

Gain Practical Expertise with the Latest Edition of Software Architecture with C# 9 and .NET 5

Software architecture is one of the most discussed topics in the software industry today, and…

3 years ago