IronRuby on Rails 入门

发布于 2024-07-10 21:02:27 字数 81 浏览 4 评论 0 原文

有人可以给我指点教程和/或入门文档来让 IronRuby 运行 Rails 吗? 我对详细的分步参考特别感兴趣,而不是一般指南。

Can somebody point me to a tutorial and/or Getting Started document to get IronRuby running Rails? I'm particularly interested in a detailed, step-by-step reference, not general guidelines.

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

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

发布评论

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

评论(4

孤独患者 2024-07-17 21:02:27

今天,IronRuby 已经“运行”Rails。 我们在 RailsConf 08 上演示了它运行 Rails 的情况。也就是说,我们在 IronRuby 上还有很多适合和完成的工作要做,以使其达到可以很好地运行 Rails 的状态。

目前我们还欠缺的是:

  • 启动速度 - 这对于使用 Rails 时获得良好的体验至关重要 - 特别是在运行单元测试时。 现在启动 Rails 需要 26 秒。
  • 工作集 - 目前“hello world”Rails 应用程序的大小为 100MB,而 MRI 的大小为 30MB。

    我们实际上在吞吐量方面做得很好 - 一旦我们编译完毕,一切就运行得相当好。

    我们正在转向自适应编译策略,在该策略中,我们默认解释并编译我们找到的热点。 这将使开发者的体验大大变得更好。 我们还将有一个提前编译模式(可能与 NGEN 和智能缓存结合),这可能比自适应编译策略更好。

  • IronRuby already 'runs' Rails today. We demo'd it running Rails back at RailsConf 08. That said, we have a lot of fit and finish work to do on IronRuby to get it to a state where it can run Rails well.

    Where we're lacking right now is:

  • Startup speed - this is critical for a decent experience when working with Rails - especially if you're running unit tests. Right now it takes 26s to startup Rails.
  • Working set - we're currently at 100MB for a 'hello world' Rails app vs. 30MB for MRI.

    We're actually doing fine on throughput - once we're compiled things run reasonably well.

    We're moving towards an adaptive compilation strategy where we interpret by default and compile the hot spots that we find. This will make the developer experience much better. We will also have an ahead-of-time compilation mode (perhaps in conjunction with NGEN and intelligent caching) down the road which may be better than the adaptive compilation strategy.

  • 谷夏 2024-07-17 21:02:27

    看起来终于有一个:

    http://www.ironruby.net/Documentation/Rails

    Looks like there finally is one:

    http://www.ironruby.net/Documentation/Rails

    单挑你×的.吻 2024-07-17 21:02:27

    很抱歉让您失望,但我认为您必须自己编写教程。 除非我错过了什么,IronRuby 还没有运行 Rails,尽管他们已经演示了某些方面的运行。

    根据 IronRuby 主页,RubySpecs 核心包的完成度约为 71%,这可能是从 rails 一直到 ironruby script/server 还有一段距离

    当 IR 运行 Rails 时,我想我们可能会听说它。 或者更确切地说,我们可能不得不将自己关在隔离室中以避免听到它......

    Sorry to disappoint but I think you'll have to write the tutorial yourself. Unless I've missed something, IronRuby doesn't run Rails yet, although they've demonstrated some aspects running.

    According to the IronRuby home page they're at about 71% complete on the RubySpecs core package, which is probably still some way from enough to go from rails <projectName right through to ironruby script/server

    When IR runs Rails, I think we may hear about it. Or rather, we may have to shut ourselves in isolation chambers to avoid hearing about it...

    小傻瓜 2024-07-17 21:02:27

    这里有一些适合初学者的不错的“一步一步”: http://www.ironruby.net/Samples_and_tutorials

    Here are a couple of nice "step by step", for beginners: http://www.ironruby.net/Samples_and_tutorials

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