Paul Krill
Editor at Large

Scala language moves closer to bare metal

news
May 11, 20162 mins

The Scala Native project leverages LLVM compilers as a deployment mechanism for the functional and object-oriented language

industrial metal background 104829789
Credit: Thinkstock

Scala, a general-purpose language combining object-oriented and functional programming, is about to find another deployment option.

Already used atop the Java Virtual Machine and in JavaScript applications via Scala.js, Scala will also be enabled through the use of LLVM compilers in a project called Scala Native. The technology intends to bring Scala “closer to bare metal,” according to its GitHub page.

Using ahead of time (AOT) compilation, the project looks to speed up Scala applications in mobile, gaming, and command-line applications, developer Denys Shabalin, of École Polytechnique Fédérale de Lausanne Switzlerland, said.

LLVM features modular compiler technologies for C and C++ and brings instant startup to Scala Native.

“Scala Native is compiled ahead-of-time via LLVM. This means that there is no sluggish warm-up phase that’s common for just-in-time compilers. Your code is immediately fast and ready for action,” GitHub documentation states.

Shabalin’s issues with the JVM’s startup times motivated his work on Scala Native. “In AOT, you compile before you even start the app, so it’s faster,” he noted.

Primarily targeting Intel and ARM processors, Scala Native features a lightweight managed runtime and could be used for building applications for both Android and iOS

Other features of Scala Native include low-level primitives, for hand-tuning an application to make it work exactly how the developer wants, and extern objects, for calling native code without any runtime overhead.

Scala Native currently in a pre-release stage and has been in development for about a year. Shabalin is ramping up for an official first release of Scala Native.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author