标签: ironruby

哪种动态.NET语言更有意义,Iron Ruby或Iron Python?

我想花一些时间来了解更多关于在DLR之上构建的动态语言的知识,我不确定哪种语言会更好学习.

时间有限,我真的只有时间去学习其中一个.

从长远来看,对两者中的哪一个(Iron Ruby或Iron Python)更有用的任何意见?

.net ironpython ironruby dynamic-language-runtime dynamic-languages

5
推荐指数
2
解决办法
1194
查看次数

IronRuby - 如何要求没有强名称的.NET程序集?

IronRuby帮助网站上的这个页面讨论了能够"需要"一些众所周知的程序集,例如System.Windows.Forms,而不需要在这里完成' 啊 - 来吧 - 给我一个休息- 不能认真的 '强大的集会名称.

在文档中它说:

>>> require "System.Windows.Forms"  
=> true  
Run Code Online (Sandbox Code Playgroud)

但是当我尝试相同的'要求'时,我得到了这个:

>>> require "System.Windows.Forms"
IronRuby.Libraries:0:in 'require': no such file to load -- System.Windows.Forms (LoadError) 
        from :0:in 'Initialize##1'
Run Code Online (Sandbox Code Playgroud)

我可能做错了什么?这可能是一个设置问题吗?我无法在文档中看到这个"加载路径上的libs目录".文档错了吗?

谢谢.

ironruby require

5
推荐指数
2
解决办法
1851
查看次数

在IronRuby Rack下运行Rails应用程序

还有其他人在玩rubruby吗?

我已经成功地在IIS 5.1下的本地计算机上运行了IronRuby.Rails.Example项目.我现在正试图以相同的方式运行我自己的demo rails网站.

我的web.config与示例项目略有不同.我试图只使用IronRuby 1.0发布的内容以及使用gem安装的内容.

我收到以下错误,这不会给我很多事情:

D:/demo/config/boot.rb:66:在`exit':exit(SystemExit)

在尝试了许多不同的事情后,我认为找到宝石有问题.我已经附加了我的web配置和ironrack.log.有没有人指出我做错了什么?

谢谢!

<?xml version="1.0"?>
<configuration>
    <configSections>
        <!-- custom configuration section for DLR hosting -->
        <section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting" requirePermission="false"/>
    </configSections>
    <system.webServer>
        <handlers>
            <!-- clear all other handlers first. Don't do this if you have other handlers you want to run -->
            <clear/>
            <!-- This hooks up the HttpHandler which will dispatch all requests to Rack -->
            <add name="IronRuby" path="*" verb="*" type="IronRuby.Rack.HttpHandlerFactory, IronRuby.Rack" resourceType="Unspecified" requireAccess="Read" preCondition="integratedMode"/>
        </handlers>
    </system.webServer>
    <system.web>
        <!-- make this true …
Run Code Online (Sandbox Code Playgroud)

rack ironruby ruby-on-rails

5
推荐指数
1
解决办法
1476
查看次数

MacRuby + IronRuby或JRuby用于桌面应用程序?

对于Web应用程序,我使用Ruby on Rails.现在是时候看看我是否可以使用Ruby编写桌面应用程序.

所以我想知道我应该选择哪一个.

我看到它的方式是MacRuby + IronRuby vs JRuby.

前者让我可以同时使用Mac和Windows的桌面应用程序,而后者可以同时使用,但只能学习一种工具.

  • 使用前者是否有强烈的论据而不是后者?

  • JRuby桌面应用程序是否与MacRuby + IronRuby桌面应用程序一样本机(或接近本机)?

  • 每种解决方案的优缺点是什么?

我也非常新的桌面开发.分享您的想法和经验!

ruby ironruby jruby objective-c macruby

5
推荐指数
1
解决办法
1193
查看次数

为什么Albacore zip任务在IronRuby上失败?

我正试图用zipAlbacore中的任务压缩,但是我收到了一个错误.这是IronRuby的问题吗?

task :publish => :build do
  Rake::Task[:service].invoke
  Rake::Task[:site].invoke
  Rake::Task[:zip_svc].invoke
end

zip :zip_svc do |zip|
  zip.directories_to_zip 'publish'
  zip.output_file = 'Svc.zip'
  zip.output_path = File.dirname(__FILE__)
end
Run Code Online (Sandbox Code Playgroud)

错误>

** Invoke zip_svc (first_time)
** Execute zip_svc
rake aborted!
wrong number of arguments (1 for 2)
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1113:in `<<'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1062:in `<<'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/ioextras.rb:125:in `write'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/ioextras.rb:9:in `copy_stream'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:832:in `write_to_zip_output_stream'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:772:in `get_input_stream'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:832:in `write_to_zip_output_stream'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1515:in `commit'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1153:in `each'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1153:in `each'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1515:in `commit'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:963:in `open'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1512:in `commit'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1601:in `on_success_replace'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1510:in `commit'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1525:in `close'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:1415:in `open'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/albacore-0.2.5/lib/albacore/zipdirectory.rb:28:in `execute'
c:/IronRuby/Lib/ruby/gems/1.9.1/gems/albacore-0.2.5/lib/albacore/support/createtask.rb:24:in `zip' …
Run Code Online (Sandbox Code Playgroud)

zip ironruby albacore

5
推荐指数
1
解决办法
411
查看次数

从IronRuby调用C#

我在库中创建了一个小的C#类.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace helloWorldLib
{
    public class Greeter
    {
        public string SayHelloWorld(string name)
        {
            return "Hello world " + name;
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

图书馆位于

C:\ Documents and Settings\myUser\My Documents\Visual Studio 2008\Projects\Project1\helloWorldLib\bin\Debug\helloWorldLib.dll

你会如何从IronRuby脚本中调用SayHelloWorld?

我知道这看起来很简单,但经过大量研究后我似乎无法找到一致的代码示例.

非常感谢!

c# ironruby

4
推荐指数
1
解决办法
1705
查看次数

IronRuby和IronPython之间的性能比较

我们的目标是使用DLR的Microsoft.Scripting和托管程序集来实现脚本机制.

现在,有人知道IronRuby 1.0和IronPython 2.6之间的性能差异吗?

根据我的理解,他们有不同的编译器,但IronPython似乎更成熟和测试,但如果有人有关于这个问题的文档或知识,那将不胜感激.

.net performance ironpython ironruby

4
推荐指数
1
解决办法
745
查看次数

C#而不是IronRuby作为.NET 3.5中的嵌入式"脚本"语言

将C#用作.NET 3.5应用程序的嵌入式内部脚本应用程序的最佳实践是什么?我有一个带有几个小IronRuby脚本的应用程序.其中没有一个真正利用IronRuby的动态特性.

显然它违反了我们的企业标准,现在正在使用IronRuby或IronPython.Ooopps.我可以使用C#作为脚本语言的最佳方式是什么?

我喜欢IronRuby的一件事是我可以在应用程序运行时进行小的更改,然后重新运行脚本.有什么办法在C#中做到这一点?或者必须不断重启应用程序?

.net c# ironruby dynamic-language-runtime embedded-language

4
推荐指数
1
解决办法
2026
查看次数

我可以将VS2010中的IronRuby项目编译成DLL/exe文件吗?

在使用IronRuby v1.1.x在VS2010中创建IronRuby项目之后,我通过导入几乎可以使用.NET库.但实际上无法将ironruby编译成exe/DLL.我看到了构建选项,但无法从IronRuby项目构建任何exe或DLL.请帮忙 !

compiler-construction ironruby

4
推荐指数
1
解决办法
2124
查看次数

Ruby VM之间的差异

主要Ruby VM有哪些优点/缺点(比如功能,兼容性,性能和怪癖?)我知道还有一些额外的功能,比如能够通过JRuby使用Java接口.这些也有助于注意.在这一点上,任何VM都有明显的优势吗?在什么情况下?

ruby ironruby rubinius jruby

3
推荐指数
2
解决办法
2077
查看次数