ironruby

Accessing the return value from an IronRuby Dsl

Hi, I am trying to create a Dsl which will have instances that live in individual Dsl .rb files and then run them from the CLR. I want to create and set the values of the Clr object in IronRuby and then somehow have access to the CLR object after the .rb Dsl instance file has run. Here is my Clr object which is very simple at the mome...

"Unknown Method" using IronRuby in C#

Hi and good evening, hope someone can help. I am trying to get some sort of scripting support going. I have the following code, which executes a ruby method and returns the result. However, it is returning a "method not found error" from IronRuby itself. var engine = IronRuby.Ruby.CreateEngine(); returnvalue = engine.Operations.Invoke...

Does anybody know a real life example of IronRuby usage

Although I'm not a .NET developer I always get excited about the work DLR team is doing at Microsoft. I watched a couple of videos from various Ruby conferences where John Lam showed the progress of IronRuby and Dynamic Language Runtime in general. The latest video I saw is from Ruby conf: http://rubyconf2008.confreaks.com/ironruby.html ...

The operation could not be completed. No such interface supported (Ruby In Steel)

I installed Ruby In Steel Trial Edition for Visual Studio 2008 and when i try to save a an IronRuby Project, it keep warning "The operation could not be completed. No such interface supported". I cannot save the project but only run it. Help me plz!, I'm noob with Ruby and Ruby In Steel. ...

Can I ship an open source dll that is built using iron ruby?

Yes .... Technically ... what is involved in ILMerging the DLR and Iron Ruby into a single DLL? What should I be careful about? Legally (MS-PL) ... am I allowed to ship an open source dll that had iron ruby and the DLR embedded into it? (Looks like the answer to this question is, usually yes, what OSI licenses is ms-pl compatible wit...

Does IronRuby have a CodeDomProvider?

If not is one scheduled? ...

How to invoke an overloaded generic methods in IronRuby?

Hi, :) How can I invoke overloaded generic method in IronRuby? I have a .net class with the following methods. (Take note that the methods are static) Factory.cs ---- public static T CreateService<T>() public static T CreateService<T>(string serviceName) ironruby_sample.rb ---- service = Factory.create_service[ISomeService] => prod...

How to consume remoting in IronRuby

I was trying to consume a remoting service in IronRuby and I get this error. Attempted to call a method declared on type 'IronRuby.Runtime.IRubyObject' on an object which exposes 'Contracts.SomeManager'. Can you help me with this? Here's my code. require "netincludes" some_manager = System::Activator.get_object ISomeManager.to_clr_t...

Packaging script source files in IronPython and IronRuby

Does anyone know how to add python and ruby libs as a resource in a dll for deployment? I want to host a script engine in my app, but dont want to have to deploy the entire standard libraries of the respective languages in source files. Is there a simple way to do this so that a require or import statement will find the embedded resour...

How to get started with Ruby? How can I use Ruby? What is it famous for? How is a DSL going to be useful?

What are some great Learning resources? What kind of problems do I solve with Ruby? Is learning ruby on rails same as ruby? If my current background is visual studio and microsoft.net framework, is IronRuby the best way for me? Awful lot of questions, please suggest. ...

is F# to IronPython/IronRuby as C# is to VB.NET?

I just listened to podcast of Chris Smith talking about F# in which he talks about how F# is a language which allows you to approach problems in a different way than in C#/VB.NET, i.e. instead of "pushing bits around" you "chain together data transformations", and that how F# will "become like XML", something that you use in addition to ...

Iron Python / Iron Ruby EXE

I've always had this dream of creating a 'real exe' from a scripting language. With the available of DLR-based implementations of Python and Ruby, is this getting any closer to reality? I'd like to create a 'real application': A Windows Forms App A Console App A Windows Service And have the unit of distribution be a compiled exe. I...

What is the difference in speed between the DLR languages and C# in Silverlight 2?

For Silverlight 2, it looks like programming choices are: C# VB DLR scripting languages IronRuby IronPython A sadly neglected (if not cancelled) Managed jScript Is this a case where the native languages (C# and VB) are faster than the DLR languages by an order of magnitude or so? Any hope of "living" in IronPython when I do Silver...

Better CSS in .NET?

I'm getting slightly jealous of the innovation I'm seeing from the Python and Ruby community around CSS. For example, see: http://sandbox.pocoo.org/clevercss/ http://lesscss.org/ http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html That said, my question is two fold. Could these library's be easily "ported" to .NET via IronRuby...

Is it possible to halt a running DLR/IronPython/IronRuby script

I have an application that executes user generated IronRuby scripts where each thread executes on its own thread. The issue I have is that certain events can occur that require the IronRuby script to be stopped at an arbitrary point in the script. I can do it by aborting the thread the script is running on but that approach has introdu...

How to web enable .NET libraries

I am looking to expose my existing .NET libraries to an intranet. With many moving to RESTful services, OpenRasta looks tempting. In a similar vein, I am playing around with Sinatra in IronRuby. I am primarily looking for 3 points: 1) What are you using to expose your existing codebase to the web? 2) What about your method makes it eas...

Is it possible to use jruby to write an applet or is it better to use iron ruby for silverlight?

If I wanted to dabble with ruby, would it be easier to write an applet in Jruby or a Silverlight XAP with iron ruby? So far all I have is a vague idea that it might be possible. ...

Can Sinatra be used with IronRuby?

Hello IronRuby fans. I'm trying to install the following ruby gem on my mac: http://www.sinatrarb.com/intro.html I get the following message: michael-rosarios-macbook:bin michaelrosario1$ mono ir.exe igem sinatra ERROR: While executing gem ... (RuntimeError) Unknown command sinatra michael-rosarios-macbook:bin mi...

What are the options for dynamically-typed .NET web development at this time?

What are you options for dynamically-typed .NET web development at this time? Ruby on Rails with IronRuby? Django (with a few alterations) and IronPython? Don't feel like going the Phalanger route. I'm done with PHP. I assume there is some way to make ASP.NET MVC more dynamic... but can you fully exploit that in .NET 3.5? There is th...

How to access a base class property (variable) in ironruby?

I'm trying to do some XNA development with IronRuby but are struggling with both generics (Load) and accessing some of the base-class properties such as Content. Any hints? ...