用于生产的 Scala 2.8 工具

发布于 2024-09-14 13:28:30 字数 1001 浏览 1 评论 0原文

您对当前生产中使用的 Scala 工具有何体验?

鉴于 Scala 2.8 已经发布一个多月了,我认为现在是更新 Scala 工具状态的好时机,沿着这些 问题。我想将问题范围扩大到 IDE 之外,包括 RAD 工具(例如 JRebel )、构建工具/编译器(sbtMaven, fsc),甚至可能是框架(例如 Lift 播放)。

此外,我想重点关注生产中实际使用的工具,因为随意使用并不能揭示实际开发中出现的所有问题。请将您的答案限制在您有生产经验的工具上。

What are your experiences with Scala tools currently used in production?

Given that Scala 2.8 has been out for over a month, I thought it would be a good time for an update on the status of Scala tooling, along the lines of these questions. I'd like to broaden the scope of the questions beyond IDEs, to include RAD tools (e.g. JRebel), build tools/compilers (sbt, Maven, fsc), and perhaps even frameworks (e.g. Lift, Play).

Furthermore, I want to focus on tools that are actually used in production, since casual use will not uncover all of the issues that arise in real development. Please limit your answers to tools with which you have production experience.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

纵情客 2024-09-21 13:28:30

就我而言,我使用了 IntelliJ IDEAEclipse 与 Maven。到目前为止,我的使用仅限于将生产代码库从 2.7.7 移植到 2.8。 IDEA 似乎是两者中的佼佼者,尽管我在切换到 2.8 时不得不升级到 EAP 版本的 IDE。 Eclipse 插件在我的代码库中仍然存在许多虚假编译错误,并且根本没有响应。另一方面,至少有一个开发人员我知道 使用 Eclipse 比使用 IDEA 更幸运。

我担心的另一个问题是编译速度。至少在 Scala 2.7.7 中,IDEA 非常慢——即使在进行了微小的更改之后,运行 Make 通常也需要大约 30 秒。因此,我开始通过 Maven 插件的 scala:cc 目标使用 fsc,这将典型的增量编译时间减少到 3-5 秒。

For my part, I've used both IntelliJ IDEA and Eclipse with Maven. So far, my use has been limited to porting a production codebase from 2.7.7 to 2.8. IDEA appears to be the leader of the two, although I had to upgrade to the EAP version of the IDE when I switched to 2.8. The Eclipse plugin still has many spurious compile errors in my codebase and is not at all responsive. On the other hand, at least one developer I know of had better luck with Eclipse than with IDEA.

Another concern I've had has been compilation speed. With Scala 2.7.7 at least, IDEA was incredibly slow -- it routinely took ~30 seconds to run a Make, even after a minor change. As a result, I started using fsc via the Maven plugin's scala:cc goal, which reduced typical incremental compile times to 3-5 seconds.

临风闻羌笛 2024-09-21 13:28:30

对我来说,我尝试了 Eclipse 和 sbt(简单构建工具)。 Eclipse 似乎有点不可靠。它报告的错误并不是真正的错误。 Eclipse 还占用了我笔记本电脑中的大量 RAM,如果您使用旧计算机(或任何 RAM 较低的计算机),速度会非常慢。 sbt 的功耗较低,但它没有 Eclipse 那样的实时错误检查(无论如何这并不是真正可靠)。

无论如何,我想你应该都尝试一下!我想这取决于你正在做的项目。

For me, I tried Eclipse and sbt (simple-build-tool). Eclipse seems to be a little bit unreliable. It reports errors which aren't really errors. Eclipse also took so much RAM in my laptop, it's going to be very slow if you're using an old computer (or anything with low RAM). sbt is less power hungry, but it doesn't have live error checking that Eclipse has (which isn't really reliable anyway).

Anyway, I guess you should give both a try! I guess it depends on the project that you're doing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文