- Learning Scala Programming
- Vikash Sharma
- 184字
- 2021-06-30 19:07:45
Runs on JVM
Consider efficiency and optimization as factors for a language to be well performant. Scala utilizes JVM for this. JVM uses Just in Time (JIT) compilation, adaptive optimization techniques for improved performance. Running on JVM makes Scala interoperable with Java. You've multitudinous libraries available as tools for reuse.
If anywhere in your mind you're comparing Java and Scala's performance, let's get it clear. Both Java and Scala programs are compiled into bytecode. JVM understands bytecode and runs it for you. So it mostly depends on the way you write a program. Scala blends in some syntax sugar, compiler logic that can cause your program to be more/less performant than Java. Mix-ins using traits can be an asset to your program architecture but may affect your program's performance. But alternatives in Java may cost the same or more. So it is more about your core understanding of constructs and how your code is going to compile and perform. It takes some time and effort to understand so the choice is yours; as a smart programmer, you may go for a syntactically powerful language.
- C及C++程序設計(第4版)
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- 編寫高質量代碼:改善Python程序的91個建議
- Access 2016數據庫管
- Unity 2018 Shaders and Effects Cookbook
- OpenGL Data Visualization Cookbook
- Node.js區塊鏈開發
- SQL Server 2012 數據庫應用教程(第3版)
- Java程序設計實用教程(第2版)
- Swift High Performance
- 用Python動手學統計學
- 編程真好玩:從零開始學網頁設計及3D編程
- 區塊鏈技術與智能服務應用
- jQuery 2.0 Development Cookbook
- Java 8函數式編程