Learn Java, so I can get clojure

I have a history of hating Java. In the "slow ball" era, I often used it in the late 1990s Therefore, I never really understand this According to my understanding, Java is actually a good language to use these days Thanks to Jython and clojure, I've been thinking about sneaking into it That is, I want to program in Java and use inline Jython or clojure when appropriate But, in fact, I might just program in Jython / J Ruby and call clojure. Com from there

This brings me my problem I know that these two languages can be called from Java, but is this a good practice? If I only want to use Jython as the main language, should I learn Java? Seeing this is a big part of my motivation here. I want to know that I was not very misled before jumping in. I know that if the project is completed in multiple languages, it will be a dirty risk. I like this

I'm still learning JVM and so on, so if the problem is obvious, I'm sorry

Solution

Jython can be regarded as a cross compiler from Python to Java virtual machine Therefore, in order to take full advantage of Jython, you obviously have to learn Python and may need to learn Java

You can skip some java learning, but in the end, Java and the JVM grow up together This means that Java code tends to provide an understanding of the JVM No Java can gain an understanding of the JVM, but this is not a good path Any Jython code imported into the Java library will immediately enable you to search java documents, so if you avoid using Java, you will learn it piecemeal

You must decide whether a piecemeal approach or a formal approach is more suitable for you and your situation Many people decide which way to take is to know your best way to learn

As far as the "slow ball" in the 1990s is concerned, that's when I was learning Java Personally, I think it's best to describe it as "if you make incredibly stupid things in Java, then" as slow as a ball ". now I think people have built enough skills to avoid converting C directly to Java. That is, I occasionally encounter the 2000 line method, so maybe I am a little optimistic in my prediction. The layout of the whole JVM makes object-oriented code run faster. If you keep trying to use" other "objects for all the data you need locally, Then you just need to stack the JVMs

Regardless of opinion, the JVM is now a hot java project Now it has been supported by "other languages" for more than ten years; However, the excitement of domain - specific languages seems to have aroused interest in compilation techniques and JVMs It is an easy goal for other languages to benefit from the JVM, which can break into the built-in cross platform support, excellent performance, huge library availability and generally good documents Learning Java and JVM will provide you with a lot of JVM supported languages, because many people will not use their library space to hook to pure Java libraries

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>