In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you about what the five JVM-based scripting languages are like. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.
JVM is the abbreviation of Java Virtual Machine (Java Virtual Machine). JVM is a specification for computing devices. It is a fictional computer, which is realized by simulating various computer functions on a real computer.
Programs that can run on Java's virtual machine JVM mean that there is a natural cross-platform. Now JVM can not only run Java programs, there are a number of scripts running using the Java virtual machine on JVM, such as PHP, Python, Ruby, and so on. Here is an article that reviews the top five script languages that can be run on JVM. They are:
1 、 Groovy .
Built on the powerful Java language and added many features learned from languages such as Python,Ruby and Smalltalk, it provides Java developers with modern programming language features, and the learning cost is very low (almost zero). When developing Web,GUI, database or console programs, the efficiency of developers is greatly improved by reducing framework code. Support for unit testing and simulation (objects) to simplify testing. Seamlessly integrate all existing Java objects and class libraries. Compile directly to Java bytecode, so that you can use Groovy anywhere you use Java.
2 、 JRuby .
A pure Java implementation of Ruby interpreter. With JRuby, you can run Ruby programs directly on JVM and call Java's class library. Many Ruby IDE written by Java use JRuby to interpret syntax.
3 、 Scala .
A multi-paradigm programming language designed to integrate the features of object-oriented programming and functional programming. The Scala programming language has caught the attention of many developers recently. It looks like a pure object-oriented programming language, while seamlessly combining imperative and functional programming styles. The name Scala indicates that it is also a highly scalable language. The design of Scala has always been guided by the idea of creating a language that better supports components.
4 、 Fantom .
The predecessor of Fantom (Fan) is a programming script engine based on Java and .NET platforms, which is used to generate bytecode for JVM and .NET platforms at runtime. The language is object-oriented, similar to Groovy and JRuby, and can integrate Java's class libraries through specific interfaces.
5 、 Jython .
Jython is unique because it inherits the characteristics of both Java and Python. It is a complete language, not a Java translator or just a Python compiler, it is a full implementation of the Python language in Java.
Jython also has many module libraries that inherit from CPython. The most interesting thing is that unlike CPython or any other high-level language, Jython provides all access to its implementation language. So Jython not only provides you with the library of Python, but also provides all the Java classes. This gives it a huge repository of resources.
Here is a table comparing the five major JVM scripting languages:
We can also take a look at some other JVM scripting languages, such as Clojure, JavaFX, and IBM's NetRexx.
The above is what the five JVM-based scripting languages are like. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.