CLR 上的 Scala

发布于 2024-08-14 07:50:55 字数 121 浏览 5 评论 0原文

Scala 主页说 Scala 1.4 可以在 .NET 框架上运行 - 现在 Scala 在 CLR 上的状态如何?有人在做这方面的工作吗?我认为它与 GTK# 和 Mono 结合起来会成为一个很棒的 GUI 工具......

The Scala homepage says that Scala 1.4 was runnable on the .NET framework - what is the status of Scala on the CLR now? Is anyone working on it? I think it would make a great GUI tool combined with GTK# and Mono...

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

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

发布评论

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

评论(6

眼中杀气 2024-08-21 07:50:55

目前,它不起作用。然而,有一些资金(我听说微软,但我没有确认)让它在 CLR 上运行,所以我们正在进行持续的努力,其目标似乎是在 Scala 2.8 发布时提供基本功能。

我所说的“基本”是指它应该运行并生成代码,但不会有太多特定于 CLR 的测试,并且它不应该利用任何特定于 CLR 的功能或库。

无论如何,目前,它还没有被放弃

编辑:这是对它没有被放弃这一事实的具体引用。这是 Scala 团队发送到 Scala Internals 邮件列表的定期进度报告之一的片段。我选择这个只是因为它是最近一次提到它的(12 天前,我写这篇文章的时候),但任何看过它们的人都会发现,2010 年第一学期的报告中经常提到这一点。

Scala会议2010-05-04

与会人员:Ingo,
米格尔、唐娜、阿德里安、尤利安、菲尔、
卢卡斯、菲利普、托尼、吉尔斯、马丁、
休伯特,蒂亚克。

  • 目前的工作
    • 远程参与者和并发.opts 中的清理,文档
      演员
    • 修复了命名参数
    • 一般错误修复
    • 使用 scaladoc
    • 从事 .NET 工作

Presently, it is not working. However, there is some funding (I heard Microsoft, but I have no confirmation) to get it working on the CLR, so there's an on-going effort, which seems to be aiming at basic functionality available by the time Scala 2.8 is out.

By "basic" I mean it should run and produce code, but there's not going to be much CLR-specific tests, and it shouldn't take any advantage of CLR-specific features or libraries.

At any rate, at the moment, it is not abandoned.

EDIT: Here is a specific reference to the fact it's not abandoned. This is a snippet from one of the regular progress reports the Scala team sends to the Scala Internals mailing list. I picked this one simply because it's the most recent one mentioning it (12 days ago at the time I'm writing this), but anyone looking at them will see this has been referred to regularly on the reports of the first semester of 2010.

Scala Meeting 2010-05-04

People attending the meeting: Ingo,
Miguel, Donna, Adriaan, Iulian, Phil,
Lukas, Philipp, Toni, Gilles, Martin,
Hubert, Tiark.

  • Current work
    • cleanups in remote actors and concurrent.opts, documentation for
      actors
    • fixes with named arguments
    • general bug fixing
    • work on scaladoc
    • work on .NET
满栀 2024-08-21 07:50:55

Scala 在 CLR 上的地位是……寒酸。除非他们从 2.7.3 开始就在它上面投入了大量的精力(并且在变更日志中没有证据表明这一点,尽管我还没有实际测试过它),否则它:

  • 仅针对 .NET 1.1 (!)
  • 输出 IL 汇编程序,然后您可以使用它
    必须用手进行 ilasm (!)
  • 丢失
    多种语言和库功能
    (如结构类型和解析器
    组合器)

它的维护程度是他们继续将 Java 编译器的修订合并到 MSIL 编译器中,但除此之外我想说它已经垂死了。

The status of Scala on the CLR is... shabby. Unless they've worked heavily on it since 2.7.3 (and there's no evidence of this in the changelogs, though I haven't actually tested it), it:

  • only runs against .NET 1.1 (!)
  • outputs IL assembler which you then
    have to ilasm by hand (!)
  • is missing
    several language and library features
    (like structural types and parser
    combinators)

It's being maintained to the extent that they're continuing to merge revisions from the Java compiler into the MSIL compiler, but other than that I'd say it's moribund.

迟月 2024-08-21 07:50:55

2011 年 7 月 18 日在 scala-lang.org 上接受采访时:

我现在可以在 .Net 上运行 Scala 程序吗?
米格尔
简单的答案是肯定的,但一些限制将在秋季取消。

链接:访谈
链接:二进制文件

In an interview on scala-lang.org on 18th July 2011:

Can I run Scala programs on .Net now?
Miguel:
The simple answer is yes, with a few limitations that will be remove by the fall.

Link: The inteview
Link: Binaries

风向决定发型 2024-08-21 07:50:55

Martin Odersky 在 SE Radio 采访中说道(2011 年 1 月):

我不想告诉您预计的到达时间,但应该是今年,包括 Visual Studio 支持。

他在第 15 分钟开始谈论 .NET。

Martin Odersky says in this SE Radio interview (January 2011):

I don't want to give you an estimated time of arrival but it should be certainly this year including visual studio support.

He starts talking about .NET at the 15 minute mark.

幽梦紫曦~ 2024-08-21 07:50:55

鉴于 JVM 上的 Scala 版本为 2.7(并且 2.8 即将推出),我不认为它会得到维护。

另请参阅此 StackOverflow 问题(2009 年 4 月开始),其中包含更多详细信息。

Given that Scala on the JVM is at version 2.7 (and 2.8 is imminent), I don't believe this is being maintained.

See also this StackOverflow question (from April 2009), which has more details.

走过海棠暮 2024-08-21 07:50:55

还值得注意的是 F# 的出现限制了微软对 Scala 的兴趣,因为他们现在拥有了自己的“受祝福的”函数式语言。 NIH。

It's also probably worth noting that the advent of F# has limited Microsoft's interest in Scala, in that they now have a "blessed" functional language of their own. NIH.

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