我想花一些时间来了解更多关于在DLR之上构建的动态语言的知识,我不确定哪种语言会更好学习.
时间有限,我真的只有时间去学习其中一个.
从长远来看,对两者中的哪一个(Iron Ruby或Iron Python)更有用的任何意见?
.net ironpython ironruby dynamic-language-runtime dynamic-languages
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目录".文档错了吗?
谢谢.
还有其他人在玩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) 对于Web应用程序,我使用Ruby on Rails.现在是时候看看我是否可以使用Ruby编写桌面应用程序.
所以我想知道我应该选择哪一个.
我看到它的方式是MacRuby + IronRuby vs JRuby.
前者让我可以同时使用Mac和Windows的桌面应用程序,而后者可以同时使用,但只能学习一种工具.
使用前者是否有强烈的论据而不是后者?
JRuby桌面应用程序是否与MacRuby + 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) 我在库中创建了一个小的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?
我知道这看起来很简单,但经过大量研究后我似乎无法找到一致的代码示例.
非常感谢!
我们的目标是使用DLR的Microsoft.Scripting和托管程序集来实现脚本机制.
现在,有人知道IronRuby 1.0和IronPython 2.6之间的性能差异吗?
根据我的理解,他们有不同的编译器,但IronPython似乎更成熟和测试,但如果有人有关于这个问题的文档或知识,那将不胜感激.
将C#用作.NET 3.5应用程序的嵌入式内部脚本应用程序的最佳实践是什么?我有一个带有几个小IronRuby脚本的应用程序.其中没有一个真正利用IronRuby的动态特性.
显然它违反了我们的企业标准,现在正在使用IronRuby或IronPython.Ooopps.我可以使用C#作为脚本语言的最佳方式是什么?
我喜欢IronRuby的一件事是我可以在应用程序运行时进行小的更改,然后重新运行脚本.有什么办法在C#中做到这一点?或者必须不断重启应用程序?
在使用IronRuby v1.1.x在VS2010中创建IronRuby项目之后,我通过导入几乎可以使用.NET库.但实际上无法将ironruby编译成exe/DLL.我看到了构建选项,但无法从IronRuby项目构建任何exe或DLL.请帮忙 !
主要Ruby VM有哪些优点/缺点(比如功能,兼容性,性能和怪癖?)我知道还有一些额外的功能,比如能够通过JRuby使用Java接口.这些也有助于注意.在这一点上,任何VM都有明显的优势吗?在什么情况下?
ironruby ×10
.net ×3
c# ×2
ironpython ×2
jruby ×2
ruby ×2
albacore ×1
macruby ×1
objective-c ×1
performance ×1
rack ×1
require ×1
rubinius ×1
zip ×1