TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Scala on Track to Support Java 9 Module System

32 点作者 AheadOfTime295超过 5 年前

3 条评论

joneholland超过 5 年前
Not a lot of progress in the last year.
评论 #20912902 未加载
mckinney超过 5 年前
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 未加载
jxi超过 5 年前
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 未加载