TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Scala on Track to Support Java 9 Module System

32 pointsby AheadOfTime295over 5 years ago

3 comments

jonehollandover 5 years ago
Not a lot of progress in the last year.
评论 #20912902 未加载
mckinneyover 5 years ago
The JPMS represents what is probably the largest single change in Java&#x27;s history. It significantly impacts the entire stack: language, libraries, and runtime&#x2F;VM. In my experience the host of incompatibilities resulting from modules are not worth the trouble -- there&#x27;s not much to gain from using them.<p>Generally the JPMS provide two benefits:<p>1. Since the JRE is restructured to use modules, it can be used piecemeal, which is great for embedded systems.<p>2. A module controls exposed packages -- only explicitly exported packages are accessible to dependent modules.<p>With this in mind it&#x27;s difficult to justify the JPMS fallout: Why should #1 impact the much larger market of Java SE? #2 is nice, however we already have this feature with IDEs like IntelliJ IDEA, which provide robust compile-time module systems. And the runtime aspect of JPMS access control is hardly worthwhile; it&#x27;s not security (reflection can always bypass that), so what is it providing exactly? Surely it doesn&#x27;t fix the notorious &quot;JAR hell&quot; issue, you still need to shade jars or use OSGi.
评论 #20913762 未加载
评论 #20913484 未加载
jxiover 5 years ago
Besides Spark, is there still a niche that Scala fills? Why wouldn’t you just use Kotlin or Java 11? I guess I should ask the inverse question too: why wouldn’t you just use Scala for everything?
评论 #20913274 未加载
评论 #20913279 未加载
评论 #20913126 未加载
评论 #20913242 未加载