Re: [Ironruby-core] Native Extensions

2009-10-06 Thread Daniele Alessandri
Hi Nathan, yes, that's basically what you need to do: 1- rewrite the C (or Java) bits of the http parser in C# and let Ragel generate the rest 2- wrap everything up in a layer to expose the needed methods to IronRuby 3- make sure to require your newly built http11.dll in the ruby part of the mongr

Re: [Ironruby-core] Native Extensions

2009-10-06 Thread Shri Borde
Presumably that workflow would work. An alternative is to write a thin Ruby or C# wrapper that wraps the native HTTP parser using either FFI (http://www.igvita.com/2009/01/15/bridging-mri-jruby-rubinius-with-ffi/ or http://www.javaworld.com/community/?q=node/1722), or pinvokes. IronRuby suppo

Re: [Ironruby-core] Native Extensions

2009-10-06 Thread Nathan Stults
Thanks for the tip. It looks like the Http Parser is generated via Ragel, and it appears there is a Java version of the language file, so theoretically all I should have to do is learn Ragel and port that file to C#, piece of cake :) Then I suppose I'd need a patched version of mongrel that require

Re: [Ironruby-core] Native Extensions

2009-10-06 Thread Jimmy Schementi
Native extension support is not on the roadmap for 1.0. Win32OLE support is actually in there now, because of the Dynamic Language Runtime's support for dispatching to COM objects. So IronRuby's version of win32ole.rb uses IronRuby's OLE support, rather than depending on native code. The curren

[Ironruby-core] Native Extensions

2009-10-06 Thread Nathan Stults
I noticed on the road-map this item under .NET Interop: [P3] COM: for Win32OLE compatibility Is that the same thing as supporting native extensions? If not, is it on the roadmap to support such a thing? Also, is there a workaround, like replacing files in the gem installation with a .NET wrapper?

Re: [Ironruby-core] Confused and Dazed

2009-10-06 Thread Tom Groff
Thank you one and all for your time. I am just not up to cobbling things like this together on my own. I believe I will put off exploring Iron Ruby until it matures further. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ir

Re: [Ironruby-core] C# running ruby scripts give error: no such file to load

2009-10-06 Thread Jimmy Schementi
File.dirname(__FILE__) will give you the directory of the current file, so you can place this in-front of your requires to make sure they are always relative to the current file, rather than the current directory: Testscript1.rb: require File.dirname(__FILE__) + '/../Common/LibTestCase1' require

[Ironruby-core] C# running ruby scripts give error: no such file to load

2009-10-06 Thread Eelco Henderichs
Hello ironruby user, Here I am with another question. This is a problem I ran in a few weeks ago, found a workaround, but this workaround is far from perfect. As some might already know, I am building an C# application and am using ironruby to run rubyscripts. Application located in: D:\app\bin

Re: [Ironruby-core] Confused and Dazed

2009-10-06 Thread Jimmy Schementi
Tom Groff wrote: > Shri Borde wrote: > > http://wiki.github.com/ironruby/ironruby/debugging can get you started > > on debugging > > In my dreams. Patience, this is what mailing lists are for :) More thorough documentation is on its way as it gets closer to 1.0. > I seem to be missing some ver

Re: [Ironruby-core] Confused and Dazed

2009-10-06 Thread Mohammad Azam
I wrote a couple of articles: http://www.highoncoding.com/Categories/39_IronRuby.aspx And videos: *Unit Testing CLR Assembly Using IronRuby Spec * *Unit Testing CLR Assembly Using IronRuby

Re: [Ironruby-core] Confused and Dazed

2009-10-06 Thread Tom Groff
Shri Borde wrote: > http://wiki.github.com/ironruby/ironruby/debugging can get you started > on debugging In my dreams. I seem to be missing some very basic steps to getting started with Iron Ruby. Documentation keeps talking about something called Merlin? Opening VS.NET and looking at openin

Re: [Ironruby-core] build server

2009-10-06 Thread Michael Letterle
Thanks for doing this Ivan! On Mon, Oct 5, 2009 at 9:39 AM, Ivan Porto Carrero wrote: > Hi > The automated builds for mono were offline for a while, but I've just > finished setting up a hudson instance and making that build again. > > I've also added builds for caricature there. If you have a pr

Re: [Ironruby-core] Confused and Dazed

2009-10-06 Thread Huw Collingbourne
Ivan Porto carrero wrote: > There is no intellisense for ironruby and you will struggle to find any > IDE that has some kind of properly working autocomplete like intellisense > for the ruby language. We have! :-) http://www.sapphiresteel.com/Ruby-In-Steel-Developer-Overview Our IntelliSense