From lists at ruby-forum.com Thu Oct 1 01:38:50 2009 From: lists at ruby-forum.com (Aaron Clauson) Date: Thu, 1 Oct 2009 07:38:50 +0200 Subject: [Ironruby-core] Clear ScriptEngine Global Variables In-Reply-To: References: <3a71a50967f5058e81f79ce7a5c5cb78@ruby-forum.com> Message-ID: Ivan Porto carrero wrote: > Do you want to do it from ruby or from C#? > --- >From C#. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Oct 1 03:25:40 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Thu, 1 Oct 2009 09:25:40 +0200 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: References: <1ebd60e63358c76bb6ca00fadaa8649b@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C066BA65B@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <566f8c9cb653aca9a31b47ffedc15b2a@ruby-forum.com> Thanks for all the information. Being new to IronRuby, I will need all the info I can get and will most probably be back with futher questions. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Oct 1 08:58:05 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Thu, 1 Oct 2009 14:58:05 +0200 Subject: [Ironruby-core] calling non class methods from C# Message-ID: Dear users, I have found how to invoke class methods and use its result in the C# application. However I can't seem to find how to invoke methodes located outside of a class. So I started wondering if this is at all possible. If it is, I would like to know how. Thanks in advance -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Thu Oct 1 09:31:01 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 1 Oct 2009 15:31:01 +0200 Subject: [Ironruby-core] calling non class methods from C# In-Reply-To: References: Message-ID: class TheExample def output "Hello World" end end var operations = Engine.CreateOperations(); Engine.ExecuteFile(/path/to/example.rb); var instance = operations.CreateInstance(); var result = operations.InvokeMember(instance, "output"); --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Oct 1, 2009 at 2:58 PM, Eelco Henderichs wrote: > Dear users, > > I have found how to invoke class methods and use its result in the C# > application. > > However I can't seem to find how to invoke methodes located outside of a > class. So I started wondering if this is at all possible. If it is, I > would like to know how. > > Thanks in advance > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Fri Oct 2 03:23:07 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Fri, 2 Oct 2009 09:23:07 +0200 Subject: [Ironruby-core] calling non class methods from C# In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066BC26E@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C066BC26E@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: Oke thanks for the information. Not sure if I fully understand how to do this. But it surely gave me someting to work with and I can start experimenting with it. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Oct 2 03:45:13 2009 From: lists at ruby-forum.com (Zoltan Toth) Date: Fri, 2 Oct 2009 09:45:13 +0200 Subject: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight... Message-ID: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com> Hi Guys, How do we, for example, use BigDecimal in IronRuby within a Silverlight application? When we just require 'bigdecimal', we get an error saying that file can't be found. Do we have to add that and other ruby standard library files to our application and if so, where do we put them? Note that we are actually developing a standard (non-dynamic) C# Silverlight application (and hence are not using Chiron) and wish merely to execute ruby scripts client-side at various times. We would like these scripts to be split into different files, for obvious reasons. We envisage that certain files (i.e. standard library and other non changing code) may well be bound into the xap file somehow and other files may well be dynamically obtained from the back-end. So far, we've been able to execute ruby files deployed as "Build Action: Resource" in VS2008 but, we have not, as yet, been able to get one file to require another in a similar manner to the Chiron demos in IronRuby 0.9.1. (i.e. app.rb requires Silverlight.rb). Any help would be greatly appreciated, Thanks, Zoltan. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Fri Oct 2 04:20:46 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 2 Oct 2009 10:20:46 +0200 Subject: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight... In-Reply-To: References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com> Message-ID: But that will include all the files and gems you have installed on your machine for ironruby. It might be a better idea to copy the ruby files you need into a folder in your project. You can use them as an embedded resource and then execute their code in order to require them ExecuteScript does that for you. If you want to use the plain ruby require syntax then you can include them in the root folder of what gets included in the xap. If your Silverlight application is a DynamicApplication then you have the necessary PAL loaded and you can use plain require statements --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 2, 2009 at 10:05 AM, Shay Friedman wrote: > I guess you will need to add the path to the libs directory when creating > the XAP file. > When you create a XAP file with Chiron, there is a /path switch where you > can pass semi-colon separated values with paths to include in the XAP file. > Something like: > chr /z:myfile.xap /path:c:\IronRuby\libs > > Have you tried that? > > All the best, > Shay. > > ------------------------------------------ > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > > On Fri, Oct 2, 2009 at 9:45 AM, Zoltan Toth wrote: > >> Hi Guys, >> >> How do we, for example, use BigDecimal in IronRuby within a Silverlight >> application? When we just require 'bigdecimal', we get an error saying >> that file can't be found. Do we have to add that and other ruby >> standard library files to our application and if so, where do we put >> them? >> >> Note that we are actually developing a standard (non-dynamic) C# >> Silverlight application (and hence are not using Chiron) and wish merely >> to execute ruby scripts client-side at various times. We would like >> these scripts to be split into different files, for obvious reasons. We >> envisage that certain files (i.e. standard library and other non >> changing code) may well be bound into the xap file somehow and other >> files may well be dynamically obtained from the back-end. >> >> So far, we've been able to execute ruby files deployed as "Build Action: >> Resource" in VS2008 but, we have not, as yet, been able to get one file >> to require another in a similar manner to the Chiron demos in IronRuby >> 0.9.1. (i.e. app.rb requires Silverlight.rb). >> >> Any help would be greatly appreciated, >> >> Thanks, >> >> Zoltan. >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Fri Oct 2 04:30:35 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 2 Oct 2009 10:30:35 +0200 Subject: [Ironruby-core] IronRuby on NetBeans In-Reply-To: References: Message-ID: I guess you'd have to make ironruby a known platform for Netbeans, perhaps they only check for executable names that have ruby in them. you can try to symlink (ntfslink i believe) ir.exe to ironruby.exe and see where that gets you. (copying should also work) I'm using Rubymine, very similar to netbeans but works with IronRuby. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 2, 2009 at 10:16 AM, Shay Friedman wrote: > Hi friends, > > I was trying to use IronRuby as a Ruby platform in NetBeans but without any > success. It keeps telling me that the interpreter doesn't seem to be a valid > Ruby interpreter. > This is what I have tried without success: > - I figured out that NetBeans was trying to run a file on the path > "C:\program files\NetBeans 6...." which has spaces, so I tried to point it > to a batch file I had created that executes ir "%*". No success. > - Tried to move NetBeans to a directory with no spaces at the path. No > success. > > I guess it's something more than just doing that. From NetBeans log I can > see that it fails every time with the next error: > WARNING [org.netbeans.api.ruby.platform.RubyPlatformManager]: Detection of > platform timeouted > > Is someone familiar enough with NetBeans to find the reason for that? > > Thanks! > Shay. > > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Oct 2 11:32:49 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 2 Oct 2009 15:32:49 +0000 Subject: [Ironruby-core] IronRuby on NetBeans In-Reply-To: References: Message-ID: I don?t know about ntfslink, but I know mklink will work for NTFS symlinks and hard links (and junctions) JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, October 02, 2009 1:31 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby on NetBeans I guess you'd have to make ironruby a known platform for Netbeans, perhaps they only check for executable names that have ruby in them. you can try to symlink (ntfslink i believe) ir.exe to ironruby.exe and see where that gets you. (copying should also work) I'm using Rubymine, very similar to netbeans but works with IronRuby. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 2, 2009 at 10:16 AM, Shay Friedman > wrote: Hi friends, I was trying to use IronRuby as a Ruby platform in NetBeans but without any success. It keeps telling me that the interpreter doesn't seem to be a valid Ruby interpreter. This is what I have tried without success: - I figured out that NetBeans was trying to run a file on the path "C:\program files\NetBeans 6...." which has spaces, so I tried to point it to a batch file I had created that executes ir "%*". No success. - Tried to move NetBeans to a directory with no spaces at the path. No success. I guess it's something more than just doing that. From NetBeans log I can see that it fails every time with the next error: WARNING [org.netbeans.api.ruby.platform.RubyPlatformManager]: Detection of platform timeouted Is someone familiar enough with NetBeans to find the reason for that? Thanks! Shay. -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.radcliffe at gmail.com Fri Oct 2 14:27:33 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Fri, 2 Oct 2009 12:27:33 -0600 Subject: [Ironruby-core] Possible ScriptEngine and parsing bug when converting block to a parameter Message-ID: <131af5e0910021127t5ad5c967o92a8ca89df209d07@mail.gmail.com> I was getting an error trying to use ScriptEngine to require 'win32ole' (Actually, I need this from C#, below example given because its easier to show in IronRuby): >>> IronRuby.create_engine.execute_file('Libs\win32ole.rb') :0: `&' interpreted as argument prefix (Microsoft::Scripting::SyntaxErrorException) Looks like it fails on this line(63): result = strongly_typed_enumerable.each &b #result = strongly_typed_enumerable.each(&b) #Works just fine if we add parens around &b However, ir.exe reads the file with NO error if we just do a normal "require". This is where I'm not sure if this is a bug. Do ScriptEngine and IR.exe (run interactively ONLY) have stricter parsing requirements? I investigated a bit further to get a simpler repro and found some interesting results. Fine processing the code directly: >ruby -e"b = lambda { |x| p x };result = [1,2].each &b" 1 2 >rbx -e"b = lambda { |x| p x };result = [1,2].each &b" 1 2 Argument error comes ONLY when running interactively (or through the ScriptEngine as shown above): >irb irb(main):001:0> b = lambda { |x| p x };result = [1,2].each &b 1 2 => [1, 2] >rbx IronRuby 0.9.1.0 on .NET 2.0.50727.3082 Copyright (c) Microsoft Corporation. All rights reserved. >>> b = lambda { |x| p x };result = [1,2].each &b unknown: `&' interpreted as argument prefix (Microsoft::Scripting::SyntaxErrorException) Again, fine through ir.exe interactive if I parameterize the block: b = lambda { |x| p x };result = [1,2].each(&b) Thanks Best Regards, Kevin From Tomas.Matousek at microsoft.com Fri Oct 2 14:41:33 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 2 Oct 2009 18:41:33 +0000 Subject: [Ironruby-core] Possible ScriptEngine and parsing bug when converting block to a parameter In-Reply-To: <131af5e0910021127t5ad5c967o92a8ca89df209d07@mail.gmail.com> References: <131af5e0910021127t5ad5c967o92a8ca89df209d07@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C066BC6AA@TK5EX14MBXC129.redmond.corp.microsoft.com> Looks like a bug in win32ole.rb: D:\M5\Merlin\Main\Languages\Ruby>ruby -w libs\win32ole.rb libs/win32ole.rb:63: warning: `&' interpreted as argument prefix The default warning levels seem to be different when hosted. It would probably be better to set the default warning level on the same level as ir.exe/ruby does. Will fix both. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Kevin Radcliffe Sent: Friday, October 02, 2009 11:28 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Possible ScriptEngine and parsing bug when converting block to a parameter I was getting an error trying to use ScriptEngine to require 'win32ole' (Actually, I need this from C#, below example given because its easier to show in IronRuby): >>> IronRuby.create_engine.execute_file('Libs\win32ole.rb') :0: `&' interpreted as argument prefix (Microsoft::Scripting::SyntaxErrorException) Looks like it fails on this line(63): result = strongly_typed_enumerable.each &b #result = strongly_typed_enumerable.each(&b) #Works just fine if we add parens around &b However, ir.exe reads the file with NO error if we just do a normal "require". This is where I'm not sure if this is a bug. Do ScriptEngine and IR.exe (run interactively ONLY) have stricter parsing requirements? I investigated a bit further to get a simpler repro and found some interesting results. Fine processing the code directly: >ruby -e"b = lambda { |x| p x };result = [1,2].each &b" 1 2 >rbx -e"b = lambda { |x| p x };result = [1,2].each &b" 1 2 Argument error comes ONLY when running interactively (or through the ScriptEngine as shown above): >irb irb(main):001:0> b = lambda { |x| p x };result = [1,2].each &b 1 2 => [1, 2] >rbx IronRuby 0.9.1.0 on .NET 2.0.50727.3082 Copyright (c) Microsoft Corporation. All rights reserved. >>> b = lambda { |x| p x };result = [1,2].each &b unknown: `&' interpreted as argument prefix (Microsoft::Scripting::SyntaxErrorException) Again, fine through ir.exe interactive if I parameterize the block: b = lambda { |x| p x };result = [1,2].each(&b) Thanks Best Regards, Kevin _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From kevin.radcliffe at gmail.com Fri Oct 2 14:48:03 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Fri, 2 Oct 2009 12:48:03 -0600 Subject: [Ironruby-core] Possible ScriptEngine and parsing bug when converting block to a parameter In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066BC6AA@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <131af5e0910021127t5ad5c967o92a8ca89df209d07@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C066BC6AA@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <131af5e0910021148x6e7c877djccb3ffa4480efc6b@mail.gmail.com> Great! Tomas, thanks also for the speedy follow-up email. Best Regards, Kevin On Fri, Oct 2, 2009 at 12:41 PM, Tomas Matousek wrote: > Looks like a bug in win32ole.rb: > > D:\M5\Merlin\Main\Languages\Ruby>ruby -w libs\win32ole.rb > libs/win32ole.rb:63: warning: `&' interpreted as argument prefix > > The default warning levels seem to be different when hosted. It would probably be better to set the default warning level on the same level as ir.exe/ruby does. > > Will fix both. > > Tomas From ivan at flanders.co.nz Sat Oct 3 11:28:43 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 3 Oct 2009 17:28:43 +0200 Subject: [Ironruby-core] win32api breaks gems on mono Message-ID: Hi The new win32api additions don't work on another OS than windows. This breaks rubygems and most likely rightly so. +ivan at ivan-mbp:~/Downloads/ironruby-2be42fd ? igem list IronRuby.Libraries:0:in `GetFunction': LoadLibrary (System::EntryPointNotFoundException) from :0:in `initialize' from IronRuby.Libraries:0:in `Create' from /usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:48 from etc.rb:0 from :0:in `require' from /usr/local/cloudslide/ironruby/bin/igem:8 from :0:in `require' renaming the win32api.rb file in lib/IronRuby changes the error about kernel32 not being on the system. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Oct 3 16:03:11 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 3 Oct 2009 22:03:11 +0200 Subject: [Ironruby-core] Head broken on non-windows Message-ID: Hi github HEAD version is broken on non windows machines. IronRuby incorrectly reports it's running on windows, I can fix that in the build but if there will by binary distributions an installer or something needs to be created because many of the information from rbconfig is false. Funny here's some output of Config::CONFIG on a debian "COMMON_MACROS"=>"WIN32_LEAN_AND_MEAN", "COMMON_HEADERS"=>"winsock2.h windows.h" "arch"=>"i386-mswin32", "sitearch"=>"i386-msvcrt", "configure_args"=>"--with-make-prog=nmake --enable-shared --with-winsock2", "build_os"=>"mswin32", "host"=>"i686-pc-mswin32", "host_alias"=>"i686-mswin32", "host_cpu"=>"i686", "host_vendor"=>"pc", "host_os"=>"mswin32", <== my favorite "target"=>"i386-pc-mswin32", "target_alias"=>"i386-mswin32", I get the same info when I'm on a mac. This is the cause of a lot of errors in gems etc because they decide they're on windows and things fail. Those issues are easy to fix though. Gems got broken today and I'm pretty sure Win32Api is the reason it's breaking. I propose that IronRuby should detect which OS it's running on and throw a LoadError when it's not windows. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Oct 3 19:44:24 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 4 Oct 2009 01:44:24 +0200 Subject: [Ironruby-core] Code Review: Win32APIPlatformCheck In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066CDA3D@TK5EX14MBXC122.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C066CDA3D@TK5EX14MBXC122.redmond.corp.microsoft.com> Message-ID: Ok. That gets me a little bit further. gems use the tty? method on IO. which in turn calls [DllImport("kernel32")] private extern static IntPtr GetStdHandle(int nStdHandle); [DllImport("kernel32")] private extern static int GetFileType(IntPtr hFile); obviously kernel32 doesn't exist. Will look at making finding the unix equivalent for that. But Win32Api does behave properly now --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sat, Oct 3, 2009 at 10:55 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > tfpt review "/shelveset:Win32APIPlatformCheck;REDMOND\tomat" > Comment : > Adds Win32 platform check to Win32API.rb. > > Tomas > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sun Oct 4 07:18:27 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 4 Oct 2009 13:18:27 +0200 Subject: [Ironruby-core] IoOps fix Message-ID: Hi I've attached a diff with the same content as the link below. It contains the code needed to fix detecting console redirection. http://github.com/casualjim/ironruby/commit/b91e0b912d32c908a9021c738ed23a1635044fd4 I've also looked for more places that have p/invoke stuff /* the first 2 got fixed in this commit */ /Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs (523, 10): [DllImport("kernel32")] /Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/IoOps.cs (526, 10): [DllImport("kernel32")] /* probably no need to fix this one Win32API */ /Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Win32API/Win32API.cs (151, 10): [DllImport("kernel32.dll")] /Users/ivan/src/ironruby.mine/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Win32API/Win32API.cs (154, 10): [DllImport("kernel32.dll")] /* Will ask mono people if this is supposed to work on mono */ /Users/ivan/src/ironruby.mine/Merlin/Main/Runtime/Microsoft.Dynamic/ComInterop/ComRuntimeHelpers.cs (250, 10): [DllImport("oleaut32.dll", PreserveSig = false)] /Users/ivan/src/ironruby.mine/Merlin/Main/Runtime/Microsoft.Dynamic/ComInterop/ComRuntimeHelpers.cs (256, 10): [DllImport("oleaut32.dll", PreserveSig = false)] /Users/ivan/src/ironruby.mine/Merlin/Main/Runtime/Microsoft.Dynamic/ComInterop/ComRuntimeHelpers.cs (731, 10): [DllImport("oleaut32.dll", PreserveSig = false)] --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IoOps.diff Type: application/octet-stream Size: 3968 bytes Desc: not available URL: From lists at ruby-forum.com Sun Oct 4 19:35:33 2009 From: lists at ruby-forum.com (Zoltan Toth) Date: Mon, 5 Oct 2009 01:35:33 +0200 Subject: [Ironruby-core] =?utf-8?q?Newbie_questions_regarding_IronRuby=09i?= =?utf-8?q?n=09Silverlight=2E=2E=2E?= In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com> Message-ID: <50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com> Many thanks to all of your input. Much appreciated! I'll try your suggestions over the next few days and let you know the results. Thanks again, Zoltan. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Oct 5 09:39:09 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 5 Oct 2009 15:39:09 +0200 Subject: [Ironruby-core] build server Message-ID: 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 project that you would like to have added to the build server ping me and we'll work out how you can get going. http://dlrci.colliertech.org/hudson/ --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Oct 5 11:02:02 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 5 Oct 2009 17:02:02 +0200 Subject: [Ironruby-core] build server In-Reply-To: References: Message-ID: You can and are welcome to. I haven't been able to get them to run successfully yet. but I'd love to see the tests running on mono I do have a dev.sh that can be sourced etc. but isn't checked in to this repo yet. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Oct 5, 2009 at 4:40 PM, Jim Deville wrote: > Can we add tests to that? > > > > ------------------------------ > From: Ivan Porto Carrero > Sent: October 05, 2009 6:45 AM > To: ironruby-core > Subject: [Ironruby-core] build server > > 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 project that > you would like to have added to the build server ping me and we'll work out > how you can get going. > > http://dlrci.colliertech.org/hudson/ > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Oct 5 12:02:34 2009 From: lists at ruby-forum.com (Tom Groff) Date: Mon, 5 Oct 2009 18:02:34 +0200 Subject: [Ironruby-core] Confused and Dazed Message-ID: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> Hello everyone, I guess I am looking for an overview of IronRuby. My impression was that one could use it to compile ruby apps using VS.NET. using the VS IDE with debugging and Intellisense. Is this correct or is IronRuby something else? ... Also I do not see any reference as to what to do with the downloaded Zip file. from: http://www.ironruby.net/Download The getting started section doesn't refer to it in any way that I can see. http://www.ironruby.net/Documentation/Getting_Started How does one install the zip file properly? Thanks, -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Mon Oct 5 12:36:57 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 5 Oct 2009 18:36:57 +0200 Subject: [Ironruby-core] Confused and Dazed In-Reply-To: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> References: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> Message-ID: IronRuby is an implementation of Ruby on the .NET platform It isn't integrated in visual studio yet but you can use visual studio to debug ironruby code. 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. You can use the console and ask the type for its methods if you want to use intellisense primarily for discovery. For ruby objects get all methods System::String.methods get instance methods System::String.instance_methods get class (static) methods System::String.methods - System::String.instance_methods To get started extract the downloaded zip file to a folder on your drive and add that folder\bin to your PATH environment variable for example C:\ironruby\bin if you extracted to C:\ironruby --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Oct 5, 2009 at 6:02 PM, Tom Groff wrote: > Hello everyone, > > I guess I am looking for an overview of IronRuby. > > My impression was that one could use it to compile ruby apps using > VS.NET. > using the VS IDE with debugging and Intellisense. > > Is this correct or is IronRuby something else? > > ... > > Also I do not see any reference as to what to do with the downloaded Zip > file. > from: http://www.ironruby.net/Download > > The getting started section doesn't refer to it in any way that I can > see. > http://www.ironruby.net/Documentation/Getting_Started > > How does one install the zip file properly? > > Thanks, > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Oct 5 14:47:11 2009 From: lists at ruby-forum.com (Tom Groff) Date: Mon, 5 Oct 2009 20:47:11 +0200 Subject: [Ironruby-core] Confused and Dazed In-Reply-To: References: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> Message-ID: Thank you for the response. Ivan Porto carrero wrote: > IronRuby is an implementation of Ruby on the .NET platform > It isn't integrated in visual studio yet Okay. Understood. > but you can use visual studio to debug ironruby code. So is there a link that shows a simple step by step process to load and debug a Ruby file? > You can use the console and ask the type for its > methods What console? Do you mean run the ir.exe without an input filename? -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Mon Oct 5 15:59:52 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 5 Oct 2009 19:59:52 +0000 Subject: [Ironruby-core] Confused and Dazed In-Reply-To: References: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C77C8D1@TK5EX14MBXC140.redmond.corp.microsoft.com> http://wiki.github.com/ironruby/ironruby/debugging can get you started on debugging -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tom Groff Sent: Monday, October 05, 2009 11:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Confused and Dazed Thank you for the response. Ivan Porto carrero wrote: > IronRuby is an implementation of Ruby on the .NET platform > It isn't integrated in visual studio yet Okay. Understood. > but you can use visual studio to debug ironruby code. So is there a link that shows a simple step by step process to load and debug a Ruby file? > You can use the console and ask the type for its > methods What console? Do you mean run the ir.exe without an input filename? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Mon Oct 5 16:56:10 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 5 Oct 2009 20:56:10 +0000 Subject: [Ironruby-core] build server In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBE18B@tk5ex14mbxc105.redmond.corp.microsoft.com> Awesome; though we have our own internal CI servers for making sure we always work well with IronPython and the DLR, it'd be great to have this effort be the main build server for IronRuby and things we want to make sure always work well with IronRuby (Rails, Silverlight, etc). We test those things internally as well, but making that stuff run in the public has a lot of value. I would be interesting to also get tests running on Windows; a VM would be just fine for that. Anyone want to talk about it on IRC? ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, October 05, 2009 8:02 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] build server You can and are welcome to. I haven't been able to get them to run successfully yet. but I'd love to see the tests running on mono I do have a dev.sh that can be sourced etc. but isn't checked in to this repo yet. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Oct 5, 2009 at 4:40 PM, Jim Deville > wrote: Can we add tests to that? ________________________________ From: Ivan Porto Carrero > Sent: October 05, 2009 6:45 AM To: ironruby-core > Subject: [Ironruby-core] build server 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 project that you would like to have added to the build server ping me and we'll work out how you can get going. http://dlrci.colliertech.org/hudson/ --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.smith.jr at gmail.com Mon Oct 5 17:17:16 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Mon, 5 Oct 2009 14:17:16 -0700 Subject: [Ironruby-core] IronRuby issues with arrays of System::Type Message-ID: <21192f970910051417p22fe8c0fq639e02d33b654f76@mail.gmail.com> Hello, If i run the following code: a = System::Array[System::Type].new(5) a[0] I get an invocation error. However, if I instead on the second line type: a.get_value(0) I get nil back as expected. Is this a bug with arrays of System::Type specifically? Thanks, Martin From Tomas.Matousek at microsoft.com Mon Oct 5 18:18:51 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 5 Oct 2009 22:18:51 +0000 Subject: [Ironruby-core] IronRuby issues with arrays of System::Type In-Reply-To: <21192f970910051417p22fe8c0fq639e02d33b654f76@mail.gmail.com> References: <21192f970910051417p22fe8c0fq639e02d33b654f76@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C066EE997@TK5EX14MBXC129.redmond.corp.microsoft.com> Interesting. I've filed a bug: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2686 Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith Sent: Monday, October 05, 2009 2:17 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IronRuby issues with arrays of System::Type Hello, If i run the following code: a = System::Array[System::Type].new(5) a[0] I get an invocation error. However, if I instead on the second line type: a.get_value(0) I get nil back as expected. Is this a bug with arrays of System::Type specifically? Thanks, Martin _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From martin.smith.jr at gmail.com Mon Oct 5 19:22:29 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Mon, 5 Oct 2009 16:22:29 -0700 Subject: [Ironruby-core] IronRuby issues with arrays of System::Type In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066EE997@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <21192f970910051417p22fe8c0fq639e02d33b654f76@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C066EE997@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <21192f970910051622j3c2d9f06rb9c7ea6174c5da4f@mail.gmail.com> Thanks Tomas. Martin On Mon, Oct 5, 2009 at 3:18 PM, Tomas Matousek wrote: > Interesting. I've filed a bug: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2686 > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith > Sent: Monday, October 05, 2009 2:17 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] IronRuby issues with arrays of System::Type > > Hello, > > If i run the following code: > > a = System::Array[System::Type].new(5) > a[0] > > I get an invocation error. > > However, if I instead on the second line type: > > a.get_value(0) > > I get nil back as expected. ?Is this a bug with arrays of System::Type specifically? > > Thanks, > Martin > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From lists at ruby-forum.com Tue Oct 6 12:57:47 2009 From: lists at ruby-forum.com (Huw Collingbourne) Date: Tue, 6 Oct 2009 18:57:47 +0200 Subject: [Ironruby-core] Confused and Dazed In-Reply-To: References: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> Message-ID: <4b7037d1c01f66650aa4aa42c8f879e4@ruby-forum.com> 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 is currently only for standard Ruby, however. While we do have a Visual Studio IDE that supports IronRuby, we released that a long time ago to support in-development releases of IR and this is far more basic than our commercial VS IDE for standard Ruby. We won't be doing any more work on our IronRuby IDE until after the launch of IronRuby 1.0. best wishes Huw Collingbourne SapphireSteel Software http://www.sapphiresteel.com -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Tue Oct 6 15:46:49 2009 From: lists at ruby-forum.com (Tom Groff) Date: Tue, 6 Oct 2009 21:46:49 +0200 Subject: [Ironruby-core] Confused and Dazed In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C77C8D1@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C77C8D1@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: 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 opening a project shows no templates for IR. I would have thought that would be the first step. Can someone break this down for me? -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Tue Oct 6 16:11:15 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 6 Oct 2009 20:11:15 +0000 Subject: [Ironruby-core] Confused and Dazed In-Reply-To: References: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C77C8D1@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBF4A3@tk5ex14mbxc105.redmond.corp.microsoft.com> 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 very basic steps to getting started with Iron Ruby. > Documentation keeps talking about something called Merlin? > Opening VS.NET and looking at opening a project shows no templates for IR. > I would have thought that would be the first step. > Can someone break this down for me? Those instructions are geared towards contributors to IronRuby debugging Ruby code, as it is on GitHub. "Merlin" is a directory in the IronRuby source tree. However, replacing "c:\vsl\Merlin\Main\Bin\Debug" with your path to "ir.exe" (if you have the latest path, it's "wherever/you/unzipped/it/bin/ir.exe") is good enough for most of that documentation. Visual Studio does not have any IronRuby project-system support when you install it. However, being able to debug a IronRuby script is entirely dependent on IronRuby providing the correct information to the Visual Studio debugger. Though the support isn't great, you can place breakpoints in a Ruby script and step through it in VS: 1. Place a "gets" call as the first line of the Ruby script. 2. Run "ir.exe -D yourrubyscript.rb 3. Launch VS, and open yourrubyscript.rb. 4. Place a breakpoint somewhere in your code. 5. Launch VS, and go-to Tools > Attach to Process 6. Select the ir.exe process. 7. Switch back to your running Ruby script, and press "Enter". Now the script will run and the debugger will break at your breakpoint in Ruby code. Support for IronRuby debugging in VS has plenty of room to get better, especially if we had a project-system for Ruby to remove the need for starting the process yourself and attaching to it. We could also be better about emitting debug information so stepping into blocks/ifs/whiles/etc where easier/possible. Also, if IronRuby supported ruby-debug (which it does not today), then IronRuby could be debugged by any existing Ruby IDE. Today I use this very simple Ruby script to debug my IronRuby code: http://gist.github.com/116393. It just gives you a little repl loop wherever you ask for it; like "ruby-debug" but without the ability to step. Let me know if you have any more questions about debugging in Visual Studio, and keep an eye on this list for more information about Ruby debugging as we get closer to 1.0. ~Jimmy From lists at ruby-forum.com Tue Oct 6 16:47:14 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Tue, 6 Oct 2009 22:47:14 +0200 Subject: [Ironruby-core] C# running ruby scripts give error: no such file to load Message-ID: 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 Testscripts located in: K:\Testscripts\Specific These testscripts uses custom made libraries located in: K:\Testscripts\Common But also they use standard ruby libraries located in: C:\Ruby\lib\... So the top of the testscripts can look someting like: Testscript1.rb require '../Common/LibTestCase1' require '../Common/LibTestCase2' ... or Testscript2.rb require 'win32ole' require 'ftools' ... Now the problem: Running these these testscripts from the C# application (using e.g. engine.ExecuteFile) results in the error: no such file to load -- '../Common/LibTestCase1' or 'win32ole' or whatever file is required. It seems the scripts (or application) is trying to located the file relative to the path the application is located. This leads me to the workaround. Before running the testscript from the application change the current directory of the application to the location of the testscripts (using Environment.CurrentDirectory = K:\Testscripts\Specific) Since testscripts can be located deeper in the directory stucture I need to keep changing the current directory of the application. You'll understand that this is a pretty sucky workaround. I have tried using SetLoadPath to include the directories where the required files can be found, but this still gives the same error. So I am looking for a more flexibel solution for this problem. Hopefully someone here provide information to stear me in the correct direction. Thanks in advance -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Tue Oct 6 17:06:22 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 6 Oct 2009 21:06:22 +0000 Subject: [Ironruby-core] C# running ruby scripts give error: no such file to load In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBF5B0@tk5ex14mbxc105.redmond.corp.microsoft.com> 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 File.dirname(__FILE__) + '/../Common/LibTestCase2' You could also add "File.dirname(__FILE__) + '/../Common/'" to the path like this: $: << File.dirname(__FILE__) + '/../Common/' So then requires can just be: require 'LibTestCase1' require 'LibTestCase2' These are just issues related to how Ruby deals with relative paths and the current directory, regardless of whether you ran the code from C# or not. However, it should find win32ole just fine ... do you have an app.config for your C# app which sets the load path (see ir.exe.config for example). ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Eelco Henderichs > Sent: Tuesday, October 06, 2009 1:47 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] C# running ruby scripts give error: no such file to > load > > 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 > > Testscripts located in: > K:\Testscripts\Specific > > These testscripts uses custom made libraries located in: > K:\Testscripts\Common > > But also they use standard ruby libraries located in: > C:\Ruby\lib\... > > So the top of the testscripts can look someting like: > > Testscript1.rb > require '../Common/LibTestCase1' > require '../Common/LibTestCase2' > ... > or > > Testscript2.rb > require 'win32ole' > require 'ftools' > ... > > Now the problem: > > Running these these testscripts from the C# application (using e.g. > engine.ExecuteFile) results in the error: no such file to load -- > '../Common/LibTestCase1' or 'win32ole' or whatever file is required. > It seems the scripts (or application) is trying to located the file relative to the > path the application is located. > > This leads me to the workaround. Before running the testscript from the > application change the current directory of the application to the location of > the testscripts (using Environment.CurrentDirectory = > K:\Testscripts\Specific) > > Since testscripts can be located deeper in the directory stucture I need to > keep changing the current directory of the application. You'll understand that > this is a pretty sucky workaround. > > I have tried using SetLoadPath to include the directories where the required > files can be found, but this still gives the same error. > > So I am looking for a more flexibel solution for this problem. Hopefully > someone here provide information to stear me in the correct direction. > > Thanks in advance > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Tue Oct 6 18:51:20 2009 From: lists at ruby-forum.com (Tom Groff) Date: Wed, 7 Oct 2009 00:51:20 +0200 Subject: [Ironruby-core] Confused and Dazed In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBF4A3@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <8fb51fc4890c6e690275fe1f36ca3781@ruby-forum.com> <8E45365BECA665489F3CB8878A6C1B7D0C77C8D1@TK5EX14MBXC140.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEBF4A3@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: 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/. From lists at ruby-forum.com Tue Oct 6 19:18:31 2009 From: lists at ruby-forum.com (Nathan Stults) Date: Wed, 7 Oct 2009 01:18:31 +0200 Subject: [Ironruby-core] Native Extensions Message-ID: 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? I'd love to use IronRuby to embed Thin or Mongrel in my .NET services, but from from my few experiments it looks like most of the networking libraries these servers use tend to rely on native dll's. -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Tue Oct 6 20:59:48 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 7 Oct 2009 00:59:48 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> 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 current work-around for libraries which use native code to communicate with the OS or Ruby is to rewrite those using .NET so IronRuby can use them. Mongrel is actually \mostly Ruby code, as most Ruby libraries which use native code; there is usually a very small part of the library which depends on native code. For Mongrel, the HTTP 1.1 parser is the only native piece; rewriting that in C# would allow you to run Mongrel on .NET. IMO, after 1.0 would be the time to consider supporting the native Ruby API. ~Jimmy ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [lists at ruby-forum.com] Sent: Tuesday, October 06, 2009 4:18 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Native Extensions 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? I'd love to use IronRuby to embed Thin or Mongrel in my .NET services, but from from my few experiments it looks like most of the networking libraries these servers use tend to rely on native dll's. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Nathan_Stults at HSIHealth.com Tue Oct 6 21:09:45 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Tue, 6 Oct 2009 18:09:45 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> 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 required the new .NET HTTP parser dll instead of the C version? Is that how that would work? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, October 06, 2009 6:00 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions 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 current work-around for libraries which use native code to communicate with the OS or Ruby is to rewrite those using .NET so IronRuby can use them. Mongrel is actually \mostly Ruby code, as most Ruby libraries which use native code; there is usually a very small part of the library which depends on native code. For Mongrel, the HTTP 1.1 parser is the only native piece; rewriting that in C# would allow you to run Mongrel on .NET. IMO, after 1.0 would be the time to consider supporting the native Ruby API. ~Jimmy ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [lists at ruby-forum.com] Sent: Tuesday, October 06, 2009 4:18 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Native Extensions 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? I'd love to use IronRuby to embed Thin or Mongrel in my .NET services, but from from my few experiments it looks like most of the networking libraries these servers use tend to rely on native dll's. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Wed Oct 7 00:57:49 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 7 Oct 2009 04:57:49 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C77F7E8@TK5EX14MBXC140.redmond.corp.microsoft.com> 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 supports neither FFI nor Ruby/dl. So you would have to use pinvokes from C# for now. FWIW, another alternative is implementing something like IronClad (http://code.google.com/p/ironclad/) which would allow native extensions to work as is, but this is a large feature. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Tuesday, October 06, 2009 6:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions 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 required the new .NET HTTP parser dll instead of the C version? Is that how that would work? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, October 06, 2009 6:00 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions 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 current work-around for libraries which use native code to communicate with the OS or Ruby is to rewrite those using .NET so IronRuby can use them. Mongrel is actually \mostly Ruby code, as most Ruby libraries which use native code; there is usually a very small part of the library which depends on native code. For Mongrel, the HTTP 1.1 parser is the only native piece; rewriting that in C# would allow you to run Mongrel on .NET. IMO, after 1.0 would be the time to consider supporting the native Ruby API. ~Jimmy ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [lists at ruby-forum.com] Sent: Tuesday, October 06, 2009 4:18 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Native Extensions 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? I'd love to use IronRuby to embed Thin or Mongrel in my .NET services, but from from my few experiments it looks like most of the networking libraries these servers use tend to rely on native dll's. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From suppakilla at gmail.com Wed Oct 7 02:39:18 2009 From: suppakilla at gmail.com (Daniele Alessandri) Date: Wed, 7 Oct 2009 08:39:18 +0200 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> Message-ID: <3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com> 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 mongrel library 4- have fun. I did the same for hpricot and json (whose parsers are generated using Ragel), so I guess that should work for Mongrel too :-) On Wed, Oct 7, 2009 at 03:09, Nathan Stults wrote: > 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 required the new .NET HTTP parser dll instead of the C > version? Is that how that would work? > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Tuesday, October 06, 2009 6:00 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > 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 current work-around for libraries which use native code to > communicate with the OS or Ruby is to rewrite those using .NET so > IronRuby can use them. Mongrel is actually \mostly Ruby code, as most > Ruby libraries which use native code; there is usually a very small part > of the library which depends on native code. For Mongrel, the HTTP 1.1 > parser is the only native piece; rewriting that in C# would allow you to > run Mongrel on .NET. > > IMO, after 1.0 would be the time to consider supporting the native Ruby > API. > > ~Jimmy > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [lists at ruby-forum.com] > Sent: Tuesday, October 06, 2009 4:18 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Native Extensions > > 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? I'd love to > use IronRuby to embed Thin or Mongrel in my .NET services, but from from > my few experiments it looks like most of the networking libraries these > servers use tend to rely on native dll's. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Daniele Alessandri http://www.clorophilla.net/blog/ http://twitter.com/JoL1hAHN From Jimmy.Schementi at microsoft.com Wed Oct 7 04:44:50 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 7 Oct 2009 08:44:50 +0000 Subject: [Ironruby-core] IronRuby website sitemap In-Reply-To: References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFF55@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <8E9BD2EB-05DC-4CD2-8E21-F703B484AF14@microsoft.com> On Oct 7, 2009, at 12:38 AM, "Shay Friedman" > wrote: Looks great Jimmy! 2 suggestions: - A page about real world usages from people outside the IronRuby team. "Successful Stories" or something like that :) A page on the wiki seems best for that, but it could be linked to in a more prominent place. - A page about the future plans for IronRuby. The roadmap should show that (yet another wiki page), but we'd need to keep it more uptodate than currently. Thanks, Shay Thanks for the input! ---------------------------------------------------------- Shay Friedman Author of "IronRuby Unleashed" http://www.IronShay.com Follow me: http://twitter.com/ironshay On Wed, Oct 7, 2009 at 9:19 AM, Jimmy Schementi <Jimmy.Schementi at microsoft.com> wrote: Here's a sitemap for the new IronRuby website that I just wrote up. Let me know if there's something else missing, or you'd like to help with parts. * Documentation (docs.ironruby.net) * API documentation (generated from source code, xml comments, rdoc, etc). * Other generated documentation (tutorial, etc) * Hand-written documentation. (.NET interop mainly) * Why Iron* (ironruby.net/why) * scenarios where Iron* languages are useful (.NET interop, performance, etc * Screencasts showing these things in action * Download (ironruby.net/download) * Latest stable/development release * other downloads (samples, etc) * installation instructions (getting-started) * Community (ironruby.net/community) * Blogs (core team + active community members) * Twitter * IRC channel * Mailing list (user + core-team) * Bug trackers * Contribute (ironruby.net/contribute) * Get source code from (CodePlex|GitHub) * Report (fix) bugs * Other contribution ideas * News and Articles (various urls) * Blogfeeds * Twitter * Team blog * Other notable articles _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Oct 7 06:56:48 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Wed, 7 Oct 2009 12:56:48 +0200 Subject: [Ironruby-core] =?utf-8?q?C=23_running_ruby_scripts_give_error=3A?= =?utf-8?q?_no_such_file_to=09load?= In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBF5B0@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBF5B0@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: Thanks, I wasn't aware I should set all loadpaths from within the application to use the 'win32ole'. Now it finds the win32ole, but it gives an error when trying to execute the require. On require 'win32ole' the following error is displayed. The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) I have no idea what this means. -- Posted via http://www.ruby-forum.com/. From thibaut.barrere at gmail.com Wed Oct 7 08:16:03 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 7 Oct 2009 14:16:03 +0200 Subject: [Ironruby-core] Native Extensions In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C77F7E8@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <8E45365BECA665489F3CB8878A6C1B7D0C77F7E8@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0910070516v7625eb24n84c0c6b682bbea49@mail.gmail.com> > IronRuby supports neither FFI nor Ruby/dl. So you would have to use pinvokes from C# for now. just wondering: is there a remotely vague intention of having FFI support at some point for IronRuby ? just curious if someone actually thought about implementing this, -- Thibaut From lists at ruby-forum.com Wed Oct 7 09:46:09 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Wed, 7 Oct 2009 15:46:09 +0200 Subject: [Ironruby-core] =?utf-8?q?C=23_running_ruby_scripts_give_error=3A?= =?utf-8?q?_no_such_file_to=09load?= In-Reply-To: References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBF5B0@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <1b0c0ca09fe10d973b5bea9beb6b4e95@ruby-forum.com> Seemed the script required the 'win32ole' from Ruby and not IronRuby. Using the IronRuby win32ole class does not give any errors. Eelco Henderichs wrote: > Thanks, I wasn't aware I should set all loadpaths from within the > application to use the 'win32ole'. > > Now it finds the win32ole, but it gives an error when trying to execute > the require. > > On require 'win32ole' the following error is displayed. > The module was expected to contain an assembly manifest. (Exception from > HRESULT: 0x80131018) > > I have no idea what this means. -- Posted via http://www.ruby-forum.com/. From Nathan_Stults at HSIHealth.com Wed Oct 7 13:29:24 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Wed, 7 Oct 2009 10:29:24 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: <3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7A81D@hsi-fs.HSIHealth.local> Great, I'll study your code to give me a head start. If I run into trouble I'll be sure to bug you :) I had never heard of Ragel until I started looking into Ruby the last couple of weeks - is it just a parser generator like any other? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele Alessandri Sent: Tuesday, October 06, 2009 11:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions 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 mongrel library 4- have fun. I did the same for hpricot and json (whose parsers are generated using Ragel), so I guess that should work for Mongrel too :-) On Wed, Oct 7, 2009 at 03:09, Nathan Stults wrote: > 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 required the new .NET HTTP parser dll instead of the C > version? Is that how that would work? > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Tuesday, October 06, 2009 6:00 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > 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 current work-around for libraries which use native code to > communicate with the OS or Ruby is to rewrite those using .NET so > IronRuby can use them. Mongrel is actually \mostly Ruby code, as most > Ruby libraries which use native code; there is usually a very small part > of the library which depends on native code. For Mongrel, the HTTP 1.1 > parser is the only native piece; rewriting that in C# would allow you to > run Mongrel on .NET. > > IMO, after 1.0 would be the time to consider supporting the native Ruby > API. > > ~Jimmy > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [lists at ruby-forum.com] > Sent: Tuesday, October 06, 2009 4:18 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Native Extensions > > 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? I'd love to > use IronRuby to embed Thin or Mongrel in my .NET services, but from from > my few experiments it looks like most of the networking libraries these > servers use tend to rely on native dll's. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Daniele Alessandri http://www.clorophilla.net/blog/ http://twitter.com/JoL1hAHN _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Wed Oct 7 14:11:26 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 7 Oct 2009 18:11:26 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <4a68b8cf0910070516v7625eb24n84c0c6b682bbea49@mail.gmail.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <8E45365BECA665489F3CB8878A6C1B7D0C77F7E8@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf0910070516v7625eb24n84c0c6b682bbea49@mail.gmail.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7830FD@TK5EX14MBXC140.redmond.corp.microsoft.com> It's is a large workitem, so it would be post 1.0. Tomas thinks some of the code can be reused from the IronPython equivalent (the ctypes library), but it would still be a fair amount of work. I think Win32API is a weak equivalent, and someone could start playing with it for accessing native extension. There would be work on the native extensions to expose the functionality as dllexports, and this can be pushed on right now without waiting for IronRuby to support FFI... -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, October 07, 2009 5:16 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions > IronRuby supports neither FFI nor Ruby/dl. So you would have to use pinvokes from C# for now. just wondering: is there a remotely vague intention of having FFI support at some point for IronRuby ? just curious if someone actually thought about implementing this, -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Wed Oct 7 14:36:33 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 7 Oct 2009 18:36:33 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C7830FD@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <8E45365BECA665489F3CB8878A6C1B7D0C77F7E8@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf0910070516v7625eb24n84c0c6b682bbea49@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C7830FD@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C066F2D97@TK5EX14MBXC129.redmond.corp.microsoft.com> On the other hand, using a native extension is worse than using a pure C#/Ruby equivalent. Native interop doesn't work in partial trust (Silverlight, web servers, etc) and supporting more platforms (Windows, Linux, MacOS, etc) would need more work. So if there is some useful Ruby native extension with stable API it makes sense to implement it in Ruby with .NET interop or directly in C#. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Wednesday, October 07, 2009 11:11 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions It's is a large workitem, so it would be post 1.0. Tomas thinks some of the code can be reused from the IronPython equivalent (the ctypes library), but it would still be a fair amount of work. I think Win32API is a weak equivalent, and someone could start playing with it for accessing native extension. There would be work on the native extensions to expose the functionality as dllexports, and this can be pushed on right now without waiting for IronRuby to support FFI... -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, October 07, 2009 5:16 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions > IronRuby supports neither FFI nor Ruby/dl. So you would have to use pinvokes from C# for now. just wondering: is there a remotely vague intention of having FFI support at some point for IronRuby ? just curious if someone actually thought about implementing this, -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Wed Oct 7 16:09:52 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 7 Oct 2009 22:09:52 +0200 Subject: [Ironruby-core] Native Extensions In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066F2D97@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <8E45365BECA665489F3CB8878A6C1B7D0C77F7E8@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf0910070516v7625eb24n84c0c6b682bbea49@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C7830FD@TK5EX14MBXC140.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C066F2D97@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: +1 for CLR/C# extensions --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 7, 2009 at 8:36 PM, Tomas Matousek wrote: > On the other hand, using a native extension is worse than using a pure > C#/Ruby equivalent. Native interop doesn't work in partial trust > (Silverlight, web servers, etc) and supporting more platforms (Windows, > Linux, MacOS, etc) would need more work. So if there is some useful Ruby > native extension with stable API it makes sense to implement it in Ruby with > .NET interop or directly in C#. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Wednesday, October 07, 2009 11:11 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > It's is a large workitem, so it would be post 1.0. Tomas thinks some of the > code can be reused from the IronPython equivalent (the ctypes library), but > it would still be a fair amount of work. > > I think Win32API is a weak equivalent, and someone could start playing with > it for accessing native extension. There would be work on the native > extensions to expose the functionality as dllexports, and this can be pushed > on right now without waiting for IronRuby to support FFI... > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re > Sent: Wednesday, October 07, 2009 5:16 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > > IronRuby supports neither FFI nor Ruby/dl. So you would have to use > pinvokes from C# for now. > > just wondering: is there a remotely vague intention of having FFI support > at some point for IronRuby ? > > just curious if someone actually thought about implementing this, > > -- Thibaut > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Oct 7 16:11:53 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 7 Oct 2009 20:11:53 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066F2D97@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <8E45365BECA665489F3CB8878A6C1B7D0C77F7E8@TK5EX14MBXC140.redmond.corp.microsoft.com> <4a68b8cf0910070516v7625eb24n84c0c6b682bbea49@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D0C7830FD@TK5EX14MBXC140.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C066F2D97@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7832F5@TK5EX14MBXC140.redmond.corp.microsoft.com> Yup, we will need a mix of both approaches. Reimplementing in C# gives more flexibility in being able to run on any CLR, but is also expensive. Being able to use FFI can give access to more extensions quickly and cheaply, but will not have the same reach as a managed reimplementation. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Wednesday, October 07, 2009 11:37 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions On the other hand, using a native extension is worse than using a pure C#/Ruby equivalent. Native interop doesn't work in partial trust (Silverlight, web servers, etc) and supporting more platforms (Windows, Linux, MacOS, etc) would need more work. So if there is some useful Ruby native extension with stable API it makes sense to implement it in Ruby with .NET interop or directly in C#. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Wednesday, October 07, 2009 11:11 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions It's is a large workitem, so it would be post 1.0. Tomas thinks some of the code can be reused from the IronPython equivalent (the ctypes library), but it would still be a fair amount of work. I think Win32API is a weak equivalent, and someone could start playing with it for accessing native extension. There would be work on the native extensions to expose the functionality as dllexports, and this can be pushed on right now without waiting for IronRuby to support FFI... -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, October 07, 2009 5:16 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions > IronRuby supports neither FFI nor Ruby/dl. So you would have to use pinvokes from C# for now. just wondering: is there a remotely vague intention of having FFI support at some point for IronRuby ? just curious if someone actually thought about implementing this, -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Nathan_Stults at HSIHealth.com Wed Oct 7 19:54:28 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Wed, 7 Oct 2009 16:54:28 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: <3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local> I spent a day chasing my tail and, upon catching it, realized my DLR/IronRuby knowledge just isn't up to the challenge. Maybe someday. As an alternative, I'm going to see if the IronRuby.Rack stuff on Git can teach me what I need to wire Rack up to one of these embeddable .NET HTTP servers: http://www.codeplex.com/webserver, http://runkayak.com/getstarted, which ought to provide the same benefit, and possibly perform a little better as well. Is anyone aware of other embeddable .NET HTTP server projects? (http://github.com/jschementi/ironruby/tree/92932a672921a03210c8aefe23ac 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele Alessandri Sent: Tuesday, October 06, 2009 11:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions 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 mongrel library 4- have fun. I did the same for hpricot and json (whose parsers are generated using Ragel), so I guess that should work for Mongrel too :-) On Wed, Oct 7, 2009 at 03:09, Nathan Stults wrote: > 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 required the new .NET HTTP parser dll instead of the C > version? Is that how that would work? > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Tuesday, October 06, 2009 6:00 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > 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 current work-around for libraries which use native code to > communicate with the OS or Ruby is to rewrite those using .NET so > IronRuby can use them. Mongrel is actually \mostly Ruby code, as most > Ruby libraries which use native code; there is usually a very small part > of the library which depends on native code. For Mongrel, the HTTP 1.1 > parser is the only native piece; rewriting that in C# would allow you to > run Mongrel on .NET. > > IMO, after 1.0 would be the time to consider supporting the native Ruby > API. > > ~Jimmy > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [lists at ruby-forum.com] > Sent: Tuesday, October 06, 2009 4:18 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Native Extensions > > 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? I'd love to > use IronRuby to embed Thin or Mongrel in my .NET services, but from from > my few experiments it looks like most of the networking libraries these > servers use tend to rely on native dll's. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Daniele Alessandri http://www.clorophilla.net/blog/ http://twitter.com/JoL1hAHN _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Wed Oct 7 20:12:16 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 8 Oct 2009 00:12:16 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local> <3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com> The HttpHandler is the only piece you'll have to replace, since it's specifically for IIS, and provide your own hookup to the server you choose. You'll have to construct the HttpRequest/Response objects also, but all-in-all it should be pretty straight-forward. Those two look like great .NET web-server projects; "webserver" is like a web-framework too, which is cool. Whatever you do, DON'T use Chiron, as it's not intended to be a real web-server (it doesn't support POST requests, and only listens on localhost). ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Nathan Stults > Sent: Wednesday, October 07, 2009 4:54 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > I spent a day chasing my tail and, upon catching it, realized my DLR/IronRuby > knowledge just isn't up to the challenge. Maybe someday. As an alternative, > I'm going to see if the IronRuby.Rack stuff on Git can teach me what I need to > wire Rack up to one of these embeddable .NET HTTP servers: > http://www.codeplex.com/webserver, > http://runkayak.com/getstarted, which ought to provide the same benefit, > and possibly perform a little better as well. Is anyone aware of other > embeddable .NET HTTP server projects? > > (http://github.com/jschementi/ironruby/tree/92932a672921a03210c8aefe23 > ac > 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele > Alessandri > Sent: Tuesday, October 06, 2009 11:39 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > 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 > mongrel library > 4- have fun. > > I did the same for hpricot and json (whose parsers are generated using > Ragel), so I guess that should work for Mongrel too :-) > > > On Wed, Oct 7, 2009 at 03:09, Nathan Stults > wrote: > > 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 required the new .NET HTTP parser dll instead of the C > > version? Is that how that would work? > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > > Schementi > > Sent: Tuesday, October 06, 2009 6:00 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Native Extensions > > > > 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 current work-around for libraries which use native code to > > communicate with the OS or Ruby is to rewrite those using .NET so > > IronRuby can use them. Mongrel is actually \mostly Ruby code, as most > > Ruby libraries which use native code; there is usually a very small > part > > of the library which depends on native code. For Mongrel, the HTTP 1.1 > > parser is the only native piece; rewriting that in C# would allow you > to > > run Mongrel on .NET. > > > > IMO, after 1.0 would be the time to consider supporting the native > Ruby > > API. > > > > ~Jimmy > > ________________________________________ > > From: ironruby-core-bounces at rubyforge.org > > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > > [lists at ruby-forum.com] > > Sent: Tuesday, October 06, 2009 4:18 PM > > To: ironruby-core at rubyforge.org > > Subject: [Ironruby-core] Native Extensions > > > > 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? I'd love > to > > use IronRuby to embed Thin or Mongrel in my .NET services, but from > from > > my few experiments it looks like most of the networking libraries > these > > servers use tend to rely on native dll's. > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > -- > Daniele Alessandri > http://www.clorophilla.net/blog/ > http://twitter.com/JoL1hAHN > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Thu Oct 8 02:30:02 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 8 Oct 2009 06:30:02 +0000 Subject: [Ironruby-core] Code Review: Defined In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066F320B@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C066F320B@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC4003@tk5ex14mbxc105.redmond.corp.microsoft.com> Looks good to me ________________________________________ From: Tomas Matousek Sent: Wednesday, October 07, 2009 7:40 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Defined tfpt review "/shelveset:Defined;REDMOND\tomat" Comment : Implements defined?(super) and fixes defined? applied on a method call to respect visibility. Fixes: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1354 Tomas From Nathan_Stults at HSIHealth.com Thu Oct 8 03:26:01 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 8 Oct 2009 00:26:01 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local> Ahh nice clean, brief code. Now this I can handle. I do have a question though about threading - it looks like in your implementation the whole apparatus is essentially single threaded, i.e. there is a single handler maintained by the factory, and the single handler locks itself for the duration of the request - this suggests to me that ScriptEngine (or at least RubyEngine) is not thread-safe? Is that the case, or was the threading designed for simplicity? For instance, if in my implementation I took a lock on the RubyEngine just long enough to obtain a new scope to handle the request, would that do? Or does it pretty much need to be 1 thread = 1 script engine? If the latter is the case, would there be any caveats to maintaining a small pool of engines that could handle a few simultaneous requests? To be honest, this almost certainly won't make a bit of difference to my use case of embedding a web server in an application server, traffic just won't be that high, but mostly I'm just curious about the platform. Thanks, Nathan -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, October 07, 2009 5:12 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions The HttpHandler is the only piece you'll have to replace, since it's specifically for IIS, and provide your own hookup to the server you choose. You'll have to construct the HttpRequest/Response objects also, but all-in-all it should be pretty straight-forward. Those two look like great .NET web-server projects; "webserver" is like a web-framework too, which is cool. Whatever you do, DON'T use Chiron, as it's not intended to be a real web-server (it doesn't support POST requests, and only listens on localhost). ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Nathan Stults > Sent: Wednesday, October 07, 2009 4:54 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > I spent a day chasing my tail and, upon catching it, realized my DLR/IronRuby > knowledge just isn't up to the challenge. Maybe someday. As an alternative, > I'm going to see if the IronRuby.Rack stuff on Git can teach me what I need to > wire Rack up to one of these embeddable .NET HTTP servers: > http://www.codeplex.com/webserver, > http://runkayak.com/getstarted, which ought to provide the same benefit, > and possibly perform a little better as well. Is anyone aware of other > embeddable .NET HTTP server projects? > > (http://github.com/jschementi/ironruby/tree/92932a672921a03210c8aefe23 > ac > 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele > Alessandri > Sent: Tuesday, October 06, 2009 11:39 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > 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 > mongrel library > 4- have fun. > > I did the same for hpricot and json (whose parsers are generated using > Ragel), so I guess that should work for Mongrel too :-) > > > On Wed, Oct 7, 2009 at 03:09, Nathan Stults > wrote: > > 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 required the new .NET HTTP parser dll instead of the C > > version? Is that how that would work? > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > > Schementi > > Sent: Tuesday, October 06, 2009 6:00 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Native Extensions > > > > 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 current work-around for libraries which use native code to > > communicate with the OS or Ruby is to rewrite those using .NET so > > IronRuby can use them. Mongrel is actually \mostly Ruby code, as most > > Ruby libraries which use native code; there is usually a very small > part > > of the library which depends on native code. For Mongrel, the HTTP 1.1 > > parser is the only native piece; rewriting that in C# would allow you > to > > run Mongrel on .NET. > > > > IMO, after 1.0 would be the time to consider supporting the native > Ruby > > API. > > > > ~Jimmy > > ________________________________________ > > From: ironruby-core-bounces at rubyforge.org > > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > > [lists at ruby-forum.com] > > Sent: Tuesday, October 06, 2009 4:18 PM > > To: ironruby-core at rubyforge.org > > Subject: [Ironruby-core] Native Extensions > > > > 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? I'd love > to > > use IronRuby to embed Thin or Mongrel in my .NET services, but from > from > > my few experiments it looks like most of the networking libraries > these > > servers use tend to rely on native dll's. > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > -- > Daniele Alessandri > http://www.clorophilla.net/blog/ > http://twitter.com/JoL1hAHN > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Thu Oct 8 03:53:34 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 8 Oct 2009 07:53:34 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com> That lock is there because Rails wasn't thread-safe at the time of writing; it has no reflection on whether ScriptEngine is thread-safe. I believe ScriptEngine is thread-safe, as only one ScriptEngine per language can EVER exist when you have only one ScriptRuntime. Rails is much more thread-safe than it used to be, so that lock should be removed; IMO it should have never been there as the Rack adapter shouldn't care about Rails; it should lock if the rack.multithreaded flag is true. ~js ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [Nathan_Stults at HSIHealth.com] Sent: Thursday, October 08, 2009 12:26 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions Ahh nice clean, brief code. Now this I can handle. I do have a question though about threading - it looks like in your implementation the whole apparatus is essentially single threaded, i.e. there is a single handler maintained by the factory, and the single handler locks itself for the duration of the request - this suggests to me that ScriptEngine (or at least RubyEngine) is not thread-safe? Is that the case, or was the threading designed for simplicity? For instance, if in my implementation I took a lock on the RubyEngine just long enough to obtain a new scope to handle the request, would that do? Or does it pretty much need to be 1 thread = 1 script engine? If the latter is the case, would there be any caveats to maintaining a small pool of engines that could handle a few simultaneous requests? To be honest, this almost certainly won't make a bit of difference to my use case of embedding a web server in an application server, traffic just won't be that high, but mostly I'm just curious about the platform. Thanks, Nathan -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, October 07, 2009 5:12 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions The HttpHandler is the only piece you'll have to replace, since it's specifically for IIS, and provide your own hookup to the server you choose. You'll have to construct the HttpRequest/Response objects also, but all-in-all it should be pretty straight-forward. Those two look like great .NET web-server projects; "webserver" is like a web-framework too, which is cool. Whatever you do, DON'T use Chiron, as it's not intended to be a real web-server (it doesn't support POST requests, and only listens on localhost). ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Nathan Stults > Sent: Wednesday, October 07, 2009 4:54 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > I spent a day chasing my tail and, upon catching it, realized my DLR/IronRuby > knowledge just isn't up to the challenge. Maybe someday. As an alternative, > I'm going to see if the IronRuby.Rack stuff on Git can teach me what I need to > wire Rack up to one of these embeddable .NET HTTP servers: > http://www.codeplex.com/webserver, > http://runkayak.com/getstarted, which ought to provide the same benefit, > and possibly perform a little better as well. Is anyone aware of other > embeddable .NET HTTP server projects? > > (http://github.com/jschementi/ironruby/tree/92932a672921a03210c8aefe23 > ac > 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele > Alessandri > Sent: Tuesday, October 06, 2009 11:39 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > 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 > mongrel library > 4- have fun. > > I did the same for hpricot and json (whose parsers are generated using > Ragel), so I guess that should work for Mongrel too :-) > > > On Wed, Oct 7, 2009 at 03:09, Nathan Stults > wrote: > > 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 required the new .NET HTTP parser dll instead of the C > > version? Is that how that would work? > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > > Schementi > > Sent: Tuesday, October 06, 2009 6:00 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Native Extensions > > > > 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 current work-around for libraries which use native code to > > communicate with the OS or Ruby is to rewrite those using .NET so > > IronRuby can use them. Mongrel is actually \mostly Ruby code, as most > > Ruby libraries which use native code; there is usually a very small > part > > of the library which depends on native code. For Mongrel, the HTTP 1.1 > > parser is the only native piece; rewriting that in C# would allow you > to > > run Mongrel on .NET. > > > > IMO, after 1.0 would be the time to consider supporting the native > Ruby > > API. > > > > ~Jimmy > > ________________________________________ > > From: ironruby-core-bounces at rubyforge.org > > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > > [lists at ruby-forum.com] > > Sent: Tuesday, October 06, 2009 4:18 PM > > To: ironruby-core at rubyforge.org > > Subject: [Ironruby-core] Native Extensions > > > > 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? I'd love > to > > use IronRuby to embed Thin or Mongrel in my .NET services, but from > from > > my few experiments it looks like most of the networking libraries > these > > servers use tend to rely on native dll's. > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > -- > Daniele Alessandri > http://www.clorophilla.net/blog/ > http://twitter.com/JoL1hAHN > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Thu Oct 8 05:09:41 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 8 Oct 2009 11:09:41 +0200 Subject: [Ironruby-core] IronRuby website sitemap In-Reply-To: References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFF55@tk5ex14mbxc105.redmond.corp.microsoft.com> <8E9BD2EB-05DC-4CD2-8E21-F703B484AF14@microsoft.com> Message-ID: That is Matz ;) --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Oct 8, 2009 at 10:58 AM, Shay Friedman wrote: > By the way, you must (really, must!) replace the picture of John Lam with > the Python shirt! :) > > > On Wed, Oct 7, 2009 at 10:44 AM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> On Oct 7, 2009, at 12:38 AM, "Shay Friedman" >> wrote: >> >> Looks great Jimmy! >> >> 2 suggestions: >> - A page about real world usages from people outside the IronRuby team. >> "Successful Stories" or something like that :) >> >> >> A page on the wiki seems best for that, but it could be linked to in a >> more prominent place. >> >> - A page about the future plans for IronRuby. >> >> >> The roadmap should show that (yet another wiki page), but we'd need to >> keep it more uptodate than currently. >> >> Thanks, >> Shay >> >> >> Thanks for the input! >> >> ---------------------------------------------------------- >> Shay Friedman >> Author of "IronRuby Unleashed" >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> On Wed, Oct 7, 2009 at 9:19 AM, Jimmy Schementi < >> Jimmy.Schementi at microsoft.com> wrote: >> >>> Here's a sitemap for the new IronRuby website that I just wrote up. Let >>> me know if there's something else missing, or you'd like to help with parts. >>> >>> - Documentation ( docs.ironruby.net) >>> - API documentation (generated from source code, xml comments, rdoc, >>> etc). >>> - Other generated documentation (tutorial, etc) >>> - Hand-written documentation. (.NET interop mainly) >>> - Why Iron* ( ironruby.net/why) >>> - scenarios where Iron* languages are useful (.NET interop, >>> performance, etc >>> - Screencasts showing these things in action >>> - Download ( ironruby.net/download) >>> - Latest stable/development release >>> - other downloads (samples, etc) >>> - installation instructions (getting-started) >>> - Community ( ironruby.net/community) >>> - Blogs (core team + active community members) >>> - Twitter >>> - IRC channel >>> - Mailing list (user + core-team) >>> - Bug trackers >>> - Contribute ( >>> ironruby.net/contribute) >>> - Get source code from (CodePlex|GitHub) >>> - Report (fix) bugs >>> - Other contribution ideas >>> - News and Articles (various urls) >>> - Blogfeeds >>> - Twitter >>> - Team blog >>> - Other notable articles >>> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> >> -- >> -------------------------------------------------- >> Shay Friedman >> Author of IronRuby Unleashed >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Thu Oct 8 14:11:05 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 8 Oct 2009 11:11:05 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local> Good news, thanks. In the Handle method of the IIS.cs, you are setting two scope variables, __request and __response - are these variables known to Rack, or are those set for the convenience of a IronRuby adapter aware programmer to use from ruby if desired? Thanks, Nathan -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 12:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions That lock is there because Rails wasn't thread-safe at the time of writing; it has no reflection on whether ScriptEngine is thread-safe. I believe ScriptEngine is thread-safe, as only one ScriptEngine per language can EVER exist when you have only one ScriptRuntime. Rails is much more thread-safe than it used to be, so that lock should be removed; IMO it should have never been there as the Rack adapter shouldn't care about Rails; it should lock if the rack.multithreaded flag is true. ~js ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [Nathan_Stults at HSIHealth.com] Sent: Thursday, October 08, 2009 12:26 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions Ahh nice clean, brief code. Now this I can handle. I do have a question though about threading - it looks like in your implementation the whole apparatus is essentially single threaded, i.e. there is a single handler maintained by the factory, and the single handler locks itself for the duration of the request - this suggests to me that ScriptEngine (or at least RubyEngine) is not thread-safe? Is that the case, or was the threading designed for simplicity? For instance, if in my implementation I took a lock on the RubyEngine just long enough to obtain a new scope to handle the request, would that do? Or does it pretty much need to be 1 thread = 1 script engine? If the latter is the case, would there be any caveats to maintaining a small pool of engines that could handle a few simultaneous requests? To be honest, this almost certainly won't make a bit of difference to my use case of embedding a web server in an application server, traffic just won't be that high, but mostly I'm just curious about the platform. Thanks, Nathan -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, October 07, 2009 5:12 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions The HttpHandler is the only piece you'll have to replace, since it's specifically for IIS, and provide your own hookup to the server you choose. You'll have to construct the HttpRequest/Response objects also, but all-in-all it should be pretty straight-forward. Those two look like great .NET web-server projects; "webserver" is like a web-framework too, which is cool. Whatever you do, DON'T use Chiron, as it's not intended to be a real web-server (it doesn't support POST requests, and only listens on localhost). ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Nathan Stults > Sent: Wednesday, October 07, 2009 4:54 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > I spent a day chasing my tail and, upon catching it, realized my DLR/IronRuby > knowledge just isn't up to the challenge. Maybe someday. As an alternative, > I'm going to see if the IronRuby.Rack stuff on Git can teach me what I need to > wire Rack up to one of these embeddable .NET HTTP servers: > http://www.codeplex.com/webserver, > http://runkayak.com/getstarted, which ought to provide the same benefit, > and possibly perform a little better as well. Is anyone aware of other > embeddable .NET HTTP server projects? > > (http://github.com/jschementi/ironruby/tree/92932a672921a03210c8aefe23 > ac > 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele > Alessandri > Sent: Tuesday, October 06, 2009 11:39 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > 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 > mongrel library > 4- have fun. > > I did the same for hpricot and json (whose parsers are generated using > Ragel), so I guess that should work for Mongrel too :-) > > > On Wed, Oct 7, 2009 at 03:09, Nathan Stults > wrote: > > 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 required the new .NET HTTP parser dll instead of the C > > version? Is that how that would work? > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > > Schementi > > Sent: Tuesday, October 06, 2009 6:00 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Native Extensions > > > > 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 current work-around for libraries which use native code to > > communicate with the OS or Ruby is to rewrite those using .NET so > > IronRuby can use them. Mongrel is actually \mostly Ruby code, as most > > Ruby libraries which use native code; there is usually a very small > part > > of the library which depends on native code. For Mongrel, the HTTP 1.1 > > parser is the only native piece; rewriting that in C# would allow you > to > > run Mongrel on .NET. > > > > IMO, after 1.0 would be the time to consider supporting the native > Ruby > > API. > > > > ~Jimmy > > ________________________________________ > > From: ironruby-core-bounces at rubyforge.org > > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > > [lists at ruby-forum.com] > > Sent: Tuesday, October 06, 2009 4:18 PM > > To: ironruby-core at rubyforge.org > > Subject: [Ironruby-core] Native Extensions > > > > 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? I'd love > to > > use IronRuby to embed Thin or Mongrel in my .NET services, but from > from > > my few experiments it looks like most of the networking libraries > these > > servers use tend to rely on native dll's. > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > -- > Daniele Alessandri > http://www.clorophilla.net/blog/ > http://twitter.com/JoL1hAHN > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Thu Oct 8 14:51:37 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 8 Oct 2009 18:51:37 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local> Message-ID: They are an implementation detail; used to manipulate the request and response from ruby (see later on down in the massive handle method). In my forks "rackupdate" branch I don't think they exist anymore, as I'm refactoring that code a bit. ~Jimmy Sent from my phone On Oct 8, 2009, at 11:12 AM, "Nathan Stults" wrote: > Good news, thanks. In the Handle method of the IIS.cs, you are setting > two scope variables, __request and __response - are these variables > known to Rack, or are those set for the convenience of a IronRuby > adapter aware programmer to use from ruby if desired? > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 12:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > That lock is there because Rails wasn't thread-safe at the time of > writing; it has no reflection on whether ScriptEngine is thread- > safe. I > believe ScriptEngine is thread-safe, as only one ScriptEngine per > language can EVER exist when you have only one ScriptRuntime. > > Rails is much more thread-safe than it used to be, so that lock should > be removed; IMO it should have never been there as the Rack adapter > shouldn't care about Rails; it should lock if the rack.multithreaded > flag is true. > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [Nathan_Stults at HSIHealth.com] > Sent: Thursday, October 08, 2009 12:26 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > Ahh nice clean, brief code. Now this I can handle. I do have a > question > though about threading - it looks like in your implementation the > whole > apparatus is essentially single threaded, i.e. there is a single > handler > maintained by the factory, and the single handler locks itself for the > duration of the request - this suggests to me that ScriptEngine (or at > least RubyEngine) is not thread-safe? Is that the case, or was the > threading designed for simplicity? For instance, if in my > implementation > I took a lock on the RubyEngine just long enough to obtain a new scope > to handle the request, would that do? Or does it pretty much need to > be > 1 thread = 1 script engine? If the latter is the case, would there be > any caveats to maintaining a small pool of engines that could handle a > few simultaneous requests? To be honest, this almost certainly won't > make a bit of difference to my use case of embedding a web server in > an > application server, traffic just won't be that high, but mostly I'm > just > curious about the platform. > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Wednesday, October 07, 2009 5:12 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > The HttpHandler is the only piece you'll have to replace, since it's > specifically for IIS, and provide your own hookup to the server you > choose. You'll have to construct the HttpRequest/Response objects > also, > but all-in-all it should be pretty straight-forward. Those two look > like > great .NET web-server projects; "webserver" is like a web-framework > too, > which is cool. Whatever you do, DON'T use Chiron, as it's not intended > to be a real web-server (it doesn't support POST requests, and only > listens on localhost). > > ~js > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Nathan Stults >> Sent: Wednesday, October 07, 2009 4:54 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> I spent a day chasing my tail and, upon catching it, realized my > DLR/IronRuby >> knowledge just isn't up to the challenge. Maybe someday. As an > alternative, >> I'm going to see if the IronRuby.Rack stuff on Git can teach me >> what I > need to >> wire Rack up to one of these embeddable .NET HTTP servers: >> http://www.codeplex.com/webserver, >> http://runkayak.com/getstarted, which ought to provide the same > benefit, >> and possibly perform a little better as well. Is anyone aware of >> other >> embeddable .NET HTTP server projects? >> >> (http://github.com/jschementi/ironruby/tree/ >> 92932a672921a03210c8aefe23 >> ac >> 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) >> >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele >> Alessandri >> Sent: Tuesday, October 06, 2009 11:39 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> 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 >> mongrel library >> 4- have fun. >> >> I did the same for hpricot and json (whose parsers are generated >> using >> Ragel), so I guess that should work for Mongrel too :-) >> >> >> On Wed, Oct 7, 2009 at 03:09, Nathan Stults > >> wrote: >>> 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 required the new .NET HTTP parser dll instead of the C >>> version? Is that how that would work? >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org >>> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy >>> Schementi >>> Sent: Tuesday, October 06, 2009 6:00 PM >>> To: ironruby-core at rubyforge.org >>> Subject: Re: [Ironruby-core] Native Extensions >>> >>> 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 current work-around for libraries which use native code to >>> communicate with the OS or Ruby is to rewrite those using .NET so >>> IronRuby can use them. Mongrel is actually \mostly Ruby code, as > most >>> Ruby libraries which use native code; there is usually a very small >> part >>> of the library which depends on native code. For Mongrel, the HTTP > 1.1 >>> parser is the only native piece; rewriting that in C# would allow > you >> to >>> run Mongrel on .NET. >>> >>> IMO, after 1.0 would be the time to consider supporting the native >> Ruby >>> API. >>> >>> ~Jimmy >>> ________________________________________ >>> From: ironruby-core-bounces at rubyforge.org >>> [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults >>> [lists at ruby-forum.com] >>> Sent: Tuesday, October 06, 2009 4:18 PM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] Native Extensions >>> >>> 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? I'd > love >> to >>> use IronRuby to embed Thin or Mongrel in my .NET services, but from >> from >>> my few experiments it looks like most of the networking libraries >> these >>> servers use tend to rely on native dll's. >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> >> >> >> -- >> Daniele Alessandri >> http://www.clorophilla.net/blog/ >> http://twitter.com/JoL1hAHN >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From Nathan_Stults at HSIHealth.com Thu Oct 8 15:10:52 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 8 Oct 2009 12:10:52 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AB41@hsi-fs.HSIHealth.local> Thank you - I'm new to GitHub, so I didn't notice that branch - I'll get that one as a guide instead. On a related note, is there an accepted / preferred / traditional path I should follow in regards to re-mixing your code? I presume your rack integration stuff is licensed the same as IronRuby? In any case, is there any problem with me blending your work into a separate library intended to act as a generic adapter between Rack and an embedded .NET server and publishing as a separate library (following attribution, licensing rules, etc)? That is what I would normally do, but all this forking madness has made me second guess. BTW, thanks for your time in answering my endless questions. You guys have done an amazing job on all this stuff, very exciting possibilities. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 11:52 AM To: Subject: Re: [Ironruby-core] Native Extensions They are an implementation detail; used to manipulate the request and response from ruby (see later on down in the massive handle method). In my forks "rackupdate" branch I don't think they exist anymore, as I'm refactoring that code a bit. ~Jimmy Sent from my phone On Oct 8, 2009, at 11:12 AM, "Nathan Stults" wrote: > Good news, thanks. In the Handle method of the IIS.cs, you are setting > two scope variables, __request and __response - are these variables > known to Rack, or are those set for the convenience of a IronRuby > adapter aware programmer to use from ruby if desired? > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 12:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > That lock is there because Rails wasn't thread-safe at the time of > writing; it has no reflection on whether ScriptEngine is thread- > safe. I > believe ScriptEngine is thread-safe, as only one ScriptEngine per > language can EVER exist when you have only one ScriptRuntime. > > Rails is much more thread-safe than it used to be, so that lock should > be removed; IMO it should have never been there as the Rack adapter > shouldn't care about Rails; it should lock if the rack.multithreaded > flag is true. > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [Nathan_Stults at HSIHealth.com] > Sent: Thursday, October 08, 2009 12:26 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > Ahh nice clean, brief code. Now this I can handle. I do have a > question > though about threading - it looks like in your implementation the > whole > apparatus is essentially single threaded, i.e. there is a single > handler > maintained by the factory, and the single handler locks itself for the > duration of the request - this suggests to me that ScriptEngine (or at > least RubyEngine) is not thread-safe? Is that the case, or was the > threading designed for simplicity? For instance, if in my > implementation > I took a lock on the RubyEngine just long enough to obtain a new scope > to handle the request, would that do? Or does it pretty much need to > be > 1 thread = 1 script engine? If the latter is the case, would there be > any caveats to maintaining a small pool of engines that could handle a > few simultaneous requests? To be honest, this almost certainly won't > make a bit of difference to my use case of embedding a web server in > an > application server, traffic just won't be that high, but mostly I'm > just > curious about the platform. > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Wednesday, October 07, 2009 5:12 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > The HttpHandler is the only piece you'll have to replace, since it's > specifically for IIS, and provide your own hookup to the server you > choose. You'll have to construct the HttpRequest/Response objects > also, > but all-in-all it should be pretty straight-forward. Those two look > like > great .NET web-server projects; "webserver" is like a web-framework > too, > which is cool. Whatever you do, DON'T use Chiron, as it's not intended > to be a real web-server (it doesn't support POST requests, and only > listens on localhost). > > ~js > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Nathan Stults >> Sent: Wednesday, October 07, 2009 4:54 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> I spent a day chasing my tail and, upon catching it, realized my > DLR/IronRuby >> knowledge just isn't up to the challenge. Maybe someday. As an > alternative, >> I'm going to see if the IronRuby.Rack stuff on Git can teach me >> what I > need to >> wire Rack up to one of these embeddable .NET HTTP servers: >> http://www.codeplex.com/webserver, >> http://runkayak.com/getstarted, which ought to provide the same > benefit, >> and possibly perform a little better as well. Is anyone aware of >> other >> embeddable .NET HTTP server projects? >> >> (http://github.com/jschementi/ironruby/tree/ >> 92932a672921a03210c8aefe23 >> ac >> 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) >> >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele >> Alessandri >> Sent: Tuesday, October 06, 2009 11:39 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> 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 >> mongrel library >> 4- have fun. >> >> I did the same for hpricot and json (whose parsers are generated >> using >> Ragel), so I guess that should work for Mongrel too :-) >> >> >> On Wed, Oct 7, 2009 at 03:09, Nathan Stults > >> wrote: >>> 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 required the new .NET HTTP parser dll instead of the C >>> version? Is that how that would work? >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org >>> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy >>> Schementi >>> Sent: Tuesday, October 06, 2009 6:00 PM >>> To: ironruby-core at rubyforge.org >>> Subject: Re: [Ironruby-core] Native Extensions >>> >>> 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 current work-around for libraries which use native code to >>> communicate with the OS or Ruby is to rewrite those using .NET so >>> IronRuby can use them. Mongrel is actually \mostly Ruby code, as > most >>> Ruby libraries which use native code; there is usually a very small >> part >>> of the library which depends on native code. For Mongrel, the HTTP > 1.1 >>> parser is the only native piece; rewriting that in C# would allow > you >> to >>> run Mongrel on .NET. >>> >>> IMO, after 1.0 would be the time to consider supporting the native >> Ruby >>> API. >>> >>> ~Jimmy >>> ________________________________________ >>> From: ironruby-core-bounces at rubyforge.org >>> [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults >>> [lists at ruby-forum.com] >>> Sent: Tuesday, October 06, 2009 4:18 PM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] Native Extensions >>> >>> 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? I'd > love >> to >>> use IronRuby to embed Thin or Mongrel in my .NET services, but from >> from >>> my few experiments it looks like most of the networking libraries >> these >>> servers use tend to rely on native dll's. >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> >> >> >> -- >> Daniele Alessandri >> http://www.clorophilla.net/blog/ >> http://twitter.com/JoL1hAHN >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Thu Oct 8 15:22:55 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 8 Oct 2009 19:22:55 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7AB41@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local> , <790F1F63F5D2E44E91797E821B31FDBB02B7AB41@hsi-fs.HSIHealth.local> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC48FB@tk5ex14mbxc105.redmond.corp.microsoft.com> There is no problem with you taking any part of anything in the IronRuby repo and including it in another library; here are all the licenses IronRuby's releases contain: http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Languages/Ruby/Licenses. CJ recently did a good job of mapping each directory in the entire IronRuby tree to a license, so I'll let him chime in about where that data is. So, feel free to do you work separately for now. I'd be interested in taking back any fixes you have for the rack-specific pieces, so I'll figure out how to make that happen on my side when the time comes. Let me know how things go, and don't hesitate to ask any more questions, ~Jimmy ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [Nathan_Stults at HSIHealth.com] Sent: Thursday, October 08, 2009 12:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions Thank you - I'm new to GitHub, so I didn't notice that branch - I'll get that one as a guide instead. On a related note, is there an accepted / preferred / traditional path I should follow in regards to re-mixing your code? I presume your rack integration stuff is licensed the same as IronRuby? In any case, is there any problem with me blending your work into a separate library intended to act as a generic adapter between Rack and an embedded .NET server and publishing as a separate library (following attribution, licensing rules, etc)? That is what I would normally do, but all this forking madness has made me second guess. BTW, thanks for your time in answering my endless questions. You guys have done an amazing job on all this stuff, very exciting possibilities. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 11:52 AM To: Subject: Re: [Ironruby-core] Native Extensions They are an implementation detail; used to manipulate the request and response from ruby (see later on down in the massive handle method). In my forks "rackupdate" branch I don't think they exist anymore, as I'm refactoring that code a bit. ~Jimmy Sent from my phone On Oct 8, 2009, at 11:12 AM, "Nathan Stults" wrote: > Good news, thanks. In the Handle method of the IIS.cs, you are setting > two scope variables, __request and __response - are these variables > known to Rack, or are those set for the convenience of a IronRuby > adapter aware programmer to use from ruby if desired? > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 12:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > That lock is there because Rails wasn't thread-safe at the time of > writing; it has no reflection on whether ScriptEngine is thread- > safe. I > believe ScriptEngine is thread-safe, as only one ScriptEngine per > language can EVER exist when you have only one ScriptRuntime. > > Rails is much more thread-safe than it used to be, so that lock should > be removed; IMO it should have never been there as the Rack adapter > shouldn't care about Rails; it should lock if the rack.multithreaded > flag is true. > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [Nathan_Stults at HSIHealth.com] > Sent: Thursday, October 08, 2009 12:26 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > Ahh nice clean, brief code. Now this I can handle. I do have a > question > though about threading - it looks like in your implementation the > whole > apparatus is essentially single threaded, i.e. there is a single > handler > maintained by the factory, and the single handler locks itself for the > duration of the request - this suggests to me that ScriptEngine (or at > least RubyEngine) is not thread-safe? Is that the case, or was the > threading designed for simplicity? For instance, if in my > implementation > I took a lock on the RubyEngine just long enough to obtain a new scope > to handle the request, would that do? Or does it pretty much need to > be > 1 thread = 1 script engine? If the latter is the case, would there be > any caveats to maintaining a small pool of engines that could handle a > few simultaneous requests? To be honest, this almost certainly won't > make a bit of difference to my use case of embedding a web server in > an > application server, traffic just won't be that high, but mostly I'm > just > curious about the platform. > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Wednesday, October 07, 2009 5:12 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > The HttpHandler is the only piece you'll have to replace, since it's > specifically for IIS, and provide your own hookup to the server you > choose. You'll have to construct the HttpRequest/Response objects > also, > but all-in-all it should be pretty straight-forward. Those two look > like > great .NET web-server projects; "webserver" is like a web-framework > too, > which is cool. Whatever you do, DON'T use Chiron, as it's not intended > to be a real web-server (it doesn't support POST requests, and only > listens on localhost). > > ~js > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Nathan Stults >> Sent: Wednesday, October 07, 2009 4:54 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> I spent a day chasing my tail and, upon catching it, realized my > DLR/IronRuby >> knowledge just isn't up to the challenge. Maybe someday. As an > alternative, >> I'm going to see if the IronRuby.Rack stuff on Git can teach me >> what I > need to >> wire Rack up to one of these embeddable .NET HTTP servers: >> http://www.codeplex.com/webserver, >> http://runkayak.com/getstarted, which ought to provide the same > benefit, >> and possibly perform a little better as well. Is anyone aware of >> other >> embeddable .NET HTTP server projects? >> >> (http://github.com/jschementi/ironruby/tree/ >> 92932a672921a03210c8aefe23 >> ac >> 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) >> >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele >> Alessandri >> Sent: Tuesday, October 06, 2009 11:39 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> 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 >> mongrel library >> 4- have fun. >> >> I did the same for hpricot and json (whose parsers are generated >> using >> Ragel), so I guess that should work for Mongrel too :-) >> >> >> On Wed, Oct 7, 2009 at 03:09, Nathan Stults > >> wrote: >>> 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 required the new .NET HTTP parser dll instead of the C >>> version? Is that how that would work? >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org >>> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy >>> Schementi >>> Sent: Tuesday, October 06, 2009 6:00 PM >>> To: ironruby-core at rubyforge.org >>> Subject: Re: [Ironruby-core] Native Extensions >>> >>> 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 current work-around for libraries which use native code to >>> communicate with the OS or Ruby is to rewrite those using .NET so >>> IronRuby can use them. Mongrel is actually \mostly Ruby code, as > most >>> Ruby libraries which use native code; there is usually a very small >> part >>> of the library which depends on native code. For Mongrel, the HTTP > 1.1 >>> parser is the only native piece; rewriting that in C# would allow > you >> to >>> run Mongrel on .NET. >>> >>> IMO, after 1.0 would be the time to consider supporting the native >> Ruby >>> API. >>> >>> ~Jimmy >>> ________________________________________ >>> From: ironruby-core-bounces at rubyforge.org >>> [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults >>> [lists at ruby-forum.com] >>> Sent: Tuesday, October 06, 2009 4:18 PM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] Native Extensions >>> >>> 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? I'd > love >> to >>> use IronRuby to embed Thin or Mongrel in my .NET services, but from >> from >>> my few experiments it looks like most of the networking libraries >> these >>> servers use tend to rely on native dll's. >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> >> >> >> -- >> Daniele Alessandri >> http://www.clorophilla.net/blog/ >> http://twitter.com/JoL1hAHN >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Thu Oct 8 19:54:33 2009 From: lists at ruby-forum.com (Nathan Stults) Date: Fri, 9 Oct 2009 01:54:33 +0200 Subject: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example In-Reply-To: <7d8bf26d0906240557n63edbb3bq93a8dd3fb0196746@mail.gmail.com> References: <7d8bf26d0906231306q20420ee8l833b4fd31b7b4f58@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC18AF3DA3@tk5ex14mbxc106.redmond.corp.microsoft.com> <7d8bf26d0906240557n63edbb3bq93a8dd3fb0196746@mail.gmail.com> Message-ID: <9fe7a1286b96e7e51c7c424e50cf0d38@ruby-forum.com> > but they both give a similar stack trace: > > Server Error in '/IronRuby.Rack.Example' Application. > > undefined method `call' for # > > Description: An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > Exception Details: System.MissingMethodException: undefined method > `call' for # > > Source Error: > Ted - did you ever resolve this? I'm seeing the same thing. It's as if Sinatra:Application (the dynamic object returned by Rackup) doesn't respond to 'call'. I can't keep the debugger running long enough to explore the dynamic target long enough to confirm or reject though. -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Thu Oct 8 20:30:46 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 9 Oct 2009 00:30:46 +0000 Subject: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example In-Reply-To: <9fe7a1286b96e7e51c7c424e50cf0d38@ruby-forum.com> References: <7d8bf26d0906231306q20420ee8l833b4fd31b7b4f58@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC18AF3DA3@tk5ex14mbxc106.redmond.corp.microsoft.com> <7d8bf26d0906240557n63edbb3bq93a8dd3fb0196746@mail.gmail.com>, <9fe7a1286b96e7e51c7c424e50cf0d38@ruby-forum.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> I'll look into it, but last I checked all the examples worked fine. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [lists at ruby-forum.com] Sent: Thursday, October 08, 2009 4:54 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example > but they both give a similar stack trace: > > Server Error in '/IronRuby.Rack.Example' Application. > > undefined method `call' for # > > Description: An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > Exception Details: System.MissingMethodException: undefined method > `call' for # > > Source Error: > Ted - did you ever resolve this? I'm seeing the same thing. It's as if Sinatra:Application (the dynamic object returned by Rackup) doesn't respond to 'call'. I can't keep the debugger running long enough to explore the dynamic target long enough to confirm or reject though. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Nathan_Stults at HSIHealth.com Thu Oct 8 20:42:42 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 8 Oct 2009 17:42:42 -0700 Subject: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <7d8bf26d0906231306q20420ee8l833b4fd31b7b4f58@mail.gmail.com><0047ECBFA2E0DF4A834AA369282A5AFC18AF3DA3@tk5ex14mbxc106.redmond.corp.microsoft.com><7d8bf26d0906240557n63edbb3bq93a8dd3fb0196746@mail.gmail.com>, <9fe7a1286b96e7e51c7c424e50cf0d38@ruby-forum.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AC31@hsi-fs.HSIHealth.local> Maybe it has something to do with the version of Sinatra gem installed. Also, the actual missing method error is: undefined method `empty?' for nil:NilClas So, this may be different than what Ted was getting. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 5:31 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example I'll look into it, but last I checked all the examples worked fine. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [lists at ruby-forum.com] Sent: Thursday, October 08, 2009 4:54 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example > but they both give a similar stack trace: > > Server Error in '/IronRuby.Rack.Example' Application. > > undefined method `call' for # > > Description: An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > Exception Details: System.MissingMethodException: undefined method > `call' for # > > Source Error: > Ted - did you ever resolve this? I'm seeing the same thing. It's as if Sinatra:Application (the dynamic object returned by Rackup) doesn't respond to 'call'. I can't keep the debugger running long enough to explore the dynamic target long enough to confirm or reject though. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Nathan_Stults at HSIHealth.com Thu Oct 8 21:15:09 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 8 Oct 2009 18:15:09 -0700 Subject: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <7d8bf26d0906231306q20420ee8l833b4fd31b7b4f58@mail.gmail.com><0047ECBFA2E0DF4A834AA369282A5AFC18AF3DA3@tk5ex14mbxc106.redmond.corp.microsoft.com><7d8bf26d0906240557n63edbb3bq93a8dd3fb0196746@mail.gmail.com>, <9fe7a1286b96e7e51c7c424e50cf0d38@ruby-forum.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AC3E@hsi-fs.HSIHealth.local> I think I may be using an upatched version of Sinatra - please don't bother looking into this issue, I'll figure it out and if it is a bug I'll report it, otherwise it's on my end. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 5:31 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example I'll look into it, but last I checked all the examples worked fine. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [lists at ruby-forum.com] Sent: Thursday, October 08, 2009 4:54 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example > but they both give a similar stack trace: > > Server Error in '/IronRuby.Rack.Example' Application. > > undefined method `call' for # > > Description: An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > Exception Details: System.MissingMethodException: undefined method > `call' for # > > Source Error: > Ted - did you ever resolve this? I'm seeing the same thing. It's as if Sinatra:Application (the dynamic object returned by Rackup) doesn't respond to 'call'. I can't keep the debugger running long enough to explore the dynamic target long enough to confirm or reject though. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Nathan_Stults at HSIHealth.com Fri Oct 9 01:53:25 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 8 Oct 2009 22:53:25 -0700 Subject: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <7d8bf26d0906231306q20420ee8l833b4fd31b7b4f58@mail.gmail.com><0047ECBFA2E0DF4A834AA369282A5AFC18AF3DA3@tk5ex14mbxc106.redmond.corp.microsoft.com><7d8bf26d0906240557n63edbb3bq93a8dd3fb0196746@mail.gmail.com>, <9fe7a1286b96e7e51c7c424e50cf0d38@ruby-forum.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AC40@hsi-fs.HSIHealth.local> I found the problem, and posted an issue on your GitHub repository with a description / solution. Very simple fix, tremendously convoluted debugging experience :) -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 5:31 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example I'll look into it, but last I checked all the examples worked fine. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [lists at ruby-forum.com] Sent: Thursday, October 08, 2009 4:54 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example > but they both give a similar stack trace: > > Server Error in '/IronRuby.Rack.Example' Application. > > undefined method `call' for # > > Description: An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > Exception Details: System.MissingMethodException: undefined method > `call' for # > > Source Error: > Ted - did you ever resolve this? I'm seeing the same thing. It's as if Sinatra:Application (the dynamic object returned by Rackup) doesn't respond to 'call'. I can't keep the debugger running long enough to explore the dynamic target long enough to confirm or reject though. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Fri Oct 9 01:56:39 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 9 Oct 2009 05:56:39 +0000 Subject: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7AC40@hsi-fs.HSIHealth.local> References: <7d8bf26d0906231306q20420ee8l833b4fd31b7b4f58@mail.gmail.com><0047ECBFA2E0DF4A834AA369282A5AFC18AF3DA3@tk5ex14mbxc106.redmond.corp.microsoft.com><7d8bf26d0906240557n63edbb3bq93a8dd3fb0196746@mail.gmail.com>, <9fe7a1286b96e7e51c7c424e50cf0d38@ruby-forum.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC505E@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7AC40@hsi-fs.HSIHealth.local> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC54D7@tk5ex14mbxc105.redmond.corp.microsoft.com> Got it. I'll make that change, and it's about time some tests were added as well, so I'll make a regression test for it. Thanks for tracking this down! > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Nathan Stults > Sent: Thursday, October 08, 2009 10:53 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Assistance Needed Running > IronRuby.Rack.Example > > I found the problem, and posted an issue on your GitHub repository with a > description / solution. Very simple fix, tremendously convoluted debugging > experience :) > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 5:31 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Assistance Needed Running > IronRuby.Rack.Example > > I'll look into it, but last I checked all the examples worked fine. > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [lists at ruby-forum.com] > Sent: Thursday, October 08, 2009 4:54 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Assistance Needed Running > IronRuby.Rack.Example > > > but they both give a similar stack trace: > > > > Server Error in '/IronRuby.Rack.Example' Application. > > > > undefined method `call' for # > > > > Description: An unhandled exception occurred during the execution of > > the current web request. Please review the stack trace for more > > information about the error and where it originated in the code. > > > > Exception Details: System.MissingMethodException: undefined method > > `call' for # > > > > Source Error: > > > > Ted - did you ever resolve this? I'm seeing the same thing. It's as if > Sinatra:Application (the dynamic object returned by Rackup) doesn't respond > to 'call'. I can't keep the debugger running long enough to explore the > dynamic target long enough to confirm or reject though. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Fri Oct 9 18:57:42 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 10 Oct 2009 00:57:42 +0200 Subject: [Ironruby-core] public windows build server Message-ID: Hi I've set up a windows build server too. http://ironruby.koolkraft.net Same goes if you want an ironruby project to be added to the build and run after every ironruby build. Let me know and we'll see about getting you set up. The ironruby build is failing because the tests are failing I'm not sure if that is meant to be the case --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Oct 10 12:41:11 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 10 Oct 2009 18:41:11 +0200 Subject: [Ironruby-core] define_method behaves different than MRI Message-ID: Hi this used to work but now doesn't anymore ? ir IronRuby 0.9.1.0 on .NET 2.0.50727.4927 Copyright (c) Microsoft Corporation. All rights reserved. >>> class SomeClass ... define_method(:initialize) do |*args| ... puts args.join(", ") ... end ... end => # >>> SomeClass.new 1, 4, 6, 3 :0: wrong number of arguments (4 for 0) (ArgumentError) >>> exit + C:\dev ? irb irb(main):001:0> class SomeClass irb(main):002:1> define_method(:initialize) do |*args| irb(main):003:2* puts args.join(", ") irb(main):004:2> end irb(main):005:1> end => # irb(main):006:0> SomeClass.new 1, 4, 6, 3 1, 4, 6, 3 => # irb(main):007:0> --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Oct 10 16:37:33 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 10 Oct 2009 22:37:33 +0200 Subject: [Ironruby-core] dynamicsilverlight.net died? Message-ID: Hi Did dynamicsilverlight.net die? It takes me to http://silverlight.net/404.aspx?aspxerrorpath=/learn/dynamiclanguages.aspx/ Oops ? Page Not Found --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Oct 11 12:13:32 2009 From: lists at ruby-forum.com (Shay Friedman) Date: Sun, 11 Oct 2009 18:13:32 +0200 Subject: [Ironruby-core] IronRuby C# Extensions In-Reply-To: References: Message-ID: <0567ddd1e1e0000e2ad794dbd025b733@ruby-forum.com> I found out I needed an initializer... I have a question - why do we need initializers if we define everything on the attributes? Thanks, Shay. -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Sun Oct 11 12:27:58 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 11 Oct 2009 16:27:58 +0000 Subject: [Ironruby-core] IronRuby C# Extensions In-Reply-To: <0567ddd1e1e0000e2ad794dbd025b733@ruby-forum.com> References: <0567ddd1e1e0000e2ad794dbd025b733@ruby-forum.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C0670FDFA@TK5EX14MBXC131.redmond.corp.microsoft.com> Basically to avoid reflection when loading the classes and modules. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Sunday, October 11, 2009 9:14 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby C# Extensions I found out I needed an initializer... I have a question - why do we need initializers if we define everything on the attributes? Thanks, Shay. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Sun Oct 11 12:57:18 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 11 Oct 2009 18:57:18 +0200 Subject: [Ironruby-core] IronRuby C# Extensions In-Reply-To: References: <0567ddd1e1e0000e2ad794dbd025b733@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C0670FDFA@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: Just require an assembly should work just as well I guess. When would you need to use the RubyClass etc attributes and the initializer? What is the added value of those? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Oct 11, 2009 at 6:51 PM, Shay Friedman wrote: > Is it possible to consider allowing to load extensions without the need of > a library initializer? (another argument in the load_assembly method for > example) > Currently, the library initializer makes the whole thing much more > complicated... > > Thanks, > Shay. > > > On Sun, Oct 11, 2009 at 6:27 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >> Basically to avoid reflection when loading the classes and modules. >> >> Tomas >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> Sent: Sunday, October 11, 2009 9:14 AM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] IronRuby C# Extensions >> >> I found out I needed an initializer... >> >> I have a question - why do we need initializers if we define everything on >> the attributes? >> >> Thanks, >> Shay. >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sun Oct 11 13:14:20 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 11 Oct 2009 19:14:20 +0200 Subject: [Ironruby-core] IronRuby C# Extensions In-Reply-To: References: <0567ddd1e1e0000e2ad794dbd025b733@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C0670FDFA@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: But wouldn't you be able to accomplish these scenarios just by requiring a C# built dll? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Oct 11, 2009 at 7:03 PM, Shay Friedman wrote: > 2 samples I can think of - > 1. Porting Ruby native extensions > 2. Create an IronRuby library in C# in order to improve performance of a > certain operation > > Shay. > > > On Sun, Oct 11, 2009 at 6:57 PM, Ivan Porto Carrero wrote: > >> Just require an assembly should work just as well I guess. >> When would you need to use the RubyClass etc attributes and the >> initializer? What is the added value of those? >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> >> >> On Sun, Oct 11, 2009 at 6:51 PM, Shay Friedman wrote: >> >>> Is it possible to consider allowing to load extensions without the need >>> of a library initializer? (another argument in the load_assembly method for >>> example) >>> Currently, the library initializer makes the whole thing much more >>> complicated... >>> >>> Thanks, >>> Shay. >>> >>> >>> On Sun, Oct 11, 2009 at 6:27 PM, Tomas Matousek < >>> Tomas.Matousek at microsoft.com> wrote: >>> >>>> Basically to avoid reflection when loading the classes and modules. >>>> >>>> Tomas >>>> >>>> -----Original Message----- >>>> From: ironruby-core-bounces at rubyforge.org [mailto: >>>> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >>>> Sent: Sunday, October 11, 2009 9:14 AM >>>> To: ironruby-core at rubyforge.org >>>> Subject: Re: [Ironruby-core] IronRuby C# Extensions >>>> >>>> I found out I needed an initializer... >>>> >>>> I have a question - why do we need initializers if we define everything >>>> on the attributes? >>>> >>>> Thanks, >>>> Shay. >>>> -- >>>> Posted via http://www.ruby-forum.com/. >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>> >>> >>> >>> -- >>> -------------------------------------------------- >>> Shay Friedman >>> Author of IronRuby Unleashed >>> http://www.IronShay.com >>> Follow me: http://twitter.com/ironshay >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Oct 11 14:19:04 2009 From: lists at ruby-forum.com (Immo Wache) Date: Sun, 11 Oct 2009 20:19:04 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 Message-ID: Hi, tried to get running casualjim/ironrubymvc master from github to work. (I'm about to write a IronRuby MVC plugin for OpenSource CMS Umbraco with this, see: http://www.umbraco.org) Problem is calling a controller more than once. With IR 0.9.0 it worked quite well. But now when I recall the same controller url (eg. /Home) I get error "unknown member: HomeController". Searching the code I found: 1. Error comes from RubyEngine.GetGlobalVariable() for "HomeController" 2. Cause for this seams to be the before executed method call to RubyEngine.RemoveClassFromGlobals() I tried to comment out call to 2. This works better, but the HomeController now adds all Filter methods again and again, everytime I call the controller. So I tried around some hours to find out what's going on and for a better way to remove the HomeController from the IronRuby engine global scope but without any success. Any ideas to fix this? Immo -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Sun Oct 11 14:39:47 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 11 Oct 2009 20:39:47 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: Message-ID: I use an ironruby built on 28/09/2009 that is the one in the github repo if you build ironruby mvc. I can see the Home bpage of the test site. Did you build ironruby mvc from source recently? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Oct 11, 2009 at 8:19 PM, Immo Wache wrote: > Hi, > tried to get running casualjim/ironrubymvc master from github to work. > (I'm about to write a IronRuby MVC plugin for OpenSource CMS Umbraco > with this, see: http://www.umbraco.org) > > Problem is calling a controller more than once. > > With IR 0.9.0 it worked quite well. But now when I recall the same > controller url (eg. /Home) I get error "unknown member: HomeController". > > Searching the code I found: > > 1. Error comes from RubyEngine.GetGlobalVariable() for "HomeController" > > 2. Cause for this seams to be the before executed method call to > RubyEngine.RemoveClassFromGlobals() > > I tried to comment out call to 2. This works better, but the > HomeController now adds all Filter methods again and again, everytime I > call the controller. > So I tried around some hours to find out what's going on and for a > better way to remove the HomeController from the IronRuby engine global > scope but without any success. > > Any ideas to fix this? Immo > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Sun Oct 11 16:04:01 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Sun, 11 Oct 2009 20:04:01 +0000 Subject: [Ironruby-core] public windows build server In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C7874EA@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C789656@TK5EX14MBXC140.redmond.corp.microsoft.com> Tried it again and it works now. I took a quick look at the log at http://ironruby.koolkraft.net/job/IronRuby/lastFailedBuild/console and its good that most of the tests pass! The test failures need more investigation but seem like fixable test issues: ? RubySpec B fails because of short file name vs long file name issue. ? ActiveSupport seems to fail because of timezone issues and the tests might need to be disabled like a number of other tests disabled in Merlin\Languages\Ruby\Tests\Scripts\ActiveSupportTests.rb which also fail with MRI? ? RubySpec C has this output. Don?t remember seeing it before: Socket::IPSocket#getaddress raises an error on unknown hostnames FAILED Expected SocketError but no exception was raised ? No idea about the Legacy test failures. There is no output unfortunately. We need to fix the harness. CRubyDriver log @ C:\Users\Administrator\.hudson\jobs\IronRuby\workspace\Merlin\Main/Languages/Ruby/Tests/cruby_10060241.log ..x(test_enumerable.rb)x(test_hash.rb)....sx(test_dir.rb)............................................. From: Ivan Porto Carrero [mailto:ivan at flanders.co.nz] Sent: Saturday, October 10, 2009 1:08 AM To: Shri Borde Subject: Re: [Ironruby-core] public windows build server for the time being I have to use dyndns. I can get there from outside my home but if the ip changed it takes a few minutes to be sent to dyndns.org In a few weeks I'll have a static IP, then this shouldn't happen anymore. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sat, Oct 10, 2009 at 5:54 AM, Shri Borde > wrote: Just tried the url and it does not work (?The IP address for the website you requested could not be found.?). I can see Koolkraft.net itself though. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, October 09, 2009 3:58 PM To: ironruby-core Subject: [Ironruby-core] public windows build server Hi I've set up a windows build server too. http://ironruby.koolkraft.net Same goes if you want an ironruby project to be added to the build and run after every ironruby build. Let me know and we'll see about getting you set up. The ironruby build is failing because the tests are failing I'm not sure if that is meant to be the case --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Oct 11 16:11:18 2009 From: lists at ruby-forum.com (Immo Wache) Date: Sun, 11 Oct 2009 22:11:18 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: Message-ID: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> Hi casualjim, thanks alot for your reply. Yes it is the plain source from your master fork, with the ironruby assemblies from its dependencies folder (IR 0.9.1 ones). Calling once the Home page works fine. But when I recall it later again it fails. Reason why is the matter about the global vars I described. I use VS 2008 Pro SP1 de-edition. When you can see the Home page, simply try refresh the page again. This should produce the error. Immo Ivan Porto carrero wrote: > I use an ironruby built on 28/09/2009 that is the one in the github repo > if > you build ironruby mvc. I can see the Home bpage of the test site. > > Did you build ironruby mvc from source recently? > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Sun Oct 11 18:06:14 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 12 Oct 2009 00:06:14 +0200 Subject: [Ironruby-core] IronRuby C# Extensions In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C0670FE97@TK5EX14MBXC131.redmond.corp.microsoft.com> <8E45365BECA665489F3CB8878A6C1B7D0C7895B9@TK5EX14MBXC140.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC80D4@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: for the initializer to know which classes to use when generating and what to generate I guess --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Oct 11, 2009 at 11:00 PM, Shay Friedman wrote: > Thanks for the replies guys. > > By the way, if the initializer is required, why are the attributes needed > too? (or they aren't?) > > Thanks, > Shay. > > > On Sun, Oct 11, 2009 at 10:06 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> To clarify things a bit more, the real difference between the two ways >> is performance and cleanness of the .NET code. My guidance would be to >> initially build a ruby front-end API, and call into .NET when needed; the >> cleanest solution IMO but depends on slow reflection for calling into .NET >> code. If you find that the .NET integration is too slow for that particular >> library, then you can move your code over to the generated-initializers >> model that IronRuby's libraries use. >> >> ~js >> ------------------------------ >> *From:* ironruby-core-bounces at rubyforge.org [ >> ironruby-core-bounces at rubyforge.org] on behalf of Shri Borde [ >> Shri.Borde at microsoft.com] >> *Sent:* Sunday, October 11, 2009 12:44 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] IronRuby C# Extensions >> >> Tomas, assuming you wanted your library to be C# code only for whatever >> reason, wouldn?t you need to use RubyModuleAttribute etc for various reasons >> (other than performance) to make the library look really Ruby-friendly and >> also be multi-ScriptRuntime-aware? For example, if you wanted a class >> constant, you couldn?t just declare a C# ?const? variable as that would be >> appdomain-wide and also read-only. So you have to tag it with >> ?RubyContantAttribute?, right? >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Tomas Matousek >> *Sent:* Sunday, October 11, 2009 11:48 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] IronRuby C# Extensions >> >> >> >> Ideally Reflection would be fast and we wouldn?t need any workarounds to >> load built-ins fast. But that?s not the case, so we use initializers. >> >> >> >> As for the scenarios you mentioned: >> >> 1. Porting Ruby native extensions >> >> Why not to write them in Ruby with calls to .NET Framework assemblies? Is >> there anything that makes this difficult? >> >> >> 2. Create an IronRuby library in C# in order to improve performance of a >> certain operation >> >> Couldn?t you write the parts whose perf matter in C# code that doesn?t >> have all the Ruby bells and whistles and keep your library written in Ruby? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shay Friedman >> *Sent:* Sunday, October 11, 2009 10:26 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] IronRuby C# Extensions >> >> >> >> By the way, if we're at the subject... Ivan does have a point there, but >> why were the standard libraries written this way? >> >> Thanks, >> Shay. >> >> On Sun, Oct 11, 2009 at 7:19 PM, Shay Friedman >> wrote: >> >> Right, but this way you have more control on the "translation" of your Dll >> to IronRuby. >> >> Shay. >> >> >> >> On Sun, Oct 11, 2009 at 7:14 PM, Ivan Porto Carrero >> wrote: >> >> But wouldn't you be able to accomplish these scenarios just by requiring a >> C# built dll? >> >> >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> On Sun, Oct 11, 2009 at 7:03 PM, Shay Friedman < >> shay.friedman at gmail.com> wrote: >> >> 2 samples I can think of - >> 1. Porting Ruby native extensions >> 2. Create an IronRuby library in C# in order to improve performance of a >> certain operation >> >> Shay. >> >> >> >> On Sun, Oct 11, 2009 at 6:57 PM, Ivan Porto Carrero >> wrote: >> >> Just require an assembly should work just as well I guess. >> >> >> >> When would you need to use the RubyClass etc attributes and the >> initializer? What is the added value of those? >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> >> On Sun, Oct 11, 2009 at 6:51 PM, Shay Friedman >> wrote: >> >> Is it possible to consider allowing to load extensions without the need of >> a library initializer? (another argument in the load_assembly method for >> example) >> Currently, the library initializer makes the whole thing much more >> complicated... >> >> Thanks, >> Shay. >> >> >> >> On Sun, Oct 11, 2009 at 6:27 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >> Basically to avoid reflection when loading the classes and modules. >> >> Tomas >> >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> Sent: Sunday, October 11, 2009 9:14 AM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] IronRuby C# Extensions >> >> I found out I needed an initializer... >> >> I have a question - why do we need initializers if we define everything on >> the attributes? >> >> Thanks, >> Shay. >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> -- >> >> -------------------------------------------------- >> Shay Friedman >> Author of IronRuby Unleashed >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> -- >> -------------------------------------------------- >> Shay Friedman >> Author of IronRuby Unleashed >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> -- >> -------------------------------------------------- >> Shay Friedman >> Author of IronRuby Unleashed >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> >> >> >> -- >> -------------------------------------------------- >> Shay Friedman >> Author of IronRuby Unleashed >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sun Oct 11 18:08:01 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 12 Oct 2009 00:08:01 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> Message-ID: oic.. yes that is my fault I have to change the way I deal with requiring files and clearing out old classes. I'll go for a load strategy instead of removing them from the Globals collection, but won't be today though. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Oct 11, 2009 at 10:11 PM, Immo Wache wrote: > Hi casualjim, > > thanks alot for your reply. Yes it is the plain source from your master > fork, with the ironruby assemblies from its dependencies folder (IR > 0.9.1 ones). > > Calling once the Home page works fine. But when I recall it later again > it fails. Reason why is the matter about the global vars I described. I > use VS 2008 Pro SP1 de-edition. > > When you can see the Home page, simply try refresh the page again. This > should produce the error. > > Immo > > Ivan Porto carrero wrote: > > I use an ironruby built on 28/09/2009 that is the one in the github repo > > if > > you build ironruby mvc. I can see the Home bpage of the test site. > > > > Did you build ironruby mvc from source recently? > > > > --- > > Met vriendelijke groeten - Best regards - Salutations > > Ivan Porto Carrero > > Blog: http://flanders.co.nz > > Twitter: http://twitter.com/casualjim > > Author of IronRuby in Action (http://manning.com/carrero) > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sun Oct 11 18:52:08 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 12 Oct 2009 00:52:08 +0200 Subject: [Ironruby-core] public windows build server In-Reply-To: References: Message-ID: OS: Windows 2008 R2Timezone: GMT+2 MRI: 1.8.7-p72 I can move the timezone to UTC if that would help. There are also different regions there from the US My region is Dutch (Belgium) --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Oct 12, 2009 at 12:44 AM, Jim Deville wrote: > Ivan, what OS, timezone and version of MRI are on that machine? > > > > ------------------------------ > From: Shri Borde > Sent: October 11, 2009 1:07 PM > To: Ivan Porto Carrero > Cc: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] public windows build server > > Tried it again and it works now. I took a quick look at the log at > http://ironruby.koolkraft.net/job/IronRuby/lastFailedBuild/console and its > good that most of the tests pass! > > > > The test failures need more investigation but seem like fixable test > issues: > > ? RubySpec B fails because of short file name vs long file name > issue. > > ? ActiveSupport seems to fail because of timezone issues and the > tests might need to be disabled like a number of other tests disabled in > Merlin\Languages\Ruby\Tests\Scripts\ActiveSupportTests.rb which also fail > with MRI? > > ? RubySpec C has this output. Don?t remember seeing it before: > > Socket::IPSocket#getaddress raises an error on unknown hostnames FAILED > > Expected SocketError but no exception was raised > > ? No idea about the Legacy test failures. There is no output > unfortunately. We need to fix the harness. > > CRubyDriver > > log @ > C:\Users\Administrator\.hudson\jobs\IronRuby\workspace\Merlin\Main/Languages/Ruby/Tests/cruby_10060241.log > > > > ..x(test_enumerable.rb)x(test_hash.rb)....sx(test_dir.rb)............................................. > > > > *From:* Ivan Porto Carrero [mailto:ivan at flanders.co.nz] > *Sent:* Saturday, October 10, 2009 1:08 AM > *To:* Shri Borde > *Subject:* Re: [Ironruby-core] public windows build server > > > > for the time being I have to use dyndns. I can get there from outside my > home but if the ip changed it takes a few minutes to be sent to dyndns.org > > > > In a few weeks I'll have a static IP, then this shouldn't happen anymore. > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Sat, Oct 10, 2009 at 5:54 AM, Shri Borde > wrote: > > Just tried the url and it does not work (?The IP address for the website > you requested could not be found.?). I can see Koolkraft.net itself > though. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Friday, October 09, 2009 3:58 PM > *To:* ironruby-core > *Subject:* [Ironruby-core] public windows build server > > > > Hi > > > > I've set up a windows build server too. http://ironruby.koolkraft.net > > > > Same goes if you want an ironruby project to be added to the build and run > after every ironruby build. Let me know and we'll see about getting you set > up. > > > > The ironruby build is failing because the tests are failing I'm not sure if > that is meant to be the case > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Oct 11 20:09:28 2009 From: lists at ruby-forum.com (Immo Wache) Date: Mon, 12 Oct 2009 02:09:28 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> Message-ID: <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> Hi Ivan, be imressed about your prompt reply. Good to read you can reproduce the issue. To be honest, I fiddeled around with the code some nights now, so I don't expect a solution from today to now. Meanwhile I learned (Almost Everything I never ever wanted to know) about Ruby, and it seams now to me that Ruby really dislike the idea to remove something which is global defined before. Meanwhile I'm listen to silly http://www.youtube.com/watch?v=tE17zPKfhYs to keep up my mood and try to get the old deactivated project IronRubyMvcLibrary.Tests from your master running. Wish you all best success for a solution, Immo Ivan Porto carrero wrote: > oic.. yes that is my fault > I have to change the way I deal with requiring files and clearing out > old > classes. > > I'll go for a load strategy instead of removing them from the Globals > collection, but won't be today though. > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Sun Oct 11 23:51:24 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 12 Oct 2009 03:51:24 +0000 Subject: [Ironruby-core] define_method behaves different than MRI In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06710072@TK5EX14MBXC131.redmond.corp.microsoft.com> Have a fix for this. Thanks for the simple repro! Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, October 10, 2009 9:41 AM To: ironruby-core Subject: [Ironruby-core] define_method behaves different than MRI Hi this used to work but now doesn't anymore ? ir IronRuby 0.9.1.0 on .NET 2.0.50727.4927 Copyright (c) Microsoft Corporation. All rights reserved. >>> class SomeClass ... define_method(:initialize) do |*args| ... puts args.join(", ") ... end ... end => # >>> SomeClass.new 1, 4, 6, 3 :0: wrong number of arguments (4 for 0) (ArgumentError) >>> exit + C:\dev ? irb irb(main):001:0> class SomeClass irb(main):002:1> define_method(:initialize) do |*args| irb(main):003:2* puts args.join(", ") irb(main):004:2> end irb(main):005:1> end => # irb(main):006:0> SomeClass.new 1, 4, 6, 3 1, 4, 6, 3 => # irb(main):007:0> --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Oct 12 18:26:05 2009 From: lists at ruby-forum.com (Zoltan Toth) Date: Tue, 13 Oct 2009 00:26:05 +0200 Subject: [Ironruby-core] =?utf-8?q?Newbie_questions_regarding_IronRuby=09i?= =?utf-8?q?n=09Silverlight=2E=2E=2E?= In-Reply-To: <50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com> <50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com> Message-ID: <8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> Once again thanks, we were able to get things working. Please note that we have offline requirements that require us to deploy the portions of the ruby standard library that we require, within our Silverlight application. My only other question is why does IronRuby ship with what appears to be two versions of the Ruby standard library? There appears to be a standard implementation (i.e. \lib\ruby\1.8 for IronRuby 0.9.1) that uses ruby scripts and there also appears to be an implementation that calls into the CLR (i.e. \lib\IronRuby) in order to do its stuf. Do we have a choice of which to use or do we need to deploy both? Many thanks for your help. Zoltan. -- Posted via http://www.ruby-forum.com/. From Nathan_Stults at HSIHealth.com Mon Oct 12 18:28:12 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Mon, 12 Oct 2009 15:28:12 -0700 Subject: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight... In-Reply-To: <8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com><50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com> <8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AF1D@hsi-fs.HSIHealth.local> I've been pondering the exact same thing - it is a touch confusing. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Zoltan Toth Sent: Monday, October 12, 2009 3:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core]Newbie questions regarding IronRuby in Silverlight... Once again thanks, we were able to get things working. Please note that we have offline requirements that require us to deploy the portions of the ruby standard library that we require, within our Silverlight application. My only other question is why does IronRuby ship with what appears to be two versions of the Ruby standard library? There appears to be a standard implementation (i.e. \lib\ruby\1.8 for IronRuby 0.9.1) that uses ruby scripts and there also appears to be an implementation that calls into the CLR (i.e. \lib\IronRuby) in order to do its stuf. Do we have a choice of which to use or do we need to deploy both? Many thanks for your help. Zoltan. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Mon Oct 12 18:49:12 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 12 Oct 2009 22:49:12 +0000 Subject: [Ironruby-core] Newbie questions regarding IronRuby in Silverlight... In-Reply-To: <8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com> <50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com> <8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> Message-ID: <95AA0E7B-4A73-4C90-8D1B-EE461B37199D@microsoft.com> There are not two copies, one is ruby stdlib, and one is IronRuby's own lib. The ruby stdlib contains pieces implemented in ruby, as well as C. In IronRuby we ported all the C stuff to C# (that's what IronRuby.Libraries.dll is), and redistribute the ruby code. So both directories are all part of the standard library. For Silverlight, I would suggest you only deploy the files that you use; the entire stdlib is fairly large. ~Jimmy Sent from my phone On Oct 12, 2009, at 3:26 PM, "Zoltan Toth" wrote: > Once again thanks, we were able to get things working. Please note > that > we have offline requirements that require us to deploy the portions of > the ruby standard library that we require, within our Silverlight > application. > > My only other question is why does IronRuby ship with what appears > to be > two versions of the Ruby standard library? There appears to be a > standard implementation (i.e. \lib\ruby\1.8 for IronRuby 0.9.1) that > uses ruby scripts and there also appears to be an implementation that > calls into the CLR (i.e. \lib\IronRuby) in order to do its stuf. Do > we > have a choice of which to use or do we need to deploy both? > > Many thanks for your help. > > Zoltan. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From Nathan_Stults at HSIHealth.com Mon Oct 12 18:58:15 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Mon, 12 Oct 2009 15:58:15 -0700 Subject: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... In-Reply-To: <95AA0E7B-4A73-4C90-8D1B-EE461B37199D@microsoft.com> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com><50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com><8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> <95AA0E7B-4A73-4C90-8D1B-EE461B37199D@microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AF2A@hsi-fs.HSIHealth.local> Is anyone aware of a tool that can recursively detect (and possibly extract) ruby dependencies given a top level .rb, or set of .rb files? I could see it being a tedious process to discover manually what components of the standard library were used by any given application. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Monday, October 12, 2009 3:49 PM To: Cc: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... There are not two copies, one is ruby stdlib, and one is IronRuby's own lib. The ruby stdlib contains pieces implemented in ruby, as well as C. In IronRuby we ported all the C stuff to C# (that's what IronRuby.Libraries.dll is), and redistribute the ruby code. So both directories are all part of the standard library. For Silverlight, I would suggest you only deploy the files that you use; the entire stdlib is fairly large. ~Jimmy Sent from my phone On Oct 12, 2009, at 3:26 PM, "Zoltan Toth" wrote: > Once again thanks, we were able to get things working. Please note > that > we have offline requirements that require us to deploy the portions of > the ruby standard library that we require, within our Silverlight > application. > > My only other question is why does IronRuby ship with what appears > to be > two versions of the Ruby standard library? There appears to be a > standard implementation (i.e. \lib\ruby\1.8 for IronRuby 0.9.1) that > uses ruby scripts and there also appears to be an implementation that > calls into the CLR (i.e. \lib\IronRuby) in order to do its stuf. Do > we > have a choice of which to use or do we need to deploy both? > > Many thanks for your help. > > Zoltan. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Oct 12 19:11:24 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 12 Oct 2009 23:11:24 +0000 Subject: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7AF2A@hsi-fs.HSIHealth.local> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com><50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com><8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> <95AA0E7B-4A73-4C90-8D1B-EE461B37199D@microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7AF2A@hsi-fs.HSIHealth.local> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C067104EC@TK5EX14MBXC131.redmond.corp.microsoft.com> It is not possible to completely and reliably automate such task in general. You could run your application and see what files are being required. You can monkey-patch Kernel#require and load so that they log the files being required. However you would need to exercise all code paths that might possibly load a file to get the full list. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Monday, October 12, 2009 3:58 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... Is anyone aware of a tool that can recursively detect (and possibly extract) ruby dependencies given a top level .rb, or set of .rb files? I could see it being a tedious process to discover manually what components of the standard library were used by any given application. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Monday, October 12, 2009 3:49 PM To: Cc: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... There are not two copies, one is ruby stdlib, and one is IronRuby's own lib. The ruby stdlib contains pieces implemented in ruby, as well as C. In IronRuby we ported all the C stuff to C# (that's what IronRuby.Libraries.dll is), and redistribute the ruby code. So both directories are all part of the standard library. For Silverlight, I would suggest you only deploy the files that you use; the entire stdlib is fairly large. ~Jimmy Sent from my phone On Oct 12, 2009, at 3:26 PM, "Zoltan Toth" wrote: > Once again thanks, we were able to get things working. Please note > that we have offline requirements that require us to deploy the > portions of the ruby standard library that we require, within our > Silverlight application. > > My only other question is why does IronRuby ship with what appears to > be two versions of the Ruby standard library? There appears to be a > standard implementation (i.e. \lib\ruby\1.8 for IronRuby 0.9.1) that > uses ruby scripts and there also appears to be an implementation that > calls into the CLR (i.e. \lib\IronRuby) in order to do its stuf. Do > we have a choice of which to use or do we need to deploy both? > > Many thanks for your help. > > Zoltan. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Oct 12 19:16:05 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 12 Oct 2009 23:16:05 +0000 Subject: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C067104EC@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com><50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com><8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com> <95AA0E7B-4A73-4C90-8D1B-EE461B37199D@microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7AF2A@hsi-fs.HSIHealth.local> <4B342496A3EFEB48839E10BB4BF5964C067104EC@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C0671050D@TK5EX14MBXC131.redmond.corp.microsoft.com> If you want to give it a try anyways you can also pass -ET LOAD_COMPILED command line options to ir.exe to see what files are being loaded. For example: D:\M3\Merlin\Main\Languages\Ruby>rbx -ET LOAD_COMPILED D:\M3\Merlin\Main\Languages\Ruby\Scripts\bin\iirb LOAD_COMPILED: 1: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb.rb LOAD_COMPILED: 2: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/e2mmap.rb LOAD_COMPILED: 3: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/init.rb LOAD_COMPILED: 4: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/context.rb LOAD_COMPILED: 5: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/workspace.rb LOAD_COMPILED: 6: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/extend-command.rb LOAD_COMPILED: 7: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/ruby-lex.rb LOAD_COMPILED: 8: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/slex.rb LOAD_COMPILED: 9: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/notifier.rb LOAD_COMPILED: 10: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/output-method.rb LOAD_COMPILED: 11: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/ruby-token.rb LOAD_COMPILED: 12: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/input-method.rb LOAD_COMPILED: 13: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/site_ruby/1.8/readline.rb LOAD_COMPILED: 14: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/site_ruby/1.8/rbreadline.rb LOAD_COMPILED: 15: D:/M3/Merlin/Main/Languages/Ruby/libs/etc.rb LOAD_COMPILED: 16: D:/M3/Merlin/Main/Languages/Ruby/libs/Win32API.rb LOAD_COMPILED: 17: D:/M3/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/irb/locale.rb irb(main):001:0> Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Monday, October 12, 2009 4:11 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... It is not possible to completely and reliably automate such task in general. You could run your application and see what files are being required. You can monkey-patch Kernel#require and load so that they log the files being required. However you would need to exercise all code paths that might possibly load a file to get the full list. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Monday, October 12, 2009 3:58 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... Is anyone aware of a tool that can recursively detect (and possibly extract) ruby dependencies given a top level .rb, or set of .rb files? I could see it being a tedious process to discover manually what components of the standard library were used by any given application. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Monday, October 12, 2009 3:49 PM To: Cc: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... There are not two copies, one is ruby stdlib, and one is IronRuby's own lib. The ruby stdlib contains pieces implemented in ruby, as well as C. In IronRuby we ported all the C stuff to C# (that's what IronRuby.Libraries.dll is), and redistribute the ruby code. So both directories are all part of the standard library. For Silverlight, I would suggest you only deploy the files that you use; the entire stdlib is fairly large. ~Jimmy Sent from my phone On Oct 12, 2009, at 3:26 PM, "Zoltan Toth" wrote: > Once again thanks, we were able to get things working. Please note > that we have offline requirements that require us to deploy the > portions of the ruby standard library that we require, within our > Silverlight application. > > My only other question is why does IronRuby ship with what appears to > be two versions of the Ruby standard library? There appears to be a > standard implementation (i.e. \lib\ruby\1.8 for IronRuby 0.9.1) that > uses ruby scripts and there also appears to be an implementation that > calls into the CLR (i.e. \lib\IronRuby) in order to do its stuf. Do > we have a choice of which to use or do we need to deploy both? > > Many thanks for your help. > > Zoltan. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Nathan_Stults at HSIHealth.com Mon Oct 12 19:19:47 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Mon, 12 Oct 2009 16:19:47 -0700 Subject: [Ironruby-core] Newbiequestions regardingIronRuby in Silverlight... In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C067104EC@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <9db7468fdd628ed7f170a9e18928d8fd@ruby-forum.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8499@tk5ex14mbxc106.redmond.corp.microsoft.com><0047ECBFA2E0DF4A834AA369282A5AFC1EEA8511@tk5ex14mbxc106.redmond.corp.microsoft.com><50f959ca033098a1d83eb34f6c9a60db@ruby-forum.com><8cd0ecd9df4252088014d0c0327fc00b@ruby-forum.com><95AA0E7B-4A73-4C90-8D1B-EE461B37199D@microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7AF2A@hsi-fs.HSIHealth.local> <4B342496A3EFEB48839E10BB4BF5964C067104EC@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AF2F@hsi-fs.HSIHealth.local> Well, if you have good test coverage for your ruby code, that should be doable :) Probably monkey patching and good tests is the way to go then. In your journeys through the Ruby standard libraries, have you noticed that they tend to require/load dependencies dynamically (i.e. based on magic strings a static automation tool could not follow) fairly frequently? Or is it rather rare? Also, would it be feasible to host the standard libraries on the web and rig up the hosting environment to fall back to a web server if the libraries being dynamically loaded weren't properly deployed with the app? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Monday, October 12, 2009 4:11 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbiequestions regardingIronRuby in Silverlight... It is not possible to completely and reliably automate such task in general. You could run your application and see what files are being required. You can monkey-patch Kernel#require and load so that they log the files being required. However you would need to exercise all code paths that might possibly load a file to get the full list. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Monday, October 12, 2009 3:58 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... Is anyone aware of a tool that can recursively detect (and possibly extract) ruby dependencies given a top level .rb, or set of .rb files? I could see it being a tedious process to discover manually what components of the standard library were used by any given application. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Monday, October 12, 2009 3:49 PM To: Cc: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Newbie questions regardingIronRuby in Silverlight... There are not two copies, one is ruby stdlib, and one is IronRuby's own lib. The ruby stdlib contains pieces implemented in ruby, as well as C. In IronRuby we ported all the C stuff to C# (that's what IronRuby.Libraries.dll is), and redistribute the ruby code. So both directories are all part of the standard library. For Silverlight, I would suggest you only deploy the files that you use; the entire stdlib is fairly large. ~Jimmy Sent from my phone On Oct 12, 2009, at 3:26 PM, "Zoltan Toth" wrote: > Once again thanks, we were able to get things working. Please note > that we have offline requirements that require us to deploy the > portions of the ruby standard library that we require, within our > Silverlight application. > > My only other question is why does IronRuby ship with what appears to > be two versions of the Ruby standard library? There appears to be a > standard implementation (i.e. \lib\ruby\1.8 for IronRuby 0.9.1) that > uses ruby scripts and there also appears to be an implementation that > calls into the CLR (i.e. \lib\IronRuby) in order to do its stuf. Do > we have a choice of which to use or do we need to deploy both? > > Many thanks for your help. > > Zoltan. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Tue Oct 13 07:36:53 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 13 Oct 2009 13:36:53 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> Message-ID: I've updated the ironruby libraries to what's in github currently. I pulled in your changes Immo but when i compiled the app I couldn't serve any pages up it complained about not being able to find the correct IronRuby yada yada. Anyway the fix I had in mind was removing 1 line of code and reloading works again. The thing is that now if you update a controller file you need to restart the web application. Does windows have an equivalent of touch ? because doing that could be as easy as touch web.config otherwise I use the following cheat I add a space in web.config so it hashes differently and save the web.config file. Thanks for fixing the tests :) I'll see if I can cherry-pick your changes later. The extension method RequireFile for ruby does that respect when I would redefine the require statement to keep track of classes contained in a file and reload them on each request when compiled in debug mode? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Oct 12, 2009 at 2:09 AM, Immo Wache wrote: > Hi Ivan, > > be imressed about your prompt reply. Good to read you can reproduce the > issue. > To be honest, I fiddeled around with the code some nights now, so I > don't expect a solution from today to now. Meanwhile I learned (Almost > Everything I never ever wanted to know) about Ruby, and it seams now to > me that Ruby really dislike the idea to remove something which is global > defined before. > > Meanwhile I'm listen to silly http://www.youtube.com/watch?v=tE17zPKfhYs > to keep up my mood and try to get the old deactivated project > IronRubyMvcLibrary.Tests from your master running. > > Wish you all best success for a solution, > Immo > > Ivan Porto carrero wrote: > > oic.. yes that is my fault > > I have to change the way I deal with requiring files and clearing out > > old > > classes. > > > > I'll go for a load strategy instead of removing them from the Globals > > collection, but won't be today though. > > --- > > Met vriendelijke groeten - Best regards - Salutations > > Ivan Porto Carrero > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Oct 13 12:29:58 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 13 Oct 2009 16:29:58 +0000 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> ?The extension method RequireFile for ruby does that respect when I would redefine the require statement to keep track of classes contained in a file and reload them on each request when compiled in debug mode?? No, there is no dynamic invocation of ?require? method going on. If you need to call ?require? you can use Engine.Operations.InvokeMember(nil, ?require?, fileName); Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, October 13, 2009 4:37 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 I've updated the ironruby libraries to what's in github currently. I pulled in your changes Immo but when i compiled the app I couldn't serve any pages up it complained about not being able to find the correct IronRuby yada yada. Anyway the fix I had in mind was removing 1 line of code and reloading works again. The thing is that now if you update a controller file you need to restart the web application. Does windows have an equivalent of touch ? because doing that could be as easy as touch web.config otherwise I use the following cheat I add a space in web.config so it hashes differently and save the web.config file. Thanks for fixing the tests :) I'll see if I can cherry-pick your changes later. The extension method RequireFile for ruby does that respect when I would redefine the require statement to keep track of classes contained in a file and reload them on each request when compiled in debug mode? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Oct 12, 2009 at 2:09 AM, Immo Wache > wrote: Hi Ivan, be imressed about your prompt reply. Good to read you can reproduce the issue. To be honest, I fiddeled around with the code some nights now, so I don't expect a solution from today to now. Meanwhile I learned (Almost Everything I never ever wanted to know) about Ruby, and it seams now to me that Ruby really dislike the idea to remove something which is global defined before. Meanwhile I'm listen to silly http://www.youtube.com/watch?v=tE17zPKfhYs to keep up my mood and try to get the old deactivated project IronRubyMvcLibrary.Tests from your master running. Wish you all best success for a solution, Immo Ivan Porto carrero wrote: > oic.. yes that is my fault > I have to change the way I deal with requiring files and clearing out > old > classes. > > I'll go for a load strategy instead of removing them from the Globals > collection, but won't be today though. > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Tue Oct 13 14:14:50 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Tue, 13 Oct 2009 11:14:50 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEC48FB@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local>, <790F1F63F5D2E44E91797E821B31FDBB02B7AB41@hsi-fs.HSIHealth.local> <0047ECBFA2E0DF4A834AA369282A5AFC1EEC48FB@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AFFB@hsi-fs.HSIHealth.local> I have uploaded the first draft of my work here: http://github.com/PlasticLizard/Bracket if anyone is interested. I generalized the Rack hosting code from the IronRuby.Rack solution to be easily adaptable to other web servers. Included in this first iteration are hosts for HttpListener, C# Web Server, Kayak, and the IIS handlers from the original project are included for completeness. Unfortunately embedding a Rack application in a C# server still requires that the IronRuby libraries are installed on the target machine or included with the applications deployment. I'm thinking of ways to make that somewhat easier to deal with, possibly embedding the standard library in a .dll via resources or doing just in time downloads of required files from the web. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 12:23 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions There is no problem with you taking any part of anything in the IronRuby repo and including it in another library; here are all the licenses IronRuby's releases contain: http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Languages/Ru by/Licenses. CJ recently did a good job of mapping each directory in the entire IronRuby tree to a license, so I'll let him chime in about where that data is. So, feel free to do you work separately for now. I'd be interested in taking back any fixes you have for the rack-specific pieces, so I'll figure out how to make that happen on my side when the time comes. Let me know how things go, and don't hesitate to ask any more questions, ~Jimmy ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [Nathan_Stults at HSIHealth.com] Sent: Thursday, October 08, 2009 12:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions Thank you - I'm new to GitHub, so I didn't notice that branch - I'll get that one as a guide instead. On a related note, is there an accepted / preferred / traditional path I should follow in regards to re-mixing your code? I presume your rack integration stuff is licensed the same as IronRuby? In any case, is there any problem with me blending your work into a separate library intended to act as a generic adapter between Rack and an embedded .NET server and publishing as a separate library (following attribution, licensing rules, etc)? That is what I would normally do, but all this forking madness has made me second guess. BTW, thanks for your time in answering my endless questions. You guys have done an amazing job on all this stuff, very exciting possibilities. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 11:52 AM To: Subject: Re: [Ironruby-core] Native Extensions They are an implementation detail; used to manipulate the request and response from ruby (see later on down in the massive handle method). In my forks "rackupdate" branch I don't think they exist anymore, as I'm refactoring that code a bit. ~Jimmy Sent from my phone On Oct 8, 2009, at 11:12 AM, "Nathan Stults" wrote: > Good news, thanks. In the Handle method of the IIS.cs, you are setting > two scope variables, __request and __response - are these variables > known to Rack, or are those set for the convenience of a IronRuby > adapter aware programmer to use from ruby if desired? > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 12:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > That lock is there because Rails wasn't thread-safe at the time of > writing; it has no reflection on whether ScriptEngine is thread- > safe. I > believe ScriptEngine is thread-safe, as only one ScriptEngine per > language can EVER exist when you have only one ScriptRuntime. > > Rails is much more thread-safe than it used to be, so that lock should > be removed; IMO it should have never been there as the Rack adapter > shouldn't care about Rails; it should lock if the rack.multithreaded > flag is true. > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [Nathan_Stults at HSIHealth.com] > Sent: Thursday, October 08, 2009 12:26 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > Ahh nice clean, brief code. Now this I can handle. I do have a > question > though about threading - it looks like in your implementation the > whole > apparatus is essentially single threaded, i.e. there is a single > handler > maintained by the factory, and the single handler locks itself for the > duration of the request - this suggests to me that ScriptEngine (or at > least RubyEngine) is not thread-safe? Is that the case, or was the > threading designed for simplicity? For instance, if in my > implementation > I took a lock on the RubyEngine just long enough to obtain a new scope > to handle the request, would that do? Or does it pretty much need to > be > 1 thread = 1 script engine? If the latter is the case, would there be > any caveats to maintaining a small pool of engines that could handle a > few simultaneous requests? To be honest, this almost certainly won't > make a bit of difference to my use case of embedding a web server in > an > application server, traffic just won't be that high, but mostly I'm > just > curious about the platform. > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Wednesday, October 07, 2009 5:12 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > The HttpHandler is the only piece you'll have to replace, since it's > specifically for IIS, and provide your own hookup to the server you > choose. You'll have to construct the HttpRequest/Response objects > also, > but all-in-all it should be pretty straight-forward. Those two look > like > great .NET web-server projects; "webserver" is like a web-framework > too, > which is cool. Whatever you do, DON'T use Chiron, as it's not intended > to be a real web-server (it doesn't support POST requests, and only > listens on localhost). > > ~js > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Nathan Stults >> Sent: Wednesday, October 07, 2009 4:54 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> I spent a day chasing my tail and, upon catching it, realized my > DLR/IronRuby >> knowledge just isn't up to the challenge. Maybe someday. As an > alternative, >> I'm going to see if the IronRuby.Rack stuff on Git can teach me >> what I > need to >> wire Rack up to one of these embeddable .NET HTTP servers: >> http://www.codeplex.com/webserver, >> http://runkayak.com/getstarted, which ought to provide the same > benefit, >> and possibly perform a little better as well. Is anyone aware of >> other >> embeddable .NET HTTP server projects? >> >> (http://github.com/jschementi/ironruby/tree/ >> 92932a672921a03210c8aefe23 >> ac >> 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) >> >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele >> Alessandri >> Sent: Tuesday, October 06, 2009 11:39 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> 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 >> mongrel library >> 4- have fun. >> >> I did the same for hpricot and json (whose parsers are generated >> using >> Ragel), so I guess that should work for Mongrel too :-) >> >> >> On Wed, Oct 7, 2009 at 03:09, Nathan Stults > >> wrote: >>> 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 required the new .NET HTTP parser dll instead of the C >>> version? Is that how that would work? >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org >>> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy >>> Schementi >>> Sent: Tuesday, October 06, 2009 6:00 PM >>> To: ironruby-core at rubyforge.org >>> Subject: Re: [Ironruby-core] Native Extensions >>> >>> 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 current work-around for libraries which use native code to >>> communicate with the OS or Ruby is to rewrite those using .NET so >>> IronRuby can use them. Mongrel is actually \mostly Ruby code, as > most >>> Ruby libraries which use native code; there is usually a very small >> part >>> of the library which depends on native code. For Mongrel, the HTTP > 1.1 >>> parser is the only native piece; rewriting that in C# would allow > you >> to >>> run Mongrel on .NET. >>> >>> IMO, after 1.0 would be the time to consider supporting the native >> Ruby >>> API. >>> >>> ~Jimmy >>> ________________________________________ >>> From: ironruby-core-bounces at rubyforge.org >>> [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults >>> [lists at ruby-forum.com] >>> Sent: Tuesday, October 06, 2009 4:18 PM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] Native Extensions >>> >>> 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? I'd > love >> to >>> use IronRuby to embed Thin or Mongrel in my .NET services, but from >> from >>> my few experiments it looks like most of the networking libraries >> these >>> servers use tend to rely on native dll's. >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> >> >> >> -- >> Daniele Alessandri >> http://www.clorophilla.net/blog/ >> http://twitter.com/JoL1hAHN >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Nathan_Stults at HSIHealth.com Tue Oct 13 14:19:40 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Tue, 13 Oct 2009 11:19:40 -0700 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7AFFB@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local>, <790F1F63F5D2E44E91797E821B31FDBB02B7AB41@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC48FB@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7AFFB@hsi-fs.HSIHealth.local> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02B7AFFC@hsi-fs.HSIHealth.local> Maybe Microsoft could host the IronRuby standard library on its new CDN (http://weblogs.asp.net/scottgu/archive/2009/09/15/announcing-the-micros oft-ajax-cdn.aspx) for all to enjoy :) Most of the individual library files seem small enough, and if it works for .JS files, it should work for Ruby, no? Especially if some local caching were baked in. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Tuesday, October 13, 2009 11:15 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions I have uploaded the first draft of my work here: http://github.com/PlasticLizard/Bracket if anyone is interested. I generalized the Rack hosting code from the IronRuby.Rack solution to be easily adaptable to other web servers. Included in this first iteration are hosts for HttpListener, C# Web Server, Kayak, and the IIS handlers from the original project are included for completeness. Unfortunately embedding a Rack application in a C# server still requires that the IronRuby libraries are installed on the target machine or included with the applications deployment. I'm thinking of ways to make that somewhat easier to deal with, possibly embedding the standard library in a .dll via resources or doing just in time downloads of required files from the web. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 12:23 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions There is no problem with you taking any part of anything in the IronRuby repo and including it in another library; here are all the licenses IronRuby's releases contain: http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Languages/Ru by/Licenses. CJ recently did a good job of mapping each directory in the entire IronRuby tree to a license, so I'll let him chime in about where that data is. So, feel free to do you work separately for now. I'd be interested in taking back any fixes you have for the rack-specific pieces, so I'll figure out how to make that happen on my side when the time comes. Let me know how things go, and don't hesitate to ask any more questions, ~Jimmy ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults [Nathan_Stults at HSIHealth.com] Sent: Thursday, October 08, 2009 12:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Native Extensions Thank you - I'm new to GitHub, so I didn't notice that branch - I'll get that one as a guide instead. On a related note, is there an accepted / preferred / traditional path I should follow in regards to re-mixing your code? I presume your rack integration stuff is licensed the same as IronRuby? In any case, is there any problem with me blending your work into a separate library intended to act as a generic adapter between Rack and an embedded .NET server and publishing as a separate library (following attribution, licensing rules, etc)? That is what I would normally do, but all this forking madness has made me second guess. BTW, thanks for your time in answering my endless questions. You guys have done an amazing job on all this stuff, very exciting possibilities. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 08, 2009 11:52 AM To: Subject: Re: [Ironruby-core] Native Extensions They are an implementation detail; used to manipulate the request and response from ruby (see later on down in the massive handle method). In my forks "rackupdate" branch I don't think they exist anymore, as I'm refactoring that code a bit. ~Jimmy Sent from my phone On Oct 8, 2009, at 11:12 AM, "Nathan Stults" wrote: > Good news, thanks. In the Handle method of the IIS.cs, you are setting > two scope variables, __request and __response - are these variables > known to Rack, or are those set for the convenience of a IronRuby > adapter aware programmer to use from ruby if desired? > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 12:54 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > That lock is there because Rails wasn't thread-safe at the time of > writing; it has no reflection on whether ScriptEngine is thread- > safe. I > believe ScriptEngine is thread-safe, as only one ScriptEngine per > language can EVER exist when you have only one ScriptRuntime. > > Rails is much more thread-safe than it used to be, so that lock should > be removed; IMO it should have never been there as the Rack adapter > shouldn't care about Rails; it should lock if the rack.multithreaded > flag is true. > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [Nathan_Stults at HSIHealth.com] > Sent: Thursday, October 08, 2009 12:26 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > Ahh nice clean, brief code. Now this I can handle. I do have a > question > though about threading - it looks like in your implementation the > whole > apparatus is essentially single threaded, i.e. there is a single > handler > maintained by the factory, and the single handler locks itself for the > duration of the request - this suggests to me that ScriptEngine (or at > least RubyEngine) is not thread-safe? Is that the case, or was the > threading designed for simplicity? For instance, if in my > implementation > I took a lock on the RubyEngine just long enough to obtain a new scope > to handle the request, would that do? Or does it pretty much need to > be > 1 thread = 1 script engine? If the latter is the case, would there be > any caveats to maintaining a small pool of engines that could handle a > few simultaneous requests? To be honest, this almost certainly won't > make a bit of difference to my use case of embedding a web server in > an > application server, traffic just won't be that high, but mostly I'm > just > curious about the platform. > > Thanks, > > Nathan > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Wednesday, October 07, 2009 5:12 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > The HttpHandler is the only piece you'll have to replace, since it's > specifically for IIS, and provide your own hookup to the server you > choose. You'll have to construct the HttpRequest/Response objects > also, > but all-in-all it should be pretty straight-forward. Those two look > like > great .NET web-server projects; "webserver" is like a web-framework > too, > which is cool. Whatever you do, DON'T use Chiron, as it's not intended > to be a real web-server (it doesn't support POST requests, and only > listens on localhost). > > ~js > >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- >> bounces at rubyforge.org] On Behalf Of Nathan Stults >> Sent: Wednesday, October 07, 2009 4:54 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> I spent a day chasing my tail and, upon catching it, realized my > DLR/IronRuby >> knowledge just isn't up to the challenge. Maybe someday. As an > alternative, >> I'm going to see if the IronRuby.Rack stuff on Git can teach me >> what I > need to >> wire Rack up to one of these embeddable .NET HTTP servers: >> http://www.codeplex.com/webserver, >> http://runkayak.com/getstarted, which ought to provide the same > benefit, >> and possibly perform a little better as well. Is anyone aware of >> other >> embeddable .NET HTTP server projects? >> >> (http://github.com/jschementi/ironruby/tree/ >> 92932a672921a03210c8aefe23 >> ac >> 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) >> >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele >> Alessandri >> Sent: Tuesday, October 06, 2009 11:39 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Native Extensions >> >> 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 >> mongrel library >> 4- have fun. >> >> I did the same for hpricot and json (whose parsers are generated >> using >> Ragel), so I guess that should work for Mongrel too :-) >> >> >> On Wed, Oct 7, 2009 at 03:09, Nathan Stults > >> wrote: >>> 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 required the new .NET HTTP parser dll instead of the C >>> version? Is that how that would work? >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org >>> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy >>> Schementi >>> Sent: Tuesday, October 06, 2009 6:00 PM >>> To: ironruby-core at rubyforge.org >>> Subject: Re: [Ironruby-core] Native Extensions >>> >>> 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 current work-around for libraries which use native code to >>> communicate with the OS or Ruby is to rewrite those using .NET so >>> IronRuby can use them. Mongrel is actually \mostly Ruby code, as > most >>> Ruby libraries which use native code; there is usually a very small >> part >>> of the library which depends on native code. For Mongrel, the HTTP > 1.1 >>> parser is the only native piece; rewriting that in C# would allow > you >> to >>> run Mongrel on .NET. >>> >>> IMO, after 1.0 would be the time to consider supporting the native >> Ruby >>> API. >>> >>> ~Jimmy >>> ________________________________________ >>> From: ironruby-core-bounces at rubyforge.org >>> [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults >>> [lists at ruby-forum.com] >>> Sent: Tuesday, October 06, 2009 4:18 PM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] Native Extensions >>> >>> 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? I'd > love >> to >>> use IronRuby to embed Thin or Mongrel in my .NET services, but from >> from >>> my few experiments it looks like most of the networking libraries >> these >>> servers use tend to rely on native dll's. >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> >> >> >> -- >> Daniele Alessandri >> http://www.clorophilla.net/blog/ >> http://twitter.com/JoL1hAHN >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Tue Oct 13 15:45:37 2009 From: lists at ruby-forum.com (Immo Wache) Date: Tue, 13 Oct 2009 21:45:37 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> Message-ID: Hi Ivan, many thanks again to care about this problem. Ivan Porto carrero wrote: > I pulled in your changes Immo but ... complained about not being able > to find the correct IronRuby yada yada. Oh, my fault, sorry. I merged my local copy to my (first!) github fork (the one from you) slightly to much careful. There was a local copy reference of this assembly missing. Its fixed and pushed now. > Anyway the fix I had in mind was removing 1 line of code and reloading > works again. The thing is that now if you update a controller file you > need to restart the web application. Hmm, your solution seams to me for a cure of symthomes only. Ok it passes my tests but the problem with this solution is the one I described earlier: "I tried to comment out call to 2. This works better, but the HomeController now adds all Filter methods again and again, everytime I call the controller." To make this proveable I just added and pushed another test for this: [when_a_ruby_controller_was_resolved_twice->action_filters_count_should_be_ equal] This issue effects to the demo/test project "IronRubyMvcWeb" that you get on the browser at first call of /Home controller: ============================== Hello world >From method filter ASP.NET MVC w/ IronRuby Demo ... rabarber, rabarber... ============================== and on the second call: ============================== Hello world >From method filter Hello world <== these are the readded filters >From method filter ASP.NET MVC w/ IronRuby Demo ... rabarber, rabarber... ============================== So I need to touch web.config on _every_ subsequent call to an (unmodified) IronRuby controller :-((( Immo -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Tue Oct 13 15:49:29 2009 From: lists at ruby-forum.com (Immo Wache) Date: Tue, 13 Oct 2009 21:49:29 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <2091aefc4dcb14da158f54677b1e2ab3@ruby-forum.com> Hi Tomas, thanks alot for joining the discussion. Your idea sounds interesting. I'll try it out now. Immo Tomas Matousek wrote: > ?The extension method RequireFile for ruby does that respect when I > would redefine the require statement to keep track of classes contained > in a file and reload them on each request when compiled in debug mode?? > > No, there is no dynamic invocation of ?require? method going on. If you > need to call ?require? you can use Engine.Operations.InvokeMember(nil, > ?require?, fileName); > > Tomas -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Oct 14 02:18:26 2009 From: lists at ruby-forum.com (Immo Wache) Date: Wed, 14 Oct 2009 08:18:26 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> Hi Tomas, No success so far, all variants produce the same exception: "InvalidOperationException: Empty scope has no global scope." ??? I tried following variants: Engine.Operations.InvokeMember(null, "require", PathProvider.MapPath(path)); Engine.Operations.InvokeMember(Context, "require", PathProvider.MapPath(path)); Engine.Operations.InvokeMember(Context.TopGlobalScope, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine.Runtime.Globals, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine.GetScope(null), "require", PathProvider.MapPath(path)) with: Engine = Ruby.GetEngine(Runtime); Context = Ruby.GetExecutionContext(Engine); CurrentScope = Engine.CreateScope(); Operations = Engine.CreateOperations(); Any ideas what's wrong? Hope for some help, Immo Tomas Matousek wrote: > ?The extension method RequireFile for ruby does that respect when I > would redefine the require statement to keep track of classes contained > in a file and reload them on each request when compiled in debug mode?? > > No, there is no dynamic invocation of ?require? method going on. If you > need to call ?require? you can use Engine.Operations.InvokeMember(nil, > ?require?, fileName); -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Oct 14 03:41:13 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 14 Oct 2009 09:41:13 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> Message-ID: Hi Immo, I've been able to merge your changes, will push them later. I'll see what I can do about reloading, but can't promise anything as I don't have a lot of time to spend on this. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 14, 2009 at 8:18 AM, Immo Wache wrote: > Hi Tomas, > > No success so far, all variants produce the same exception: > "InvalidOperationException: Empty scope has no global scope." ??? > > I tried following variants: > > Engine.Operations.InvokeMember(null, "require", > PathProvider.MapPath(path)); > Engine.Operations.InvokeMember(Context, "require", > PathProvider.MapPath(path)); > Engine.Operations.InvokeMember(Context.TopGlobalScope, "require", > PathProvider.MapPath(path)) > Engine.Operations.InvokeMember(Engine, "require", > PathProvider.MapPath(path)) > Engine.Operations.InvokeMember(Engine.Runtime.Globals, "require", > PathProvider.MapPath(path)) > Engine.Operations.InvokeMember(Engine.GetScope(null), "require", > PathProvider.MapPath(path)) > > with: > > Engine = Ruby.GetEngine(Runtime); > Context = Ruby.GetExecutionContext(Engine); > CurrentScope = Engine.CreateScope(); > Operations = Engine.CreateOperations(); > > Any ideas what's wrong? > > Hope for some help, Immo > > Tomas Matousek wrote: > > ?The extension method RequireFile for ruby does that respect when I > > would redefine the require statement to keep track of classes contained > > in a file and reload them on each request when compiled in debug mode?? > > > > No, there is no dynamic invocation of ?require? method going on. If you > > need to call ?require? you can use Engine.Operations.InvokeMember(nil, > > ?require?, fileName); > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Oct 14 04:51:35 2009 From: lists at ruby-forum.com (Immo Wache) Date: Wed, 14 Oct 2009 10:51:35 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> Message-ID: <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> Hi Ivan, I see you have alot to do with your book and things. Neverless thank you for your help. May be I can support you in my issue with help of others from this forum. Meanwhile I managed to get the tip from Tomas working by execute a plain Ruby script (I know its not a professional solution): string scriptPath = "require '" + PathProvider.MapPath(path) + "'"; Engine.ExecuteScript(scriptPath, CurrentScope)); This works much betten than before: 1. When the controller is called first time, the HomeController.rb script is executed. 2. When the controller is called again, the script will not executed again. This resolves perfect the "Filter adding" problem. 3. When I modify the HomeController.rb script, the script will not be executed again. To get it executed, I need to touch web.config/Restart ASP.NET. Issue No. 3 is not perfect to me, because I'm about to write an IronRuby MVC extention module for Umbraco CMS. The CMS backend developer should be able to modify ruby scripts via web interface, and restart ASP.NET takes a lot of time because the CMS has a bunch of assemblies to reload which takes almost 30 sec. on my dev IIS. Neverless I will put the modification to my branch, with this I'm be able to carry on with my own extention module. BTW It would be real great, if anyone has a tip to my "Engine.Operations.InvokeMember(" problem above. Greetings, Immo Ivan Porto carrero wrote: > Hi Immo, > I've been able to merge your changes, will push them later. > > I'll see what I can do about reloading, but can't promise anything as I > don't have a lot of time to spend on this. > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Oct 14 05:08:13 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 14 Oct 2009 11:08:13 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> Message-ID: I can check that in becuase that require is working for me now. I didn't use the way Tomas suggested because that didn't work for me either. It complained about the scope not being the global scope or the global scope being empty. I just execute a script. This fixes your issue but will require you to restart the application to pick up any changes at this moment. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 14, 2009 at 10:51 AM, Immo Wache wrote: > Hi Ivan, > > I see you have alot to do with your book and things. Neverless thank you > for your help. May be I can support you in my issue with help of others > from this forum. > > Meanwhile I managed to get the tip from Tomas working by execute a plain > Ruby script (I know its not a professional solution): > > string scriptPath = "require '" + PathProvider.MapPath(path) + "'"; > Engine.ExecuteScript(scriptPath, CurrentScope)); > > This works much betten than before: > > 1. When the controller is called first time, > the HomeController.rb script is executed. > > 2. When the controller is called again, the script > will not executed again. This resolves perfect > the "Filter adding" problem. > > 3. When I modify the HomeController.rb script, > the script will not be executed again. To get it > executed, I need to touch web.config/Restart ASP.NET. > > Issue No. 3 is not perfect to me, because I'm about to write an IronRuby > MVC extention module for Umbraco CMS. The CMS backend developer should > be able to modify ruby scripts via web interface, and restart ASP.NET > takes a lot of time because the CMS has a bunch of assemblies to reload > which takes almost 30 sec. on my dev IIS. > > Neverless I will put the modification to my branch, with this I'm be > able to carry on with my own extention module. > > BTW It would be real great, if anyone has a tip to my > "Engine.Operations.InvokeMember(" problem above. > > Greetings, Immo > > Ivan Porto carrero wrote: > > Hi Immo, > > I've been able to merge your changes, will push them later. > > > > I'll see what I can do about reloading, but can't promise anything as I > > don't have a lot of time to spend on this. > > --- > > Met vriendelijke groeten - Best regards - Salutations > > Ivan Porto Carrero > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Oct 14 05:54:33 2009 From: lists at ruby-forum.com (Immo Wache) Date: Wed, 14 Oct 2009 11:54:33 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> Message-ID: Hi Ivan, good news. If you got it ready, yes please check in. So I can update my branch and test it. Immo Ivan Porto carrero wrote: > I can check that in becuase that require is working for me now. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Oct 14 06:04:50 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 14 Oct 2009 12:04:50 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> Message-ID: done these are the changes I made, almost none :) http://github.com/casualjim/ironrubymvc/commit/bc80a3057f48c3064ddb99f5700d8279f0455189 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 14, 2009 at 11:54 AM, Immo Wache wrote: > Hi Ivan, > > good news. If you got it ready, yes please check in. So I can update my > branch and test it. > > Immo > > > Ivan Porto carrero wrote: > > I can check that in becuase that require is working for me now. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Wed Oct 14 11:32:56 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 14 Oct 2009 10:32:56 -0500 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby ? In-Reply-To: <4a68b8cf0910140803p68b780akc3bbd3f6d9ffb84f@mail.gmail.com> References: <4a68b8cf0910140803p68b780akc3bbd3f6d9ffb84f@mail.gmail.com> Message-ID: On Wed, Oct 14, 2009 at 10:03 AM, Thibaut Barr?re wrote: > Hi, > I'm going to need manipulation of Excel/Word documents for a production app > - I'll use IronRuby there. > > Did anyone develop some kind of tool or dsl to handle these manipulations > already ? > > I'd like to avoid reinventing the wheel if it's the case, > You could reference the Open XML SDKand use that from within IronRuby. See Eric White's excellent examples in C#for usage. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Wed Oct 14 12:00:18 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 14 Oct 2009 11:00:18 -0500 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby ? In-Reply-To: <4a68b8cf0910140845ib5412bci8f280830d9531772@mail.gmail.com> References: <4a68b8cf0910140803p68b780akc3bbd3f6d9ffb84f@mail.gmail.com> <6927b8740910140841o4e09a5e1k79df528da4350800@mail.gmail.com> <4a68b8cf0910140845ib5412bci8f280830d9531772@mail.gmail.com> Message-ID: On Wed, Oct 14, 2009 at 10:45 AM, Thibaut Barr?re wrote: > @Ryan: pretty much what I had in mind, except I didn't know about Eric > White's examples. Thanks a lot! > > I'll see if there is some benefit to wrap this up in an IronRuby gem (and > will share it if it does). > Let me know if you want some help. I've done some work with this in C# on a recent project and never considered using IR for that, but it makes a lot of sense. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Website: http://panesofglass.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Oct 14 12:04:58 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 14 Oct 2009 16:04:58 +0000 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06710E49@TK5EX14MBXC131.redmond.corp.microsoft.com> Seems like a bug. I'll take a look. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Immo Wache Sent: Tuesday, October 13, 2009 11:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 Hi Tomas, No success so far, all variants produce the same exception: "InvalidOperationException: Empty scope has no global scope." ??? I tried following variants: Engine.Operations.InvokeMember(null, "require", PathProvider.MapPath(path)); Engine.Operations.InvokeMember(Context, "require", PathProvider.MapPath(path)); Engine.Operations.InvokeMember(Context.TopGlobalScope, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine.Runtime.Globals, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine.GetScope(null), "require", PathProvider.MapPath(path)) with: Engine = Ruby.GetEngine(Runtime); Context = Ruby.GetExecutionContext(Engine); CurrentScope = Engine.CreateScope(); Operations = Engine.CreateOperations(); Any ideas what's wrong? Hope for some help, Immo Tomas Matousek wrote: > ?The extension method RequireFile for ruby does that respect when I > would redefine the require statement to keep track of classes contained > in a file and reload them on each request when compiled in debug mode?? > > No, there is no dynamic invocation of ?require? method going on. If you > need to call ?require? you can use Engine.Operations.InvokeMember(nil, > ?require?, fileName); -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From kevin.radcliffe at gmail.com Wed Oct 14 12:20:12 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 14 Oct 2009 10:20:12 -0600 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby ? In-Reply-To: <131af5e0910140912w7a288e4aq7b38b4db20c42d96@mail.gmail.com> References: <4a68b8cf0910140803p68b780akc3bbd3f6d9ffb84f@mail.gmail.com> <6927b8740910140841o4e09a5e1k79df528da4350800@mail.gmail.com> <4a68b8cf0910140845ib5412bci8f280830d9531772@mail.gmail.com> <131af5e0910140912w7a288e4aq7b38b4db20c42d96@mail.gmail.com> Message-ID: <131af5e0910140920j6563e23bj7c7a38ce6de6f16a@mail.gmail.com> Sorry, I also should have noted that this code also relies on win32ole.rb. The one from Merlin\Main\Languages\Ruby\Libs for the interop Best Regards, Kevin On Wed, Oct 14, 2009 at 10:12 AM, Kevin Radcliffe wrote: > I'm attaching a couple of files because I had to do something very > similar just recently. > This isn't super clean, as I'm still testing this functionality, but > it might serve as a starting point anyway. > > I am calling c# code to require WorkBook.rb first. (Mostly just a > shortcut I grabbed from the excel interop tests) > > I am then passing a fairly simple domain object into the > 'BuildRequestVolumeWorkBooks.rb' through "CallerInput" > Then I set "CallerOutput" So I can grab the filenames generated after > applying my data to the template. > > Sounds very much in line with what you're trying to accomplish, but > again, maybe just as a starting point. > > Best Regards, > Kevin Radcliffe > > On Wed, Oct 14, 2009 at 9:45 AM, Thibaut Barr?re > wrote: >>> whoops. i thought you meant Excel/Word *automation*, my bad. >> >> Well, it could have been the case, but I'm avoiding that on purpose :) >> >> My goal is more or less to rely on word/excel editable templates where I >> inject data (fields, rows...) a bit like in Documatic (excellent project >> although not active anymore afaik: >> http://stonecode.svnrepository.com/documatic/trac.cgi/wiki) >> >> @Ryan: pretty much what I had in mind, except I didn't know about Eric >> White's examples. Thanks a lot! >> >> I'll see if there is some benefit to wrap this up in an IronRuby gem (and >> will share it if it does). >> >> best, >> >> Thibaut >> -- >> http://www.learnivore.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > From kevin.radcliffe at gmail.com Wed Oct 14 12:36:15 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 14 Oct 2009 10:36:15 -0600 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby ? In-Reply-To: <4a68b8cf0910140929w224fc169w84cb1712a5c9e2fb@mail.gmail.com> References: <4a68b8cf0910140803p68b780akc3bbd3f6d9ffb84f@mail.gmail.com> <6927b8740910140841o4e09a5e1k79df528da4350800@mail.gmail.com> <4a68b8cf0910140845ib5412bci8f280830d9531772@mail.gmail.com> <131af5e0910140912w7a288e4aq7b38b4db20c42d96@mail.gmail.com> <131af5e0910140920j6563e23bj7c7a38ce6de6f16a@mail.gmail.com> <4a68b8cf0910140929w224fc169w84cb1712a5c9e2fb@mail.gmail.com> Message-ID: <131af5e0910140936p1f421faahc43cf48e5607491e@mail.gmail.com> Ah, I see. I've posted it here: http://gist.github.com/210204 Let me know what you find as you go, as I'll likely have to to more like this in the future as well. Best Regards, Kevin On Wed, Oct 14, 2009 at 10:29 AM, Thibaut Barr?re wrote: > Hey Kevin, > > looks like your first message didn't make it (maybe because of attachments > ?) > > Any code will be useful though (who knows where this is going to lead me :-) > - can you paste it on http://gist.github.com/ ? > > -- Thibaut > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From kevin.radcliffe at gmail.com Wed Oct 14 14:01:36 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 14 Oct 2009 12:01:36 -0600 Subject: [Ironruby-core] IronRuby related gem: iron_maiden In-Reply-To: <000069B1866D8743AA20087BC03D5E2502F6A030@EXCHANGE2.nobts_web.edu> References: <000069B1866D8743AA20087BC03D5E2502F6A030@EXCHANGE2.nobts_web.edu> Message-ID: <131af5e0910141101v30a447b7nb814447f78dfc96b@mail.gmail.com> James, I've installed using gem and igem without issue, but when I attempt to run torture, it doesn't seem to be properly recognized if I specify a public path. Is there anything special I need to do with the path?: >gem torture --public TestIMApp1 ERROR: While executing gem ... (NoMethodError) undefined method `call' for nil:NilClass >igem torture --public TestIMApp1 ERROR: While executing gem ... (NoMethodError) undefined method `call' for nil:NilClass However, if I manually create a directory called "public", then I can run without any arguments and it seems to setup up appropriately: >mkdir public >igem torture #Setup message displays properly here. Best Regards, Kevin On Wed, Oct 14, 2009 at 11:17 AM, Web Administrator wrote: > I just pushed v0.2.0 of a gem I have put together called iron_maiden to > gemcutter. > > Github: http://github.com/jwthompson2/iron_maiden > Gemcutter: http://gemcutter.org/gems/iron_maiden > > It has a basic IronRuby.Rack template that it will copy into an app via the > `gem torture` command. > > It is still quite rough and mostly untested. > > I'd love feedback. > > > Thanks, > James Thompson > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From kevin.radcliffe at gmail.com Wed Oct 14 14:47:49 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 14 Oct 2009 12:47:49 -0600 Subject: [Ironruby-core] IronRuby related gem: iron_maiden In-Reply-To: <131af5e0910141101v30a447b7nb814447f78dfc96b@mail.gmail.com> References: <000069B1866D8743AA20087BC03D5E2502F6A030@EXCHANGE2.nobts_web.edu> <131af5e0910141101v30a447b7nb814447f78dfc96b@mail.gmail.com> Message-ID: <131af5e0910141147p4dea2412u4f33f39bc5de948f@mail.gmail.com> Looking further, it looks like an issue in rubygems_plugin.rb Namely, the call to add_option within initialize. It looks like that should take a block. Otherwise, I hit the errors mentioned below when rubygems attempts to parse the arguments If its working on your end with arguments, is it possible you have an updated version of rubygems_plugin.rb ? Best Regards, Kevin On Wed, Oct 14, 2009 at 12:01 PM, Kevin Radcliffe wrote: > James, > ?I've installed using gem and igem without issue, but when I attempt > to run torture, it doesn't seem to be properly recognized > if I specify a public path. Is there anything special I need to do > with the path?: > >>gem torture --public TestIMApp1 > ERROR: ?While executing gem ... (NoMethodError) > ? ?undefined method `call' for nil:NilClass > >>igem torture --public TestIMApp1 > ERROR: ?While executing gem ... (NoMethodError) > ? ?undefined method `call' for nil:NilClass > > However, if I manually create a directory called "public", then I can > run without any arguments and it seems to setup up appropriately: > >>mkdir public > >>igem torture > #Setup message displays properly here. > > Best Regards, > Kevin > > On Wed, Oct 14, 2009 at 11:17 AM, Web Administrator wrote: >> I just pushed v0.2.0 of a gem I have put together called iron_maiden to >> gemcutter. >> >> Github: http://github.com/jwthompson2/iron_maiden >> Gemcutter: http://gemcutter.org/gems/iron_maiden >> >> It has a basic IronRuby.Rack template that it will copy into an app via the >> `gem torture` command. >> >> It is still quite rough and mostly untested. >> >> I'd love feedback. >> >> >> Thanks, >> James Thompson >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > From kevin.radcliffe at gmail.com Wed Oct 14 15:43:17 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 14 Oct 2009 13:43:17 -0600 Subject: [Ironruby-core] IronRuby related gem: iron_maiden In-Reply-To: <000069B1866D8743AA20087BC03D5E2502F6A032@EXCHANGE2.nobts_web.edu> References: <000069B1866D8743AA20087BC03D5E2502F6A030@EXCHANGE2.nobts_web.edu> <131af5e0910141101v30a447b7nb814447f78dfc96b@mail.gmail.com> <131af5e0910141147p4dea2412u4f33f39bc5de948f@mail.gmail.com> <000069B1866D8743AA20087BC03D5E2502F6A032@EXCHANGE2.nobts_web.edu> Message-ID: <131af5e0910141243i77036367iecf6f34aa700f861@mail.gmail.com> Great, thanks for your help. How did you get it configured for IIS6? I see you had a struggle with it in some earlier posts, but I didn't catch what you did to resolve it. I've tried adding a wildcard handler, and setting to ASP.NET 2.0, but I get 404 errors when trying to hit anything. Once I get it working, maybe I can suggest a default config.ru to add to the site as a placeholder. Thanks again. Best Regards, Kevin On Wed, Oct 14, 2009 at 1:34 PM, Web Administrator wrote: > Thanks for the patch. Just pushed 0.2.1 to fix the issue you came across. > > > -James > > > -----Original Message----- > From: Kevin Radcliffe [mailto:kevin.radcliffe at gmail.com] > Sent: Wed 10/14/2009 1:47 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] IronRuby related gem: iron_maiden > > Looking further, it looks like an issue in rubygems_plugin.rb > Namely, the call to add_option within initialize. > > It looks like that should take a block. > Otherwise, I hit the errors mentioned below when rubygems attempts to > parse the arguments > If its working on your end with arguments, is it possible you have an > updated version of rubygems_plugin.rb ? > > Best Regards, > Kevin > > On Wed, Oct 14, 2009 at 12:01 PM, Kevin Radcliffe > wrote: >> James, >> ?I've installed using gem and igem without issue, but when I attempt >> to run torture, it doesn't seem to be properly recognized >> if I specify a public path. Is there anything special I need to do >> with the path?: >> >>>gem torture --public TestIMApp1 >> ERROR: ?While executing gem ... (NoMethodError) >> ? ?undefined method `call' for nil:NilClass >> >>>igem torture --public TestIMApp1 >> ERROR: ?While executing gem ... (NoMethodError) >> ? ?undefined method `call' for nil:NilClass >> >> However, if I manually create a directory called "public", then I can >> run without any arguments and it seems to setup up appropriately: >> >>>mkdir public >> >>>igem torture >> #Setup message displays properly here. >> >> Best Regards, >> Kevin >> >> On Wed, Oct 14, 2009 at 11:17 AM, Web Administrator wrote: >>> I just pushed v0.2.0 of a gem I have put together called iron_maiden to >>> gemcutter. >>> >>> Github: http://github.com/jwthompson2/iron_maiden >>> Gemcutter: http://gemcutter.org/gems/iron_maiden >>> >>> It has a basic IronRuby.Rack template that it will copy into an app via the >>> `gem torture` command. >>> >>> It is still quite rough and mostly untested. >>> >>> I'd love feedback. >>> >>> >>> Thanks, >>> James Thompson >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From jdeville at microsoft.com Wed Oct 14 15:45:17 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 14 Oct 2009 19:45:17 +0000 Subject: [Ironruby-core] Code Review: MSpecBug In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C06710E82@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C06710E82@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: Looks good. -----Original Message----- From: Tomas Matousek Sent: Wednesday, October 14, 2009 9:25 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: MSpecBug tfpt review "/shelveset:MSpecBug;REDMOND\tomat" Comment : Fixes a bug in MSpec. The current implementation removes an alias for :respond_to method while it still needs it. There is a bug in MRI that covers this up. See: http://redmine.ruby-lang.org/issues/show/2202 Fixes: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2051 Tomas From Tomas.Matousek at microsoft.com Wed Oct 14 16:10:15 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 14 Oct 2009 20:10:15 +0000 Subject: [Ironruby-core] Code Review: BF2 In-Reply-To: <1A472770E042064698CB5ADC83A12ACD04ACE970@TK5EX14MBXC116.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C06711044@TK5EX14MBXC131.redmond.corp.microsoft.com> <1A472770E042064698CB5ADC83A12ACD04ACE970@TK5EX14MBXC116.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06711104@TK5EX14MBXC131.redmond.corp.microsoft.com> Will simplify. Tomas -----Original Message----- From: Dino Viehland Sent: Wednesday, October 14, 2009 12:43 PM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: BF2 My only comment is that this is a pretty complicated expression to have to read: (parameterRequiredModifiers ?? (parameterRequiredModifiers = new Type[paramInfos.Length][]))[i] = mods; But it otherwise looks good. > -----Original Message----- > From: Tomas Matousek > Sent: Wednesday, October 14, 2009 12:15 PM > To: IronRuby External Code Reviewers; Rowan Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: Code Review: BF2 > > tfpt review "/shelveset:BF2;REDMOND\tomat" > Comment : > Python, DLR: > Fixes Dev10 build. > Fixes bug > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=772 - new type builder doesn't handle modops correctly. > > Ruby: > Fixes bugs: > > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=616 > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2163 > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=772 > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2753 > > Tomas From lists at ruby-forum.com Wed Oct 14 16:56:23 2009 From: lists at ruby-forum.com (Immo Wache) Date: Wed, 14 Oct 2009 22:56:23 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> Message-ID: Hi Ivan, thanks for sharing your solution. I slightly extended it with PathProvider.MapPath. Also I fixed a bug with my added xunit tests. http://github.com/iwache/ironrubymvc/commit/b6c6e425343925b9f7a464ee43c3f80cf93c8cec Immo -- Posted via http://www.ruby-forum.com/. From kevin.radcliffe at gmail.com Wed Oct 14 17:17:08 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Wed, 14 Oct 2009 15:17:08 -0600 Subject: [Ironruby-core] IronRuby related gem: iron_maiden In-Reply-To: <000069B1866D8743AA20087BC03D5E2502F6A033@EXCHANGE2.nobts_web.edu> References: <000069B1866D8743AA20087BC03D5E2502F6A030@EXCHANGE2.nobts_web.edu> <131af5e0910141101v30a447b7nb814447f78dfc96b@mail.gmail.com> <131af5e0910141147p4dea2412u4f33f39bc5de948f@mail.gmail.com> <000069B1866D8743AA20087BC03D5E2502F6A032@EXCHANGE2.nobts_web.edu> <131af5e0910141243i77036367iecf6f34aa700f861@mail.gmail.com> <000069B1866D8743AA20087BC03D5E2502F6A033@EXCHANGE2.nobts_web.edu> Message-ID: <131af5e0910141417q6b8cc7a4j7bce70cad256ebeb@mail.gmail.com> Nice. Okay, I'll continue to play around with it. I still have some XP machines as well, so I might be able to help out with a IIS 5.1 config once I have IIS 6 working well. erb template sounds interesting and useful. Thanks very much for putting this out there. Thinking a lot about deployment right now myself, so this is a big help Best Regards, Kevin On Wed, Oct 14, 2009 at 3:09 PM, Web Administrator wrote: > The Web.config I include is one that worked for me on one test system. The two tricks that I haven't put into the documentation yet is the need for the wildcard handler like you mention, and also to go to the ASP.NET tab in your app's properties and make sure it is set to the 2.0 option (or better if such exists). I am hoping to get back to my test system this evening and confirm the steps that need to be described beyond the Web.config changes. > > The other issue is I assume that IronRuby is installed at C:\IronRuby so there are the library path and gem path settings in Web.config that may not be right if my assumption is wrong. That is why I want to switch the Web.config to an ERB template at some point and then attempt to detect those two elements. But that will cause issues for those prepping their app on something other than the deployment system. > > Like I said, it's still real rough, but I'm at a point where I need a tool like this, so hopefully I'll get it smoothed out quickly. > > > -James > > > -----Original Message----- > From: Kevin Radcliffe [mailto:kevin.radcliffe at gmail.com] > Sent: Wed 10/14/2009 2:43 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] IronRuby related gem: iron_maiden > > Great, thanks for your help. > How did you get it configured for IIS6? > I see you had a struggle with it in some earlier posts, but I didn't > catch what you did to resolve it. > I've tried adding a wildcard handler, and setting to ASP.NET 2.0, but > I get 404 errors when trying to hit anything. > > Once I get it working, maybe I can suggest a default config.ru to add > to the site as a placeholder. > Thanks again. Best Regards, > Kevin > > On Wed, Oct 14, 2009 at 1:34 PM, Web Administrator wrote: >> Thanks for the patch. Just pushed 0.2.1 to fix the issue you came across. >> >> >> -James >> >> >> -----Original Message----- >> From: Kevin Radcliffe [mailto:kevin.radcliffe at gmail.com] >> Sent: Wed 10/14/2009 1:47 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] IronRuby related gem: iron_maiden >> >> Looking further, it looks like an issue in rubygems_plugin.rb >> Namely, the call to add_option within initialize. >> >> It looks like that should take a block. >> Otherwise, I hit the errors mentioned below when rubygems attempts to >> parse the arguments >> If its working on your end with arguments, is it possible you have an >> updated version of rubygems_plugin.rb ? >> >> Best Regards, >> Kevin >> >> On Wed, Oct 14, 2009 at 12:01 PM, Kevin Radcliffe >> wrote: >>> James, >>> ?I've installed using gem and igem without issue, but when I attempt >>> to run torture, it doesn't seem to be properly recognized >>> if I specify a public path. Is there anything special I need to do >>> with the path?: >>> >>>>gem torture --public TestIMApp1 >>> ERROR: ?While executing gem ... (NoMethodError) >>> ? ?undefined method `call' for nil:NilClass >>> >>>>igem torture --public TestIMApp1 >>> ERROR: ?While executing gem ... (NoMethodError) >>> ? ?undefined method `call' for nil:NilClass >>> >>> However, if I manually create a directory called "public", then I can >>> run without any arguments and it seems to setup up appropriately: >>> >>>>mkdir public >>> >>>>igem torture >>> #Setup message displays properly here. >>> >>> Best Regards, >>> Kevin >>> >>> On Wed, Oct 14, 2009 at 11:17 AM, Web Administrator wrote: >>>> I just pushed v0.2.0 of a gem I have put together called iron_maiden to >>>> gemcutter. >>>> >>>> Github: http://github.com/jwthompson2/iron_maiden >>>> Gemcutter: http://gemcutter.org/gems/iron_maiden >>>> >>>> It has a basic IronRuby.Rack template that it will copy into an app via the >>>> `gem torture` command. >>>> >>>> It is still quite rough and mostly untested. >>>> >>>> I'd love feedback. >>>> >>>> >>>> Thanks, >>>> James Thompson >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From ivan at flanders.co.nz Wed Oct 14 17:23:25 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 14 Oct 2009 23:23:25 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> Message-ID: How do you want to provide different development environments for ironrubymvc ? I can either do it by creating the configuration section I've been planning, this would be used to provide load paths for example for libraries outside of the web project. I can have a parameter there something like MvcEnv which will set the ruby constant MVC_ENV based on the value of that constant it would then be possible to provide different behavior for the require statement, much like rails does. Would it be a good idea to enforce a single class per file for controllers and helpers, or would it be better to leave that up to the judgment of the user of the framework? Should there be validation for naming conventions. like a file home_controller.rb has to define the HomeController class? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 14, 2009 at 10:56 PM, Immo Wache wrote: > Hi Ivan, > thanks for sharing your solution. I slightly extended it with > PathProvider.MapPath. Also I fixed a bug with my added xunit tests. > > http://github.com/iwache/ironrubymvc/commit/b6c6e425343925b9f7a464ee43c3f80cf93c8cec > > Immo > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Oct 14 17:34:47 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 14 Oct 2009 21:34:47 +0000 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C067111A5@TK5EX14MBXC131.redmond.corp.microsoft.com> Engine.Operations.InvokeMember(null, "require", "xxx"); Raises an exception with the latest bits: System.MissingMethodException: private method `require' called for nil:NilClass Which is expected. I forgot the Kernel methods are all private. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Immo Wache Sent: Tuesday, October 13, 2009 11:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 Hi Tomas, No success so far, all variants produce the same exception: "InvalidOperationException: Empty scope has no global scope." ??? I tried following variants: Engine.Operations.InvokeMember(null, "require", PathProvider.MapPath(path)); Engine.Operations.InvokeMember(Context, "require", PathProvider.MapPath(path)); Engine.Operations.InvokeMember(Context.TopGlobalScope, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine.Runtime.Globals, "require", PathProvider.MapPath(path)) Engine.Operations.InvokeMember(Engine.GetScope(null), "require", PathProvider.MapPath(path)) with: Engine = Ruby.GetEngine(Runtime); Context = Ruby.GetExecutionContext(Engine); CurrentScope = Engine.CreateScope(); Operations = Engine.CreateOperations(); Any ideas what's wrong? Hope for some help, Immo Tomas Matousek wrote: > ?The extension method RequireFile for ruby does that respect when I > would redefine the require statement to keep track of classes contained > in a file and reload them on each request when compiled in debug mode?? > > No, there is no dynamic invocation of ?require? method going on. If you > need to call ?require? you can use Engine.Operations.InvokeMember(nil, > ?require?, fileName); -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Thu Oct 15 06:02:47 2009 From: lists at ruby-forum.com (Immo Wache) Date: Thu, 15 Oct 2009 12:02:47 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C067111A5@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C067111A5@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: Hello Tomas, thanks for take a look, and shed some light in this issue. When "require" Kernel method is privat we should keep the way to use a small Ruby scipt "require '[[controllerpath]]'" as the final solution. So this issue is solved from my POV. Thanks again for care, Immo Tomas Matousek wrote: > Engine.Operations.InvokeMember(null, "require", "xxx"); > > Raises an exception with the latest bits: > System.MissingMethodException: private method `require' called for > nil:NilClass > > Which is expected. I forgot the Kernel methods are all private. > > Tomas -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Oct 15 07:33:01 2009 From: lists at ruby-forum.com (Immo Wache) Date: Thu, 15 Oct 2009 13:33:01 +0200 Subject: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1 In-Reply-To: References: <2c81db070ee0df866821cbc7279c7690@ruby-forum.com> <8a3176eb5bc55634e08bb524f2759c58@ruby-forum.com> <4B342496A3EFEB48839E10BB4BF5964C06710826@TK5EX14MBXC131.redmond.corp.microsoft.com> <00fe4a360199876fe91707b2d568bc21@ruby-forum.com> <1110a331e18107849f144b3ba175c9c2@ruby-forum.com> Message-ID: <2f3c837bd4f90df5ef423123364cf7cd@ruby-forum.com> Hi Ivan, here are same thoghts from me: To integrate IronRubyMvc into Umbraco CMS a configuration file (e.g. ironrubymvc.config) would be fine. In Umbraco is a subfolder "/config" used for such settings files. Usual way for additional modules is a reference from web.config to the location of this config file. For example with module UrlRewriting.Net it goes from web.config:
... ... Native access to config settings from IronRuby via MVC_ENV would be fine too. Force one class per SomeController.rb and must contain SomeController class sounds ok. But don't know what's the case with Helpers, no experience from my side :-( Current naming conventions SomeController.rb or some_controller.rb are fine for me, may be via a setting in config? Also a setting for view file name extentions (current ".html.erb")? Immo Ivan Porto carrero wrote: > How do you want to provide different development environments for > ironrubymvc ? > I can either do it by creating the configuration section I've been > planning, > this would be used to provide load paths for example for libraries > outside > of the web project. > > I can have a parameter there something like MvcEnv which will set the > ruby > constant MVC_ENV > > based on the value of that constant it would then be possible to provide > different behavior for the require statement, much like rails does. > > Would it be a good idea to enforce a single class per file for > controllers > and helpers, or would it be better to leave that up to the judgment of > the > user of the framework? > > Should there be validation for naming conventions. like a file > home_controller.rb has to define the HomeController class? > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) -- Posted via http://www.ruby-forum.com/. From ben2004uk at googlemail.com Thu Oct 15 11:48:50 2009 From: ben2004uk at googlemail.com (Ben Hall) Date: Thu, 15 Oct 2009 16:48:50 +0100 Subject: [Ironruby-core] IronRuby, RubyZip and ZLib == error Message-ID: Hello, Just tried to use RubyZip with IronRuby (porting a rake task onto irake) and I received the following error: rake aborted! wrong number of arguments (2 for 0) c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1073:in `initialize' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1000:in `get_compressor' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:995:in `init_next_entry' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:957:in `put_next_entry' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:803:in `write_to_zip_output_stream' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1482:in `commit' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1123:in `each' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1482:in `commit' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:937:in `open' c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb:1479:in `commit' Line of code is: @zlibDeflater = Zlib::Deflate.new(level, -Zlib::MAX_WBITS) Method: def initialize(outputStream, level = Zlib::DEFAULT_COMPRESSION) super() @outputStream = outputStream @zlibDeflater = Zlib::Deflate.new(level, -Zlib::MAX_WBITS) @size = 0 @crc = Zlib::crc32 end Any ideas what is causing the problem? My IronRuby version is irb 0.9.5(05/04/13) Thanks Ben From jirapong.nanta at gmail.com Thu Oct 15 12:10:38 2009 From: jirapong.nanta at gmail.com (jirapong.nanta at gmail.com) Date: Thu, 15 Oct 2009 23:10:38 +0700 Subject: [Ironruby-core] IronRuby, RubyZip and ZLib == error In-Reply-To: References: Message-ID: <74B90717-998A-4DB5-BC89-206C6500A2F2@gmail.com> Hi Benz, IronRuby has Standard zlib built-in. Can you try this? require 'zlib' z = Zlib::Deflate.new dst = z.deflate('foo', Zlib::FINISH) Hope this helps, -Jirapong On Oct 15, 2009, at 10:48 PM, Ben Hall wrote: > Hello, > > Just tried to use RubyZip with IronRuby (porting a rake task onto > irake) and I received the following error: > > rake aborted! > wrong number of arguments (2 for 0) > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 1073:in > `initialize' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 1000:in > `get_compressor' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 995:in > `init_next_entry' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 957:in > `put_next_entry' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 803:in > `write_to_zip_output_stream' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 1482:in > `commit' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 1123:in > `each' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 1482:in > `commit' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 937:in > `open' > c:/ironruby/lib/ironruby/gems/1.8/gems/rubyzip-0.9.1/lib/zip/zip.rb: > 1479:in > `commit' > > Line of code is: @zlibDeflater = Zlib::Deflate.new(level, - > Zlib::MAX_WBITS) > > Method: > def initialize(outputStream, level = Zlib::DEFAULT_COMPRESSION) > super() > @outputStream = outputStream > @zlibDeflater = Zlib::Deflate.new(level, -Zlib::MAX_WBITS) > @size = 0 > @crc = Zlib::crc32 > end > > Any ideas what is causing the problem? > > My IronRuby version is irb 0.9.5(05/04/13) > > Thanks > > Ben > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Thu Oct 15 16:14:50 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 15 Oct 2009 20:14:50 +0000 Subject: [Ironruby-core] dynamicsilverlight.net died? In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EECB010@tk5ex14mbxc105.redmond.corp.microsoft.com> Silverlight.net moved the page it was pointing at, but it will be fixed shortly. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, October 10, 2009 1:38 PM To: ironruby-core Subject: [Ironruby-core] dynamicsilverlight.net died? Hi Did dynamicsilverlight.net die? It takes me to http://silverlight.net/404.aspx?aspxerrorpath=/learn/dynamiclanguages.aspx/ Oops ? Page Not Found --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Oct 15 22:01:10 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 16 Oct 2009 02:01:10 +0000 Subject: [Ironruby-core] Native Extensions In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02B7AFFC@hsi-fs.HSIHealth.local> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEBFB30@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7A6ED@hsi-fs.HSIHealth.local><3bf20550910062339r5236f42do422baafca285a9b4@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02B7A9B8@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC38F5@tk5ex14mbxc105.redmond.corp.microsoft.com>, <790F1F63F5D2E44E91797E821B31FDBB02B7A9E6@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC41BC@tk5ex14mbxc105.redmond.corp.microsoft.com><790F1F63F5D2E44E91797E821B31FDBB02B7AB04@hsi-fs.HSIHealth.local>, <790F1F63F5D2E44E91797E821B31FDBB02B7AB41@hsi-fs.HSIHealth.local><0047ECBFA2E0DF4A834AA369282A5AFC1EEC48FB@tk5ex14mbxc105.redmond.corp.microsoft.com> <790F1F63F5D2E44E91797E821B31FDBB02B7AFFB@hsi-fs.HSIHealth.local> <790F1F63F5D2E44E91797E821B31FDBB02B7AFFC@hsi-fs.HSIHealth.local> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EECE822@tk5ex14mbxc105.redmond.corp.microsoft.com> Hosting the Ruby standard library on some CDN is definitely a possibility, especially since we'll want to use it that way in Silverlight. > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Nathan Stults > Sent: Tuesday, October 13, 2009 11:20 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > Maybe Microsoft could host the IronRuby standard library on its new CDN > (http://weblogs.asp.net/scottgu/archive/2009/09/15/announcing-the- > micros > oft-ajax-cdn.aspx) for all to enjoy :) Most of the individual library files seem > small enough, and if it works for .JS files, it should work for Ruby, no? > Especially if some local caching were baked in. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults > Sent: Tuesday, October 13, 2009 11:15 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > I have uploaded the first draft of my work here: > http://github.com/PlasticLizard/Bracket if anyone is interested. I generalized > the Rack hosting code from the IronRuby.Rack solution to be easily adaptable > to other web servers. Included in this first iteration are hosts for > HttpListener, C# Web Server, Kayak, and the IIS handlers from the original > project are included for completeness. Unfortunately embedding a Rack > application in a C# server still requires that the IronRuby libraries are installed > on the target machine or included with the applications deployment. I'm > thinking of ways to make that somewhat easier to deal with, possibly > embedding the standard library in a .dll via resources or doing just in time > downloads of required files from the web. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 12:23 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > There is no problem with you taking any part of anything in the IronRuby > repo and including it in another library; here are all the licenses IronRuby's > releases contain: > http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Languages/ > Ru > by/Licenses. CJ recently did a good job of mapping each directory in the > entire IronRuby tree to a license, so I'll let him chime in about where that > data is. > > So, feel free to do you work separately for now. I'd be interested in taking > back any fixes you have for the rack-specific pieces, so I'll figure out how to > make that happen on my side when the time comes. > > Let me know how things go, and don't hesitate to ask any more questions, > ~Jimmy ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > [Nathan_Stults at HSIHealth.com] > Sent: Thursday, October 08, 2009 12:10 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Native Extensions > > Thank you - I'm new to GitHub, so I didn't notice that branch - I'll get that one > as a guide instead. On a related note, is there an accepted / preferred / > traditional path I should follow in regards to re-mixing your code? I presume > your rack integration stuff is licensed the same as IronRuby? In any case, is > there any problem with me blending your work into a separate library > intended to act as a generic adapter between Rack and an embedded .NET > server and publishing as a separate library (following attribution, licensing > rules, etc)? That is what I would normally do, but all this forking madness has > made me second guess. BTW, thanks for your time in answering my endless > questions. You guys have done an amazing job on all this stuff, very exciting > possibilities. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > Schementi > Sent: Thursday, October 08, 2009 11:52 AM > To: > Subject: Re: [Ironruby-core] Native Extensions > > They are an implementation detail; used to manipulate the request and > response from ruby (see later on down in the massive handle method). > In my forks "rackupdate" branch I don't think they exist anymore, as I'm > refactoring that code a bit. > > ~Jimmy > Sent from my phone > > On Oct 8, 2009, at 11:12 AM, "Nathan Stults" > > wrote: > > > Good news, thanks. In the Handle method of the IIS.cs, you are setting > > two scope variables, __request and __response - are these variables > > known to Rack, or are those set for the convenience of a IronRuby > > adapter aware programmer to use from ruby if desired? > > > > Thanks, > > > > Nathan > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > > Schementi > > Sent: Thursday, October 08, 2009 12:54 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Native Extensions > > > > That lock is there because Rails wasn't thread-safe at the time of > > writing; it has no reflection on whether ScriptEngine is thread- safe. > > I believe ScriptEngine is thread-safe, as only one ScriptEngine per > > language can EVER exist when you have only one ScriptRuntime. > > > > Rails is much more thread-safe than it used to be, so that lock should > > be removed; IMO it should have never been there as the Rack adapter > > shouldn't care about Rails; it should lock if the rack.multithreaded > > flag is true. > > > > ~js > > ________________________________________ > > From: ironruby-core-bounces at rubyforge.org > > [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > > [Nathan_Stults at HSIHealth.com] > > Sent: Thursday, October 08, 2009 12:26 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Native Extensions > > > > Ahh nice clean, brief code. Now this I can handle. I do have a > > question though about threading - it looks like in your implementation > > the whole apparatus is essentially single threaded, i.e. there is a > > single handler maintained by the factory, and the single handler locks > > itself for the duration of the request - this suggests to me that > > ScriptEngine (or at least RubyEngine) is not thread-safe? Is that the > > case, or was the threading designed for simplicity? For instance, if > > in my implementation I took a lock on the RubyEngine just long enough > > to obtain a new scope to handle the request, would that do? Or does it > > pretty much need to be > > 1 thread = 1 script engine? If the latter is the case, would there be > > any caveats to maintaining a small pool of engines that could handle a > > few simultaneous requests? To be honest, this almost certainly won't > > make a bit of difference to my use case of embedding a web server in > > an application server, traffic just won't be that high, but mostly I'm > > just curious about the platform. > > > > Thanks, > > > > Nathan > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > > Schementi > > Sent: Wednesday, October 07, 2009 5:12 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Native Extensions > > > > The HttpHandler is the only piece you'll have to replace, since it's > > specifically for IIS, and provide your own hookup to the server you > > choose. You'll have to construct the HttpRequest/Response objects > > also, but all-in-all it should be pretty straight-forward. Those two > > look like great .NET web-server projects; "webserver" is like a > > web-framework too, which is cool. Whatever you do, DON'T use Chiron, > > as it's not intended to be a real web-server (it doesn't support POST > > requests, and only listens on localhost). > > > > ~js > > > >> -----Original Message----- > >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > >> bounces at rubyforge.org] On Behalf Of Nathan Stults > >> Sent: Wednesday, October 07, 2009 4:54 PM > >> To: ironruby-core at rubyforge.org > >> Subject: Re: [Ironruby-core] Native Extensions > >> > >> I spent a day chasing my tail and, upon catching it, realized my > > DLR/IronRuby > >> knowledge just isn't up to the challenge. Maybe someday. As an > > alternative, > >> I'm going to see if the IronRuby.Rack stuff on Git can teach me what > >> I > > need to > >> wire Rack up to one of these embeddable .NET HTTP servers: > >> http://www.codeplex.com/webserver, > >> http://runkayak.com/getstarted, which ought to provide the same > > benefit, > >> and possibly perform a little better as well. Is anyone aware of > >> other embeddable .NET HTTP server projects? > >> > >> (http://github.com/jschementi/ironruby/tree/ > >> 92932a672921a03210c8aefe23 > >> ac > >> 0a7d6996ed2d/Merlin/Main/Hosts/IronRuby.Rack) > >> > >> > >> -----Original Message----- > >> From: ironruby-core-bounces at rubyforge.org > >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele > >> Alessandri > >> Sent: Tuesday, October 06, 2009 11:39 PM > >> To: ironruby-core at rubyforge.org > >> Subject: Re: [Ironruby-core] Native Extensions > >> > >> 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 > >> mongrel library > >> 4- have fun. > >> > >> I did the same for hpricot and json (whose parsers are generated > >> using Ragel), so I guess that should work for Mongrel too :-) > >> > >> > >> On Wed, Oct 7, 2009 at 03:09, Nathan Stults > > > >> wrote: > >>> 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 required the new .NET HTTP parser dll instead of the C > >>> version? Is that how that would work? > >>> > >>> -----Original Message----- > >>> From: ironruby-core-bounces at rubyforge.org > >>> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy > >>> Schementi > >>> Sent: Tuesday, October 06, 2009 6:00 PM > >>> To: ironruby-core at rubyforge.org > >>> Subject: Re: [Ironruby-core] Native Extensions > >>> > >>> 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 current work-around for libraries which use native code to > >>> communicate with the OS or Ruby is to rewrite those using .NET so > >>> IronRuby can use them. Mongrel is actually \mostly Ruby code, as > > most > >>> Ruby libraries which use native code; there is usually a very small > >> part > >>> of the library which depends on native code. For Mongrel, the HTTP > > 1.1 > >>> parser is the only native piece; rewriting that in C# would allow > > you > >> to > >>> run Mongrel on .NET. > >>> > >>> IMO, after 1.0 would be the time to consider supporting the native > >> Ruby > >>> API. > >>> > >>> ~Jimmy > >>> ________________________________________ > >>> From: ironruby-core-bounces at rubyforge.org > >>> [ironruby-core-bounces at rubyforge.org] on behalf of Nathan Stults > >>> [lists at ruby-forum.com] > >>> Sent: Tuesday, October 06, 2009 4:18 PM > >>> To: ironruby-core at rubyforge.org > >>> Subject: [Ironruby-core] Native Extensions > >>> > >>> 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? I'd > > love > >> to > >>> use IronRuby to embed Thin or Mongrel in my .NET services, but from > >> from > >>> my few experiments it looks like most of the networking libraries > >> these > >>> servers use tend to rely on native dll's. > >>> -- > >>> Posted via http://www.ruby-forum.com/. > >>> _______________________________________________ > >>> Ironruby-core mailing list > >>> Ironruby-core at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/ironruby-core > >>> > >>> _______________________________________________ > >>> Ironruby-core mailing list > >>> Ironruby-core at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/ironruby-core > >>> _______________________________________________ > >>> Ironruby-core mailing list > >>> Ironruby-core at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/ironruby-core > >>> > >> > >> > >> > >> -- > >> Daniele Alessandri > >> http://www.clorophilla.net/blog/ > >> http://twitter.com/JoL1hAHN > >> _______________________________________________ > >> Ironruby-core mailing list > >> Ironruby-core at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/ironruby-core > >> _______________________________________________ > >> Ironruby-core mailing list > >> Ironruby-core at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Fri Oct 16 09:29:56 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 16 Oct 2009 15:29:56 +0200 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby? In-Reply-To: <4a68b8cf0910160438y2ce1bf31j433f60afb77ee8f2@mail.gmail.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EECC26B@tk5ex14mbxc105.redmond.corp.microsoft.com> <4a68b8cf0910160438y2ce1bf31j433f60afb77ee8f2@mail.gmail.com> Message-ID: Now with ironruby support ;)http://writespace.codeplex.com/ --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 16, 2009 at 1:38 PM, Thibaut Barr?re wrote: > Hey guys, > thanks for all the input, appreciated :) > > I'll definitely keep you posted on the output - it's more likely that I'll > manipulate xslx directly (or through the OpenXML SDK) than using automation. > One might even think about doing this in a Mono-compatible fashion (that > would interest quite a bunch of guys out there, me think)... Not sure if > there's some fancy way to rely on the OpenXML SDK from Mono though. > > In any way, thanks for all the answers - and I'll definitely keep you > posted on my findings. > > cheers, > > -- Thibaut > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at plainprograms.com Fri Oct 16 16:14:03 2009 From: james at plainprograms.com (James Thompson) Date: Fri, 16 Oct 2009 15:14:03 -0500 Subject: [Ironruby-core] Method parameter modifiers: out and ref Message-ID: I am trying to work with a .NET lib that uses ref modifiers on some method params and am not sure how to work with them from Ruby. I know with out modifiers that those parameters become part of the return values, but what can I do with ref parameters from Ruby? James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Oct 16 16:37:19 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 16 Oct 2009 20:37:19 +0000 Subject: [Ironruby-core] Method parameter modifiers: out and ref In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C067134B2@TK5EX14MBXC131.redmond.corp.microsoft.com> They are just like out parameters that have input value as well. public class C { public int foo(ref int bar) { bar++; return 3; } } p C.new.foo(1) # => [3, 2] Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of James Thompson Sent: Friday, October 16, 2009 1:14 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Method parameter modifiers: out and ref I am trying to work with a .NET lib that uses ref modifiers on some method params and am not sure how to work with them from Ruby. I know with out modifiers that those parameters become part of the return values, but what can I do with ref parameters from Ruby? James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Fri Oct 16 16:39:03 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 16 Oct 2009 22:39:03 +0200 Subject: [Ironruby-core] Method parameter modifiers: out and ref In-Reply-To: References: Message-ID: look here: http://rubyforge.org/pipermail/ironruby-core/2009-June/004731.html --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 16, 2009 at 10:14 PM, James Thompson wrote: > I am trying to work with a .NET lib that uses ref modifiers on some method > params and am not sure how to work with them from Ruby. I know with out > modifiers that those parameters become part of the return values, but what > can I do with ref parameters from Ruby? > > > > James Thompson > Plain Programs > New Orleans, LA > > P: (502) 619.0353 > E: james at plainprograms.com > W: www.plainprograms.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Oct 16 19:26:16 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 16 Oct 2009 23:26:16 +0000 Subject: [Ironruby-core] Code Review: BF.3 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06714796@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:BF.3;REDMOND\tomat" Comment : DLR: Fixes ScriptScope's BindSetMember - it needs to convert the result expression to Object. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2421 - if a CLR array is passed to params-array parameter it is not treated as a single parameter. Instead the overload resolver "splats" it by default (implements C# semantics). This is not the right behavior for Ruby. I've added ExpandParams virtual method that allows the language to specify for a given MethodCandidate whether its params array/dictionary should always be expanded and thus never use the incoming array as the params array. Interpreter - implements TypeIs instruction (fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2462). Ruby: Moves methods related to libraries from RubyModule to the library initializer. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1849 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2243 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2171 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1989 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2146 Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: BF.3.diff Type: application/octet-stream Size: 803149 bytes Desc: BF.3.diff URL: From Tomas.Matousek at microsoft.com Fri Oct 16 19:28:43 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 16 Oct 2009 23:28:43 +0000 Subject: [Ironruby-core] Code Review: BF.3 In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C06714796@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C06714796@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C067147BA@TK5EX14MBXC131.redmond.corp.microsoft.com> This should actually be: tfpt review "/shelveset:DF.4;REDMOND\tomat" Tomas -----Original Message----- From: Tomas Matousek Sent: Friday, October 16, 2009 4:26 PM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: BF.3 tfpt review "/shelveset:BF.3;REDMOND\tomat" Comment : DLR: Fixes ScriptScope's BindSetMember - it needs to convert the result expression to Object. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2421 - if a CLR array is passed to params-array parameter it is not treated as a single parameter. Instead the overload resolver "splats" it by default (implements C# semantics). This is not the right behavior for Ruby. I've added ExpandParams virtual method that allows the language to specify for a given MethodCandidate whether its params array/dictionary should always be expanded and thus never use the incoming array as the params array. Interpreter - implements TypeIs instruction (fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2462). Ruby: Moves methods related to libraries from RubyModule to the library initializer. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1849 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2243 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2171 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1989 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2146 Tomas From Tomas.Matousek at microsoft.com Fri Oct 16 22:25:04 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 17 Oct 2009 02:25:04 +0000 Subject: [Ironruby-core] Code Review: BFX.1 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06714885@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:BFX.1;REDMOND\tomat" Comment : DLR: Fixes ErrorSink to throw SyntaxErrorException only if the severity is FatalError or Error (i.e. not for warnings). Ruby: Fixes bugs: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2514 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2654 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1878 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1357 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2609 Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: BFX.1.diff Type: application/octet-stream Size: 36157 bytes Desc: BFX.1.diff URL: From james at plainprograms.com Sat Oct 17 22:58:37 2009 From: james at plainprograms.com (James Thompson) Date: Sat, 17 Oct 2009 21:58:37 -0500 Subject: [Ironruby-core] Gem: sqlite3-ironruby Message-ID: I just pushed my work on a sqlite3 gem to Gemcutter. Most of the test suite for sqlite3-ruby passes. I redid the driver based on the csharp-sqlite project. Code is available at http://github.com/jwthompson2/sqlite3-ironruby in the csharp-sqlite branch. James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Sun Oct 18 02:14:09 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Sun, 18 Oct 2009 08:14:09 +0200 Subject: [Ironruby-core] CallSiteStorage for [RubyMethod] Message-ID: Hi, I'm working on a native extension by writing an IronRuby library in C#. I hit the wall with the CallSiteStorage parameters that can optionally come as the first 0 or more parameters for a ruby method. What are they and what's their use? I tried to understand that from their current uses accross the code by I couldn't understand how IronRuby knows what to set there. For example, this is from ArrayOps: [RubyMethod("sort")] public static object Sort( BinaryOpStorage/*!*/ comparisonStorage, BinaryOpStorage/*!*/ lessThanStorage, BinaryOpStorage/*!*/ greaterThanStorage, BlockParam block, RubyArray/*!*/ self) { ... ... } How does IronRuby knows that the first should be a comparison storage, the second a less-than storage and the third a greater-than storage? is it because of the name of the parameter? Thanks! Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Sun Oct 18 09:52:59 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Sun, 18 Oct 2009 13:52:59 +0000 Subject: [Ironruby-core] CallSiteStorage for [RubyMethod] In-Reply-To: References: Message-ID: <9DBDB52016D6F34AABBACF6C2876EA28043F4AFA@TK5EX14MBXC141.redmond.corp.microsoft.com> A dynamic call site is an object that takes a certain number of arguments and a kind of description of how to combine those arguments into a result. The "description" (also known as the call site binder) generates code that is stored in the call site and keyed on some property of the arguments -- usually the type. So a call site that's used to perform a "less than" operation must be attached to code that knows how to look at two arguments and generate IL which will determine whether the first arg is less than the second one (or, if the comparison is not valid, IL which will throw an exception). Now let's say you have a bit of Ruby that says "c = a < b". When the IronRuby compiler generates code for this, it doesn't know what the types of "a" and "b" are, so it can't emit the actual comparison. Instead, it creates a call site that takes two arguments and returns a result, and it attaches this call site to a binder that says "call the < function that's defined on the first object". The first time the code is executed, a = 1 and b = 3. The binder looks at the type of a and determines that it should call Fixnum.<, so it creates code in the form of a delegate which will do that (let's name this "CALL1"), and will store that delegate in the call site along with a test ("TEST1") which indicates when that delegate is valid. The next time the code is executed, a = 3 and b = 7. The call site executes TEST1, which returns a positive result so it uses CALL1 to execute the comparison. The binder does not get involved. The third time the code is executed, a = "hello" and b = "world". TEST1 fails, so the call site asks the binder to analyze the new situation and come up with a TEST2 and CALL2 that will call String.< for an argument of type string. All of this is basically DLR 101, so I'm sorry if it's stuff you already know :). Now it should be pretty obvious that a call site's performance degrades as it sees a greater variety of types. The site has more and more TEST methods to run before it gets a positive result or knows that it has to fall back to the binder to generate new code. Consider a method like Array.sort. This method needs to perform comparisons on individual array elements of arbitrary type. That means that a dynamic call site needs to be involved. In earlier versions of IronRuby, we only had two choices -- use a single call site that's shared between all calls to Array.sort, or create a new site each time sort is called. The former approach suffers from the problem of "going megamorphic", that is, having too many tests to be called for each comparison. But with the latter, we lose out on some efficiency because we need to create a new call site and run the binder code at least once for every call to sort. The CallSiteStorage mechanism adds a third option. It allows the library author to push the location of the call site cache up to the place where Array.sort is actually called. This then creates a situation that is much more like the one for "c = a < b"; there's a one-for-one relationship between the call site in user code and the call site cache. This is a good level for caching, because any given array in user code that calls "sort" is very likely to contain elements of only a single type or small number of types. So to answer your questions more specifically, 1. The IronRuby compiler automatically creates three BinaryOpStorage objects for each call to Array.sort -- one for each of the three parameters which have that type -- and emits code to insert those parameter onto the call stack before calling ArrayOps.Sort. 2. The BinaryOpStorage object is not tied to a specific operation at creation; it's just a cache. It's how the BinaryOpStorage is used that determines the kind of code stored in the cache. 3. Specifically, if you trace the code path into Protocols.Compare and Protocols.ConvertCompareResult, you'll see that these storages are initialized with calls to "<=>", "<" and ">", respectively. 4. The names of the parameters are irrelevant. :) There's a general lesson here -- the DLR is like porridge; it's best when it's neither too hot nor too cold. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Saturday, October 17, 2009 11:14 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] CallSiteStorage for [RubyMethod] Hi, I'm working on a native extension by writing an IronRuby library in C#. I hit the wall with the CallSiteStorage parameters that can optionally come as the first 0 or more parameters for a ruby method. What are they and what's their use? I tried to understand that from their current uses accross the code by I couldn't understand how IronRuby knows what to set there. For example, this is from ArrayOps: [RubyMethod("sort")] public static object Sort( BinaryOpStorage/*!*/ comparisonStorage, BinaryOpStorage/*!*/ lessThanStorage, BinaryOpStorage/*!*/ greaterThanStorage, BlockParam block, RubyArray/*!*/ self) { ... ... } How does IronRuby knows that the first should be a comparison storage, the second a less-than storage and the third a greater-than storage? is it because of the name of the parameter? Thanks! Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Oct 19 00:56:55 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 19 Oct 2009 04:56:55 +0000 Subject: [Ironruby-core] Gem: sqlite3-ironruby In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EED8C59@tk5ex14mbxc105.redmond.corp.microsoft.com> Very awesome! Thanks for doing this work. I'll make sure to update the IronRuby on Rails walkthrough to use this if all works well, and add it to the ironruby-contrib project. ~js ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of James Thompson [james at plainprograms.com] Sent: Saturday, October 17, 2009 7:58 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Gem: sqlite3-ironruby I just pushed my work on a sqlite3 gem to Gemcutter. Most of the test suite for sqlite3-ruby passes. I redid the driver based on the csharp-sqlite project. Code is available at http://github.com/jwthompson2/sqlite3-ironruby in the csharp-sqlite branch. James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com From shay.friedman at gmail.com Mon Oct 19 05:30:21 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Mon, 19 Oct 2009 11:30:21 +0200 Subject: [Ironruby-core] CallSiteStorage for [RubyMethod] In-Reply-To: <9DBDB52016D6F34AABBACF6C2876EA28043F4AFA@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <9DBDB52016D6F34AABBACF6C2876EA28043F4AFA@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: Thanks so much Curt for the detailed reply! Shay. On Sun, Oct 18, 2009 at 3:52 PM, Curt Hagenlocher wrote: > A dynamic call site is an object that takes a certain number of arguments > and a kind of description of how to combine those arguments into a result. > The "description" (also known as the call site binder) generates code that > is stored in the call site and keyed on some property of the arguments -- > usually the type. So a call site that's used to perform a "less than" > operation must be attached to code that knows how to look at two arguments > and generate IL which will determine whether the first arg is less than the > second one (or, if the comparison is not valid, IL which will throw an > exception). > > > > Now let's say you have a bit of Ruby that says "c = a < b". When the > IronRuby compiler generates code for this, it doesn't know what the types of > "a" and "b" are, so it can't emit the actual comparison. Instead, it creates > a call site that takes two arguments and returns a result, and it attaches > this call site to a binder that says "call the < function that's defined on > the first object". The first time the code is executed, a = 1 and b = 3. The > binder looks at the type of a and determines that it should call Fixnum.<, > so it creates code in the form of a delegate which will do that (let's name > this "CALL1"), and will store that delegate in the call site along with a > test ("TEST1") which indicates when that delegate is valid. > > > > The next time the code is executed, a = 3 and b = 7. The call site executes > TEST1, which returns a positive result so it uses CALL1 to execute the > comparison. The binder does not get involved. > > > > The third time the code is executed, a = "hello" and b = "world". TEST1 > fails, so the call site asks the binder to analyze the new situation and > come up with a TEST2 and CALL2 that will call String.< for an argument of > type string. > > > > All of this is basically DLR 101, so I'm sorry if it's stuff you already > know :). > > > > Now it should be pretty obvious that a call site's performance degrades as > it sees a greater variety of types. The site has more and more TEST methods > to run before it gets a positive result or knows that it has to fall back to > the binder to generate new code. > > > > Consider a method like Array.sort. This method needs to perform comparisons > on individual array elements of arbitrary type. That means that a dynamic > call site needs to be involved. In earlier versions of IronRuby, we only had > two choices -- use a single call site that's shared between all calls to > Array.sort, or create a new site each time sort is called. The former > approach suffers from the problem of "going megamorphic", that is, having > too many tests to be called for each comparison. But with the latter, we > lose out on some efficiency because we need to create a new call site and > run the binder code at least once for every call to sort. > > > > The CallSiteStorage mechanism adds a third option. It allows the library > author to push the location of the call site cache up to the place where > Array.sort is actually called. This then creates a situation that is much > more like the one for "c = a < b"; there's a one-for-one relationship > between the call site in user code and the call site cache. This is a good > level for caching, because any given array in user code that calls "sort" is > very likely to contain elements of only a single type or small number of > types. > > > > > > So to answer your questions more specifically, > > 1. The IronRuby compiler automatically creates three BinaryOpStorage > objects for each call to Array.sort -- one for each of the three parameters > which have that type -- and emits code to insert those parameter onto the > call stack before calling ArrayOps.Sort. > > 2. The BinaryOpStorage object is not tied to a specific operation at > creation; it's just a cache. It's how the BinaryOpStorage is used that > determines the kind of code stored in the cache. > > 3. Specifically, if you trace the code path into Protocols.Compare and > Protocols.ConvertCompareResult, you'll see that these storages are > initialized with calls to "<=>", "<" and ">", respectively. > > 4. The names of the parameters are irrelevant. :) > > > > > > There's a general lesson here -- the DLR is like porridge; it's best when > it's neither too hot nor too cold. > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shay Friedman > *Sent:* Saturday, October 17, 2009 11:14 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] CallSiteStorage for [RubyMethod] > > > > Hi, > > I'm working on a native extension by writing an IronRuby library in C#. I > hit the wall with the CallSiteStorage parameters that can optionally come as > the first 0 or more parameters for a ruby method. > > What are they and what's their use? I tried to understand that from their > current uses accross the code by I couldn't understand how IronRuby knows > what to set there. > > For example, this is from ArrayOps: > [RubyMethod("sort")] > public static object Sort( > BinaryOpStorage/*!*/ comparisonStorage, > BinaryOpStorage/*!*/ lessThanStorage, > BinaryOpStorage/*!*/ greaterThanStorage, > BlockParam block, RubyArray/*!*/ self) { > ... > ... > } > > How does IronRuby knows that the first should be a comparison storage, the > second a less-than storage and the third a greater-than storage? is it > because of the name of the parameter? > > Thanks! > Shay. > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Mon Oct 19 09:23:46 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Mon, 19 Oct 2009 13:23:46 +0000 Subject: [Ironruby-core] CallSiteStorage for [RubyMethod] In-Reply-To: References: <9DBDB52016D6F34AABBACF6C2876EA28043F4AFA@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <9DBDB52016D6F34AABBACF6C2876EA28043F5EC7@TK5EX14MBXC141.redmond.corp.microsoft.com> Glad you enjoyed it! One small correction: ignore the specific usage of the word "delegate" in the second paragraph. The gist is correct, but the technical details are different. "Delegate" was left over from an earlier revision of the text. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Monday, October 19, 2009 2:30 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] CallSiteStorage for [RubyMethod] Thanks so much Curt for the detailed reply! Shay. On Sun, Oct 18, 2009 at 3:52 PM, Curt Hagenlocher > wrote: A dynamic call site is an object that takes a certain number of arguments and a kind of description of how to combine those arguments into a result. The "description" (also known as the call site binder) generates code that is stored in the call site and keyed on some property of the arguments -- usually the type. So a call site that's used to perform a "less than" operation must be attached to code that knows how to look at two arguments and generate IL which will determine whether the first arg is less than the second one (or, if the comparison is not valid, IL which will throw an exception). Now let's say you have a bit of Ruby that says "c = a < b". When the IronRuby compiler generates code for this, it doesn't know what the types of "a" and "b" are, so it can't emit the actual comparison. Instead, it creates a call site that takes two arguments and returns a result, and it attaches this call site to a binder that says "call the < function that's defined on the first object". The first time the code is executed, a = 1 and b = 3. The binder looks at the type of a and determines that it should call Fixnum.<, so it creates code in the form of a delegate which will do that (let's name this "CALL1"), and will store that delegate in the call site along with a test ("TEST1") which indicates when that delegate is valid. The next time the code is executed, a = 3 and b = 7. The call site executes TEST1, which returns a positive result so it uses CALL1 to execute the comparison. The binder does not get involved. The third time the code is executed, a = "hello" and b = "world". TEST1 fails, so the call site asks the binder to analyze the new situation and come up with a TEST2 and CALL2 that will call String.< for an argument of type string. All of this is basically DLR 101, so I'm sorry if it's stuff you already know :). Now it should be pretty obvious that a call site's performance degrades as it sees a greater variety of types. The site has more and more TEST methods to run before it gets a positive result or knows that it has to fall back to the binder to generate new code. Consider a method like Array.sort. This method needs to perform comparisons on individual array elements of arbitrary type. That means that a dynamic call site needs to be involved. In earlier versions of IronRuby, we only had two choices -- use a single call site that's shared between all calls to Array.sort, or create a new site each time sort is called. The former approach suffers from the problem of "going megamorphic", that is, having too many tests to be called for each comparison. But with the latter, we lose out on some efficiency because we need to create a new call site and run the binder code at least once for every call to sort. The CallSiteStorage mechanism adds a third option. It allows the library author to push the location of the call site cache up to the place where Array.sort is actually called. This then creates a situation that is much more like the one for "c = a < b"; there's a one-for-one relationship between the call site in user code and the call site cache. This is a good level for caching, because any given array in user code that calls "sort" is very likely to contain elements of only a single type or small number of types. So to answer your questions more specifically, 1. The IronRuby compiler automatically creates three BinaryOpStorage objects for each call to Array.sort -- one for each of the three parameters which have that type -- and emits code to insert those parameter onto the call stack before calling ArrayOps.Sort. 2. The BinaryOpStorage object is not tied to a specific operation at creation; it's just a cache. It's how the BinaryOpStorage is used that determines the kind of code stored in the cache. 3. Specifically, if you trace the code path into Protocols.Compare and Protocols.ConvertCompareResult, you'll see that these storages are initialized with calls to "<=>", "<" and ">", respectively. 4. The names of the parameters are irrelevant. :) There's a general lesson here -- the DLR is like porridge; it's best when it's neither too hot nor too cold. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Saturday, October 17, 2009 11:14 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] CallSiteStorage for [RubyMethod] Hi, I'm working on a native extension by writing an IronRuby library in C#. I hit the wall with the CallSiteStorage parameters that can optionally come as the first 0 or more parameters for a ruby method. What are they and what's their use? I tried to understand that from their current uses accross the code by I couldn't understand how IronRuby knows what to set there. For example, this is from ArrayOps: [RubyMethod("sort")] public static object Sort( BinaryOpStorage/*!*/ comparisonStorage, BinaryOpStorage/*!*/ lessThanStorage, BinaryOpStorage/*!*/ greaterThanStorage, BlockParam block, RubyArray/*!*/ self) { ... ... } How does IronRuby knows that the first should be a comparison storage, the second a less-than storage and the third a greater-than storage? is it because of the name of the parameter? Thanks! Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at plainprograms.com Mon Oct 19 09:34:55 2009 From: james at plainprograms.com (James Thompson) Date: Mon, 19 Oct 2009 08:34:55 -0500 Subject: [Ironruby-core] Gem: sqlite3-ironruby In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EED8C59@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EED8C59@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: Let me know if you encounter any issues with it. Some of the failing tests appear to be based on either poorly written assertions or functionality that I believe is not used by ActiveRecord. I'd like to expand the test suite if you find any issues since there are some refactorings I would like to do but want to get to feature parity with stock sqlite3-ruby first. James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com On Sun, Oct 18, 2009 at 11:56 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Very awesome! Thanks for doing this work. I'll make sure to update the > IronRuby on Rails walkthrough to use this if all works well, and add it to > the ironruby-contrib project. > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] on behalf of James Thompson [ > james at plainprograms.com] > Sent: Saturday, October 17, 2009 7:58 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Gem: sqlite3-ironruby > > I just pushed my work on a sqlite3 gem to Gemcutter. Most of the test suite > for sqlite3-ruby passes. > > I redid the driver based on the csharp-sqlite project. > > Code is available at http://github.com/jwthompson2/sqlite3-ironruby in the > csharp-sqlite branch. > > > > James Thompson > Plain Programs > New Orleans, LA > > P: (502) 619.0353 > E: james at plainprograms.com > W: www.plainprograms.com > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Mon Oct 19 13:20:19 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 19 Oct 2009 12:20:19 -0500 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby? In-Reply-To: <4a68b8cf0910160438y2ce1bf31j433f60afb77ee8f2@mail.gmail.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EECC26B@tk5ex14mbxc105.redmond.corp.microsoft.com> <4a68b8cf0910160438y2ce1bf31j433f60afb77ee8f2@mail.gmail.com> Message-ID: I pinged Eric White on the MS Office team to see whether they might release a Mono version or the source under MSPL. Here's hoping. :) Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Website: http://panesofglass.org/ On Fri, Oct 16, 2009 at 6:38 AM, Thibaut Barr?re wrote: > Hey guys, > thanks for all the input, appreciated :) > > I'll definitely keep you posted on the output - it's more likely that I'll > manipulate xslx directly (or through the OpenXML SDK) than using automation. > One might even think about doing this in a Mono-compatible fashion (that > would interest quite a bunch of guys out there, me think)... Not sure if > there's some fancy way to rely on the OpenXML SDK from Mono though. > > In any way, thanks for all the answers - and I'll definitely keep you > posted on my findings. > > cheers, > > -- Thibaut > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Oct 19 19:08:55 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 19 Oct 2009 23:08:55 +0000 Subject: [Ironruby-core] Code Review: perffix Message-ID: tfpt review "/shelveset:perffix;REDMOND\jdeville" Comment : The killing of erroneous processes now happens in the bench.rake file. We kill all ir, java, and ruby processes that aren't the rake runner before each new bench file is started. This should keep numbers accurate, and allow for completely automated local perf runs. This still needs to be cleaned up before it can be submitted to the RBS project. From jdeville at microsoft.com Mon Oct 19 19:10:52 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 19 Oct 2009 23:10:52 +0000 Subject: [Ironruby-core] Pull on Friday Message-ID: Let me know if you have code ready. I currently have the following: * Jimmy * Shri * Myself * Ivan JD -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at plainprograms.com Tue Oct 20 10:39:01 2009 From: james at plainprograms.com (James Thompson) Date: Tue, 20 Oct 2009 09:39:01 -0500 Subject: [Ironruby-core] IronRuby.Rack app failing Message-ID: I am getting a message that seems odd to me when my IronRuby.Rack app fails to start. This error only gets displayed to me in the browser, nothing is getting logged to production.log or ironrack.log besides the startup of the app appearing in ironrack.log. Any help? ==== BEGIN ==== Error: uninitialized constant ERB::TOPLEVEL_BINDING D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant ERB::TOPLEVEL_BINDING (NameError) from erb.rb:708:in `result' from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:902:in `database_configuration' from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:437:in `initialize_database' from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:141:in `process' from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run' from D:\Web Applications\nobts-gradcontactinfo\public\../config/environment.rb:9 from D:/IronRuby/0.9.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from :0:in `__send__' from :1 from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rack-1.0.0/lib/rack/builder.rb:29:in `initialize' from :0 from :0:in `require' from :0:in `instance_eval' from IronRuby.Rack:0:in `Execute' from IronRuby.Rack:0:in `Rackup' from IronRuby.Rack:0:in `.ctor' from IronRuby.Rack:0:in `GetHandler' from System.Web:0:in `MapHttpHandler' from System.Web:0:in `System.Web.HttpApplication.IExecutionStep.Execute' from System.Web:0:in `ExecuteStep' from System.Web:0:in `ResumeSteps' from System.Web:0:in `System.Web.IHttpAsyncHandler.BeginProcessRequest' from System.Web:0:in `ProcessRequestInternal' from System.Web:0:in `ProcessRequestNoDemand' from System.Web:0:in `ProcessRequest' Search paths D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/vendor/tmail-1.2.3 D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/tzinfo-0.3.12 D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/memcache-client-1.7.4 D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/builder-2.1.2 D:/Web Applications/nobts-gradcontactinfo/app/controllers/ D:/Web Applications/nobts-gradcontactinfo/app D:/Web Applications/nobts-gradcontactinfo/app/models D:/Web Applications/nobts-gradcontactinfo/app/controllers D:/Web Applications/nobts-gradcontactinfo/app/helpers D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/../builtin/rails_info/ D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activeresource-2.3.4/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activeresource-2.3.4/lib D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionmailer-2.3.4/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionmailer-2.3.4/lib D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionpack-2.3.4/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionpack-2.3.4/lib D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activerecord-2.3.4/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activerecord-2.3.4/lib D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rake-0.8.7/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rake-0.8.7/lib D:\Web Applications\nobts-gradcontactinfo\public\.. D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rack-1.0.0/bin D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rack-1.0.0/lib D:/IronRuby/0.9.1/lib/IronRuby D:/IronRuby/0.9.1/lib/ruby/site_ruby/1.8 D:/IronRuby/0.9.1/lib/ruby/1.8 D:/Web Applications/nobts-gradcontactinfo/public . Gem paths D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8 D:/IronRuby/0.9.1/lib/IronRuby/../..//lib/ironruby/gems/1.8 ==== END ==== James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at plainprograms.com Tue Oct 20 11:12:19 2009 From: james at plainprograms.com (James Thompson) Date: Tue, 20 Oct 2009 10:12:19 -0500 Subject: [Ironruby-core] IronRuby.Rack app failing In-Reply-To: References: Message-ID: Never mind, I found my answer in the archives: http://www.mail-archive.com/ironruby-core at rubyforge.org/msg04642.html Apparently my Google skills are slipping. James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com On Tue, Oct 20, 2009 at 9:39 AM, James Thompson wrote: > I am getting a message that seems odd to me when my IronRuby.Rack app fails > to start. This error only gets displayed to me in the browser, nothing is > getting logged to production.log or ironrack.log besides the startup of the > app appearing in ironrack.log. > > Any help? > > > ==== BEGIN ==== > Error: uninitialized constant ERB::TOPLEVEL_BINDING > > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant ERB::TOPLEVEL_BINDING (NameError) > from erb.rb:708:in `result' > > > from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:902:in `database_configuration' > from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:437:in `initialize_database' > > > from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:141:in `process' > from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run' > from D:\Web Applications\nobts-gradcontactinfo\public\../config/environment.rb:9 > > > from D:/IronRuby/0.9.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' > from :0:in `__send__' > from :1 > from D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rack-1.0.0/lib/rack/builder.rb:29:in `initialize' > > > from :0 > from :0:in `require' > from :0:in `instance_eval' > from IronRuby.Rack:0:in `Execute' > from IronRuby.Rack:0:in `Rackup' > from IronRuby.Rack:0:in `.ctor' > from IronRuby.Rack:0:in `GetHandler' > > > from System.Web:0:in `MapHttpHandler' > from System.Web:0:in `System.Web.HttpApplication.IExecutionStep.Execute' > from System.Web:0:in `ExecuteStep' > from System.Web:0:in `ResumeSteps' > from System.Web:0:in `System.Web.IHttpAsyncHandler.BeginProcessRequest' > > > from System.Web:0:in `ProcessRequestInternal' > from System.Web:0:in `ProcessRequestNoDemand' > from System.Web:0:in `ProcessRequest' > > Search paths > > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/vendor/tmail-1.2.3 > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/tzinfo-0.3.12 > > > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/memcache-client-1.7.4 > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/builder-2.1.2 > > > D:/Web Applications/nobts-gradcontactinfo/app/controllers/ > D:/Web Applications/nobts-gradcontactinfo/app > D:/Web Applications/nobts-gradcontactinfo/app/models > D:/Web Applications/nobts-gradcontactinfo/app/controllers > > > D:/Web Applications/nobts-gradcontactinfo/app/helpers > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib/../builtin/rails_info/ > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/lib > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rails-2.3.4/bin > > > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activeresource-2.3.4/bin > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activeresource-2.3.4/lib > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionmailer-2.3.4/bin > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionmailer-2.3.4/lib > > > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionpack-2.3.4/bin > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/actionpack-2.3.4/lib > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activerecord-2.3.4/bin > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activerecord-2.3.4/lib > > > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/bin > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/activesupport-2.3.4/lib > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rake-0.8.7/bin > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rake-0.8.7/lib > > > D:\Web Applications\nobts-gradcontactinfo\public\.. > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rack-1.0.0/bin > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8/gems/rack-1.0.0/lib > D:/IronRuby/0.9.1/lib/IronRuby > D:/IronRuby/0.9.1/lib/ruby/site_ruby/1.8 > > > D:/IronRuby/0.9.1/lib/ruby/1.8 > D:/Web Applications/nobts-gradcontactinfo/public > . > > Gem paths > > D:/IronRuby/0.9.1/lib/IronRuby/gems/1.8 > D:/IronRuby/0.9.1/lib/IronRuby/../..//lib/ironruby/gems/1.8 > > ==== END ==== > > James Thompson > Plain Programs > New Orleans, LA > > P: (502) 619.0353 > E: james at plainprograms.com > W: www.plainprograms.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Wed Oct 21 12:07:37 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 21 Oct 2009 11:07:37 -0500 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby? In-Reply-To: References: <0047ECBFA2E0DF4A834AA369282A5AFC1EECC26B@tk5ex14mbxc105.redmond.corp.microsoft.com> <4a68b8cf0910160438y2ce1bf31j433f60afb77ee8f2@mail.gmail.com> Message-ID: I just heard from Eric. He said he has heard of no plans to either open up the Open XML SDK or create a Mono-compatible version, so it looks like interop is the way to go, unless you want to reverse engineer the Open XML SDK. Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Website: http://panesofglass.org/ On Mon, Oct 19, 2009 at 12:20 PM, Ryan Riley wrote: > I pinged Eric White on the MS Office team to see whether they might release > a Mono version or the source under MSPL. Here's hoping. :) > > Ryan Riley > > Email: ryan.riley at panesofglass.org > LinkedIn: http://www.linkedin.com/in/ryanriley > Blog: http://wizardsofsmart.net/ > Website: http://panesofglass.org/ > > > On Fri, Oct 16, 2009 at 6:38 AM, Thibaut Barr?re < > thibaut.barrere at gmail.com> wrote: > >> Hey guys, >> thanks for all the input, appreciated :) >> >> I'll definitely keep you posted on the output - it's more likely that I'll >> manipulate xslx directly (or through the OpenXML SDK) than using automation. >> One might even think about doing this in a Mono-compatible fashion (that >> would interest quite a bunch of guys out there, me think)... Not sure if >> there's some fancy way to rely on the OpenXML SDK from Mono though. >> >> In any way, thanks for all the answers - and I'll definitely keep you >> posted on my findings. >> >> cheers, >> >> -- Thibaut >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Oct 21 12:09:56 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 21 Oct 2009 16:09:56 +0000 Subject: [Ironruby-core] Code Review: perffix In-Reply-To: References: Message-ID: FYI, checking this in. -----Original Message----- From: Jim Deville Sent: Monday, October 19, 2009 4:09 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: perffix tfpt review "/shelveset:perffix;REDMOND\jdeville" Comment : The killing of erroneous processes now happens in the bench.rake file. We kill all ir, java, and ruby processes that aren't the rake runner before each new bench file is started. This should keep numbers accurate, and allow for completely automated local perf runs. This still needs to be cleaned up before it can be submitted to the RBS project. From Nathan_Stults at HSIHealth.com Wed Oct 21 14:38:05 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Wed, 21 Oct 2009 11:38:05 -0700 Subject: [Ironruby-core] File.flock Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA08A4@hsi-fs.HSIHealth.local> Hello, I'm trying to use some ruby gems for persistent queues (reliable-msg, uuid) but it isn't working, due to File.flock not being implemented yet in IronRuby. Does anyone know if this is on the list for v1, or is it a "future" release kind of thing? Thanks, Nathan Stults Health Services Integration (707)528-7464 nathan_stults at hsihealth.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Oct 21 14:51:19 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 21 Oct 2009 18:51:19 +0000 Subject: [Ironruby-core] Code Review: Thread.exclusive Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7970C9@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review /shelveset:exc;sborde Implements Thread.exclusive. Enables a minimal test for Shell which was blocked on Thread.exclusive -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: exc.diff Type: application/octet-stream Size: 7466 bytes Desc: exc.diff URL: From Jimmy.Schementi at microsoft.com Wed Oct 21 15:44:42 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 21 Oct 2009 19:44:42 +0000 Subject: [Ironruby-core] [ANN] IronRuby CTP for .NET 4.0 Beta 2 Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDB55A@tk5ex14mbxc105.redmond.corp.microsoft.com> http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33305 We're pleased to announce the release of the "IronRuby CTP for .NET 4.0 Beta 2". This is our third preview of IronRuby running under the Dynamic Language Runtime that is built directly into a .NET 4.0 release. As before, this release allows you to use IronRuby objects and types as .NET 4.0 dynamic objects from within C# and Visual Basic code. These binaries are roughly equivalent to the functionality found in IronRuby 0.9. Please also note that the IronRuby CTP for .NET 4.0 Beta 2 will run only under .NET 4.0 Beta 2. This release also includes the binaries for the IronPython 2.6 CTP for .NET 4.0 Beta 2. To try out this release: - Install?NET 4.0 Beta 2 or Visual Studio 2010 Beta 2: http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx - Download this release: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33305 - Follow any of the many dynamic walkthroughs online.?This would be a good start: http://blogs.msdn.com/vbteam/archive/2008/12/17/walkthrough-dynamic-programming-in-visual-basic-10-0-and-c-4-0-lisa-feigenbaum.aspx To build IronRuby for .NET 4.0 Beta 2 from source, get the sources from GitHub?(http://github.com/ironruby/ironruby), or a direct download (http://github.com/ironruby/ironruby/zipball/master): use the "v4" build configurations. ~ IronRuby team From Tomas.Matousek at microsoft.com Wed Oct 21 16:10:44 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 21 Oct 2009 20:10:44 +0000 Subject: [Ironruby-core] Code Review: Thread.exclusive In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C7970C9@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C7970C9@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06715FA7@TK5EX14MBXC131.redmond.corp.microsoft.com> I think it would be better to add the definition of "exclusive" into Thread\Thread.cs - I guess that's what you had at some point based upon the change in .Build.csproj. Tomas From: Shri Borde Sent: Wednesday, October 21, 2009 11:51 AM To: ironruby-core at rubyforge.org Cc: IronRuby External Code Reviewers Subject: Code Review: Thread.exclusive tfpt review /shelveset:exc;sborde Implements Thread.exclusive. Enables a minimal test for Shell which was blocked on Thread.exclusive -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Thu Oct 22 00:14:32 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Wed, 21 Oct 2009 21:14:32 -0700 Subject: [Ironruby-core] DataMapper ports Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA0989@hsi-fs.HSIHealth.local> Is anyone aware of any active efforts underway to port DataMapper do adapters to .NET/IronRuby? I have been scouring Google and see lots of chatter about DataMapper, IronRuby, and how one might theoretically get there - but I was wondering if there are any active projects going that Google isn't telling me about... -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Oct 22 02:52:53 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 22 Oct 2009 08:52:53 +0200 Subject: [Ironruby-core] DataMapper ports In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BA0989@hsi-fs.HSIHealth.local> References: <790F1F63F5D2E44E91797E821B31FDBB02BA0989@hsi-fs.HSIHealth.local> Message-ID: Yes yesterday somebody, pietia, started looking into that. I don't know how much progress he made though or if the code is public. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Oct 22, 2009 at 6:14 AM, Nathan Stults wrote: > Is anyone aware of any active efforts underway to port DataMapper do > adapters to .NET/IronRuby? I have been scouring Google and see lots of > chatter about DataMapper, IronRuby, and how one might theoretically get > there ? but I was wondering if there are any active projects going that > Google isn?t telling me about? > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Oct 22 05:37:15 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 22 Oct 2009 09:37:15 +0000 Subject: [Ironruby-core] [ANN] IronRuby CTP for .NET 4.0 Beta 2 In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDB55A@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDB55A@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDBF9E@tk5ex14mbxc105.redmond.corp.microsoft.com> FYI, here's a post which gives a little bit more information, including a small example of C# "dynamic" and IronRuby working together: http://blog.jimmy.schementi.com/2009/10/ironruby-and-ironpython-ctps-for-net-40.html -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, October 21, 2009 12:45 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] [ANN] IronRuby CTP for .NET 4.0 Beta 2 http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33305 We're pleased to announce the release of the "IronRuby CTP for .NET 4.0 Beta 2". This is our third preview of IronRuby running under the Dynamic Language Runtime that is built directly into a .NET 4.0 release. As before, this release allows you to use IronRuby objects and types as .NET 4.0 dynamic objects from within C# and Visual Basic code. These binaries are roughly equivalent to the functionality found in IronRuby 0.9. Please also note that the IronRuby CTP for .NET 4.0 Beta 2 will run only under .NET 4.0 Beta 2. This release also includes the binaries for the IronPython 2.6 CTP for .NET 4.0 Beta 2. To try out this release: - Install?NET 4.0 Beta 2 or Visual Studio 2010 Beta 2: http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx - Download this release: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33305 - Follow any of the many dynamic walkthroughs online.?This would be a good start: http://blogs.msdn.com/vbteam/archive/2008/12/17/walkthrough-dynamic-programming-in-visual-basic-10-0-and-c-4-0-lisa-feigenbaum.aspx To build IronRuby for .NET 4.0 Beta 2 from source, get the sources from GitHub?(http://github.com/ironruby/ironruby), or a direct download (http://github.com/ironruby/ironruby/zipball/master): use the "v4" build configurations. ~ IronRuby team _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Thu Oct 22 13:41:04 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 22 Oct 2009 17:41:04 +0000 Subject: [Ironruby-core] Ruby and ObservableCollection In-Reply-To: <3C08CFA79184C34A8924B7B4E71326FA064F090A@TK5EX14MBXC120.redmond.corp.microsoft.com> References: <3C08CFA79184C34A8924B7B4E71326FA064F090A@TK5EX14MBXC120.redmond.corp.microsoft.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDC2F3@tk5ex14mbxc105.redmond.corp.microsoft.com> Hans, For Ruby and Python specific questions, the public mailing lists are preferred. Ruby: ironruby-core at rubyforge.org Python: users at lists.ironpython.com So I'm moving this to the IronRuby mailing list ... To address your question, System.Collections.ObjectModel.ObservableCollection has all protected members, so if you just create an instance and try to call a method you should see this error: rb> $oc = System::Collections::ObjectModel::ObservableCollection[String].new => [] rb> $oc.insert_item "hi" System.MissingMethodException: CLR protected method `insert_item' called for []:System::Collections::ObjectModel::ObservableCollection[String]; CLR protected methods can only be called with a receiver whose class is a Ruby subclass of the class declaring the method However, if I subclass ObservableCollection and try to call methods I get an assert from RubyMethodGroupInfo.GetVisibleOverloads(CallArguments args, IList`1 overloads) and an exception: rb> class OCSubclass < System::Collections::ObjectModel::ObservableCollection[String] ... def initialize ... super ... self.insert_item "hi" ... end ... end => nil rb> $ocsub = OCSubclass.new System.ArgumentNullException: Value cannot be null. Parameter name: methods[0] Tomas, have any idea? ~js From: Hans Hugli Sent: Thursday, October 22, 2009 9:29 AM To: DLR Discussion Subject: Ruby and ObservableCollection Hi, Is ObservableCollection implemented in IronRuby? I am working with a student that can instantiate one [[ ObservableCollection[String].new ]], but calling the add method with a string results in a NullReferenceException. Please respond to me directly. I just added myself to the alias, but pending owner approval. If this is not the appropriate alias for this question, please let me know. Thank you, Hans Hugli Innovative Web team www.visitmix.com twitter.com/hanshu -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Thu Oct 22 13:52:40 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 22 Oct 2009 17:52:40 +0000 Subject: [Ironruby-core] Ruby and ObservableCollection In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDC2F3@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <3C08CFA79184C34A8924B7B4E71326FA064F090A@TK5EX14MBXC120.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEDC2F3@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <9DBDB52016D6F34AABBACF6C2876EA28043F9E30@TK5EX14MBXC141.redmond.corp.microsoft.com> ObservableCollection is an IList, so it should pick up Enumerable support through IListOps, no? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 22, 2009 10:41 AM To: Hans Hugli; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ruby and ObservableCollection Hans, For Ruby and Python specific questions, the public mailing lists are preferred. Ruby: ironruby-core at rubyforge.org Python: users at lists.ironpython.com So I'm moving this to the IronRuby mailing list ... To address your question, System.Collections.ObjectModel.ObservableCollection has all protected members, so if you just create an instance and try to call a method you should see this error: rb> $oc = System::Collections::ObjectModel::ObservableCollection[String].new => [] rb> $oc.insert_item "hi" System.MissingMethodException: CLR protected method `insert_item' called for []:System::Collections::ObjectModel::ObservableCollection[String]; CLR protected methods can only be called with a receiver whose class is a Ruby subclass of the class declaring the method However, if I subclass ObservableCollection and try to call methods I get an assert from RubyMethodGroupInfo.GetVisibleOverloads(CallArguments args, IList`1 overloads) and an exception: rb> class OCSubclass < System::Collections::ObjectModel::ObservableCollection[String] ... def initialize ... super ... self.insert_item "hi" ... end ... end => nil rb> $ocsub = OCSubclass.new System.ArgumentNullException: Value cannot be null. Parameter name: methods[0] Tomas, have any idea? ~js From: Hans Hugli Sent: Thursday, October 22, 2009 9:29 AM To: DLR Discussion Subject: Ruby and ObservableCollection Hi, Is ObservableCollection implemented in IronRuby? I am working with a student that can instantiate one [[ ObservableCollection[String].new ]], but calling the add method with a string results in a NullReferenceException. Please respond to me directly. I just added myself to the alias, but pending owner approval. If this is not the appropriate alias for this question, please let me know. Thank you, Hans Hugli Innovative Web team www.visitmix.com twitter.com/hanshu -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Thu Oct 22 14:16:23 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 22 Oct 2009 18:16:23 +0000 Subject: [Ironruby-core] Ruby and ObservableCollection In-Reply-To: <9DBDB52016D6F34AABBACF6C2876EA28043F9E30@TK5EX14MBXC141.redmond.corp.microsoft.com> References: <3C08CFA79184C34A8924B7B4E71326FA064F090A@TK5EX14MBXC120.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEDC2F3@tk5ex14mbxc105.redmond.corp.microsoft.com> <9DBDB52016D6F34AABBACF6C2876EA28043F9E30@TK5EX14MBXC141.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C067165DC@TK5EX14MBXC131.redmond.corp.microsoft.com> Well, that assert means there is a bug :). Working on fixing it. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Thursday, October 22, 2009 10:53 AM To: ironruby-core at rubyforge.org; Hans Hugli Subject: Re: [Ironruby-core] Ruby and ObservableCollection ObservableCollection is an IList, so it should pick up Enumerable support through IListOps, no? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 22, 2009 10:41 AM To: Hans Hugli; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ruby and ObservableCollection Hans, For Ruby and Python specific questions, the public mailing lists are preferred. Ruby: ironruby-core at rubyforge.org Python: users at lists.ironpython.com So I'm moving this to the IronRuby mailing list ... To address your question, System.Collections.ObjectModel.ObservableCollection has all protected members, so if you just create an instance and try to call a method you should see this error: rb> $oc = System::Collections::ObjectModel::ObservableCollection[String].new => [] rb> $oc.insert_item "hi" System.MissingMethodException: CLR protected method `insert_item' called for []:System::Collections::ObjectModel::ObservableCollection[String]; CLR protected methods can only be called with a receiver whose class is a Ruby subclass of the class declaring the method However, if I subclass ObservableCollection and try to call methods I get an assert from RubyMethodGroupInfo.GetVisibleOverloads(CallArguments args, IList`1 overloads) and an exception: rb> class OCSubclass < System::Collections::ObjectModel::ObservableCollection[String] ... def initialize ... super ... self.insert_item "hi" ... end ... end => nil rb> $ocsub = OCSubclass.new System.ArgumentNullException: Value cannot be null. Parameter name: methods[0] Tomas, have any idea? ~js From: Hans Hugli Sent: Thursday, October 22, 2009 9:29 AM To: DLR Discussion Subject: Ruby and ObservableCollection Hi, Is ObservableCollection implemented in IronRuby? I am working with a student that can instantiate one [[ ObservableCollection[String].new ]], but calling the add method with a string results in a NullReferenceException. Please respond to me directly. I just added myself to the alias, but pending owner approval. If this is not the appropriate alias for this question, please let me know. Thank you, Hans Hugli Innovative Web team www.visitmix.com twitter.com/hanshu -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Thu Oct 22 14:30:04 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 22 Oct 2009 18:30:04 +0000 Subject: [Ironruby-core] Ruby and ObservableCollection In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C067165DC@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <3C08CFA79184C34A8924B7B4E71326FA064F090A@TK5EX14MBXC120.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEDC2F3@tk5ex14mbxc105.redmond.corp.microsoft.com> <9DBDB52016D6F34AABBACF6C2876EA28043F9E30@TK5EX14MBXC141.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C067165DC@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDC56C@tk5ex14mbxc105.redmond.corp.microsoft.com> Curt, it does pick up Enumerable support, but using the Ruby methods to insert elements still causes the assert. Thanks Tomas. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Thursday, October 22, 2009 11:16 AM To: ironruby-core at rubyforge.org; Hans Hugli Subject: Re: [Ironruby-core] Ruby and ObservableCollection Well, that assert means there is a bug :). Working on fixing it. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Thursday, October 22, 2009 10:53 AM To: ironruby-core at rubyforge.org; Hans Hugli Subject: Re: [Ironruby-core] Ruby and ObservableCollection ObservableCollection is an IList, so it should pick up Enumerable support through IListOps, no? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 22, 2009 10:41 AM To: Hans Hugli; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Ruby and ObservableCollection Hans, For Ruby and Python specific questions, the public mailing lists are preferred. Ruby: ironruby-core at rubyforge.org Python: users at lists.ironpython.com So I'm moving this to the IronRuby mailing list ... To address your question, System.Collections.ObjectModel.ObservableCollection has all protected members, so if you just create an instance and try to call a method you should see this error: rb> $oc = System::Collections::ObjectModel::ObservableCollection[String].new => [] rb> $oc.insert_item "hi" System.MissingMethodException: CLR protected method `insert_item' called for []:System::Collections::ObjectModel::ObservableCollection[String]; CLR protected methods can only be called with a receiver whose class is a Ruby subclass of the class declaring the method However, if I subclass ObservableCollection and try to call methods I get an assert from RubyMethodGroupInfo.GetVisibleOverloads(CallArguments args, IList`1 overloads) and an exception: rb> class OCSubclass < System::Collections::ObjectModel::ObservableCollection[String] ... def initialize ... super ... self.insert_item "hi" ... end ... end => nil rb> $ocsub = OCSubclass.new System.ArgumentNullException: Value cannot be null. Parameter name: methods[0] Tomas, have any idea? ~js From: Hans Hugli Sent: Thursday, October 22, 2009 9:29 AM To: DLR Discussion Subject: Ruby and ObservableCollection Hi, Is ObservableCollection implemented in IronRuby? I am working with a student that can instantiate one [[ ObservableCollection[String].new ]], but calling the add method with a string results in a NullReferenceException. Please respond to me directly. I just added myself to the alias, but pending owner approval. If this is not the appropriate alias for this question, please let me know. Thank you, Hans Hugli Innovative Web team www.visitmix.com twitter.com/hanshu -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Thu Oct 22 16:06:47 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 22 Oct 2009 20:06:47 +0000 Subject: [Ironruby-core] Code Review: Instructions3 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06716763@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:Instructions3;REDMOND\tomat" Comment : Refactors interpreter instructions. Adds instruction static factories to Instruction class (similarly to Expression Tree factories). These factories take care of caching the instructions if possible. Some instructions are generic and their factories might need to call type.MakeGenericType(t). This is expensive so we cache generic factories and pre-generate them for primitive types. Improves performance and working set of CallInstruction by merging it with ReflectedCaller class and generating specialized Run methods. Removes name debug only field from LocalAccess instruction so that we can cache it. The instruction debug view looks up the name on LightCompiler. The number of allocated instruction objects during "mspec ci core" test run drops from 3,042,810 down to 1,268,421. Tomas From jdeville at microsoft.com Thu Oct 22 17:07:41 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 22 Oct 2009 21:07:41 +0000 Subject: [Ironruby-core] Code Review: installer Message-ID: tfpt review "/shelveset:installer;REDMOND\jdeville" Comment : Installer for IronRuby. After running rake package, if you run build c:\ironruby from this directory, you will get a IronRuby.msi file in the current directory. The installer has optional installation of: * Std Lib * Samples * Silverlight binaries * Addition of installation directory to %PATH% Enjoy -------------- next part -------------- A non-text attachment was scrubbed... Name: installer.diff Type: application/octet-stream Size: 259737 bytes Desc: installer.diff URL: From hakonhc at hclausen.net Thu Oct 22 17:12:57 2009 From: hakonhc at hclausen.net (=?iso-8859-15?Q?H=E5kon_Clausen?=) Date: Thu, 22 Oct 2009 23:12:57 +0200 Subject: [Ironruby-core] byte[] to ruby string Message-ID: Hello, I'm struggling with converting a byte array into a ruby binary string. Does anybody know how to make something like this pass? require 'test/unit' include System::IO class Binstring < Test::Unit::TestCase def test_binstring_bytea fileName = 'flowers.jpg' #Ruby way data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read); br = BinaryReader.new(fs); numBytes = FileInfo.new(fileName).Length; buff = br.ReadBytes(numBytes); data2 = System::Text::ASCIIEncoding.new.GetString(buff).to_s assert data1 == data2 end end Regards, H?kon -- H?kon Clausen Nosyko AS "Nobody will ever need more than 640k RAM!" - Bill Gates, 1981. From thibaut.barrere at gmail.com Thu Oct 22 17:31:29 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Thu, 22 Oct 2009 23:31:29 +0200 Subject: [Ironruby-core] Prior art of manipulating OpenXML with IronRuby? In-Reply-To: References: <0047ECBFA2E0DF4A834AA369282A5AFC1EECC26B@tk5ex14mbxc105.redmond.corp.microsoft.com> <4a68b8cf0910160438y2ce1bf31j433f60afb77ee8f2@mail.gmail.com> Message-ID: <4a68b8cf0910221431k344652andd9d0d4701467fae@mail.gmail.com> Hi Ryan et al, > I just heard from Eric. He said he has heard of no plans to either open up > the Open XML SDK or create a Mono-compatible version, so it looks like > interop is the way to go, unless you want to reverse engineer the Open XML > SDK. I can stick to Windows then :) Maybe it will end up using some erb + xml, like the approach in Documatic (http://stonecode.svnrepository.com/documatic/trac.cgi/wiki) thanks for asking Eric! Thibaut -- http://www.learnivore.com From ivan at flanders.co.nz Thu Oct 22 18:01:15 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 23 Oct 2009 00:01:15 +0200 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: References: Message-ID: File.open(filename, 'rb:BINARY) { |f| f.read } might help not sure though. You can also look into the unpack method of a string that is used for returning a bunch of different serialization formats. http://www.ruby-doc.org/core/classes/String.html#M000760 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Oct 22, 2009 at 11:12 PM, H?kon Clausen wrote: > Hello, > > I'm struggling with converting a byte array into a ruby binary string. > Does anybody know how to make something like this pass? > > require 'test/unit' > include System::IO > class Binstring < Test::Unit::TestCase > > def test_binstring_bytea > fileName = 'flowers.jpg' > > #Ruby way > data1 = File.read(fileName) > > #.Net > fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read); > br = BinaryReader.new(fs); > numBytes = FileInfo.new(fileName).Length; > buff = br.ReadBytes(numBytes); > data2 = System::Text::ASCIIEncoding.new.GetString(buff).to_s > > assert data1 == data2 > end > > end > > Regards, > > H?kon > > > -- > H?kon Clausen > Nosyko AS > > "Nobody will ever need more than 640k RAM!" - Bill Gates, 1981. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Thu Oct 22 18:13:26 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 22 Oct 2009 15:13:26 -0700 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: References: Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA0B41@hsi-fs.HSIHealth.local> I don't even get that far. When I do a File.read or a System::IO::File.read_all_bytes from IronRuby (iirb.exe), I get this (works OK in MRI): C:\>iirb irb(main):001:0> File.read("c:\\temp\\clickhere.png") File.read("c:\\temp\\clickhere.png") IOError: Not enough storage is available to process this command. from mscorlib:0:in `WinIOError' from mscorlib:0:in `Write' from :0:in `write' from c:/IronRuby/lib/ruby/1.8/irb.rb:302:in `output_value' from :0:in `printf' from :0:in `printf' from c:/IronRuby/lib/ruby/1.8/irb.rb:151:in `eval_input' from c:/IronRuby/lib/ruby/1.8/irb.rb:263:in `signal_status' from c:/IronRuby/lib/ruby/1.8/irb.rb:147:in `eval_input' from c:/IronRuby/lib/ruby/1.8/irb.rb:146:in `eval_input' from :0:in `loop' from c:/IronRuby/lib/ruby/1.8/irb.rb:70:in `start' from c:/IronRuby/lib/ruby/1.8/irb.rb:69:in `start' from :0:in `catch' from c:/IronRuby/bin/iirb:13 from :0:in `catch' irb(main):002:0> -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of H?kon Clausen Sent: Thursday, October 22, 2009 2:13 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] byte[] to ruby string Hello, I'm struggling with converting a byte array into a ruby binary string. Does anybody know how to make something like this pass? require 'test/unit' include System::IO class Binstring < Test::Unit::TestCase def test_binstring_bytea fileName = 'flowers.jpg' #Ruby way data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read); br = BinaryReader.new(fs); numBytes = FileInfo.new(fileName).Length; buff = br.ReadBytes(numBytes); data2 = System::Text::ASCIIEncoding.new.GetString(buff).to_s assert data1 == data2 end end Regards, H?kon -- H?kon Clausen Nosyko AS "Nobody will ever need more than 640k RAM!" - Bill Gates, 1981. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Thu Oct 22 19:14:09 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 23 Oct 2009 01:14:09 +0200 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BA0B41@hsi-fs.HSIHealth.local> References: <790F1F63F5D2E44E91797E821B31FDBB02BA0B41@hsi-fs.HSIHealth.local> Message-ID: you can just skip my email.. I tried my things now and none of them work. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 23, 2009 at 12:13 AM, Nathan Stults wrote: > I don't even get that far. When I do a File.read or a > System::IO::File.read_all_bytes from IronRuby (iirb.exe), I get this (works > OK in MRI): > > C:\>iirb > irb(main):001:0> File.read("c:\\temp\\clickhere.png") > File.read("c:\\temp\\clickhere.png") > IOError: Not enough storage is available to process this command. > > from mscorlib:0:in `WinIOError' > from mscorlib:0:in `Write' > from :0:in `write' > from c:/IronRuby/lib/ruby/1.8/irb.rb:302:in `output_value' > from :0:in `printf' > from :0:in `printf' > from c:/IronRuby/lib/ruby/1.8/irb.rb:151:in `eval_input' > from c:/IronRuby/lib/ruby/1.8/irb.rb:263:in `signal_status' > from c:/IronRuby/lib/ruby/1.8/irb.rb:147:in `eval_input' > from c:/IronRuby/lib/ruby/1.8/irb.rb:146:in `eval_input' > from :0:in `loop' > from c:/IronRuby/lib/ruby/1.8/irb.rb:70:in `start' > from c:/IronRuby/lib/ruby/1.8/irb.rb:69:in `start' > from :0:in `catch' > from c:/IronRuby/bin/iirb:13 > from :0:in `catch' > irb(main):002:0> > > > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of H?kon Clausen > Sent: Thursday, October 22, 2009 2:13 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] byte[] to ruby string > > Hello, > > I'm struggling with converting a byte array into a ruby binary string. > Does anybody know how to make something like this pass? > > require 'test/unit' > include System::IO > class Binstring < Test::Unit::TestCase > > def test_binstring_bytea > fileName = 'flowers.jpg' > > #Ruby way > data1 = File.read(fileName) > > #.Net > fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read); > br = BinaryReader.new(fs); > numBytes = FileInfo.new(fileName).Length; > buff = br.ReadBytes(numBytes); > data2 = System::Text::ASCIIEncoding.new.GetString(buff).to_s > > assert data1 == data2 > end > > end > > Regards, > > H?kon > > > -- > H?kon Clausen > Nosyko AS > > "Nobody will ever need more than 640k RAM!" - Bill Gates, 1981. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Oct 22 19:37:05 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 22 Oct 2009 23:37:05 +0000 Subject: [Ironruby-core] Code Review: installer In-Reply-To: References: Message-ID: Going to check this in since it won't affect IronRuby itself. JD -----Original Message----- From: Jim Deville Sent: Thursday, October 22, 2009 2:08 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: installer tfpt review "/shelveset:installer;REDMOND\jdeville" Comment : Installer for IronRuby. After running rake package, if you run build c:\ironruby from this directory, you will get a IronRuby.msi file in the current directory. The installer has optional installation of: * Std Lib * Samples * Silverlight binaries * Addition of installation directory to %PATH% Enjoy From Tomas.Matousek at microsoft.com Thu Oct 22 21:48:02 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 23 Oct 2009 01:48:02 +0000 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: References: <790F1F63F5D2E44E91797E821B31FDBB02BA0B41@hsi-fs.HSIHealth.local> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06716984@TK5EX14MBXC131.redmond.corp.microsoft.com> The current implementation of to_s is inherited from IList because byte[] implements IList interface: >>> a = System::Array[System::Byte].new(10) => [0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte)] >>> a.to_s => "0000000000" >>> a.method(:to_s) => # >>> a.method(:to_s).clr_members => [IronRuby.Builtins.MutableString Join(IronRuby.Runtime.ConversionStorage`1[IronRuby.Builtins.MutableString], System.Collections.IList)] Which is not very useful for byte[]. However to keep this consistent with other arrays it?s better to keep it as is. To enable creating strings from byte[] I?ll add an overload to String.new that takes a byte[]. >>> a = System::Array[System::Byte].new(10) => [0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte), 0 (Byte)] >>> a[4] = ?A => 65 >>> String.new(a) => "\000\000\000\000A\000\000\000\000\000" You can also go to MutableString class directly like so: >>> String.CreateBinary(a) => "\000\000\000\000A\000\000\000\000\000" or >>> String.CreateBinary().Append(a, 3, 3) => "\000A\000" Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, October 22, 2009 4:14 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] byte[] to ruby string you can just skip my email.. I tried my things now and none of them work. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 23, 2009 at 12:13 AM, Nathan Stults > wrote: I don't even get that far. When I do a File.read or a System::IO::File.read_all_bytes from IronRuby (iirb.exe), I get this (works OK in MRI): C:\>iirb irb(main):001:0> File.read("c:\\temp\\clickhere.png") File.read("c:\\temp\\clickhere.png") IOError: Not enough storage is available to process this command. from mscorlib:0:in `WinIOError' from mscorlib:0:in `Write' from :0:in `write' from c:/IronRuby/lib/ruby/1.8/irb.rb:302:in `output_value' from :0:in `printf' from :0:in `printf' from c:/IronRuby/lib/ruby/1.8/irb.rb:151:in `eval_input' from c:/IronRuby/lib/ruby/1.8/irb.rb:263:in `signal_status' from c:/IronRuby/lib/ruby/1.8/irb.rb:147:in `eval_input' from c:/IronRuby/lib/ruby/1.8/irb.rb:146:in `eval_input' from :0:in `loop' from c:/IronRuby/lib/ruby/1.8/irb.rb:70:in `start' from c:/IronRuby/lib/ruby/1.8/irb.rb:69:in `start' from :0:in `catch' from c:/IronRuby/bin/iirb:13 from :0:in `catch' irb(main):002:0> -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of H?kon Clausen Sent: Thursday, October 22, 2009 2:13 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] byte[] to ruby string Hello, I'm struggling with converting a byte array into a ruby binary string. Does anybody know how to make something like this pass? require 'test/unit' include System::IO class Binstring < Test::Unit::TestCase def test_binstring_bytea fileName = 'flowers.jpg' #Ruby way data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read); br = BinaryReader.new(fs); numBytes = FileInfo.new(fileName).Length; buff = br.ReadBytes(numBytes); data2 = System::Text::ASCIIEncoding.new.GetString(buff).to_s assert data1 == data2 end end Regards, H?kon -- H?kon Clausen Nosyko AS "Nobody will ever need more than 640k RAM!" - Bill Gates, 1981. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Thu Oct 22 21:56:38 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 23 Oct 2009 01:56:38 +0000 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C067169A3@TK5EX14MBXC131.redmond.corp.microsoft.com> In this particular case, I would recommend to use .NET API: >>> include System::IO => Object >>> stream = FileStream.new("c:\\temp\\a.txt", FileMode.Open, FileAccess.Read) => System.IO.FileStream >>> "".Append(stream, stream.Length) => "hello" Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of H?kon Clausen Sent: Thursday, October 22, 2009 2:13 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] byte[] to ruby string Hello, I'm struggling with converting a byte array into a ruby binary string. Does anybody know how to make something like this pass? require 'test/unit' include System::IO class Binstring < Test::Unit::TestCase def test_binstring_bytea fileName = 'flowers.jpg' #Ruby way data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read); br = BinaryReader.new(fs); numBytes = FileInfo.new(fileName).Length; buff = br.ReadBytes(numBytes); data2 = System::Text::ASCIIEncoding.new.GetString(buff).to_s assert data1 == data2 end end Regards, H?kon -- H?kon Clausen Nosyko AS "Nobody will ever need more than 640k RAM!" - Bill Gates, 1981. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From hakonhc at hclausen.net Fri Oct 23 08:31:34 2009 From: hakonhc at hclausen.net (=?iso-8859-15?Q?H=E5kon_Clausen?=) Date: Fri, 23 Oct 2009 14:31:34 +0200 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C067169A3@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C067169A3@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: Thanks, CreateBinary made the picture file pass the test. I'm having some trouble with some plain text and newlines. Any idea why "test_3" don't pass? require 'test/unit' include System::IO class Binstring < Test::Unit::TestCase def test_1 fileName = 'flowers.jpg' #Ruby data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read) br = BinaryReader.new(fs) numBytes = FileInfo.new(fileName).Length buff = br.ReadBytes(numBytes) data2 = String.CreateBinary(buff) assert data1 == data2 end def test_2 fileName = 'flowers.jpg' #Ruby data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read) data2 = "".Append(fs, fs.length) assert data1 == data2 end def test_3 data0 = "This is a test\n" File.open('test.txt', 'w') {|f| f.write(data0) } data1 = File.read('test.txt') fs = FileStream.new('test.txt', FileMode.Open, FileAccess.Read) br = BinaryReader.new(fs) numBytes = FileInfo.new('test.txt').Length buff = br.ReadBytes(numBytes) data2 = String.CreateBinary(buff) assert_equal data0, data1 assert_equal data0, data2 assert_equal data1, data2 end end ----------- Loaded suite binstring Started ..F Finished in 0.46875 seconds. 1) Failure: test_3(Binstring) [binstring.rb:45:in `test_3' c:/Ironruby/lib/IronRuby/test/unit/testcase.rb:79:in `run' :0:in `send' testrunner.rb:66:in `start_mediator' :0:in `each']: <"This is a test\n"> expected but was <"This is a test\r\n">. 3 tests, 4 assertions, 1 failures, 0 errors On Fri, 23 Oct 2009 03:56:38 +0200, Tomas Matousek wrote: > In this particular case, I would recommend to use .NET API: > >>>> include System::IO > => Object >>>> stream = FileStream.new("c:\\temp\\a.txt", FileMode.Open, >>>> FileAccess.Read) > => System.IO.FileStream >>>> "".Append(stream, stream.Length) > => "hello" > > Tomas From ivan at flanders.co.nz Fri Oct 23 08:47:06 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 23 Oct 2009 14:47:06 +0200 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C067169A3@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <"This is a test\n"> expected but was <"This is a test\r\n">. windows default is to use CRLF for a new line and the CLR inherits that But for ruby the new line constant is a LF which ruby inherits from *nix based systems the dirty workaround is either specify data0 = "This is a test\r\n" or data1.gsub! /\n/, "\r\n" or data2.gsub! /\r\n/, "\n" AFAIK there is no way to override the Environment.NewLine constant in a way the CLR will pick it up. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 23, 2009 at 2:31 PM, H?kon Clausen wrote: > Thanks, > CreateBinary made the picture file pass the test. > I'm having some trouble with some plain text and newlines. Any idea why > "test_3" don't pass? > > require 'test/unit' > include System::IO > class Binstring < Test::Unit::TestCase > > def test_1 > fileName = 'flowers.jpg' > > #Ruby > data1 = File.read(fileName) > > #.Net > fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read) > br = BinaryReader.new(fs) > numBytes = FileInfo.new(fileName).Length > buff = br.ReadBytes(numBytes) > data2 = String.CreateBinary(buff) > > assert data1 == data2 > end > > def test_2 > fileName = 'flowers.jpg' > > #Ruby > data1 = File.read(fileName) > > #.Net > fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read) > data2 = "".Append(fs, fs.length) > > assert data1 == data2 > end > > def test_3 > data0 = "This is a test\n" > File.open('test.txt', 'w') {|f| f.write(data0) } > data1 = File.read('test.txt') > fs = FileStream.new('test.txt', FileMode.Open, FileAccess.Read) > br = BinaryReader.new(fs) > numBytes = FileInfo.new('test.txt').Length > buff = br.ReadBytes(numBytes) > data2 = String.CreateBinary(buff) > > assert_equal data0, data1 > assert_equal data0, data2 > assert_equal data1, data2 > end > end > > ----------- > > Loaded suite binstring > Started > ..F > Finished in 0.46875 seconds. > > 1) Failure: > test_3(Binstring) > [binstring.rb:45:in `test_3' > c:/Ironruby/lib/IronRuby/test/unit/testcase.rb:79:in `run' > :0:in `send' > testrunner.rb:66:in `start_mediator' > :0:in `each']: > <"This is a test\n"> expected but was > <"This is a test\r\n">. > > 3 tests, 4 assertions, 1 failures, 0 errors > > > On Fri, 23 Oct 2009 03:56:38 +0200, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > In this particular case, I would recommend to use .NET API: >> >> include System::IO >>>>> >>>> => Object >> >>> stream = FileStream.new("c:\\temp\\a.txt", FileMode.Open, >>>>> FileAccess.Read) >>>>> >>>> => System.IO.FileStream >> >>> "".Append(stream, stream.Length) >>>>> >>>> => "hello" >> >> Tomas >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Oct 23 11:22:36 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 23 Oct 2009 15:22:36 +0000 Subject: [Ironruby-core] byte[] to ruby string In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C067169A3@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06716C16@TK5EX14MBXC131.redmond.corp.microsoft.com> You need to use ?wb? mode to prevent Ruby from transforming eolns. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, October 23, 2009 5:47 AM To: hakonhc at hclausen.net; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] byte[] to ruby string <"This is a test\n"> expected but was <"This is a test\r\n">. windows default is to use CRLF for a new line and the CLR inherits that But for ruby the new line constant is a LF which ruby inherits from *nix based systems the dirty workaround is either specify data0 = "This is a test\r\n" or data1.gsub! /\n/, "\r\n" or data2.gsub! /\r\n/, "\n" AFAIK there is no way to override the Environment.NewLine constant in a way the CLR will pick it up. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Fri, Oct 23, 2009 at 2:31 PM, H?kon Clausen > wrote: Thanks, CreateBinary made the picture file pass the test. I'm having some trouble with some plain text and newlines. Any idea why "test_3" don't pass? require 'test/unit' include System::IO class Binstring < Test::Unit::TestCase def test_1 fileName = 'flowers.jpg' #Ruby data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read) br = BinaryReader.new(fs) numBytes = FileInfo.new(fileName).Length buff = br.ReadBytes(numBytes) data2 = String.CreateBinary(buff) assert data1 == data2 end def test_2 fileName = 'flowers.jpg' #Ruby data1 = File.read(fileName) #.Net fs = FileStream.new(fileName, FileMode.Open, FileAccess.Read) data2 = "".Append(fs, fs.length) assert data1 == data2 end def test_3 data0 = "This is a test\n" File.open('test.txt', 'w') {|f| f.write(data0) } data1 = File.read('test.txt') fs = FileStream.new('test.txt', FileMode.Open, FileAccess.Read) br = BinaryReader.new(fs) numBytes = FileInfo.new('test.txt').Length buff = br.ReadBytes(numBytes) data2 = String.CreateBinary(buff) assert_equal data0, data1 assert_equal data0, data2 assert_equal data1, data2 end end ----------- Loaded suite binstring Started ..F Finished in 0.46875 seconds. 1) Failure: test_3(Binstring) [binstring.rb:45:in `test_3' c:/Ironruby/lib/IronRuby/test/unit/testcase.rb:79:in `run' :0:in `send' testrunner.rb:66:in `start_mediator' :0:in `each']: <"This is a test\n"> expected but was <"This is a test\r\n">. 3 tests, 4 assertions, 1 failures, 0 errors On Fri, 23 Oct 2009 03:56:38 +0200, Tomas Matousek > wrote: In this particular case, I would recommend to use .NET API: include System::IO => Object stream = FileStream.new("c:\\temp\\a.txt", FileMode.Open, FileAccess.Read) => System.IO.FileStream "".Append(stream, stream.Length) => "hello" Tomas _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Oct 23 11:44:05 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 23 Oct 2009 15:44:05 +0000 Subject: [Ironruby-core] Code Review: Interop specs Message-ID: Looking for code review on the following commits. These are net-interop binding specs and bug regression specs. Thanks, JD * remove extraneous 1 file * Cleaning up legacy tests to remove duplication. * A few constraint generic specs. * Matchers and shared cleanup * Generic Type inference fixtures and specs. * refactor specs to use only one args method * specs for properties and methods on structs and interfaces * fixes dev.ps1. * Specs for nullable parameters and properties * includes a insert-path cmdlet so that we do not rely on files on my * computer * Closes CP#1788 * basic specs for CP#1785 * Closes CP#1628 * Basic tests to close CP#1679 * Closes CP#1082 * Closes CP#1898 * Closes CP#1895 * Closes CP#765 * Closes CP#1995 * Specs for CP#2045 * Properly compile ir, ipy and ipyw * deleted extra file * Regression Specs CP#2027 * Regression specs for CP#2190 * Makes :netinterop pass again. Also adds repl.rb for a barebones debugging * Regression tests for Codeplex #1927 * more binding specs * refactor generator for binding specs * specs for other misc concerns in binding -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Oct 23 15:35:44 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 23 Oct 2009 19:35:44 +0000 Subject: [Ironruby-core] Code Review: Interop specs In-Reply-To: References: Message-ID: And one more: http://github.com/jredville/ironruby/commit/ed7f6e590d7dffea4503f96e0276dd984353d1e1 JD From: Jim Deville Sent: Friday, October 23, 2009 8:44 AM To: IronRuby External Code Reviewers; ironruby-core at rubyforge.org Subject: Code Review: Interop specs Looking for code review on the following commits. These are net-interop binding specs and bug regression specs. Thanks, JD * remove extraneous 1 file * Cleaning up legacy tests to remove duplication. * A few constraint generic specs. * Matchers and shared cleanup * Generic Type inference fixtures and specs. * refactor specs to use only one args method * specs for properties and methods on structs and interfaces * fixes dev.ps1. * Specs for nullable parameters and properties * includes a insert-path cmdlet so that we do not rely on files on my * computer * Closes CP#1788 * basic specs for CP#1785 * Closes CP#1628 * Basic tests to close CP#1679 * Closes CP#1082 * Closes CP#1898 * Closes CP#1895 * Closes CP#765 * Closes CP#1995 * Specs for CP#2045 * Properly compile ir, ipy and ipyw * deleted extra file * Regression Specs CP#2027 * Regression specs for CP#2190 * Makes :netinterop pass again. Also adds repl.rb for a barebones debugging * Regression tests for Codeplex #1927 * more binding specs * refactor generator for binding specs * specs for other misc concerns in binding -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Oct 23 15:55:35 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 23 Oct 2009 19:55:35 +0000 Subject: [Ironruby-core] Code Review: Types2 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06716EB7@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:Types2;REDMOND\tomat" DLR: The overload resolver should handle a candidate set with no callable method (e.g. have unbound generic parameter). Adds a BindingResult value that indicates such case. Ruby, Python: Disables VSHost process in CLR4 configurations to enable debugging in VS2010. VS2010 doesn't handle multiple TargetFrameworkVersions per project correctly when launching VSHost process. Ruby: Simplifies ClsTypeEmitter and adds support for overriding default indexers. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2907: Previously, generic type definitions were handled as super-classes for their instantiations so that it is possible to add a Ruby method on a generic type definition and call it from any instantiation. This approach breaks when inheriting from a generic type - the inheritance hierarchy is incorrect. It makes more sense to treat generic type definitions as modules - they can't be instantiated, don't define any callable methods and we can mix them into their instantiations instead of inheriting from them. Adds an overload to String.new that takes a byte[] and turns it into a binary string. Implements a debug view from RubyMethod. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Types2.diff Type: application/octet-stream Size: 84985 bytes Desc: Types2.diff URL: From Jimmy.Schementi at microsoft.com Fri Oct 23 18:09:36 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 23 Oct 2009 22:09:36 +0000 Subject: [Ironruby-core] Code Review: Interop specs In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDD334@tk5ex14mbxc105.redmond.corp.microsoft.com> Reviewed on GitHub From: Jim Deville Sent: Friday, October 23, 2009 12:36 PM To: IronRuby External Code Reviewers; ironruby-core at rubyforge.org Subject: RE: Code Review: Interop specs And one more: http://github.com/jredville/ironruby/commit/ed7f6e590d7dffea4503f96e0276dd984353d1e1 JD From: Jim Deville Sent: Friday, October 23, 2009 8:44 AM To: IronRuby External Code Reviewers; ironruby-core at rubyforge.org Subject: Code Review: Interop specs Looking for code review on the following commits. These are net-interop binding specs and bug regression specs. Thanks, JD * remove extraneous 1 file * Cleaning up legacy tests to remove duplication. * A few constraint generic specs. * Matchers and shared cleanup * Generic Type inference fixtures and specs. * refactor specs to use only one args method * specs for properties and methods on structs and interfaces * fixes dev.ps1. * Specs for nullable parameters and properties * includes a insert-path cmdlet so that we do not rely on files on my * computer * Closes CP#1788 * basic specs for CP#1785 * Closes CP#1628 * Basic tests to close CP#1679 * Closes CP#1082 * Closes CP#1898 * Closes CP#1895 * Closes CP#765 * Closes CP#1995 * Specs for CP#2045 * Properly compile ir, ipy and ipyw * deleted extra file * Regression Specs CP#2027 * Regression specs for CP#2190 * Makes :netinterop pass again. Also adds repl.rb for a barebones debugging * Regression tests for Codeplex #1927 * more binding specs * refactor generator for binding specs * specs for other misc concerns in binding -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Oct 23 19:12:18 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 23 Oct 2009 23:12:18 +0000 Subject: [Ironruby-core] [Code Review] Silverlight fixes Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEDD490@tk5ex14mbxc105.redmond.corp.microsoft.com> Here's a bunch of Silverlight fixes, mainly related to porting gestalt to Microsoft.Scripting.Silverlight. Here are some live demos: http://ironruby.com/gestalt. I also fixed a pretty annoying tutorial scrolling bug, which is also fixed on http://ironruby.net/tutorial. This review is mainly FYI only as it only affects Silverlight, so Jim is pulling this in shortly, but feel free to comment if something stands out. * Initial Ruby project scripts: get all closed/fixed work-items since a specific date. * Fix various powershell aliases * port gestalt "_units" and fixes bugs. o make sure visible Silverlight controls created from a XAML script tag are added to the DOM directly next to a script tag. o temporary work-around for HTML property setters. o Make sure DLR.settings are taken into account when generating Silverlight controls for XAML script tags * Make sure script-tags are executed in order, regardless of their mime-type, inline or external. o Execute all inline scripts in one scope, and execute each external script in its own scope. o Adds DynamicEngine.CreateScope() to populate helper variables on a new scope. o Add a test for ensuring Silverlight controls are added as immediate siblings of XAML script-tags * Fix HttpVirtualFilesystem.GetFileInternal to use Path.Combine to join baseUri and relativeUri, rather than just concatinating them, rename DLR.createObject to DLR.createSilverlightObject, and update Silverlight build aliases to the latest version. * Make sure a copy of Silverlight in this repo is ignored, and various script tweaks * DynamicApplication.MakeUri - makes a Uri relative to whatever makes sense at the time (HTML page or entry-point script) o Unify all Uri-handling routines to use MakeUri o Add DynamicEngine.RunningEntryPoint and DynamicScriptTags.RunningScriptTags -- flags which return true if the respective type of code is running at the moment, false otherwise. o Make sure DynamicEngine.Run is always referring to the entryPoint argument. o DynamicApplication.BaseUri is the Uri MakeUri always tries to be relative against. o Don't try to run script-tag code if it's neither inline or external (duh). o Make DynamicApplication.LoadComponent and MakeUri static methods o Add BrowserVirtualFilesystem.Normalize(string) as a static method o Fix gestalt samples to use MakeUri o Rename Cache to DownloadCache * Various Silverlight tweaks o Load "init.*" files (from assembly resources) before any other code runs, for language-specific monkey-patching, and remove previous DynamicObject implementation. o XapVirtualFilesystem checks for a file as a assembly resource if it the file is not in the XAP. o Make following public: DynamicApplication.BaseUri, BrowserPAL.VirtualFilesystem, and DynamicLanguageConfig.GetLanguageByName. o DLR.createSilverlightObject now always takes a pre-parsed set of options, while DLR.__createSilverlightObject takes already-parsed options. o dlr.js tests should remove any added silverlight controls so load time isn't slowed down. o Added BrowserVirtualFilesystem and Ruby extension tests. o Local deploy scripts for Ruby Tutorial and Silverlight samples. * DLR.createSilverlightObject should use DLR.settings, so user-defined defaults are used for all controls. o Also fix sample batch files to work from any current directory. * Remove files from Tutorial which should not be checked in * Cleans up LoadRootVisual and LoadComponent * Clean up Silverlight sample-scripts * Cleanup IronRuby tutorial scripts * IronRuby tutorial - allow "silverlight" method to be used in chapters as well. * Get IronRuby tutorial tests running in Silverlight again, and only show the console when running tests. * Woops, forgot to actually disable the test in Silverlight * Fix IronRuby tutorial scrolling bug, and clean up TryRuby tutorial a bit ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Oct 23 20:45:41 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 24 Oct 2009 00:45:41 +0000 Subject: [Ironruby-core] Code Review: PrePostMatchFix Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06717130@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:PrePostMatchFix;REDMOND\tomat" Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1483. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: PrePostMatchFix.diff Type: application/octet-stream Size: 21246 bytes Desc: PrePostMatchFix.diff URL: From shay.friedman at gmail.com Sun Oct 25 02:10:09 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Sun, 25 Oct 2009 08:10:09 +0200 Subject: [Ironruby-core] Thread Priority Message-ID: Hi guys, I've just noticed that something happened to Thread.priority... It disappeared. I'm talking about Thread's instance attribute - priority. I'm using the latest code from GitHub. The only available priority in the Thread instance now is a CamelCase priority, which is .Net's Priority attribute... Take a look at the next REPL session: => # >>> t = Thread.new { puts "Start"; sleep(30); puts "end" } tart=> # >>> t.priority :0: undefined method `priority' for # (NoMethodError) >>> t.Priority => Normal I remember the priority attribute was problematic because it didn't receive numeric values like MRI. Maybe this is related to that? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay From Tomas.Matousek at microsoft.com Sun Oct 25 12:54:59 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 25 Oct 2009 16:54:59 +0000 Subject: [Ironruby-core] Thread Priority In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> Ruby Thread#priority is not implemented yet. We disabled name mangling on built-ins recently so Thread.Priority property is not callable via lower-case name anymore. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Saturday, October 24, 2009 11:10 PM To: ironruby-core Subject: [Ironruby-core] Thread Priority Hi guys, I've just noticed that something happened to Thread.priority... It disappeared. I'm talking about Thread's instance attribute - priority. I'm using the latest code from GitHub. The only available priority in the Thread instance now is a CamelCase priority, which is .Net's Priority attribute... Take a look at the next REPL session: => # >>> t = Thread.new { puts "Start"; sleep(30); puts "end" } tart=> # >>> t.priority :0: undefined method `priority' for # (NoMethodError) >>> t.Priority => Normal I remember the priority attribute was problematic because it didn't receive numeric values like MRI. Maybe this is related to that? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From shay.friedman at gmail.com Sun Oct 25 15:55:21 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Sun, 25 Oct 2009 21:55:21 +0200 Subject: [Ironruby-core] Thread Priority In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: Is it going to be implemented for V1? If yes, is it going to work as MRI with numeric values? Thanks! Shay. On 10/25/09, Tomas Matousek wrote: > Ruby Thread#priority is not implemented yet. We disabled name mangling on > built-ins recently so Thread.Priority property is not callable via > lower-case name anymore. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman > Sent: Saturday, October 24, 2009 11:10 PM > To: ironruby-core > Subject: [Ironruby-core] Thread Priority > > Hi guys, > > I've just noticed that something happened to Thread.priority... It > disappeared. > I'm talking about Thread's instance attribute - priority. I'm using the > latest code from GitHub. > > The only available priority in the Thread instance now is a CamelCase > priority, which is .Net's Priority attribute... > > Take a look at the next REPL session: > => # >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } > tart=> > # >>>> t.priority > :0: undefined method `priority' for # > (NoMethodError) > >>>> t.Priority > => Normal > > I remember the priority attribute was problematic because it didn't receive > numeric values like MRI. Maybe this is related to that? > > Thanks, > Shay. > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay From shay.friedman at gmail.com Sun Oct 25 16:26:00 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Sun, 25 Oct 2009 22:26:00 +0200 Subject: [Ironruby-core] Something's wrong with ObjectSpace Message-ID: Hey, The next REPL session works fine in MRI but in IR it throws an error: >>> str = "sss" => "sss" >>> ObjectSpace.each_object(String) { |x| puts x } d:\IronRuby\GitRepository2\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\ObjectSpace.cs:37:in `each_object': each_object only supported for objects of type Class or Module (RuntimeError) from :0 I looked a bit into it and IR identifies String as a descendant of Object and not Module as it expects. This problem makes it impossible to run each_object on Numeric as well (and I guess more types that are mapped directly to CLR types). Should I create a bug? Thanks! Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay From Tomas.Matousek at microsoft.com Sun Oct 25 19:00:36 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 25 Oct 2009 23:00:36 +0000 Subject: [Ironruby-core] Something's wrong with ObjectSpace In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C067174FF@TK5EX14MBXC131.redmond.corp.microsoft.com> This is by design. We don't support enumerating objects that are not modules. A string instance is not a module. Why do you need to enumerate all allocated strings? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Sunday, October 25, 2009 1:26 PM To: ironruby-core Subject: [Ironruby-core] Something's wrong with ObjectSpace Hey, The next REPL session works fine in MRI but in IR it throws an error: >>> str = "sss" => "sss" >>> ObjectSpace.each_object(String) { |x| puts x } d:\IronRuby\GitRepository2\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\ObjectSpace.cs:37:in `each_object': each_object only supported for objects of type Class or Module (RuntimeError) from :0 I looked a bit into it and IR identifies String as a descendant of Object and not Module as it expects. This problem makes it impossible to run each_object on Numeric as well (and I guess more types that are mapped directly to CLR types). Should I create a bug? Thanks! Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From pascal.normandin at convergentware.com Sun Oct 25 19:49:49 2009 From: pascal.normandin at convergentware.com (Pascal Normandin) Date: Sun, 25 Oct 2009 19:49:49 -0400 Subject: [Ironruby-core] Thread Priority In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <001d01ca55cd$d6d9e020$848da060$%normandin@convergentware.com> Hello, I have done a very basic implementation of a while back but I did not finish the modifications to the specs to test this. Here are the commits if you want to grab it http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 de7f305 http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b 164f202 It was decided at some point that there would only be 5 valid values -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities Lowest, BelowNormal, Normal, AboveNormal and Highest If anything lower than -2 is passed in the thread will be assigned Lowest and Highest if above 2. Pascal -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: October-25-09 3:55 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Thread Priority Is it going to be implemented for V1? If yes, is it going to work as MRI with numeric values? Thanks! Shay. On 10/25/09, Tomas Matousek wrote: > Ruby Thread#priority is not implemented yet. We disabled name mangling on > built-ins recently so Thread.Priority property is not callable via > lower-case name anymore. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman > Sent: Saturday, October 24, 2009 11:10 PM > To: ironruby-core > Subject: [Ironruby-core] Thread Priority > > Hi guys, > > I've just noticed that something happened to Thread.priority... It > disappeared. > I'm talking about Thread's instance attribute - priority. I'm using the > latest code from GitHub. > > The only available priority in the Thread instance now is a CamelCase > priority, which is .Net's Priority attribute... > > Take a look at the next REPL session: > => # >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } > tart=> > # >>>> t.priority > :0: undefined method `priority' for # > (NoMethodError) > >>>> t.Priority > => Normal > > I remember the priority attribute was problematic because it didn't receive > numeric values like MRI. Maybe this is related to that? > > Thanks, > Shay. > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From shay.friedman at gmail.com Mon Oct 26 01:10:12 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Mon, 26 Oct 2009 07:10:12 +0200 Subject: [Ironruby-core] Something's wrong with ObjectSpace In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C067174FF@TK5EX14MBXC131.redmond.corp.microsoft.com> References: <4B342496A3EFEB48839E10BB4BF5964C067174FF@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: I don't have a specific need for that right now. However, it does sound logical to me that you'd want to get all the strings in your application. It becomes even more reasonable when you run each_object with Thread, to find out all defined. This doesn't work as well. But, this is not the most used class out there so I IronRuby will continue to ROCK despite that. Thanks for the reply Tomas, Shay. On Mon, Oct 26, 2009 at 1:00 AM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > This is by design. We don't support enumerating objects that are not > modules. A string instance is not a module. > Why do you need to enumerate all allocated strings? > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman > Sent: Sunday, October 25, 2009 1:26 PM > To: ironruby-core > Subject: [Ironruby-core] Something's wrong with ObjectSpace > > Hey, > > The next REPL session works fine in MRI but in IR it throws an error: > >>> str = "sss" > => "sss" > >>> ObjectSpace.each_object(String) { |x| puts x } > > d:\IronRuby\GitRepository2\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\ObjectSpace.cs:37:in > `each_object': each_object only supported for objects of type Class or > Module (RuntimeError) > from :0 > > I looked a bit into it and IR identifies String as a descendant of Object > and not Module as it expects. This problem makes it impossible to run > each_object on Numeric as well (and I guess more types that are mapped > directly to CLR types). > > Should I create a bug? > > Thanks! > Shay. > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Mon Oct 26 01:12:52 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Mon, 26 Oct 2009 07:12:52 +0200 Subject: [Ironruby-core] Thread Priority In-Reply-To: <001d01ca55cd$d6d9e020$848da060$%normandin@convergentware.com> References: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> <001d01ca55cd$d6d9e020$848da060$%normandin@convergentware.com> Message-ID: I remembered something like that. Thanks for pointing it out Pascal. Is it going to be incorporated into V1 code? Thanks! Shay. On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin < pascal.normandin at convergentware.com> wrote: > Hello, > > I have done a very basic implementation of a while back but I did not > finish > the modifications to the specs to test this. > > Here are the commits if you want to grab it > > > http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 > de7f305 > > http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b > 164f202 > > It was decided at some point that there would only be 5 valid values > > -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities > Lowest, BelowNormal, Normal, AboveNormal and Highest > > If anything lower than -2 is passed in the thread will be assigned Lowest > and Highest if above 2. > > Pascal > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman > Sent: October-25-09 3:55 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Thread Priority > > Is it going to be implemented for V1? > If yes, is it going to work as MRI with numeric values? > > Thanks! > Shay. > > On 10/25/09, Tomas Matousek wrote: > > Ruby Thread#priority is not implemented yet. We disabled name mangling on > > built-ins recently so Thread.Priority property is not callable via > > lower-case name anymore. > > > > Tomas > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org > > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman > > Sent: Saturday, October 24, 2009 11:10 PM > > To: ironruby-core > > Subject: [Ironruby-core] Thread Priority > > > > Hi guys, > > > > I've just noticed that something happened to Thread.priority... It > > disappeared. > > I'm talking about Thread's instance attribute - priority. I'm using the > > latest code from GitHub. > > > > The only available priority in the Thread instance now is a CamelCase > > priority, which is .Net's Priority attribute... > > > > Take a look at the next REPL session: > > => # > >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } > > tart=> > > # > >>>> t.priority > > :0: undefined method `priority' for # > > (NoMethodError) > > > >>>> t.Priority > > => Normal > > > > I remember the priority attribute was problematic because it didn't > receive > > numeric values like MRI. Maybe this is related to that? > > > > Thanks, > > Shay. > > > > -- > > -------------------------------------------------- > > Shay Friedman > > Author of IronRuby Unleashed > > http://www.IronShay.com > > Follow me: http://twitter.com/ironshay > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Oct 26 01:50:46 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 26 Oct 2009 05:50:46 +0000 Subject: [Ironruby-core] Something's wrong with ObjectSpace In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C067174FF@TK5EX14MBXC131.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C0671760A@TK5EX14MBXC131.redmond.corp.microsoft.com> Such feature would incur a significant performance hit to all applications. If you really need to get all instances of some class you can e.g. monkey-patch its initialize method and store the instances in a (weak) list. Although we could provide a command line option that would allow us to match MRI's semantics of each_object precisely, I don't see a strong use case for such feature. All use cases I have seen so far could be implemented in much more efficient way that doesn't rely on ObjectSpace. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Sunday, October 25, 2009 10:10 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Something's wrong with ObjectSpace I don't have a specific need for that right now. However, it does sound logical to me that you'd want to get all the strings in your application. It becomes even more reasonable when you run each_object with Thread, to find out all defined. This doesn't work as well. But, this is not the most used class out there so I IronRuby will continue to ROCK despite that. Thanks for the reply Tomas, Shay. On Mon, Oct 26, 2009 at 1:00 AM, Tomas Matousek > wrote: This is by design. We don't support enumerating objects that are not modules. A string instance is not a module. Why do you need to enumerate all allocated strings? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Sunday, October 25, 2009 1:26 PM To: ironruby-core Subject: [Ironruby-core] Something's wrong with ObjectSpace Hey, The next REPL session works fine in MRI but in IR it throws an error: >>> str = "sss" => "sss" >>> ObjectSpace.each_object(String) { |x| puts x } d:\IronRuby\GitRepository2\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\ObjectSpace.cs:37:in `each_object': each_object only supported for objects of type Class or Module (RuntimeError) from :0 I looked a bit into it and IR identifies String as a descendant of Object and not Module as it expects. This problem makes it impossible to run each_object on Numeric as well (and I guess more types that are mapped directly to CLR types). Should I create a bug? Thanks! Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Oct 26 04:40:18 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 26 Oct 2009 09:40:18 +0100 Subject: [Ironruby-core] iirb broken? Message-ID: Hi As soon as I want to do something slightly more useful with iirb it won't work When I execute iirb it's not being very helpful at all on mono: IronRuby.Libraries:0:in `GetExecutable': infocmp -C (Errno::ENOENT) from IronRuby.Libraries:0:in `CreateProcess' from IronRuby.Libraries:0:in `CreateProcess' from :0:in ``' from /usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rbreadline.rb:1796:in `get_term_capabilities' ..... more stuff in trace .... on windows: + C:\dev\caricature (master) ? iirb IronRuby.Libraries:0:in `GetExecutable': stty size (Errno::ENOENT) from IronRuby.Libraries:0:in `CreateProcess' from IronRuby.Libraries:0:in `CreateProcess' from :0:in ``' ....... more stuff in trace .... unfortunately the flag -r doesn't seem to work either because if I execute ir -r lib/caricature the constant Caricature is undefined while it should have been loaded. What I want to get working is the following script: #!/usr/bin/env ir puts "Loading the caricature gem..." iirb -r irb/completion -r rubygems -r lib/caricature --simple-prompt --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Oct 26 05:12:42 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 26 Oct 2009 10:12:42 +0100 Subject: [Ironruby-core] events handling Message-ID: Hi I'm trying the following code: public class ExposingWarrior{ private readonly int _id; public event EventHandler OnIsExposedChanged; public bool IsExposed {get; set; } public void Explode(){ IsExposed = !IsExposed; var handler = OnIsExposedChanged; if(handler != null){ handler(this, EventArgs.Empty); } } public bool HasEventSubscriptions{ get { return OnIsExposedChanged != null; } } } require File.dirname(__FILE__) + '/spec/bin/ClrModels.dll' class ClrProxy < ClrModels::ExposingWarrior def add_OnIsExposedChanged(handler) (@handlers ||= []) << handler end def remove_OnIsExposedChanged(handler) @handlers.delete handler end def to_s "handlers collected: #{(@handlers||[]).size}" end end pxy = ClrProxy.new ClrModels::ExposedChangedSubscriber.new(pxy) puts pxy ###### (master)? ir event_test.rb handlers collected: 0 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Oct 26 09:12:47 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 26 Oct 2009 14:12:47 +0100 Subject: [Ironruby-core] windows buildserver test run Message-ID: Hi, I just kicked off a new build on the buildserver but I think we should come up with a better way of using tracing the debug assert statements in a ci build. Currently they are displayed using a message box. Last time there were only a couple of these popping up this time around when it runs the suite after RubySpec B it has hundreds of them. I disabled the diagnostics listeners for now so the build can proceed without me having to hammer spacebar for about 20 minutes. github seems to have a probleem with invoking the builds remotely so I'll set up polling on a daily schedule. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at alexbcoles.com Mon Oct 26 10:02:04 2009 From: alex at alexbcoles.com (Alexander Coles) Date: Mon, 26 Oct 2009 15:02:04 +0100 Subject: [Ironruby-core] Thread Priority In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C0671746D@TK5EX14MBXC131.redmond.corp.microsoft.com> <001d01ca55cd$d6d9e020$848da060$%normandin@convergentware.com> Message-ID: <502e1b6d0910260702v1d1a4812t539e4baa46d58dc8@mail.gmail.com> Quick +1 to vote this patch up. I've been working on the JRuby support for the DataMapper ORM and DataObjects(.rb) database connectivity layer. These projects rely in turn on another project called Extlib, which provides a bunch of useful extensions (lazy arrays, thread pools, string extensions) for the other two projects. I pulled down and built the latest IronRuby and running Extlib's specs, the lack of Thread#priority appears to be the first blocker in our support for IR. Alex Coles DataMapper: http://github.com/datamapper/dm-core DataObjects: http://github.com/datamapper/do Extlib: http://github.com/datamapper/extlib On Mon, Oct 26, 2009 at 6:12 AM, Shay Friedman wrote: > I remembered something like that. Thanks for pointing it out Pascal. > Is it going to be incorporated into V1 code? > Thanks! > Shay. > > On Mon, Oct 26, 2009 at 1:49 AM, Pascal Normandin > wrote: >> >> Hello, >> >> I have done a very basic implementation of a while back but I did not >> finish >> the modifications to the specs to test this. >> >> Here are the commits if you want to grab it >> >> >> http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 >> de7f305 >> >> http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b >> 164f202 >> >> It was decided at some point that there would only be 5 valid values >> >> -2, -1, 0, 1 and 2 ... mapping to the CLR thread priorities >> Lowest, BelowNormal, Normal, AboveNormal and Highest >> >> If anything lower than -2 is passed in the thread will be assigned Lowest >> and Highest if above 2. >> >> Pascal >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> Sent: October-25-09 3:55 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Thread Priority >> >> Is it going to be implemented for V1? >> If yes, is it going to work as MRI with numeric values? >> >> Thanks! >> Shay. >> >> On 10/25/09, Tomas Matousek wrote: >> > Ruby Thread#priority is not implemented yet. We disabled name mangling >> > on >> > built-ins recently so Thread.Priority property is not callable via >> > lower-case name anymore. >> > >> > Tomas >> > >> > -----Original Message----- >> > From: ironruby-core-bounces at rubyforge.org >> > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman >> > Sent: Saturday, October 24, 2009 11:10 PM >> > To: ironruby-core >> > Subject: [Ironruby-core] Thread Priority >> > >> > Hi guys, >> > >> > I've just noticed that something happened to Thread.priority... It >> > disappeared. >> > I'm talking about Thread's instance attribute - priority. I'm using the >> > latest code from GitHub. >> > >> > The only available priority in the Thread instance now is a CamelCase >> > priority, which is .Net's Priority attribute... >> > >> > Take a look at the next REPL session: >> > => # >> >>>> t = Thread.new { puts "Start"; sleep(30); puts "end" } >> > ?tart=> >> > # >> >>>> t.priority >> > :0: undefined method `priority' for # >> > (NoMethodError) >> > >> >>>> t.Priority >> > => Normal >> > >> > I remember the priority attribute was problematic because it didn't >> receive >> > numeric values like MRI. Maybe this is related to that? >> > >> > Thanks, >> > Shay. >> > >> > -- >> > -------------------------------------------------- >> > Shay Friedman >> > Author of IronRuby Unleashed >> > http://www.IronShay.com >> > Follow me: http://twitter.com/ironshay >> > ________________________________________ From jdeville at microsoft.com Mon Oct 26 11:09:53 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 26 Oct 2009 15:09:53 +0000 Subject: [Ironruby-core] windows buildserver test run Message-ID: Default.mspec has a trace handler that causes assserts to print a message instead of the dialog if %SILENTASSERT% is set. This listener could be ported to a different location to make it work across the test runners. JD ________________________________ From: Ivan Porto Carrero Sent: Monday, October 26, 2009 6:13 AM To: ironruby-core Subject: [Ironruby-core] windows buildserver test run Hi, I just kicked off a new build on the buildserver but I think we should come up with a better way of using tracing the debug assert statements in a ci build. Currently they are displayed using a message box. Last time there were only a couple of these popping up this time around when it runs the suite after RubySpec B it has hundreds of them. I disabled the diagnostics listeners for now so the build can proceed without me having to hammer spacebar for about 20 minutes. github seems to have a probleem with invoking the builds remotely so I'll set up polling on a daily schedule. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Oct 26 15:18:48 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 26 Oct 2009 19:18:48 +0000 Subject: [Ironruby-core] Anyone going to PDC this year? Message-ID: <1B42307CD4AADD438CDDA2FE1121CC920221D9@TK5EX14MBXC134.redmond.corp.microsoft.com> Is anyone going to PDC this year? Dino is giving a talk there, and the "Ask the Experts" dinner event will have a joint "Dynamic Language Runtime, IronPython, and IronRuby" table, but only with Dino sitting there. While he's totally qualified to answer anyone's questions on the topics, it'd be nice to have more people =) So, if you're going to PDC and plan to attend "Ask the Experts", try to hang around the dynamic languages table. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at plainprograms.com Tue Oct 27 13:03:01 2009 From: james at plainprograms.com (James Thompson) Date: Tue, 27 Oct 2009 12:03:01 -0500 Subject: [Ironruby-core] Issue with ActionMailer that appears to run deep Message-ID: I just posted an issue: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2946 It looks like something is going odd between the UTC method defined in TimeOps.cs and the RACC parser. Anyone who understands the internals better than I want to take a look at the stack trace I attached and tell me if I may be missing something? This is blocking my deployment of a Rails app because using ActionMailer is giving me this. Thanks! James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Oct 27 19:29:55 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 27 Oct 2009 23:29:55 +0000 Subject: [Ironruby-core] Git pull complete Message-ID: I've successfully pulled in changes from Shri, Jimmy, Ivan and myself, with a couple modifications. I've reverted Ivan's change to FileOps.cs since it caused tests to fail across the board. Jimmy reverted my deletion of builtin tests due to a dependency on them from SL. The files are there, but they are not running in desktop tests anymore. I've also integrated Pascal's Thread#priority and #priority= changes, that should unblock Alex on the DO and DataMapper stuff. Enjoy! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Oct 28 02:31:26 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 28 Oct 2009 06:31:26 +0000 Subject: [Ironruby-core] Issue with ActionMailer that appears to run deep In-Reply-To: References: Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7ABA5D@TK5EX14MBXC140.redmond.corp.microsoft.com> It?s a simple bug in the utc implementation. Time.utc (http://www.ruby-doc.org/core/classes/Time.html#M000252) gets passed in a number of arguments which are all ints except for the second one. The Time.utc implementation tries to convert all to an int, and fails when it gets a string for the second argument. The simple snippet below works with MRI but fails with IronRuby. Time.utc(2000,"jan",1,20,15,1) Are you able to build from source as described at http://wiki.github.com/ironruby/ironruby? If so, we can fix this and push the patch to github for you to pick up? If not, you can workaround it by monkey-patching Time.utc with something like this: class Time class << self @@months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"] alias :old_utc :utc def utc(*args) if args.size >= 2 if args[1].kind_of? String args[1] = @@months.index(args[1]) + 1 end end old_utc(*args) end end end From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of James Thompson Sent: Tuesday, October 27, 2009 10:03 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Issue with ActionMailer that appears to run deep I just posted an issue: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2946 It looks like something is going odd between the UTC method defined in TimeOps.cs and the RACC parser. Anyone who understands the internals better than I want to take a look at the stack trace I attached and tell me if I may be missing something? This is blocking my deployment of a Rails app because using ActionMailer is giving me this. Thanks! James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at plainprograms.com Wed Oct 28 08:59:54 2009 From: james at plainprograms.com (James Thompson) Date: Wed, 28 Oct 2009 07:59:54 -0500 Subject: [Ironruby-core] Issue with ActionMailer that appears to run deep In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C7ABA5D@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C7ABA5D@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: I'm compiling from source. Sent from my iPhone On Oct 28, 2009, at 1:31 AM, Shri Borde wrote: > It?s a simple bug in the utc implementation. Time.utc (http://www.ruby-doc.org/core/classes/Time.html#M0002 > 52) gets passed in a number of arguments which are all ints except f > or the second one. The Time.utc implementation tries to convert all > to an int, and fails when it gets a string for the second argument. > The simple snippet below works with MRI but fails with IronRuby. > > > > Time.utc(2000,"jan",1,20,15,1) > > > > Are you able to build from source as described at http://wiki.github.com/ironruby/ironruby? > If so, we can fix this and push the patch to github for you to pick > up? > > > > If not, you can workaround it by monkey-patching Time.utc with > something like this: > > > > class Time > > class << self > > @@months = ["jan", "feb", "mar", "apr", "may", > > "jun", "jul", "aug", "sep", "oct", "nov", "dec"] > > alias :old_utc :utc > > def utc(*args) > > if args.size >= 2 > > if args[1].kind_of? String > > args[1] = @@months.index(args[1]) + 1 > > end > > end > > old_utc(*args) > > end > > end > > end > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of James Thompson > Sent: Tuesday, October 27, 2009 10:03 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Issue with ActionMailer that appears to run > deep > > > > I just posted an issue: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2946 > > It looks like something is going odd between the UTC method defined > in TimeOps.cs and the RACC parser. Anyone who understands the > internals better than I want to take a look at the stack trace I > attached and tell me if I may be missing something? > > This is blocking my deployment of a Rails app because using > ActionMailer is giving me this. > > > Thanks! > > James Thompson > Plain Programs > New Orleans, LA > > P: (502) 619.0353 > E: james at plainprograms.com > W: www.plainprograms.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Oct 28 10:24:24 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 28 Oct 2009 15:24:24 +0100 Subject: [Ironruby-core] Open source project to port Message-ID: Hi I'm looking for a smallish .NET open source project to port to ironruby which one should I take? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipidi at gmail.com Wed Oct 28 10:28:46 2009 From: dipidi at gmail.com (Dotan N.) Date: Wed, 28 Oct 2009 16:28:46 +0200 Subject: [Ironruby-core] Open source project to port In-Reply-To: References: Message-ID: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> I'm interested to possibly join, whatever it may be :) On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero wrote: > Hi > > I'm looking for a smallish .NET open source project to port to ironruby > which one should I take? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipidi at gmail.com Wed Oct 28 10:30:53 2009 From: dipidi at gmail.com (Dotan N.) Date: Wed, 28 Oct 2009 16:30:53 +0200 Subject: [Ironruby-core] Open source project to port In-Reply-To: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> Message-ID: <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> and to add on that, a common pain i get with rails is an image processing library to stand in for rmagick (i use JRuby on windows on some projects, and they have rmagick4j which is very convenient), so that might be a good target. On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: > I'm interested to possibly join, whatever it may be :) > > On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero wrote: > >> Hi >> >> I'm looking for a smallish .NET open source project to port to ironruby >> which one should I take? >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Wed Oct 28 10:38:13 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Wed, 28 Oct 2009 07:38:13 -0700 Subject: [Ironruby-core] Open source project to port In-Reply-To: <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> I would second that idea as well. I'd love to use ruby to port some sparkline and other BI visualization graph libraries, and a graphics library would be just the ticket. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dotan N. Sent: Wednesday, October 28, 2009 7:31 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port and to add on that, a common pain i get with rails is an image processing library to stand in for rmagick (i use JRuby on windows on some projects, and they have rmagick4j which is very convenient), so that might be a good target. On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: I'm interested to possibly join, whatever it may be :) On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero wrote: Hi I'm looking for a smallish .NET open source project to port to ironruby which one should I take? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Oct 28 11:20:55 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 28 Oct 2009 16:20:55 +0100 Subject: [Ironruby-core] Open source project to port In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> Message-ID: Yes but in my case it's to use in my book as an example of this is how you rubyfiy a C# application. I do it to some extend with witty in my WPF chapter. I'm not thinking in the orders of magnitude of Hibernate or even ironrubymvc. But it should be something fairly well-known. I don't see much benefit in porting any of the testing libraries, mocking frameworks or dependency injection stuff but it would be good to take something that is familiar to many .NET devs I just can't think of any projects right now. RMagick is certainly a very interesting library. The link below uses ImageMagick and mono so I imagine that could be a start :) http://ubuntuforums.org/showthread.php?p=8138533 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults wrote: > I would second that idea as well. I?d love to use ruby to port some > sparkline and other BI visualization graph libraries, and a graphics library > would be just the ticket. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dotan N. > *Sent:* Wednesday, October 28, 2009 7:31 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > and to add on that, a common pain i get with rails is an image processing > library to stand in for rmagick (i use JRuby on windows on some projects, > and they have rmagick4j which is very convenient), so that might be a good > target. > > On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: > > I'm interested to possibly join, whatever it may be :) > > On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero > wrote: > > Hi > > > > I'm looking for a smallish .NET open source project to port to ironruby > which one should I take? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipidi at gmail.com Wed Oct 28 11:33:34 2009 From: dipidi at gmail.com (Dotan N.) Date: Wed, 28 Oct 2009 17:33:34 +0200 Subject: [Ironruby-core] Open source project to port In-Reply-To: References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> Message-ID: <6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> bummer :( well, my idea was a pure imagemagick interface .net implementation, at least to some extent, exactly what the guys from rmagick4j did for java. with rmagick4j i don't need 10mb of imagemagick dependencies at all, its all pure java, and pure jruby. do any of you have ideas as to how much effort such a thing would take ? On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero wrote: > Yes but in my case it's to use in my book as an example of this is how you > rubyfiy a C# application. > > I do it to some extend with witty in my WPF chapter. I'm not thinking in > the orders of magnitude of Hibernate or even ironrubymvc. But it should be > something fairly well-known. > > I don't see much benefit in porting any of the testing libraries, mocking > frameworks or dependency injection stuff but it would be good to take > something that is familiar to many .NET devs I just can't think of any > projects right now. > > RMagick is certainly a very interesting library. The link below uses > ImageMagick and mono so I imagine that could be a start :) > http://ubuntuforums.org/showthread.php?p=8138533 > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults < > Nathan_Stults at hsihealth.com> wrote: > >> I would second that idea as well. I?d love to use ruby to port some >> sparkline and other BI visualization graph libraries, and a graphics library >> would be just the ticket. >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dotan N. >> *Sent:* Wednesday, October 28, 2009 7:31 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Open source project to port >> >> >> >> and to add on that, a common pain i get with rails is an image processing >> library to stand in for rmagick (i use JRuby on windows on some projects, >> and they have rmagick4j which is very convenient), so that might be a good >> target. >> >> On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: >> >> I'm interested to possibly join, whatever it may be :) >> >> On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero >> wrote: >> >> Hi >> >> >> >> I'm looking for a smallish .NET open source project to port to ironruby >> which one should I take? >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From webadmin at nobts.edu Wed Oct 28 11:56:03 2009 From: webadmin at nobts.edu (Web Administrator) Date: Wed, 28 Oct 2009 10:56:03 -0500 Subject: [Ironruby-core] Open source project to port In-Reply-To: <6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> <6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> Message-ID: No idea what the project would take. But, I'd be interested in contributing. Sent from my iPhone On Oct 28, 2009, at 10:39 AM, "Dotan N." wrote: > bummer :( > well, my idea was a pure imagemagick interface .net implementation, > at least to some extent, exactly what the guys from rmagick4j did > for java. with rmagick4j i don't need 10mb of imagemagick > dependencies at all, its all pure java, and pure jruby. > > do any of you have ideas as to how much effort such a thing would > take ? > > > On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero > wrote: > Yes but in my case it's to use in my book as an example of this is > how you rubyfiy a C# application. > > I do it to some extend with witty in my WPF chapter. I'm not > thinking in the orders of magnitude of Hibernate or even > ironrubymvc. But it should be something fairly well-known. > > I don't see much benefit in porting any of the testing libraries, > mocking frameworks or dependency injection stuff but it would be > good to take something that is familiar to many .NET devs I just > can't think of any projects right now. > > RMagick is certainly a very interesting library. The link below uses > ImageMagick and mono so I imagine that could be a start :) > http://ubuntuforums.org/showthread.php?p=8138533 > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults > wrote: > I would second that idea as well. I?d love to use ruby to port some > sparkline and other BI visualization graph libraries, and a graphics > library would be just the ticket. > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Dotan N. > Sent: Wednesday, October 28, 2009 7:31 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Open source project to port > > > > and to add on that, a common pain i get with rails is an image > processing library to stand in for rmagick (i use JRuby on windows > on some projects, and they have rmagick4j which is very convenient), > so that might be a good target. > > On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: > > I'm interested to possibly join, whatever it may be :) > > On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero > wrote: > > Hi > > > > I'm looking for a smallish .NET open source project to port to > ironruby which one should I take? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Wed Oct 28 12:03:13 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Wed, 28 Oct 2009 09:03:13 -0700 Subject: [Ironruby-core] Open source project to port In-Reply-To: References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com><6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local><6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA0F44@hsi-fs.HSIHealth.local> Me too. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Web Administrator Sent: Wednesday, October 28, 2009 8:56 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port No idea what the project would take. But, I'd be interested in contributing. Sent from my iPhone On Oct 28, 2009, at 10:39 AM, "Dotan N." wrote: bummer :( well, my idea was a pure imagemagick interface .net implementation, at least to some extent, exactly what the guys from rmagick4j did for java. with rmagick4j i don't need 10mb of imagemagick dependencies at all, its all pure java, and pure jruby. do any of you have ideas as to how much effort such a thing would take ? On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero wrote: Yes but in my case it's to use in my book as an example of this is how you rubyfiy a C# application. I do it to some extend with witty in my WPF chapter. I'm not thinking in the orders of magnitude of Hibernate or even ironrubymvc. But it should be something fairly well-known. I don't see much benefit in porting any of the testing libraries, mocking frameworks or dependency injection stuff but it would be good to take something that is familiar to many .NET devs I just can't think of any projects right now. RMagick is certainly a very interesting library. The link below uses ImageMagick and mono so I imagine that could be a start :) http://ubuntuforums.org/showthread.php?p=8138533 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults wrote: I would second that idea as well. I?d love to use ruby to port some sparkline and other BI visualization graph libraries, and a graphics library would be just the ticket. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dotan N. Sent: Wednesday, October 28, 2009 7:31 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port and to add on that, a common pain i get with rails is an image processing library to stand in for rmagick (i use JRuby on windows on some projects, and they have rmagick4j which is very convenient), so that might be a good target. On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: I'm interested to possibly join, whatever it may be :) On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero wrote: Hi I'm looking for a smallish .NET open source project to port to ironruby which one should I take? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Oct 28 12:16:23 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 28 Oct 2009 16:16:23 +0000 Subject: [Ironruby-core] Open source project to port In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BA0F44@hsi-fs.HSIHealth.local> References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com><6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com><790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local><6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F44@hsi-fs.HSIHealth.local> Message-ID: For ImageMagick/RMagick, you should be able to get away with making an adapter that matches the API of RMagick or ImageMagic with the functions in System.Drawing. There will probably be more beyond that, but that should get you started. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Wednesday, October 28, 2009 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port Me too. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Web Administrator Sent: Wednesday, October 28, 2009 8:56 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port No idea what the project would take. But, I'd be interested in contributing. Sent from my iPhone On Oct 28, 2009, at 10:39 AM, "Dotan N." > wrote: bummer :( well, my idea was a pure imagemagick interface .net implementation, at least to some extent, exactly what the guys from rmagick4j did for java. with rmagick4j i don't need 10mb of imagemagick dependencies at all, its all pure java, and pure jruby. do any of you have ideas as to how much effort such a thing would take ? On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero > wrote: Yes but in my case it's to use in my book as an example of this is how you rubyfiy a C# application. I do it to some extend with witty in my WPF chapter. I'm not thinking in the orders of magnitude of Hibernate or even ironrubymvc. But it should be something fairly well-known. I don't see much benefit in porting any of the testing libraries, mocking frameworks or dependency injection stuff but it would be good to take something that is familiar to many .NET devs I just can't think of any projects right now. RMagick is certainly a very interesting library. The link below uses ImageMagick and mono so I imagine that could be a start :) http://ubuntuforums.org/showthread.php?p=8138533 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults > wrote: I would second that idea as well. I?d love to use ruby to port some sparkline and other BI visualization graph libraries, and a graphics library would be just the ticket. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dotan N. Sent: Wednesday, October 28, 2009 7:31 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port and to add on that, a common pain i get with rails is an image processing library to stand in for rmagick (i use JRuby on windows on some projects, and they have rmagick4j which is very convenient), so that might be a good target. On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. > wrote: I'm interested to possibly join, whatever it may be :) On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero > wrote: Hi I'm looking for a smallish .NET open source project to port to ironruby which one should I take? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipidi at gmail.com Wed Oct 28 12:42:41 2009 From: dipidi at gmail.com (Dotan N.) Date: Wed, 28 Oct 2009 18:42:41 +0200 Subject: [Ironruby-core] Open source project to port In-Reply-To: References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> <6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F44@hsi-fs.HSIHealth.local> Message-ID: <6927b8740910280942j7e5b487fr6271af94ac6bec36@mail.gmail.com> ok sounds like a plan for a weekend research. i'll post my findings as soon as i can :) On Wed, Oct 28, 2009 at 6:16 PM, Jim Deville wrote: > For ImageMagick/RMagick, you should be able to get away with making an > adapter that matches the API of RMagick or ImageMagic with the functions in > System.Drawing. There will probably be more beyond that, but that should get > you started. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stults > *Sent:* Wednesday, October 28, 2009 9:03 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > Me too. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Web Administrator > *Sent:* Wednesday, October 28, 2009 8:56 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > No idea what the project would take. But, I'd be interested in > contributing. > > Sent from my iPhone > > > On Oct 28, 2009, at 10:39 AM, "Dotan N." wrote: > > bummer :( > well, my idea was a pure imagemagick interface .net implementation, at > least to some extent, exactly what the guys from rmagick4j did for java. > with rmagick4j i don't need 10mb of imagemagick dependencies at all, its all > pure java, and pure jruby. > > do any of you have ideas as to how much effort such a thing would take ? > > On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero > wrote: > > Yes but in my case it's to use in my book as an example of this is how you > rubyfiy a C# application. > > > > I do it to some extend with witty in my WPF chapter. I'm not thinking in > the orders of magnitude of Hibernate or even ironrubymvc. But it should be > something fairly well-known. > > > > I don't see much benefit in porting any of the testing libraries, mocking > frameworks or dependency injection stuff but it would be good to take > something that is familiar to many .NET devs I just can't think of any > projects right now. > > > > RMagick is certainly a very interesting library. The link below uses > ImageMagick and mono so I imagine that could be a start :) > > http://ubuntuforums.org/showthread.php?p=8138533 > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults < > Nathan_Stults at hsihealth.com> wrote: > > I would second that idea as well. I?d love to use ruby to port some > sparkline and other BI visualization graph libraries, and a graphics library > would be just the ticket. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dotan N. > *Sent:* Wednesday, October 28, 2009 7:31 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > and to add on that, a common pain i get with rails is an image processing > library to stand in for rmagick (i use JRuby on windows on some projects, > and they have rmagick4j which is very convenient), so that might be a good > target. > > On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: > > I'm interested to possibly join, whatever it may be :) > > On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero > wrote: > > Hi > > > > I'm looking for a smallish .NET open source project to port to ironruby > which one should I take? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Oct 28 16:54:59 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 28 Oct 2009 20:54:59 +0000 Subject: [Ironruby-core] Code Review: Scopes3 Message-ID: <4B342496A3EFEB48839E10BB4BF5964C06719A5E@TK5EX14MBXC131.redmond.corp.microsoft.com> tfpt review "/shelveset:Scopes3;REDMOND\tomat" Comment : DLR: Misc fixes to Hosting API: - Implements BindInvokeMember on ScopeStorage. - Makes ScriptScope constructor internal. - ObjectOperations.GetMember ... performs language specific conversion to T, like ConvertTo and GetVariable - All methods that take IAttributesCollection are obsolete. - Try(Get/Set)Variable(Handle) on ScriptEngine are obsolete. - ScriptRuntime.CreateScope should take IDynamicMetaObjectProvider Ruby - Kernel#require no longer loads Python files, IronRuby#require should be used instead. - Fixes possible race condition in global scope initializer. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Scopes3.diff Type: application/octet-stream Size: 17627 bytes Desc: Scopes3.diff URL: From sanxiyn at gmail.com Wed Oct 28 17:35:40 2009 From: sanxiyn at gmail.com (Seo Sanghyeon) Date: Thu, 29 Oct 2009 06:35:40 +0900 Subject: [Ironruby-core] IronMagick Message-ID: <5b0248170910281435m707a3f1avf3f40d154afbc028@mail.gmail.com> Motivated by recent discussion, here is four hours hack... http://github.com/sanxiyn/ironmagick I implemented RMagick API just enough to run a Gruff graph library example. http://nubyonrails.com/pages/gruff/ You can compare these two pictures to gauge the status. http://sparcs.kaist.ac.kr/~tinuviel/temp/gruff-ruby.png http://sparcs.kaist.ac.kr/~tinuviel/temp/gruff-ironruby.png There are position errors, because text measurement is not yet implemented. This will be fixed in due time. -- Seo Sanghyeon From james at plainprograms.com Wed Oct 28 17:54:37 2009 From: james at plainprograms.com (James Thompson) Date: Wed, 28 Oct 2009 16:54:37 -0500 Subject: [Ironruby-core] IronMagick In-Reply-To: <5b0248170910281435m707a3f1avf3f40d154afbc028@mail.gmail.com> References: <5b0248170910281435m707a3f1avf3f40d154afbc028@mail.gmail.com> Message-ID: Nice. I'm forking now. James Thompson Plain Programs New Orleans, LA P: (502) 619.0353 E: james at plainprograms.com W: www.plainprograms.com On Wed, Oct 28, 2009 at 4:35 PM, Seo Sanghyeon wrote: > Motivated by recent discussion, here is four hours hack... > http://github.com/sanxiyn/ironmagick > > I implemented RMagick API just enough to run a Gruff graph library example. > http://nubyonrails.com/pages/gruff/ > > You can compare these two pictures to gauge the status. > http://sparcs.kaist.ac.kr/~tinuviel/temp/gruff-ruby.png > http://sparcs.kaist.ac.kr/~tinuviel/temp/gruff-ironruby.png > > There are position errors, because text measurement is not yet > implemented. This will be fixed in due time. > > -- > Seo Sanghyeon > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Oct 28 20:06:44 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 29 Oct 2009 00:06:44 +0000 Subject: [Ironruby-core] Review: Fix for Time.utc accepting a month string argument Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7AD094@TK5EX14MBXC140.redmond.corp.microsoft.com> tfpt review /shelveset:utc;sborde Fix for Time.utc accepting a month string argument -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: utc.diff Type: application/octet-stream Size: 30153 bytes Desc: utc.diff URL: From Nathan_Stults at HSIHealth.com Thu Oct 29 03:25:36 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 29 Oct 2009 00:25:36 -0700 Subject: [Ironruby-core] Platform Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA1051@hsi-fs.HSIHealth.local> I noticed that the PLATFORM and RUBY_PLATFORM constants returns the same string when running from MRI as from IronRuby. Is there a standard Ruby constant or Kernel method or something that will indicate that the interpreter is IronRuby as opposed to MRI? While it is certainly true that the OS is the same when running from both environments, it would seem pretty useful to me to be able to distinguish, as JRuby does, so we can write libraries that can selectively do things like selectively take advantage of the .NET BCL if present. There are probably easy enough ways to work around this, like 'begin require System @platform="ir" rescue LoadError end' but using PLATFORM directly feels like it would be more elegant. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Thu Oct 29 03:28:31 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 29 Oct 2009 07:28:31 +0000 Subject: [Ironruby-core] Platform In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BA1051@hsi-fs.HSIHealth.local> References: <790F1F63F5D2E44E91797E821B31FDBB02BA1051@hsi-fs.HSIHealth.local> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7AD58A@TK5EX14MBXC140.redmond.corp.microsoft.com> You can use this construct: >>> defined? RUBY_ENGINE and RUBY_ENGINE == "ironruby" => true From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Thursday, October 29, 2009 12:26 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Platform I noticed that the PLATFORM and RUBY_PLATFORM constants returns the same string when running from MRI as from IronRuby. Is there a standard Ruby constant or Kernel method or something that will indicate that the interpreter is IronRuby as opposed to MRI? While it is certainly true that the OS is the same when running from both environments, it would seem pretty useful to me to be able to distinguish, as JRuby does, so we can write libraries that can selectively do things like selectively take advantage of the .NET BCL if present. There are probably easy enough ways to work around this, like 'begin require System @platform="ir" rescue LoadError end' but using PLATFORM directly feels like it would be more elegant. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Oct 29 03:29:31 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 29 Oct 2009 08:29:31 +0100 Subject: [Ironruby-core] Platform In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BA1051@hsi-fs.HSIHealth.local> References: <790F1F63F5D2E44E91797E821B31FDBB02BA1051@hsi-fs.HSIHealth.local> Message-ID: I use IRONRUBY_VERSION require 'caricature/clr' if defined?(IRONRUBY_VERSION) But we do need to find a way to "fix" the rbconfig file because it would be good to interrogate that sometimes. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Oct 29, 2009 at 8:25 AM, Nathan Stults wrote: > I noticed that the PLATFORM and RUBY_PLATFORM constants returns the same > string when running from MRI as from IronRuby. Is there a standard Ruby > constant or Kernel method or something that will indicate that the > interpreter is IronRuby as opposed to MRI? While it is certainly true that > the OS is the same when running from both environments, it would seem pretty > useful to me to be able to distinguish, as JRuby does, so we can write > libraries that can selectively do things like selectively take advantage of > the .NET BCL if present. There are probably easy enough ways to work around > this, like ?begin require System @platform=?ir? rescue LoadError end? but > using PLATFORM directly feels like it would be more elegant. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Oct 29 05:21:07 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 29 Oct 2009 10:21:07 +0100 Subject: [Ironruby-core] Open source project to port In-Reply-To: <6927b8740910280942j7e5b487fr6271af94ac6bec36@mail.gmail.com> References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> <6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F44@hsi-fs.HSIHealth.local> <6927b8740910280942j7e5b487fr6271af94ac6bec36@mail.gmail.com> Message-ID: Seo started with the ironmagick gem :) Ryan pointed me towards this little library/application, it seems to be the right size and is fairly interesting: http://code.google.com/p/stateless unless somebody has a better idea it will pop up in my ironrubyinaction repository somewhere next week. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 28, 2009 at 5:42 PM, Dotan N. wrote: > ok sounds like a plan for a weekend research. i'll post my findings as soon > as i can :) > > > On Wed, Oct 28, 2009 at 6:16 PM, Jim Deville wrote: > >> For ImageMagick/RMagick, you should be able to get away with making an >> adapter that matches the API of RMagick or ImageMagic with the functions in >> System.Drawing. There will probably be more beyond that, but that should get >> you started. >> >> >> >> JD >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stults >> *Sent:* Wednesday, October 28, 2009 9:03 AM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Open source project to port >> >> >> >> Me too. >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Web Administrator >> *Sent:* Wednesday, October 28, 2009 8:56 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Open source project to port >> >> >> >> No idea what the project would take. But, I'd be interested in >> contributing. >> >> Sent from my iPhone >> >> >> On Oct 28, 2009, at 10:39 AM, "Dotan N." wrote: >> >> bummer :( >> well, my idea was a pure imagemagick interface .net implementation, at >> least to some extent, exactly what the guys from rmagick4j did for java. >> with rmagick4j i don't need 10mb of imagemagick dependencies at all, its all >> pure java, and pure jruby. >> >> do any of you have ideas as to how much effort such a thing would take ? >> >> On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero >> wrote: >> >> Yes but in my case it's to use in my book as an example of this is how you >> rubyfiy a C# application. >> >> >> >> I do it to some extend with witty in my WPF chapter. I'm not thinking in >> the orders of magnitude of Hibernate or even ironrubymvc. But it should be >> something fairly well-known. >> >> >> >> I don't see much benefit in porting any of the testing libraries, mocking >> frameworks or dependency injection stuff but it would be good to take >> something that is familiar to many .NET devs I just can't think of any >> projects right now. >> >> >> >> RMagick is certainly a very interesting library. The link below uses >> ImageMagick and mono so I imagine that could be a start :) >> >> http://ubuntuforums.org/showthread.php?p=8138533 >> >> >> >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults < >> Nathan_Stults at hsihealth.com> wrote: >> >> I would second that idea as well. I?d love to use ruby to port some >> sparkline and other BI visualization graph libraries, and a graphics library >> would be just the ticket. >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dotan N. >> *Sent:* Wednesday, October 28, 2009 7:31 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Open source project to port >> >> >> >> and to add on that, a common pain i get with rails is an image processing >> library to stand in for rmagick (i use JRuby on windows on some projects, >> and they have rmagick4j which is very convenient), so that might be a good >> target. >> >> On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: >> >> I'm interested to possibly join, whatever it may be :) >> >> On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero >> wrote: >> >> Hi >> >> >> >> I'm looking for a smallish .NET open source project to port to ironruby >> which one should I take? >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Thu Oct 29 08:34:22 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 29 Oct 2009 05:34:22 -0700 Subject: [Ironruby-core] Open source project to port In-Reply-To: References: <6927b8740910280728j4315b891wf7f24eee0d5344a4@mail.gmail.com> <6927b8740910280730l77a74926k6edd237e298922ff@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> <6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F44@hsi-fs.HSIHealth.local><6927b8740910280942j7e5b487fr6271af94ac6bec36@mail.gmail.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA1052@hsi-fs.HSIHealth.local> That?s a fun one because it involves a good opportunity to create a Ruby DSL, which will be a good demo for a book. I wrote a state machine DSL using Boo way back when using Ayende Rahein?s book on the topic (http://www.codeplex.com/SimpleStateMachine) and although Boo provides some meta-programming capabilities, the implementation was painful and hacky and hard to evolve and the DSL syntax was more constrained that I would have liked. I always wanted to re-implement using a parser generator to fix all that, but never got to it. Ruby is a much better choice than either Boo or a parser generator for a state machine DSL. The contrast between how simple and straightforward a Ruby DSL can be will be stark. I imagine IR will be preferred path to internal DSL?s on the .NET framework from now on. I was going to look at doing something like this in Ruby myself at one point, but when I looked (very briefly) there seemed to be a few state machine libraries already offered by the Ruby community I wanted to evaluate first. For illustrative purposes for a book, though, that is irrelevant, although you may want to survey them anyway, as preparation. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, October 29, 2009 2:21 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port Seo started with the ironmagick gem :) Ryan pointed me towards this little library/application, it seems to be the right size and is fairly interesting: http://code.google.com/p/stateless unless somebody has a better idea it will pop up in my ironrubyinaction repository somewhere next week. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 28, 2009 at 5:42 PM, Dotan N. wrote: ok sounds like a plan for a weekend research. i'll post my findings as soon as i can :) On Wed, Oct 28, 2009 at 6:16 PM, Jim Deville wrote: For ImageMagick/RMagick, you should be able to get away with making an adapter that matches the API of RMagick or ImageMagic with the functions in System.Drawing. There will probably be more beyond that, but that should get you started. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Wednesday, October 28, 2009 9:03 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port Me too. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Web Administrator Sent: Wednesday, October 28, 2009 8:56 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port No idea what the project would take. But, I'd be interested in contributing. Sent from my iPhone On Oct 28, 2009, at 10:39 AM, "Dotan N." wrote: bummer :( well, my idea was a pure imagemagick interface .net implementation, at least to some extent, exactly what the guys from rmagick4j did for java. with rmagick4j i don't need 10mb of imagemagick dependencies at all, its all pure java, and pure jruby. do any of you have ideas as to how much effort such a thing would take ? On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero wrote: Yes but in my case it's to use in my book as an example of this is how you rubyfiy a C# application. I do it to some extend with witty in my WPF chapter. I'm not thinking in the orders of magnitude of Hibernate or even ironrubymvc. But it should be something fairly well-known. I don't see much benefit in porting any of the testing libraries, mocking frameworks or dependency injection stuff but it would be good to take something that is familiar to many .NET devs I just can't think of any projects right now. RMagick is certainly a very interesting library. The link below uses ImageMagick and mono so I imagine that could be a start :) http://ubuntuforums.org/showthread.php?p=8138533 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults wrote: I would second that idea as well. I?d love to use ruby to port some sparkline and other BI visualization graph libraries, and a graphics library would be just the ticket. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dotan N. Sent: Wednesday, October 28, 2009 7:31 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Open source project to port and to add on that, a common pain i get with rails is an image processing library to stand in for rmagick (i use JRuby on windows on some projects, and they have rmagick4j which is very convenient), so that might be a good target. On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: I'm interested to possibly join, whatever it may be :) On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero wrote: Hi I'm looking for a smallish .NET open source project to port to ironruby which one should I take? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Thu Oct 29 08:36:30 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Thu, 29 Oct 2009 05:36:30 -0700 Subject: [Ironruby-core] Platform In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C7AD58A@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <790F1F63F5D2E44E91797E821B31FDBB02BA1051@hsi-fs.HSIHealth.local> <8E45365BECA665489F3CB8878A6C1B7D0C7AD58A@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BA1053@hsi-fs.HSIHealth.local> Very nice, thank you From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Thursday, October 29, 2009 12:29 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Platform You can use this construct: >>> defined? RUBY_ENGINE and RUBY_ENGINE == "ironruby" => true From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stults Sent: Thursday, October 29, 2009 12:26 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Platform I noticed that the PLATFORM and RUBY_PLATFORM constants returns the same string when running from MRI as from IronRuby. Is there a standard Ruby constant or Kernel method or something that will indicate that the interpreter is IronRuby as opposed to MRI? While it is certainly true that the OS is the same when running from both environments, it would seem pretty useful to me to be able to distinguish, as JRuby does, so we can write libraries that can selectively do things like selectively take advantage of the .NET BCL if present. There are probably easy enough ways to work around this, like 'begin require System @platform="ir" rescue LoadError end' but using PLATFORM directly feels like it would be more elegant. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Oct 29 09:56:57 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 29 Oct 2009 14:56:57 +0100 Subject: [Ironruby-core] Open source project to port In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BA1052@hsi-fs.HSIHealth.local> References: <790F1F63F5D2E44E91797E821B31FDBB02BA0F1A@hsi-fs.HSIHealth.local> <6927b8740910280833l4d9173ebucafc6933b4adabf4@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA0F44@hsi-fs.HSIHealth.local> <6927b8740910280942j7e5b487fr6271af94ac6bec36@mail.gmail.com> <790F1F63F5D2E44E91797E821B31FDBB02BA1052@hsi-fs.HSIHealth.local> Message-ID: Thanks for the input :) Yes I was planning of looking at the code of some of the gems and rails plugins. They may have good ideas to include in this project. I don't expect that it will take a very long time to build this thing and of course any help is much appreciated. Exactly from POV of the DSL this project is pretty interesting because it will highlight some key differences between what you can do with a fluent interface vs a real DSL. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Oct 29, 2009 at 1:34 PM, Nathan Stults wrote: > That?s a fun one because it involves a good opportunity to create a Ruby > DSL, which will be a good demo for a book. I wrote a state machine DSL using > Boo way back when using Ayende Rahein?s book on the topic ( > http://www.codeplex.com/SimpleStateMachine) and although Boo provides > some meta-programming capabilities, the implementation was painful and hacky > and hard to evolve and the DSL syntax was more constrained that I would have > liked. I always wanted to re-implement using a parser generator to fix all > that, but never got to it. Ruby is a much better choice than either Boo or a > parser generator for a state machine DSL. The contrast between how simple > and straightforward a Ruby DSL can be will be stark. I imagine IR will be > preferred path to internal DSL?s on the .NET framework from now on. I was > going to look at doing something like this in Ruby myself at one point, but > when I looked (very briefly) there seemed to be a few state machine > libraries already offered by the Ruby community I wanted to evaluate first. > For illustrative purposes for a book, though, that is irrelevant, although > you may want to survey them anyway, as preparation. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, October 29, 2009 2:21 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > Seo started with the ironmagick gem :) > > > > Ryan pointed me towards this little library/application, it seems to be the > right size and is fairly interesting: > > http://code.google.com/p/stateless > > > > unless somebody has a better idea it will pop up in my ironrubyinaction > repository somewhere next week. > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > On Wed, Oct 28, 2009 at 5:42 PM, Dotan N. wrote: > > ok sounds like a plan for a weekend research. i'll post my findings as soon > as i can :) > > > > On Wed, Oct 28, 2009 at 6:16 PM, Jim Deville > wrote: > > For ImageMagick/RMagick, you should be able to get away with making an > adapter that matches the API of RMagick or ImageMagic with the functions in > System.Drawing. There will probably be more beyond that, but that should get > you started. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stults > *Sent:* Wednesday, October 28, 2009 9:03 AM > > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > Me too. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Web Administrator > *Sent:* Wednesday, October 28, 2009 8:56 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > No idea what the project would take. But, I'd be interested in > contributing. > > Sent from my iPhone > > > On Oct 28, 2009, at 10:39 AM, "Dotan N." wrote: > > bummer :( > well, my idea was a pure imagemagick interface .net implementation, at > least to some extent, exactly what the guys from rmagick4j did for java. > with rmagick4j i don't need 10mb of imagemagick dependencies at all, its all > pure java, and pure jruby. > > do any of you have ideas as to how much effort such a thing would take ? > > On Wed, Oct 28, 2009 at 5:20 PM, Ivan Porto Carrero > wrote: > > Yes but in my case it's to use in my book as an example of this is how you > rubyfiy a C# application. > > > > I do it to some extend with witty in my WPF chapter. I'm not thinking in > the orders of magnitude of Hibernate or even ironrubymvc. But it should be > something fairly well-known. > > > > I don't see much benefit in porting any of the testing libraries, mocking > frameworks or dependency injection stuff but it would be good to take > something that is familiar to many .NET devs I just can't think of any > projects right now. > > > > RMagick is certainly a very interesting library. The link below uses > ImageMagick and mono so I imagine that could be a start :) > > http://ubuntuforums.org/showthread.php?p=8138533 > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > On Wed, Oct 28, 2009 at 3:38 PM, Nathan Stults < > Nathan_Stults at hsihealth.com> wrote: > > I would second that idea as well. I?d love to use ruby to port some > sparkline and other BI visualization graph libraries, and a graphics library > would be just the ticket. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dotan N. > *Sent:* Wednesday, October 28, 2009 7:31 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Open source project to port > > > > and to add on that, a common pain i get with rails is an image processing > library to stand in for rmagick (i use JRuby on windows on some projects, > and they have rmagick4j which is very convenient), so that might be a good > target. > > On Wed, Oct 28, 2009 at 4:28 PM, Dotan N. wrote: > > I'm interested to possibly join, whatever it may be :) > > On Wed, Oct 28, 2009 at 4:24 PM, Ivan Porto Carrero > wrote: > > Hi > > > > I'm looking for a smallish .NET open source project to port to ironruby > which one should I take? > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Thu Oct 29 15:51:46 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 29 Oct 2009 19:51:46 +0000 Subject: [Ironruby-core] Pair programming next week Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7AE212@TK5EX14MBXC140.redmond.corp.microsoft.com> The last few pair programming sessions had worked out very well. Since its been a while since we did one, I want to find out if anyone is interested in doing in again next week. Reply (just to me) if you have an IronRuby-task (some suggestions at http://wiki.github.com/ironruby/ironruby/contributing) that you would like help with. Once I know who all are interested, we can work out a time that works for everyone. Here is the info from http://wiki.github.com/ironruby/ironruby/debugging : Pair debugging with experienced IronRuby developers Some experienced IronRuby developers may be available to debug a problem with you. Watching over their shoulder can help a newcomer to the code base learn debugging tips and techniques. To make this a fruitful exercise, please follow the following guidelines: * Send email to ironruby-core at rubyforge.org asking if any experienced developer is available to help you * Ensure that you can build and successfully run all of the RubySpec tests. * Restrict the problems to pure Ruby code which is known to work with MRI. Ensuring a clean working baseline functionality in MRI ensures that the problem truly in IronRuby. Without a known clean MRI baseline, the problem can be in a component other than IronRuby which you are as well-equipped to diagnose as anyone else. * Set up a clean repro. Spend time ensuring that it is not a configuration issue, and that the problem can be easily reproduced on other machines. Document detailed information about your platform, version of IronRuby, and the steps to repro the problem. * Do basic debugging by yourself beforehand. This will ensure that you get the most out of the session and can keep up with what's going on over Live Meeting. * Set up Live Meeting on your machine, which will allow you to watch the debugging session. * The Live Meeting invite will be sent by email just before the scheduled hour. * The email invite will also contain a toll-free number to dial in to. If you cannot call in, add the experienced developer as a friend/buddy in some Chat program so that you can ask questions during the debugging session. -------------- next part -------------- An HTML attachment was scrubbed... URL: From will at hotgazpacho.org Fri Oct 30 13:13:30 2009 From: will at hotgazpacho.org (Will Green) Date: Fri, 30 Oct 2009 13:13:30 -0400 Subject: [Ironruby-core] Announcing iron-term-ansicolor 0.0.1 Message-ID: <398d3e0e0910301013r341fe1a1s6134b824b5f8fb42@mail.gmail.com> I'd like to annouce the release of iron-term-ansicolor, a port of term-ansicolor for IronRuby that makes use of the .Net BCL to get colored output in the terminal window. I must give much of the credit to David Blackmon, who took the seed of what I started and ran with it, and Ivan Porto Carrero, who integrated and refactored David's work into the code base. This release would not be possible without them. Thank you very much, David & Ivan! Sources are on GitHub: http://github.com/hotgazpacho/iron-term-ansicolor Gem is on GemCutter: http://gemcutter.org/gems/iron-term-ansicolor Install instructions are on the wiki at GitHub: http://wiki.github.com/hotgazpacho/iron-term-ansicolor Known Issues: With version 0.0.1, *iron-term-ansicolor* only works for the very simple cases of changing the foregroud *or* the background color, but not both at the same time. Specs and patches to implement the feature are welcome! You feedback and patches are most welcomed! -- Will Green http://hotgazpacho.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan_Stults at HSIHealth.com Fri Oct 30 14:05:52 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Fri, 30 Oct 2009 11:05:52 -0700 Subject: [Ironruby-core] Socket errors when using igem Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BC7454@hsi-fs.HSIHealth.local> Does anyone else get a lot of socket errors when using igem? I often have to run igem a few times to get a successful install. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Fri Oct 30 14:50:23 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Fri, 30 Oct 2009 20:50:23 +0200 Subject: [Ironruby-core] Using the console in IronRuby on Rails Message-ID: Hi there, I tried to use the Ruby on Rails console with IronRuby on an application I'm building by executing "ir script/console". Doing so ended up with an exception from RubyProcess.CreateProcess. I debugged and found out that RoR tries to execute irb.bat which is MRI's, so I modified rails-2.3.3\lib\commands\console.rb to point to iirb.bat instead. That didn't work as well. I continued and discovered that RubyProcess doesn't consider bat files as executables. I don't know if it's on purpose but in order to fix the problem, I added the bat extension to the valid executable extension list and set the full path of iirb.bat in rails' console.rb file. Am I doing something wrong or is my little patch correct? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Fri Oct 30 15:14:24 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 30 Oct 2009 19:14:24 +0000 Subject: [Ironruby-core] Using the console in IronRuby on Rails In-Reply-To: References: Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C7B0623@TK5EX14MBXC140.redmond.corp.microsoft.com> You can add a RubySpec spec for it to see the details of the specific Ruby API. Then if MRI and IronRuby both have the same behavior for the spec, your patch would be correct. Ie. You can use TDD to figure out the right behavior. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Friday, October 30, 2009 11:50 AM To: ironruby-core Subject: [Ironruby-core] Using the console in IronRuby on Rails Hi there, I tried to use the Ruby on Rails console with IronRuby on an application I'm building by executing "ir script/console". Doing so ended up with an exception from RubyProcess.CreateProcess. I debugged and found out that RoR tries to execute irb.bat which is MRI's, so I modified rails-2.3.3\lib\commands\console.rb to point to iirb.bat instead. That didn't work as well. I continued and discovered that RubyProcess doesn't consider bat files as executables. I don't know if it's on purpose but in order to fix the problem, I added the bat extension to the valid executable extension list and set the full path of iirb.bat in rails' console.rb file. Am I doing something wrong or is my little patch correct? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Oct 30 15:56:51 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 30 Oct 2009 19:56:51 +0000 Subject: [Ironruby-core] Using the console in IronRuby on Rails In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D0C7B0623@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C7B0623@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: I would like to see if MRI uses PATHEXT in this case, but I think from talking with Tomas, that it doesn't. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Friday, October 30, 2009 12:14 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Using the console in IronRuby on Rails You can add a RubySpec spec for it to see the details of the specific Ruby API. Then if MRI and IronRuby both have the same behavior for the spec, your patch would be correct. Ie. You can use TDD to figure out the right behavior. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Friday, October 30, 2009 11:50 AM To: ironruby-core Subject: [Ironruby-core] Using the console in IronRuby on Rails Hi there, I tried to use the Ruby on Rails console with IronRuby on an application I'm building by executing "ir script/console". Doing so ended up with an exception from RubyProcess.CreateProcess. I debugged and found out that RoR tries to execute irb.bat which is MRI's, so I modified rails-2.3.3\lib\commands\console.rb to point to iirb.bat instead. That didn't work as well. I continued and discovered that RubyProcess doesn't consider bat files as executables. I don't know if it's on purpose but in order to fix the problem, I added the bat extension to the valid executable extension list and set the full path of iirb.bat in rails' console.rb file. Am I doing something wrong or is my little patch correct? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Oct 30 16:22:36 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 30 Oct 2009 20:22:36 +0000 Subject: [Ironruby-core] Using the console in IronRuby on Rails In-Reply-To: References: <8E45365BECA665489F3CB8878A6C1B7D0C7B0623@TK5EX14MBXC140.redmond.corp.microsoft.com> Message-ID: <1B42307CD4AADD438CDDA2FE1121CC92027DAA@TK5EX14MBXC134.redmond.corp.microsoft.com> Sorry, this is a patch I missed in the docs (http://ironruby.net/Documentation/Real_Ruby_Applications/Rails#console). This behavior hasn't changed in Rails, and I fixed it in the past without patch IronRuby, so I would suggest not patching IronRuby now to fix it. I'll figure out what the exact patch to Rails was and post it to the documentation. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Friday, October 30, 2009 12:57 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Using the console in IronRuby on Rails I would like to see if MRI uses PATHEXT in this case, but I think from talking with Tomas, that it doesn't. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Friday, October 30, 2009 12:14 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Using the console in IronRuby on Rails You can add a RubySpec spec for it to see the details of the specific Ruby API. Then if MRI and IronRuby both have the same behavior for the spec, your patch would be correct. Ie. You can use TDD to figure out the right behavior. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Friday, October 30, 2009 11:50 AM To: ironruby-core Subject: [Ironruby-core] Using the console in IronRuby on Rails Hi there, I tried to use the Ruby on Rails console with IronRuby on an application I'm building by executing "ir script/console". Doing so ended up with an exception from RubyProcess.CreateProcess. I debugged and found out that RoR tries to execute irb.bat which is MRI's, so I modified rails-2.3.3\lib\commands\console.rb to point to iirb.bat instead. That didn't work as well. I continued and discovered that RubyProcess doesn't consider bat files as executables. I don't know if it's on purpose but in order to fix the problem, I added the bat extension to the valid executable extension list and set the full path of iirb.bat in rails' console.rb file. Am I doing something wrong or is my little patch correct? Thanks, Shay. -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Fri Oct 30 18:26:49 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Sat, 31 Oct 2009 00:26:49 +0200 Subject: [Ironruby-core] Using the console in IronRuby on Rails In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC92027DAA@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D0C7B0623@TK5EX14MBXC140.redmond.corp.microsoft.com> <1B42307CD4AADD438CDDA2FE1121CC92027DAA@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: Thanks guys! On Fri, Oct 30, 2009 at 10:22 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Sorry, this is a patch I missed in the docs ( > http://ironruby.net/Documentation/Real_Ruby_Applications/Rails#console). > This behavior hasn?t changed in Rails, and I fixed it in the past without > patch IronRuby, so I would suggest not patching IronRuby now to fix it. I?ll > figure out what the exact patch to Rails was and post it to the > documentation. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Friday, October 30, 2009 12:57 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Using the console in IronRuby on Rails > > > > I would like to see if MRI uses PATHEXT in this case, but I think from > talking with Tomas, that it doesn?t. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shri Borde > *Sent:* Friday, October 30, 2009 12:14 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Using the console in IronRuby on Rails > > > > You can add a RubySpec spec for it to see the details of the specific Ruby > API. Then if MRI and IronRuby both have the same behavior for the spec, your > patch would be correct. Ie. You can use TDD to figure out the right > behavior. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Shay Friedman > *Sent:* Friday, October 30, 2009 11:50 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Using the console in IronRuby on Rails > > > > Hi there, > > I tried to use the Ruby on Rails console with IronRuby on an application > I'm building by executing "ir script/console". Doing so ended up with an > exception from RubyProcess.CreateProcess. > > I debugged and found out that RoR tries to execute irb.bat which is MRI's, > so I modified rails-2.3.3\lib\commands\console.rb to point to iirb.bat > instead. That didn't work as well. > I continued and discovered that RubyProcess doesn't consider bat files as > executables. I don't know if it's on purpose but in order to fix the > problem, I added the bat extension to the valid executable extension list > and set the full path of iirb.bat in rails' console.rb file. > > Am I doing something wrong or is my little patch correct? > > Thanks, > Shay. > > -- > -------------------------------------------------- > Shay Friedman > Author of IronRuby Unleashed > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.radcliffe at gmail.com Fri Oct 30 19:18:22 2009 From: kevin.radcliffe at gmail.com (Kevin Radcliffe) Date: Fri, 30 Oct 2009 17:18:22 -0600 Subject: [Ironruby-core] Socket errors when using igem In-Reply-To: <790F1F63F5D2E44E91797E821B31FDBB02BC7454@hsi-fs.HSIHealth.local> References: <790F1F63F5D2E44E91797E821B31FDBB02BC7454@hsi-fs.HSIHealth.local> Message-ID: <131af5e0910301618n644a484fia83e3f141119fdb5@mail.gmail.com> Nathan, I've never gotten that, though I have gotten timeouts of some sort in the past. I'm sure you've tried this already, but grab the same gem using just "gem" vs. "igem" Are you getting the result more from 1 particular gem source? What are the exact errors you're getting? Thanks Best Regards, Kevin On Fri, Oct 30, 2009 at 12:05 PM, Nathan Stults wrote: > Does anyone else get a lot of socket errors when using igem? I often have to > run igem a few times to get a successful install. > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From Nathan_Stults at HSIHealth.com Fri Oct 30 19:40:12 2009 From: Nathan_Stults at HSIHealth.com (Nathan Stults) Date: Fri, 30 Oct 2009 16:40:12 -0700 Subject: [Ironruby-core] Socket errors when using igem In-Reply-To: <131af5e0910301618n644a484fia83e3f141119fdb5@mail.gmail.com> References: <790F1F63F5D2E44E91797E821B31FDBB02BC7454@hsi-fs.HSIHealth.local> <131af5e0910301618n644a484fia83e3f141119fdb5@mail.gmail.com> Message-ID: <790F1F63F5D2E44E91797E821B31FDBB02BC751F@hsi-fs.HSIHealth.local> Kevin, it usually works OK with gem - and I believe I get these socket errors only with gemcutter. That is my impression anyway, but I will keep a closer eye on it. I can usually get always get the gem down after a few tries, and it doesn't seem to be more prevalent on big gems or anything, seems pretty random. You know, I'm not sure I've added gemcutter to my ruby install, just my IR install - so maybe I would get these with gem as well? I'll be more observant about when and under what conditions I get the error. If nobody else is experiencing this, however, it's probably an issue between my network and the gem repository. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Kevin Radcliffe Sent: Friday, October 30, 2009 4:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Socket errors when using igem Nathan, I've never gotten that, though I have gotten timeouts of some sort in the past. I'm sure you've tried this already, but grab the same gem using just "gem" vs. "igem" Are you getting the result more from 1 particular gem source? What are the exact errors you're getting? Thanks Best Regards, Kevin On Fri, Oct 30, 2009 at 12:05 PM, Nathan Stults wrote: > Does anyone else get a lot of socket errors when using igem? I often have to > run igem a few times to get a successful install. > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core