Questions tagged [ironruby]

IronRuby is an open-source implementation of the Ruby programming language which is tightly integrated with the .NET Framework.

268 questions
4
votes
3 answers

How to use an IronRuby block with a C# method

I'm using IronRuby and trying to work out how to use a block with a C# method. This is the basic Ruby code I'm attempting to emulate: def BlockTest () result = yield("hello") puts result end BlockTest { |x| x + " world" } My attempt to do the…
sipsorcery
  • 30,273
  • 24
  • 104
  • 155
4
votes
4 answers

C# instead of IronRuby as an embedded "scripting" language in .NET 3.5

What is the best practice for using C# as an embedded internal scripting application for a .NET 3.5 application? I have an app with a few small IronRuby scripts in it. None of which is really exploiting the dynamic nature of IronRuby. Apparently its…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
4
votes
1 answer

Performance comparison between IronRuby and IronPython

We're aiming to implement a scripting mechanism, using DLR's Microsoft.Scripting and hosting assembly. Now, someone knows about any performance difference between IronRuby 1.0 and IronPython 2.6? To my understanding they have different compilers,…
Kel
  • 1,217
  • 11
  • 21
4
votes
3 answers

Watir with IronRuby!

Has anyone used Watir with IronRuby successfully? I am getting an error that the required file 'Watir' was not found. What path do I need to set to get this file to work in IronRuby? For some reason my igem command is not working:…
azamsharp
  • 19,710
  • 36
  • 144
  • 222
4
votes
1 answer

Calling C# from IronRuby

I have created a small C# class in a library. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace helloWorldLib { public class Greeter { public string SayHelloWorld(string name) { …
Michael Rosario
  • 838
  • 1
  • 11
  • 26
4
votes
4 answers

Current standard compliance level of IronPython & IronRuby

Does anyone have some numbers on this? I am just looking for a percentage, a summary will be better. Standards compliance: How does the implementation stack up to the standard language specification? For those still unclear: I place emphasis on…
leppie
  • 115,091
  • 17
  • 196
  • 297
3
votes
3 answers

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…
Scott Holden
  • 396
  • 1
  • 8
3
votes
3 answers

Can I run rubygems in ironruby?

Is it currently possible with pre release of ironruby to run rubygems? It seems as if I have to set an environment variable to find them?
Xian
  • 76,121
  • 12
  • 43
  • 49
3
votes
1 answer

Differences between powershell and ruby

I am new to the dynamic languages scene, and trying to find a good starting point. Looking at how Microsoft is diminishing the role of Iron Ruby in its offerings, I am looking around for a dynamic programming language that will be supported on…
GregC
  • 7,737
  • 2
  • 53
  • 67
3
votes
4 answers

IronRuby performance?

While I know IronRuby isn't quite ready for the world to use it, I was wondering if anyone here tried it and tested how well it faired against the other Rubies out there in terms of raw performance? If so, what are the results, and how did you go…
wvdschel
  • 11,800
  • 14
  • 41
  • 45
3
votes
2 answers

Creating WCF Services using Dynamic Languages and DLR

I was curious how anyone would go about creating WCF based services using a dynamic language like IronPython or IronRuby. These languages do not have the concept of interfaces. How would someone define service contracts? Would we need to rely on…
Perpetualcoder
  • 13,501
  • 9
  • 64
  • 99
3
votes
2 answers

Calling C# object method from IronPython

I'm trying to embed a scripting engine in my game. Since I'm writing it in C#, I figured IronPython would be a great fit, but the examples I've been able to find all focus on calling IronPython methods in C# instead of C# methods in IronPython…
Jason
  • 1,225
  • 2
  • 16
  • 18
3
votes
1 answer

Running DLR Embedded Scripts in Minimum Security Context

I need to get pointed in the right direction. I have embedded an Iron Python scripting host into a simple C# application, but now I need to know the best practices for locking down security on a user generated IronPython or IronRuby…
Josh Pearce
  • 3,399
  • 1
  • 23
  • 24
3
votes
5 answers

How to embed Ruby in an XNA engine?

I'm wondering if it's possible to embed Ruby as a scripting language in Microsoft XNA, and what's the best way to do that. I'm looking for something like Xnua, except for Ruby. I've stumbled upon Ruby.NET and IronRuby and both seem to be in very…
Firas Assaad
  • 25,006
  • 16
  • 61
  • 78
3
votes
1 answer

Is IronRuby ScriptSource.Execute thread safe?

We are implemented expression evaluator via hosting IronRuby engine. Simplified version of evaluator you can see here. Now we are trying to get more performance from IronRuby via executing expressions in many threads (and we got it). One question…