From blowmage at gmail.com Wed Sep 5 19:31:56 2007 From: blowmage at gmail.com (Mike Moore) Date: Wed, 5 Sep 2007 17:31:56 -0600 Subject: [Ironruby-core] IronRuby Message-ID: First Post! (Sorry, had to be done.) I'm glad to see more and more folks joining the list. I assume we are all excited about IronRuby or we wouldn't be here. :) As a way of kicking things off, I'm wondering what everyone thinks are the largest pain points in IronRuby right now. Personally, I'd like to start a listing of all the gaps between Ruby and IronRuby, and rank each item that falls outside of the compiler. I'd also like to get an idea of which libraries are targeted for implementation in C#, as opposed to using the standard Ruby or Rubinious implementations. What do you guys think? ~Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070905/4d065936/attachment.html From judahgabriel at gmail.com Thu Sep 6 11:25:31 2007 From: judahgabriel at gmail.com (Judah Himango) Date: Thu, 6 Sep 2007 10:25:31 -0500 Subject: [Ironruby-core] C# YAML parser status? Message-ID: <737f7f70709060825k4104ddb5i27993c78426694c4@mail.gmail.com> Hi IronRuby folks I'm interested in contributing to the IronRuby project. I see John Lam has one good contribution would be in the form of a C# YAML parser. My question is, has work started on a YAML parser yet? If not, would it be kosher to base the C# implementation off of the open source Jyaml implementation (Yaml for Java)? -- --Judah Himango http://judahgabriel.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070906/d36bb3d4/attachment.html From blowmage at gmail.com Thu Sep 6 12:08:46 2007 From: blowmage at gmail.com (Mike Moore) Date: Thu, 6 Sep 2007 10:08:46 -0600 Subject: [Ironruby-core] C# YAML parser status? In-Reply-To: <737f7f70709060825k4104ddb5i27993c78426694c4@mail.gmail.com> References: <737f7f70709060825k4104ddb5i27993c78426694c4@mail.gmail.com> Message-ID: On 9/6/07, Judah Himango wrote: > > Hi IronRuby folks > > I'm interested in contributing to the IronRuby project. I see John Lam has > one good contribution would be in the form of a C# YAML parser. I know the JRuby guys spent alot of time on the YAML library. They eventually moved to a pure Java implementation for performance reasons. One of the major issues was keeping compatibility with how SYCK works on the Ruby implementation. I believe there are still some edge cases in JvYAML that are not fully compatible between JRuby and MRI Ruby. My question is, has work started on a YAML parser yet? If not, would it be > kosher to base the C# implementation off of the open source Jyaml > implementation (Yaml for Java)? I think this is a good question. Do we have any issues basing a new library off of an existing open source code base? Are issues like this covered in the contributor's agreement? -- > > --Judah Himango > http://judahgabriel.blogspot.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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070906/a8b7ee90/attachment.html From tranqy at gmail.com Thu Sep 6 15:42:46 2007 From: tranqy at gmail.com (Aaron Junod) Date: Thu, 6 Sep 2007 15:42:46 -0400 Subject: [Ironruby-core] Solution File Message-ID: Is anyone else having problems building with the solution file? I got a fresh copy, and get this error when I try to build the solution. Error 1 Cryptographic failure while signing assembly 'c:\projects\IronRuby\trunk\src\microsoft.scripting\obj\Debug\Microsoft.Scripting.dll' -- 'Error reading key file 'c:\projects\IronRuby\trunk\MSSharedLibKey.snk' -- The system cannot find the file specified. ' Microsoft.Scripting Thanks Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070906/5796bde1/attachment.html From derekslager at gmail.com Thu Sep 6 15:48:30 2007 From: derekslager at gmail.com (Derek Slager) Date: Thu, 6 Sep 2007 12:48:30 -0700 Subject: [Ironruby-core] Solution File In-Reply-To: References: Message-ID: <2040a940709061248n67b13c87he9bd9ca50ae4c6b@mail.gmail.com> You can either use the Rakefile[1], or run msbuild with the external configuration specified[2]: 1. rake compile 2. msbuild /p:Configuration=ExternalDebug -Derek On 9/6/07, Aaron Junod wrote: > Is anyone else having problems building with the solution file? I got a > fresh copy, and get this error when I try to build the solution. > > Error 1 Cryptographic failure while signing assembly > 'c:\projects\IronRuby\trunk\src\microsoft.scripting\obj\Debug\Microsoft.Scripting.dll' > -- 'Error reading key file > 'c:\projects\IronRuby\trunk\MSSharedLibKey.snk' -- The > system cannot find the file specified. ' Microsoft.Scripting > > > Thanks > > Aaron > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From jflam at microsoft.com Fri Sep 7 12:48:35 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Fri, 7 Sep 2007 09:48:35 -0700 Subject: [Ironruby-core] Contributor's agreement Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D25AC5C0@NA-EXMSG-C115.redmond.corp.microsoft.com> Hi Everyone, I have a copy of the IronRuby contributor's agreement ready for folks to look at: http://www.ironruby.net/contributor.pdf We're in the process of getting turning the crank on getting the electronic signature tool spun up for collecting signed agreements. So don't bother signing / FAX / mailing this document in. I hope that by the end of today or early next week that you should just be able to electronically sign the doc. Comments / questions? Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070907/f00fbc20/attachment.html From charles.nutter at sun.com Fri Sep 7 15:17:01 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Fri, 07 Sep 2007 14:17:01 -0500 Subject: [Ironruby-core] Contributor's agreement In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D25AC5C0@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D25AC5C0@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <46E1A3AD.9000207@sun.com> John Lam (CLR) wrote: > Hi Everyone, > > > > I have a copy of the IronRuby contributor?s agreement ready for folks to > look at: http://www.ironruby.net/contributor.pdf I noticed it has a "REVIEW" watermark as well as "Microsoft Confidential" at the bottom. I assume those should be removed... - Charlie From m.david at xmlhacker.com Fri Sep 7 15:49:59 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Fri, 07 Sep 2007 13:49:59 -0600 Subject: [Ironruby-core] Contributor's agreement In-Reply-To: <46E1A3AD.9000207@sun.com> References: <372109E149E8084D8E6C7D9CFD82E06329D25AC5C0@NA-EXMSG-C115.redmond.corp.microsoft.com> <46E1A3AD.9000207@sun.com> Message-ID: On Fri, 07 Sep 2007 13:17:01 -0600, Charles Oliver Nutter wrote: > I noticed it has a "REVIEW" watermark as well as "Microsoft > Confidential" at the bottom. I assume those should be removed... I kind of like 'em. Give things a sense of "we're not supposed to be showing you this" rebellion. ;-) My vote: Keep 'em both and add another line at the very bottom of the second page in 6pt sub-script that states "I can't believe we're actually going through with this. ~Bill G." -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From jomes at microsoft.com Fri Sep 7 15:40:03 2007 From: jomes at microsoft.com (John Messerly) Date: Fri, 7 Sep 2007 12:40:03 -0700 Subject: [Ironruby-core] IronRuby In-Reply-To: References: Message-ID: <918705E903F4714CB713D89AB5F1857D710E8B68AE@NA-EXMSG-C116.redmond.corp.microsoft.com> This is an interesting question. I don't know if we've figured out what should be implemented in C# vs. what should be implemented in Ruby. IronPython generally takes the approach of creating C# versions of the core Python modules that are written in C. Users then have the option of copying the purely Python libraries over from CPython if they desire to do so. Clearly IronRuby builtins will all need to be written in C#. And also any standard libs that are written in C in MRI, are probably good candidates for writing in C#. Otherwise, it's probably easier to write then in Ruby :) John Lam might have more guidance... From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mike Moore Sent: Wednesday, September 05, 2007 4:32 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IronRuby First Post! (Sorry, had to be done.) I'm glad to see more and more folks joining the list. I assume we are all excited about IronRuby or we wouldn't be here. :) As a way of kicking things off, I'm wondering what everyone thinks are the largest pain points in IronRuby right now. Personally, I'd like to start a listing of all the gaps between Ruby and IronRuby, and rank each item that falls outside of the compiler. I'd also like to get an idea of which libraries are targeted for implementation in C#, as opposed to using the standard Ruby or Rubinious implementations. What do you guys think? ~Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070907/09463367/attachment-0001.html From rbazinet at gmail.com Fri Sep 7 16:46:36 2007 From: rbazinet at gmail.com (Robert Bazinet) Date: Fri, 7 Sep 2007 16:46:36 -0400 Subject: [Ironruby-core] Solution File In-Reply-To: References: Message-ID: John, If you see this message on the list..is there a fix for the problem Aaron is getting on trying to use the included solution file? I have the same problem, tried to fix it but to no avail. Thanks, Rob Bazinet On 9/6/07, Aaron Junod wrote: > > Is anyone else having problems building with the solution file? I got a > fresh copy, and get this error when I try to build the solution. > > Error 1 Cryptographic failure while signing assembly > 'c:\projects\IronRuby\trunk\src\microsoft.scripting\obj\Debug\Microsoft.Scripting.dll' > -- 'Error reading key file 'c:\projects\IronRuby\trunk\MSSharedLibKey.snk' > -- The system cannot find the file specified. ' Microsoft.Scripting > > > Thanks > > Aaron > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070907/7febca22/attachment.html From jomes at microsoft.com Fri Sep 7 16:53:00 2007 From: jomes at microsoft.com (John Messerly) Date: Fri, 7 Sep 2007 13:53:00 -0700 Subject: [Ironruby-core] Solution File In-Reply-To: References: Message-ID: <918705E903F4714CB713D89AB5F1857D712D9F7EEF@NA-EXMSG-C116.redmond.corp.microsoft.com> Does it work if you switch to "ExternalDebug" configuration? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Bazinet Sent: Friday, September 07, 2007 1:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Solution File John, If you see this message on the list..is there a fix for the problem Aaron is getting on trying to use the included solution file? I have the same problem, tried to fix it but to no avail. Thanks, Rob Bazinet On 9/6/07, Aaron Junod > wrote: Is anyone else having problems building with the solution file? I got a fresh copy, and get this error when I try to build the solution. Error 1 Cryptographic failure while signing assembly 'c:\projects\IronRuby\trunk\src\microsoft.scripting\obj\Debug\Microsoft.Scripting.dll' -- 'Error reading key file 'c:\projects\IronRuby\trunk\MSSharedLibKey.snk' -- The system cannot find the file specified. ' Microsoft.Scripting Thanks Aaron _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070907/2f45b279/attachment.html From josh.nursing at gmail.com Fri Sep 7 17:53:08 2007 From: josh.nursing at gmail.com (Josh Nursing) Date: Fri, 07 Sep 2007 16:53:08 -0500 Subject: [Ironruby-core] IronRuby In-Reply-To: <918705E903F4714CB713D89AB5F1857D710E8B68AE@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <918705E903F4714CB713D89AB5F1857D710E8B68AE@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <46E1C844.3070401@gmail.com> Well, from the perspective of a Rubyist, why not write some Ruby functions (shims approach) to output C# code automatically as John did with RubyCLR? Josh Nursing John Messerly wrote: > > This is an interesting question. I don?t know if we?ve figured out > what should be implemented in C# vs. what should be implemented in Ruby. > > IronPython generally takes the approach of creating C# versions of the > core Python modules that are written in C. Users then have the option > of copying the purely Python libraries over from CPython if they > desire to do so. > > Clearly IronRuby builtins will all need to be written in C#. And also > any standard libs that are written in C in MRI, are probably good > candidates for writing in C#. Otherwise, it?s probably easier to write > then in Ruby :) > > John Lam might have more guidance? > From rbazinet at gmail.com Fri Sep 7 16:56:59 2007 From: rbazinet at gmail.com (Robert Bazinet) Date: Fri, 7 Sep 2007 16:56:59 -0400 Subject: [Ironruby-core] Solution File In-Reply-To: <918705E903F4714CB713D89AB5F1857D712D9F7EEF@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <918705E903F4714CB713D89AB5F1857D712D9F7EEF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: John, Thanks for the quick reply. Yes it does. I thought I had tried that but apparently not. I will shut-up and go away now. :-0 -Rob On 9/7/07, John Messerly wrote: > > Does it work if you switch to "ExternalDebug" configuration? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Robert Bazinet > *Sent:* Friday, September 07, 2007 1:47 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Solution File > > > > John, > > If you see this message on the list..is there a fix for the problem Aaron > is getting on trying to use the included solution file? I have the same > problem, tried to fix it but to no avail. > > Thanks, > Rob Bazinet > > On 9/6/07, *Aaron Junod* wrote: > > Is anyone else having problems building with the solution file? I got a > fresh copy, and get this error when I try to build the solution. > > Error 1 Cryptographic failure while signing assembly > 'c:\projects\IronRuby\trunk\src\microsoft.scripting\obj\Debug\Microsoft.Scripting.dll' > -- 'Error reading key file 'c:\projects\IronRuby\trunk\MSSharedLibKey.snk' > -- The system cannot find the file specified. ' Microsoft.Scripting > > > Thanks > > Aaron > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070907/c794a7b0/attachment.html From jflam at microsoft.com Fri Sep 7 17:03:08 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Fri, 7 Sep 2007 14:03:08 -0700 Subject: [Ironruby-core] Contributor's agreement In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D25AC5C0@NA-EXMSG-C115.redmond.corp.microsoft.com> <46E1A3AD.9000207@sun.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D25AC7EA@NA-EXMSG-C115.redmond.corp.microsoft.com> > My vote: Keep 'em both and add another line at the very bottom of the > second page in 6pt sub-script that states "I can't believe we're actually > going through with this. ~Bill G." :) I put up that doc as-is since folks signing the agreement will do so via some kind of web site (details to come). I'll take it down once we have the right mechanisms in place. -John From enicholson at gmail.com Wed Sep 12 18:10:35 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Wed, 12 Sep 2007 18:10:35 -0400 Subject: [Ironruby-core] zlib implementation Message-ID: On the ironruby.net page it says that you're looking for a zlib implementation. Is that a managed re-implementation of zlib or a managed wrapper around the unmanaged zlib library? Cheers! -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/51db16f7/attachment.html From blowmage at gmail.com Wed Sep 12 18:20:39 2007 From: blowmage at gmail.com (Mike Moore) Date: Wed, 12 Sep 2007 16:20:39 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: Message-ID: I'd assume a managed library for cross platform compatibility. Is anyone familiar with the difference between Zlib and System.IO.Compression? Is it possible to use wrap System.IO.Compression to get a compatible Ruby Zlib lib? Or do we need a new managed Zlib implementation? On 9/12/07, Eric Nicholson wrote: > > On the ironruby.net page it says that you're looking for a zlib > implementation. Is that a managed re-implementation of zlib or a managed > wrapper around the unmanaged zlib library? > > Cheers! > > -Eric > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/7ec34d47/attachment-0001.html From jflam at microsoft.com Wed Sep 12 19:27:07 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Wed, 12 Sep 2007 16:27:07 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651C9A@NA-EXMSG-C115.redmond.corp.microsoft.com> We would love to have a managed implementation since it makes life so much easier - especially as we begin the inevitable move to 64 bit in the future. I haven't done the investigation between zlib and System.IO.Compression. Are you volunteering, Mike? :) Thanks! -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mike Moore Sent: Wednesday, September 12, 2007 3:21 PM To: Eric Nicholson Cc: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] zlib implementation I'd assume a managed library for cross platform compatibility. Is anyone familiar with the difference between Zlib and System.IO.Compression? Is it possible to use wrap System.IO.Compression to get a compatible Ruby Zlib lib? Or do we need a new managed Zlib implementation? On 9/12/07, Eric Nicholson > wrote: On the ironruby.net page it says that you're looking for a zlib implementation. Is that a managed re-implementation of zlib or a managed wrapper around the unmanaged zlib library? Cheers! -Eric _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/cb2f949f/attachment.html From enicholson at gmail.com Wed Sep 12 19:30:42 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Wed, 12 Sep 2007 19:30:42 -0400 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: Message-ID: Good point Mike. In addition to the System.IO.Compression route, there is already a managed zlib implementation at http://www.componentace.com/zlib_.NET.htm They have a very permissive license: "Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of ComponentAce nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission." What's the policy on including other OSS components? Any chance that this could be used? -Eric On 9/12/07, Mike Moore wrote: > > I'd assume a managed library for cross platform compatibility. Is anyone > familiar with the difference between Zlib and System.IO.Compression? Is > it possible to use wrap System.IO.Compression to get a compatible Ruby > Zlib lib? Or do we need a new managed Zlib implementation? > > On 9/12/07, Eric Nicholson wrote: > > > On the ironruby.net page it says that you're looking for a zlib > > implementation. Is that a managed re-implementation of zlib or a managed > > wrapper around the unmanaged zlib library? > > > > Cheers! > > > > -Eric > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/025f942d/attachment.html From blowmage at gmail.com Wed Sep 12 19:58:42 2007 From: blowmage at gmail.com (Mike Moore) Date: Wed, 12 Sep 2007 17:58:42 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2651C9A@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651C9A@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On 9/12/07, John Lam (CLR) wrote: > > We would love to have a managed implementation since it makes life so > much easier ? especially as we begin the inevitable move to 64 bit in the > future. > > > > I haven't done the investigation between zlib and System.IO.Compression. > Are you volunteering, Mike? J > I actually spent a couple hours working through Ruby's Zlib last night trying to familiarize myself with it. I've never used it before which is why I asked the question. :) Right now the two big needs are Zlib and YAML. So here are my uninformed thoughts. Please correct me. Zlib:: Determine if we can use System.IO.Compression. If not, we may have to re-implement zlib in C# or use an existing port if the license is compatible. A zlib implementation in C# (using System.IO.Compression if possible) could be useful for other DLR languages, so that's something to keep in mind. YAML:: From what I've read about JRuby's YAML implementation, getting it to work like Syck was a major issue. We could start with Ola's RbYAML once IronRuby will run it, but we will probably need to build a native library for performance reasons (just like JRuby did). Long term, the two options I see are porting Ola's JvYAML, or porting _why's Syck to C#. I'm somewhat partial to porting Syck so that it can be reused in other languages. I wonder how much of IronRuby's parser we could re-purpose to get Syck on C#... http://rbyaml.rubyforge.org/ https://jvyaml.dev.java.net/ http://code.whytheluckystiff.net/syck/ Thanks! > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mike Moore > *Sent:* Wednesday, September 12, 2007 3:21 PM > *To:* Eric Nicholson > *Cc:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] zlib implementation > > > > I'd assume a managed library for cross platform compatibility. Is anyone > familiar with the difference between Zlib and System.IO.Compression? Is > it possible to use wrap System.IO.Compression to get a compatible Ruby > Zlib lib? Or do we need a new managed Zlib implementation? > > On 9/12/07, *Eric Nicholson* wrote: > > On the ironruby.net page it says that you're looking for a zlib > implementation. Is that a managed re-implementation of zlib or a managed > wrapper around the unmanaged zlib library? > > Cheers! > > -Eric > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/d2ec9545/attachment.html From blowmage at gmail.com Wed Sep 12 19:59:55 2007 From: blowmage at gmail.com (Mike Moore) Date: Wed, 12 Sep 2007 17:59:55 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: Message-ID: On 9/12/07, Eric Nicholson wrote: > > Good point Mike. > > In addition to the System.IO.Compression route, there is already a managed > zlib implementation at http://www.componentace.com/zlib_.NET.htm They > have a very permissive license: > > "Redistributions of source code must retain the above copyright notice, > this list of conditions and the following disclaimer. > Redistributions in binary form must reproduce the above copyright notice, > this list of conditions and the following disclaimer in the documentation > and/or other materials provided with the distribution. > Neither the name of ComponentAce nor the names of its contributors may be > used to endorse or promote products derived from this software without > specific prior written permission." > > What's the policy on including other OSS components? Any chance that this > could be used? I'd love an answer to this question. If we reuse an existing library it has to be compatible with the MsPL. So which licenses are compatible? -Eric > > On 9/12/07, Mike Moore wrote: > > > > I'd assume a managed library for cross platform compatibility. Is > > anyone familiar with the difference between Zlib and > > System.IO.Compression? Is it possible to use wrap System.IO.Compressionto get a compatible Ruby Zlib lib? Or do we need a new managed Zlib > > implementation? > > > > On 9/12/07, Eric Nicholson < enicholson at gmail.com> wrote: > > > > > On the ironruby.net page it says that you're looking for a zlib > > > implementation. Is that a managed re-implementation of zlib or a managed > > > wrapper around the unmanaged zlib library? > > > > > > Cheers! > > > > > > -Eric > > > > > > _______________________________________________ > > > Ironruby-core mailing list > > > Ironruby-core at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/4b7f8084/attachment-0001.html From jflam at microsoft.com Wed Sep 12 20:02:56 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Wed, 12 Sep 2007 17:02:56 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> Thanks for looking into this, Eric! I think that this will work. We don't have a policy regarding distributing other OSS components with IronRuby. I think that given the finite # of libraries to consider that we'll look at them on a case by case basis. I think in the case of zlib that redistributing the zlib.net library makes perfect sense. There's a couple of things that I think would be great: 1) Let's see if it's possible to write the zlib .rb wrapper today (I kind of doubt it given our lack of some language features but you can certainly try :)) 2) We would really like zlib.net to run on Silverlight as well. I haven't looked at the code for zlib, but it would be great if we could see if it would compile under Silverlight (or figure out what we would need to do to get it to compile under Silverlight). I think we'll wind up redistributing the compiled binary of zlib.net with IronRuby with a multiple license agreement. We need to run this past the lawyers, but I'm pretty confident that shipping a BSD licensed component alongside of our MsPL code should be OK. Worst case we get someone in the community a'la Curt Hibbs to help us package this stuff up :) Thanks! -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Wednesday, September 12, 2007 4:31 PM To: Mike Moore Cc: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] zlib implementation Good point Mike. In addition to the System.IO.Compression route, there is already a managed zlib implementation at http://www.componentace.com/zlib_.NET.htm They have a very permissive license: "Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of ComponentAce nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission." What's the policy on including other OSS components? Any chance that this could be used? -Eric On 9/12/07, Mike Moore > wrote: I'd assume a managed library for cross platform compatibility. Is anyone familiar with the difference between Zlib and System.IO.Compression? Is it possible to use wrap System.IO.Compression to get a compatible Ruby Zlib lib? Or do we need a new managed Zlib implementation? On 9/12/07, Eric Nicholson < enicholson at gmail.com> wrote: On the ironruby.net page it says that you're looking for a zlib implementation. Is that a managed re-implementation of zlib or a managed wrapper around the unmanaged zlib library? Cheers! -Eric _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/d8e1b96f/attachment.html From jflam at microsoft.com Wed Sep 12 20:08:27 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Wed, 12 Sep 2007 17:08:27 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651C9A@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651CC7@NA-EXMSG-C115.redmond.corp.microsoft.com> Thanks for looking into these libraries, Mike! Regarding zlib: it seems like a binary dependency on zlib.net would work. Do you agree? Regarding YAML: I agree that porting _syck to C# would be a good idea. Does _syck have dependencies on the Ruby parser? BTW, the IronRuby tokenizer is scheduled for a massive overhaul in the next couple of weeks. Thanks! -John From: Mike Moore [mailto:blowmage at gmail.com] Sent: Wednesday, September 12, 2007 4:59 PM To: John Lam (CLR) Cc: Eric Nicholson; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] zlib implementation On 9/12/07, John Lam (CLR) > wrote: We would love to have a managed implementation since it makes life so much easier - especially as we begin the inevitable move to 64 bit in the future. I haven't done the investigation between zlib and System.IO.Compression. Are you volunteering, Mike? :) I actually spent a couple hours working through Ruby's Zlib last night trying to familiarize myself with it. I've never used it before which is why I asked the question. :) Right now the two big needs are Zlib and YAML. So here are my uninformed thoughts. Please correct me. Zlib:: Determine if we can use System.IO.Compression. If not, we may have to re-implement zlib in C# or use an existing port if the license is compatible. A zlib implementation in C# (using System.IO.Compression if possible) could be useful for other DLR languages, so that's something to keep in mind. YAML:: From what I've read about JRuby's YAML implementation, getting it to work like Syck was a major issue. We could start with Ola's RbYAML once IronRuby will run it, but we will probably need to build a native library for performance reasons (just like JRuby did). Long term, the two options I see are porting Ola's JvYAML, or porting _why's Syck to C#. I'm somewhat partial to porting Syck so that it can be reused in other languages. I wonder how much of IronRuby's parser we could re-purpose to get Syck on C#... http://rbyaml.rubyforge.org/ https://jvyaml.dev.java.net/ http://code.whytheluckystiff.net/syck/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/0c438975/attachment.html From m.david at xmlhacker.com Wed Sep 12 20:33:01 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Wed, 12 Sep 2007 18:33:01 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On Wed, 12 Sep 2007 18:02:56 -0600, John Lam (CLR) wrote: > I think we?ll wind up redistributing the compiled binary of zlib.net > with IronRuby with a multiple license agreement. We need to run this > past the lawyers, but I?m pretty confident that shipping a BSD licensed > component alongside of our MsPL code should be OK. Worst case we get > someone in the community a?la Curt Hibbs to help us package this stuff > up J @ http://www.icsharpcode.net/OpenSource/SharpZipLib/ #ziplib (SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language). The creator of #ziplib put it this way: "I've ported the zip library over to C# because I needed gzip/zip compression and I didn't want to use libzip.dll or something like this. I want all in pure C#." License The library is released under the GPL with the following exception: Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. Note The exception is changed to reflect the latest GNU Classpath exception. Older versions of #ziplib did have another exception, but the new one is clearer and it doesn't break compatibility with the old one. Bottom line In plain English this means you can use this library in commercial closed-source applications. -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From enicholson at gmail.com Wed Sep 12 21:21:14 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Wed, 12 Sep 2007 21:21:14 -0400 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Just to make sure we're all on the same page in terms of zip libraries (there are at least three you could refer to as "zlib.net"), here's a summary: ZLIB - www.zlib.net The original zlib, used by gzip. BSD style license. Component Ace's ZLIB.NET - http://www.componentace.com/zlib_.NET.htm Port of zlib to 100% managed .NET. BSD style license ( http://www.componentace.com/data/ZLIB_.NET/license.txt) SharpDevelop's SharpZipLib - http://www.icsharpcode.net/OpenSource/SharpZipLib/ "*Zip, GZip, Tar and BZip2 library* written entirely in C#". GPL License with an exception System.IO.Compression - http://msdn2.microsoft.com/en-us/library/system.io.compression.aspx "Provides basic compression and decompression services for streams." it's already in the framework Feel free to add to the list... It's hard to tell which one is the most likely to be compatible with Ruby's ZLIB. If non-managed dependency is acceptable, real ZLIB is decent choice. If you want managed, then the Component ACE ZLIB.NET would be a reasonable approach. -Eric On 9/12/07, M. David Peterson wrote: > > On Wed, 12 Sep 2007 18:02:56 -0600, John Lam (CLR) > wrote: > > > I think we'll wind up redistributing the compiled binary of zlib.net > > with IronRuby with a multiple license agreement. We need to run this > > past the lawyers, but I'm pretty confident that shipping a BSD licensed > > component alongside of our MsPL code should be OK. Worst case we get > > someone in the community a'la Curt Hibbs to help us package this stuff > > up J > > @ http://www.icsharpcode.net/OpenSource/SharpZipLib/ > > #ziplib (SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 > library written entirely in C# for the .NET platform. It is implemented as > an assembly (installable in the GAC), and thus can easily be incorporated > into other projects (in any .NET language). The creator of #ziplib put it > this way: "I've ported the zip library over to C# because I needed > gzip/zip compression and I didn't want to use libzip.dll or something like > this. I want all in pure C#." > License > > The library is released under the GPL with the following exception: > > Linking this library statically or dynamically with other modules is > making a combined work based on this library. Thus, the terms and > conditions of the GNU General Public License cover the whole combination. > > As a special exception, the copyright holders of this library give you > permission to link this library with independent modules to produce an > executable, regardless of the license terms of these independent modules, > and to copy and distribute the resulting executable under terms of your > choice, provided that you also meet, for each linked independent module, > the terms and conditions of the license of that module. An independent > module is a module which is not derived from or based on this library. If > you modify this library, you may extend this exception to your version of > the library, but you are not obligated to do so. If you do not wish to do > so, delete this exception statement from your version. > > Note The exception is changed to reflect the latest GNU Classpath > exception. Older versions of #ziplib did have another exception, but the > new one is clearer and it doesn't break compatibility with the old one. > > Bottom line In plain English this means you can use this library in > commercial closed-source applications. > > -- > /M:D > > M. David Peterson > http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | > http://dev.aol.com/blog/3155 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/76800731/attachment.html From jflam at microsoft.com Wed Sep 12 21:47:42 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Wed, 12 Sep 2007 18:47:42 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651D22@NA-EXMSG-C115.redmond.corp.microsoft.com> After looking a bit more closely at System.IO.Compression, I think it actually gives us most of what we need. So in order of preference: 1) System.IO.Compression (we still have to solve the Silverlight problem since I just looked and saw that it doesn't ship in Silverlight). 2) Component ACE zlib.net - I like the BSD style license - it will be easier to make a case for this. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Wednesday, September 12, 2007 6:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] zlib implementation Just to make sure we're all on the same page in terms of zip libraries (there are at least three you could refer to as "zlib.net"), here's a summary: ZLIB - www.zlib.net The original zlib, used by gzip. BSD style license. Component Ace's ZLIB.NET - http://www.componentace.com/zlib_.NET.htm Port of zlib to 100% managed .NET. BSD style license ( http://www.componentace.com/data/ZLIB_.NET/license.txt) SharpDevelop's SharpZipLib - http://www.icsharpcode.net/OpenSource/SharpZipLib/ "Zip, GZip, Tar and BZip2 library written entirely in C#". GPL License with an exception System.IO.Compression - http://msdn2.microsoft.com/en-us/library/system.io.compression.aspx "Provides basic compression and decompression services for streams." it's already in the framework Feel free to add to the list... It's hard to tell which one is the most likely to be compatible with Ruby's ZLIB. If non-managed dependency is acceptable, real ZLIB is decent choice. If you want managed, then the Component ACE ZLIB.NET would be a reasonable approach. -Eric On 9/12/07, M. David Peterson < m.david at xmlhacker.com> wrote: On Wed, 12 Sep 2007 18:02:56 -0600, John Lam (CLR) < jflam at microsoft.com> wrote: > I think we'll wind up redistributing the compiled binary of zlib.net > with IronRuby with a multiple license agreement. We need to run this > past the lawyers, but I'm pretty confident that shipping a BSD licensed > component alongside of our MsPL code should be OK. Worst case we get > someone in the community a'la Curt Hibbs to help us package this stuff > up J @ http://www.icsharpcode.net/OpenSource/SharpZipLib/ #ziplib (SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language). The creator of #ziplib put it this way: "I've ported the zip library over to C# because I needed gzip/zip compression and I didn't want to use libzip.dll or something like this. I want all in pure C#." License The library is released under the GPL with the following exception: Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. Note The exception is changed to reflect the latest GNU Classpath exception. Older versions of #ziplib did have another exception, but the new one is clearer and it doesn't break compatibility with the old one. Bottom line In plain English this means you can use this library in commercial closed-source applications. -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070912/feec4a9e/attachment.html From slavof at gmail.com Thu Sep 13 02:57:50 2007 From: slavof at gmail.com (Slavo Furman) Date: Thu, 13 Sep 2007 08:57:50 +0200 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> Hello! I would like to add following librariy to the list. DevelopDotNet Compression Library - http://www.developdotnet.com/modules/tinycontent/content/index.php?id=3 Freeware (even for commercial products) with source codes, Artistic License (v. 1.0), it is written in managed C++ and it is based on *ZLib*compression library engine. Very good perf. Good features. --s. p.s. Eric, I apologize for previous post, I do not noticed immediatelly that I sending it not to the list, but directly to your email address. s. On 9/13/07, Eric Nicholson wrote: > > Just to make sure we're all on the same page in terms of zip libraries > (there are at least three you could refer to as "zlib.net"), here's a > summary: > > ZLIB - www.zlib.net > The original zlib, used by gzip. BSD style license. > > Component Ace's ZLIB.NET - http://www.componentace.com/zlib_.NET.htm > > Port of zlib to 100% managed .NET. BSD style license ( > http://www.componentace.com/data/ZLIB_.NET/license.txt) > > SharpDevelop's SharpZipLib - > http://www.icsharpcode.net/OpenSource/SharpZipLib/ > "*Zip, GZip, Tar and BZip2 library* written entirely in C#". GPL License > with an exception > > System.IO.Compression - > http://msdn2.microsoft.com/en-us/library/system.io.compression.aspx > "Provides basic compression and decompression services for streams." it's > already in the framework > > Feel free to add to the list... > > It's hard to tell which one is the most likely to be compatible with > Ruby's ZLIB. If non-managed dependency is acceptable, real ZLIB is decent > choice. If you want managed, then the Component ACE ZLIB.NETwould be a reasonable approach. > > -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/663d4513/attachment-0001.html From stefan.dobrev at gmail.com Thu Sep 13 04:03:57 2007 From: stefan.dobrev at gmail.com (Stefan Dobrev) Date: Thu, 13 Sep 2007 11:03:57 +0300 Subject: [Ironruby-core] zlib implementation In-Reply-To: <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> Message-ID: <928de89c0709130103o5a2f2460t5775f31fc38beee6@mail.gmail.com> About the System.IO.Compression capabilities you can look at thisgood post from the BCL blog. They also have plans to implement other algorithms in the future, but did not say when this future will happen, maybe the version after Orcas. 2007/9/13, Slavo Furman : > > Hello! > > I would like to add following librariy to the list. > > DevelopDotNet Compression Library - http://www.developdotnet.com/modules/tinycontent/content/index.php?id=3 > > Freeware (even for commercial products) with source codes, Artistic > License (v. 1.0), it is written in managed C++ and it is based on *ZLib*compression library engine. Very good perf. Good features. > > --s. > > p.s. Eric, I apologize for previous post, I do not noticed immediatelly > that I sending it not to the list, but directly to your email address. > s. > > > On 9/13/07, Eric Nicholson wrote: > > > > Just to make sure we're all on the same page in terms of zip libraries > > (there are at least three you could refer to as " zlib.net"), here's a > > summary: > > > > ZLIB - www.zlib.net > > The original zlib, used by gzip. BSD style license. > > > > Component Ace's ZLIB.NET - http://www.componentace.com/zlib_.NET.htm > > > > Port of zlib to 100% managed .NET. BSD style license ( > > http://www.componentace.com/data/ZLIB_.NET/license.txt) > > > > SharpDevelop's SharpZipLib - > > http://www.icsharpcode.net/OpenSource/SharpZipLib/ > > "*Zip, GZip, Tar and BZip2 library* written entirely in C#". GPL License > > with an exception > > > > System.IO.Compression - > > http://msdn2.microsoft.com/en-us/library/system.io.compression.aspx > > "Provides basic compression and decompression services for streams." > > it's already in the framework > > > > Feel free to add to the list... > > > > It's hard to tell which one is the most likely to be compatible with > > Ruby's ZLIB. If non-managed dependency is acceptable, real ZLIB is decent > > choice. If you want managed, then the Component ACE ZLIB.NETwould be a reasonable approach. > > > > -Eric > > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/8c94d34d/attachment.html From blowmage at gmail.com Thu Sep 13 11:37:13 2007 From: blowmage at gmail.com (Mike Moore) Date: Thu, 13 Sep 2007 09:37:13 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2651CC7@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651C9A@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D2651CC7@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On 9/12/07, John Lam (CLR) wrote: > > Thanks for looking into these libraries, Mike! > > Regarding zlib: it seems like a binary dependency on zlib.net would work. > Do you agree? > > Regarding YAML: I agree that porting _syck to C# would be a good idea. > Does _syck have dependencies on the Ruby parser? > Syck doesn't have a dependency on the Ruby parser, but it does use lex/yacc style gram.y file. I know that the Ruby.NET guys cracked that nut and reused Ruby's parser.y file, and it looks like IronRuby has a Parser.y file as well. I honestly haven't looked at this very closely since I first saw it in Ruby.NET, so I'm just assuming that a .NET version of Syck could also use Syck's gram.y file as a starting place. > BTW, the IronRuby tokenizer is scheduled for a massive overhaul in the > next couple of weeks. > How is this changing? Thanks! > > -John > > > > *From:* Mike Moore [mailto:blowmage at gmail.com] > *Sent:* Wednesday, September 12, 2007 4:59 PM > *To:* John Lam (CLR) > *Cc:* Eric Nicholson; ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] zlib implementation > > > > On 9/12/07, *John Lam (CLR)* wrote: > > We would love to have a managed implementation since it makes life so > much easier ? especially as we begin the inevitable move to 64 bit in the > future. > > > > I haven't done the investigation between zlib and System.IO.Compression. > Are you volunteering, Mike? J > > I actually spent a couple hours working through Ruby's Zlib last night > trying to familiarize myself with it. I've never used it before which is > why I asked the question. :) > > Right now the two big needs are Zlib and YAML. So here are my uninformed > thoughts. Please correct me. > > Zlib:: Determine if we can use System.IO.Compression. If not, we may have > to re-implement zlib in C# or use an existing port if the license is > compatible. A zlib implementation in C# (using System.IO.Compression if > possible) could be useful for other DLR languages, so that's something to > keep in mind. > > YAML:: From what I've read about JRuby's YAML implementation, getting it > to work like Syck was a major issue. We could start with Ola's RbYAML once > IronRuby will run it, but we will probably need to build a native library > for performance reasons (just like JRuby did). Long term, the two options I > see are porting Ola's JvYAML, or porting _why's Syck to C#. I'm somewhat > partial to porting Syck so that it can be reused in other languages. I > wonder how much of IronRuby's parser we could re-purpose to get Syck on > C#... > > http://rbyaml.rubyforge.org/ > https://jvyaml.dev.java.net/ > http://code.whytheluckystiff.net/syck/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/ef770517/attachment.html From jflam at microsoft.com Thu Sep 13 12:53:35 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 09:53:35 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651C9A@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D2651CC7@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651EFF@NA-EXMSG-C115.redmond.corp.microsoft.com> Before we get too far down into the implementation details, perhaps it might be better to just port JvYAML? I'm adding Ola to this mail - Ola do you think it would be a straightforward port to C#? Thanks, -John From: Mike Moore [mailto:blowmage at gmail.com] Sent: Thursday, September 13, 2007 8:37 AM To: John Lam (CLR) Cc: Eric Nicholson; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] zlib implementation Syck doesn't have a dependency on the Ruby parser, but it does use lex/yacc style gram.y file. I know that the Ruby.NET guys cracked that nut and reused Ruby's parser.y file, and it looks like IronRuby has a Parser.y file as well. I honestly haven't looked at this very closely since I first saw it in Ruby.NET, so I'm just assuming that a .NET version of Syck could also use Syck's gram.y file as a starting place. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/275a1e31/attachment-0001.html From tony at v-sim.com Thu Sep 13 12:56:13 2007 From: tony at v-sim.com (Tony Djordjevski) Date: Thu, 13 Sep 2007 12:56:13 -0400 Subject: [Ironruby-core] Reply-to address Message-ID: <46E96BAD.80608@v-sim.com> Hi, Sorry this might be a bit off topic, but... I'm not sure who to address this to. I've noticed that when trying to reply to a thread that my email client wants to send the reply to the personal email address of the sender, when in fact, I think it should instead go to the list. That is, the "to" field in the message is the personal address of some person, with the list being cc'd only when I click on Reply All. I'm only experiencing this behavior on the ironruby-core list, and I've noticed that messages from others are also having the same issue. I think it could be fixed by adding a reply-to field for all messages sent out by the list, so that when I click on Reply the "to" field in the message is ironruby-core at rubyforge.org Can somebody fix this? Do others think this is needed? Regards, Tony From enicholson at gmail.com Thu Sep 13 13:16:10 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Thu, 13 Sep 2007 13:16:10 -0400 Subject: [Ironruby-core] Reply-to address In-Reply-To: <46E96BAD.80608@v-sim.com> References: <46E96BAD.80608@v-sim.com> Message-ID: That would be nice... On 9/13/07, Tony Djordjevski wrote: > > Hi, > > Sorry this might be a bit off topic, but... I'm not sure who to address > this to. > > I've noticed that when trying to reply to a thread that my email client > wants to send the reply to the personal email address of the sender, > when in fact, I think it should instead go to the list. That is, the > "to" field in the message is the personal address of some person, with > the list being cc'd only when I click on Reply All. > > I'm only experiencing this behavior on the ironruby-core list, and I've > noticed that messages from others are also having the same issue. > > I think it could be fixed by adding a reply-to field for all messages > sent out by the list, so that when I click on Reply the "to" field in > the message is ironruby-core at rubyforge.org > > Can somebody fix this? Do others think this is needed? > > Regards, > Tony > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/23b04038/attachment.html From jflam at microsoft.com Thu Sep 13 13:21:58 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 10:21:58 -0700 Subject: [Ironruby-core] Reply-to address In-Reply-To: References: <46E96BAD.80608@v-sim.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651F3C@NA-EXMSG-C115.redmond.corp.microsoft.com> There's a couple of points of view on this: Con: http://www.unicom.com/pw/reply-to-harmful.html Pro: http://www.metasystema.net/essays/reply-to.mhtml I personally like the current behavior where a Reply will reply to the original poster vs. a Reply All which will reply to the original poster + the list. This will, of course, spam the original poster on a reply all. But if enough folks hate this (folks on 'my' side please speak up! :)) I'll flip the switch on the mailing list. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Thursday, September 13, 2007 10:16 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Reply-to address That would be nice... On 9/13/07, Tony Djordjevski > wrote: Hi, Sorry this might be a bit off topic, but... I'm not sure who to address this to. I've noticed that when trying to reply to a thread that my email client wants to send the reply to the personal email address of the sender, when in fact, I think it should instead go to the list. That is, the "to" field in the message is the personal address of some person, with the list being cc'd only when I click on Reply All. I'm only experiencing this behavior on the ironruby-core list, and I've noticed that messages from others are also having the same issue. I think it could be fixed by adding a reply-to field for all messages sent out by the list, so that when I click on Reply the "to" field in the message is ironruby-core at rubyforge.org Can somebody fix this? Do others think this is needed? Regards, Tony _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/a3e5d819/attachment.html From jflam at microsoft.com Thu Sep 13 13:24:17 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 10:24:17 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651C9A@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D2651CC7@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651F43@NA-EXMSG-C115.redmond.corp.microsoft.com> From: Mike Moore [mailto:blowmage at gmail.com] >> BTW, the IronRuby tokenizer is scheduled for a massive overhaul in the next couple of weeks. > How is this changing? We inherited the tokenizer and scanner from the Ruby.net codebase which we funded via MSR. When we ripped that code out of their compiler, the token location reporting wound up getting busted. That code is rather complicated, and we have a very nice tokenizer class in IronPython/DLR that we would much rather use instead. So we're going to spend some time rewriting that stuff to get location reporting correct. Once that works, it should be trivial to enable debugging under VS which is feature that is motivating the rewrite. -John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/f215f019/attachment.html From jflam at microsoft.com Thu Sep 13 13:37:39 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 10:37:39 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: <928de89c0709130103o5a2f2460t5775f31fc38beee6@mail.gmail.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> <928de89c0709130103o5a2f2460t5775f31fc38beee6@mail.gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651F63@NA-EXMSG-C115.redmond.corp.microsoft.com> Thanks for the pointer Stefan- it's funny how I spent a bunch of time trying to track down internally who the owner of SIC was, and then that blog post told me exactly who to send the mail to :) -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan Dobrev Sent: Thursday, September 13, 2007 1:04 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] zlib implementation About the System.IO.Compression capabilities you can look at this good post from the BCL blog. They also have plans to implement other algorithms in the future, but did not say when this future will happen, maybe the version after Orcas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/74303c80/attachment-0001.html From m.david at xmlhacker.com Thu Sep 13 13:44:09 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Thu, 13 Sep 2007 11:44:09 -0600 Subject: [Ironruby-core] Reply-to address In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2651F3C@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <46E96BAD.80608@v-sim.com> <372109E149E8084D8E6C7D9CFD82E06329D2651F3C@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On Thu, 13 Sep 2007 11:21:58 -0600, John Lam (CLR) wrote: > I personally like the current behavior where a Reply will reply to the > original poster vs. a Reply All which will reply to the original poster > + the list. This is an age old debate that dates back to the early, early, early days of Internet mailing lists. There's advantages to both. I have no real preference myself. > This will, of course, spam the original poster on a reply all. That depends on the back-end software. *Most* modern list servers parse the To: and Cc: fields and remove any addresses it recognizes from the distribution list before echoing the message to the list members. XML-Dev and W3C mailing lists are two examples that I can think of that do things this way. -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From tony at v-sim.com Thu Sep 13 13:41:32 2007 From: tony at v-sim.com (Tony Djordjevski) Date: Thu, 13 Sep 2007 13:41:32 -0400 Subject: [Ironruby-core] zlib implementation In-Reply-To: <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> Message-ID: <46E9764C.3060607@v-sim.com> I took a quick look at the library you mentioned. Correct me if I'm wrong (I've only done C++/CLI in .NET 2.0, rather than Managed Extensions for C++ in .NET 1.0, and only very little of it), but it looks like they are using unsafe code. Won't this screw up the Mono people? I'm guessing portability is probably a high priority. Slavo Furman wrote: > Hello! > > I would like to add following librariy to the list. > > DevelopDotNet Compression Library - > http://www.developdotnet.com/modules/tinycontent/content/index.php?id=3 > > Freeware (even for commercial products) with source codes, Artistic > License (v. 1.0), it is written in managed C++ and it is based on *ZLib* > compression library engine. Very good perf. > Good features. > > --s. From jflam at microsoft.com Thu Sep 13 13:55:08 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 10:55:08 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: <46E9764C.3060607@v-sim.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> <46E9764C.3060607@v-sim.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2651F94@NA-EXMSG-C115.redmond.corp.microsoft.com> > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Tony Djordjevski > Sent: Thursday, September 13, 2007 10:42 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] zlib implementation > > I took a quick look at the library you mentioned. > > Correct me if I'm wrong (I've only done C++/CLI in .NET 2.0, rather > than > Managed Extensions for C++ in .NET 1.0, and only very little of it), > but > it looks like they are using unsafe code. > > Won't this screw up the Mono people? I'm guessing portability is > probably a high priority. We definitely want to stay away from unsafe code. One of the nice things about our Silverlight story is that DLR + IronRuby is security transparent (see http://blogs.msdn.com/shawnfa/archive/2007/05/14/silverlight-security-cheat-sheet.aspx for a quick summary and more links). Short story is that we don't have to undergo security reviews as a result of this. -John From m.david at xmlhacker.com Thu Sep 13 13:57:54 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Thu, 13 Sep 2007 11:57:54 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2651F63@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> <928de89c0709130103o5a2f2460t5775f31fc38beee6@mail.gmail.com> <372109E149E8084D8E6C7D9CFD82E06329D2651F63@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On Thu, 13 Sep 2007 11:37:39 -0600, John Lam (CLR) wrote: > Thanks for the pointer Stefan- it?s funny how I spent a bunch of time > trying to track down internally who the owner of SIC was, and then that > blog post told me exactly who to send the mail to J Hey, Kim Hamilton... I know her. :) Well, not personally, but through proxy. My good friend Russ Miles[1] (who is now the Director of Software Development and Co-Founder of my company) and Kim wrote a book together[2]. Isn't Kim on the Silverlight team? Given the topic of the article linked to[3] from Stefan it seems she would be just the person to talk to about System.IO.Compression support for Silverlight :D (though, come to think of it, all browsers already support gzip compression, so maybe they plan to write a wrapper around each existing browsers implementation?) [1] http://dev.aol.com/blog/mdavidpeterson/2007/02/20/ror-and-the-dotnet-platform_let-go-to-embrace (see third paragraph down) [2] http://www.oreilly.com/catalog/learnuml2/ [3] http://blogs.msdn.com/bclteam/archive/2007/05/16/system-io-compression-capabilities-kim-hamilton.aspx -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From m.david at xmlhacker.com Thu Sep 13 14:02:50 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Thu, 13 Sep 2007 12:02:50 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: <46E9764C.3060607@v-sim.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> <46E9764C.3060607@v-sim.com> Message-ID: On Thu, 13 Sep 2007 11:41:32 -0600, Tony Djordjevski wrote: > but > it looks like they are using unsafe code. > Won't this screw up the Mono people? Unsafe code can be compiled via (g)mcs and run via Mono. > I'm guessing portability is > probably a high priority. True, but my guess is that this portability will have more to do with Silverlight/DLR than it will with anything else. Platform specific code would be an issue (via P/Invoke) with portability. So anything that uses P/Invoke would definitely be a problem for the Mono folks. -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From blowmage at gmail.com Thu Sep 13 14:39:40 2007 From: blowmage at gmail.com (Mike Moore) Date: Thu, 13 Sep 2007 12:39:40 -0600 Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) Message-ID: Hey Ola, I'm glad to hear you are supportive of us porting your code. (Although I honestly expected no less.) I'll volunteer to work on the port and I may be asking some questions. Is it better to ask those questions directly to you? Or to the jruby-dev mailing list? John, Ola's original JvYAML was licensed under MIT. But the code in JRuby (JvYAMLb) appears to be tri-licensed under CPL, GPL, and LGPL. Is this an issue? On 9/13/07, Ola Bini wrote: > > John Lam (CLR) wrote: > > > > Before we get too far down into the implementation details, perhaps it > > might be better to just port JvYAML? I'm adding Ola to this mail ? Ola > > do you think it would be a straightforward port to C#? > > > > Thanks, > > > > -John > > > > *From:* Mike Moore [mailto:blowmage at gmail.com] > > *Sent:* Thursday, September 13, 2007 8:37 AM > > *To:* John Lam (CLR) > > *Cc:* Eric Nicholson; ironruby-core at rubyforge.org > > *Subject:* Re: [Ironruby-core] zlib implementation > > > > Syck doesn't have a dependency on the Ruby parser, but it does use > > lex/yacc style gram.y file. I know that the Ruby.NET guys cracked that > > nut and reused Ruby's parser.y file, and it looks like IronRuby has a > > Parser.y file as well. I honestly haven't looked at this very closely > > since I first saw it in Ruby.NET, so I'm just assuming that a .NET > > version of Syck could also use Syck's gram.y file as a starting place. > > > > Hi, > > I would personally stay as far away as possible from Syck - the grammer > is quite straight forward but the rest of the implementation uses a > whole slew of pointer tricks to work. Of course, you _could_ do the same > thing in C# by using unmanaged code, but I don't think it would be worth > it. It also seems Syck have some reliability problems. (I have recently > created a few roundtrip test cases that fail with MRI - I shall submit > them as bugs too, of course...) > > JvYAML would be much simpler to port (and make sure to use the JvYAMLb > version that exists in the JRuby source repository). There are two main > problems with that approach: it isn't well documented, so in many cases > it may not be obvious exactly why I do something the way I do it in the > code. Secondly, JvYAML started out as a 1.1-compliant YAML system, but > have grown into being more 1.0-compliant since Syck is (so I need to be > compatible). That means that sometimes the code is going through some > interesting hoops. > > None of this makes it a hard thing to port JvYAML though. It would > probably not take many days. > > Feel free to ask me if you have any questions. > > Cheers > > -- > Ola Bini (http://ola-bini.blogspot.com) > JRuby Core Developer > Developer, ThoughtWorks Studios (http://studios.thoughtworks.com) > > "Yields falsehood when quined" yields falsehood when quined. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/a4fa4401/attachment.html From blowmage at gmail.com Thu Sep 13 14:42:22 2007 From: blowmage at gmail.com (Mike Moore) Date: Thu, 13 Sep 2007 12:42:22 -0600 Subject: [Ironruby-core] Reply-to address In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2651F3C@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <46E96BAD.80608@v-sim.com> <372109E149E8084D8E6C7D9CFD82E06329D2651F3C@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: -1 for John's opinion (in this case). I prefer reply-to. :) On 9/13/07, John Lam (CLR) wrote: > > There's a couple of points of view on this: > > > > Con: http://www.unicom.com/pw/reply-to-harmful.html > > > > Pro: http://www.metasystema.net/essays/reply-to.mhtml > > > > I personally like the current behavior where a Reply will reply to the > original poster vs. a Reply All which will reply to the original poster + > the list. This will, of course, spam the original poster on a reply all. > > > > But if enough folks hate this (folks on 'my' side please speak up! J) I'll > flip the switch on the mailing list. > > > > Thanks, > > -John > > > > > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Thursday, September 13, 2007 10:16 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Reply-to address > > > > That would be nice... > > On 9/13/07, *Tony Djordjevski* wrote: > > Hi, > > Sorry this might be a bit off topic, but... I'm not sure who to address > this to. > > I've noticed that when trying to reply to a thread that my email client > wants to send the reply to the personal email address of the sender, > when in fact, I think it should instead go to the list. That is, the > "to" field in the message is the personal address of some person, with > the list being cc'd only when I click on Reply All. > > I'm only experiencing this behavior on the ironruby-core list, and I've > noticed that messages from others are also having the same issue. > > I think it could be fixed by adding a reply-to field for all messages > sent out by the list, so that when I click on Reply the "to" field in > the message is ironruby-core at rubyforge.org > > Can somebody fix this? Do others think this is needed? > > Regards, > Tony > _______________________________________________ > 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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/fcd032cc/attachment-0001.html From jflam at microsoft.com Thu Sep 13 15:37:29 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 12:37:29 -0700 Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) In-Reply-To: <46E985E3.8070206@gmail.com> References: <46E985E3.8070206@gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D265205E@NA-EXMSG-C115.redmond.corp.microsoft.com> > From: Ola Bini [mailto:ola.bini at gmail.com] > > > John, Ola's original JvYAML was licensed under MIT. But the code in > > JRuby (JvYAMLb) appears to be tri-licensed under CPL, GPL, and LGPL. > > Is this an issue? > > > Eh. CPL should be fairly free, but I could separate everything that I'm > the sole author of and relicense it if you really need. (That will be a > hassle with ByteList though, since that is a generic JRuby class, that > many have contributed to.) > We have an issue here that we want to drive through legal, which is releasing IronRuby under multiple licenses. This shouldn't be a problem, but it is an issue if we are going to try and package IronRuby for release ourselves (which we should do). Like a lot of things that we do around here, it's always simpler if we could take one step at a time. I suspect that MsPL + MIT as a start would be nice. MsPL + CPL would be fine too. But MsPL + GPL + LGPL would be a much harder sell. Is there a chance that we could identify the bits that are GPL + LGPL and reimplement them ourselves? Thanks, -John From jflam at microsoft.com Thu Sep 13 15:40:16 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 12:40:16 -0700 Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D265206A@NA-EXMSG-C115.redmond.corp.microsoft.com> > From: Mike Moore [mailto:blowmage at gmail.com] > Sent: Thursday, September 13, 2007 11:40 AM > To: Ola Bini > Cc: John Lam (CLR); Eric Nicholson; ironruby-core at rubyforge.org > Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) > Hey Ola, I'm glad to hear you are supportive of us porting your code. (Although I > honestly expected no less.) I'll volunteer to work on the port and I may be asking some > questions. Is it better to ask those questions directly to you? Or to the jruby-dev > mailing list? Thanks for volunteering to drive this, Mike! -John From charles.nutter at sun.com Thu Sep 13 17:24:59 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Thu, 13 Sep 2007 15:24:59 -0600 Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) In-Reply-To: References: Message-ID: <46E9AAAB.6080907@sun.com> Mike Moore wrote: > Hey Ola, I'm glad to hear you are supportive of us porting your code. > (Although I honestly expected no less.) I'll volunteer to work on the > port and I may be asking some questions. Is it better to ask those > questions directly to you? Or to the jruby-dev mailing list? > > John, Ola's original JvYAML was licensed under MIT. But the code in > JRuby (JvYAMLb) appears to be tri-licensed under CPL, GPL, and LGPL. Is > this an issue? One decision you're going to have to make pretty early on is whether to support Ruby's strings exactly or to try wrapping CLR string constructs that use UTF-16 characters. We started out with the latter, and aside from the obvious down side of doubling memory use for all strings, we ran into much more serious problems trying to get decent IO performance; every operation required encoding and decoding to/from bytes. Then there's the issues with so many libraries just expecting to work with bytes, expecting UTF-8 logic in regular expressions and String methods, and it just got progressively more complicated. JvYAML has both a char and a byte-based version. The byte-based version is directly incorporated into JRuby, while the char-based version is free-standing. - Charlie From jflam at microsoft.com Thu Sep 13 17:57:44 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 14:57:44 -0700 Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) In-Reply-To: <46E9A899.3000302@gmail.com> References: <46E985E3.8070206@gmail.com> <372109E149E8084D8E6C7D9CFD82E06329D265205E@NA-EXMSG-C115.redmond.corp.microsoft.com> <46E9A899.3000302@gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D26521B8@NA-EXMSG-C115.redmond.corp.microsoft.com> > From: Ola Bini [mailto:ola.bini at gmail.com] > > That's not how it works. The whole code base of JRuby is CPL AND GPL AND > LGPL at the same time. Just choose the license that works best for you. Got it. Thanks! -John From jflam at microsoft.com Thu Sep 13 17:59:58 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 14:59:58 -0700 Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) In-Reply-To: <46E9AAAB.6080907@sun.com> References: <46E9AAAB.6080907@sun.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D26521C1@NA-EXMSG-C115.redmond.corp.microsoft.com> > On Behalf Of Charles Oliver Nutter: > > One decision you're going to have to make pretty early on is whether to > support Ruby's strings exactly or to try wrapping CLR string constructs > that use UTF-16 characters. We started out with the latter, and aside > from the obvious down side of doubling memory use for all strings, we > ran into much more serious problems trying to get decent IO > performance; > every operation required encoding and decoding to/from bytes. Then > there's the issues with so many libraries just expecting to work with > bytes, expecting UTF-8 logic in regular expressions and String methods, > and it just got progressively more complicated. > > JvYAML has both a char and a byte-based version. The byte-based version > is directly incorporated into JRuby, while the char-based version is > free-standing. We're wrapping CLR char arrays right now. But we're fully planning on going to bytes in the future once things settle down a bit. We're erring on the side of letting some things just work today vs. doing this correctly the first time and taking longer. We should start with the char based version today with an eye of moving toward the byte-based version once we fix MutableString. Thanks for the advice, Charlie! -John From enicholson at gmail.com Thu Sep 13 18:28:03 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Thu, 13 Sep 2007 18:28:03 -0400 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> <46E9764C.3060607@v-sim.com> Message-ID: Interesting YAML implementation discussion aside... What's the goal in implementing Zlib on IR? The reason I ask is that I'm wondering what level of compatibility we want with the canonical implementation. There are a lot of things in the Zlib module/classes that are not readily available in System.IO.Compresssion (Adler-32 hashes, selectable compression levels, etc.). Can we gloss over those and just implement a good inflate/deflate capability? -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/4f26d23f/attachment.html From charles.nutter at Sun.COM Thu Sep 13 18:08:30 2007 From: charles.nutter at Sun.COM (Charles Oliver Nutter) Date: Thu, 13 Sep 2007 16:08:30 -0600 Subject: [Ironruby-core] JvYAMLb Port (CsYAML?) In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D26521C1@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <46E9AAAB.6080907@sun.com> <372109E149E8084D8E6C7D9CFD82E06329D26521C1@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <46E9B4DE.4000609@sun.com> John Lam (CLR) wrote: > We're wrapping CLR char arrays right now. But we're fully planning on going to bytes in the future once things settle down a bit. We're erring on the side of letting some things just work today vs. doing this correctly the first time and taking longer. > > We should start with the char based version today with an eye of moving toward the byte-based version once we fix MutableString. > > Thanks for the advice, Charlie! I would be very interested in hearing your strategies for integrating with the rest of the CLR once you move to bytes. That's the big trade-off we've had to make, translating byte-based strings to char-based strings and back whenever they cross that boundary. That's a lot of overhead I wish we could avoid, and I suppose you'll have to cope with that in one way or another as well. - Charlie From blowmage at gmail.com Thu Sep 13 19:08:02 2007 From: blowmage at gmail.com (Mike Moore) Date: Thu, 13 Sep 2007 17:08:02 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> <46E9764C.3060607@v-sim.com> Message-ID: On 9/13/07, Eric Nicholson wrote: > > Interesting YAML implementation discussion aside... > > What's the goal in implementing Zlib on IR? The reason I ask is that I'm > wondering what level of compatibility we want with the canonical > implementation. There are a lot of things in the Zlib module/classes that > are not readily available in System.IO.Compresssion (Adler-32 hashes, > selectable compression levels, etc.). Can we gloss over those and just > implement a good inflate/deflate capability? I might be okay with not having Zlib in IronRuby when IR is hosted within Silverlight (partially because that framework is missing System.IO.Compression). But I'd expect IronRuby's Zlib to be 100% compatible with MRI's ZLib when used on the desktop and server. 100% or as close as we can get it. Hey Charlie, what are you guys doing for Zlib in JRuby? -Eric > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/a81cc979/attachment.html From charles.nutter at sun.com Thu Sep 13 19:48:27 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Thu, 13 Sep 2007 17:48:27 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <24e27e560709122357y1fd2b63ehdc949df9509b91dc@mail.gmail.com> <46E9764C.3060607@v-sim.com> Message-ID: <46E9CC4B.9000000@sun.com> Mike Moore wrote: > On 9/13/07, *Eric Nicholson* > wrote: > > Interesting YAML implementation discussion aside... > > What's the goal in implementing Zlib on IR? The reason I ask is > that I'm wondering what level of compatibility we want with the > canonical implementation. There are a lot of things in the Zlib > module/classes that are not readily available in > System.IO.Compresssion (Adler-32 hashes, selectable compression > levels, etc.). Can we gloss over those and just implement a good > inflate/deflate capability? > > > I might be okay with not having Zlib in IronRuby when IR is hosted > within Silverlight (partially because that framework is missing > System.IO.Compression). But I'd expect IronRuby's Zlib to be 100% > compatible with MRI's ZLib when used on the desktop and server. 100% or > as close as we can get it. > > Hey Charlie, what are you guys doing for Zlib in JRuby? Our Zlib is implemented using Java's built-in support for zip compression. There's a bit of trickery to get it to behave properly, but it's been working now for 1.5 years without major issues. And we have our own impls of Adler32 et al. - Charlie From jflam at microsoft.com Thu Sep 13 19:51:55 2007 From: jflam at microsoft.com (John Lam (CLR)) Date: Thu, 13 Sep 2007 16:51:55 -0700 Subject: [Ironruby-core] Reply to list ... caving to popular demand Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> Since nobody wants to defend my point of view :(, I've flipped the switch on the mailing list. Reply will now reply to the list (I think). -John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/fff0450f/attachment.html From charles.nutter at sun.com Thu Sep 13 19:58:50 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Thu, 13 Sep 2007 17:58:50 -0600 Subject: [Ironruby-core] Reply to list ... caving to popular demand In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <46E9CEBA.3010001@sun.com> John Lam (CLR) wrote: > Since nobody wants to defend my point of view L, I?ve flipped the switch > on the mailing list. Reply will now reply to the list (I think). Hooray! And to help soften the blow, I thought of one really good reason to do it this way that may not have been addressed before: it encourages *public* discussion, which is what OSS thrives on. - Charlie From m.david at xmlhacker.com Thu Sep 13 21:27:02 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Thu, 13 Sep 2007 19:27:02 -0600 Subject: [Ironruby-core] Reply to list ... caving to popular demand In-Reply-To: <46E9CEBA.3010001@sun.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> <46E9CEBA.3010001@sun.com> Message-ID: On Thu, 13 Sep 2007 17:58:50 -0600, Charles Oliver Nutter wrote: > it encourages > *public* discussion, which is what OSS thrives on. True, though it also encourages off-topic discussions to take place off-list. I can think of countless times in which an off-topic conversation was both started and continued on list due to the simple fact that replying directly to list was easier than was composing a new email, copying over all relavent information, and continuing. Of course this is the exception to the rule, but there are other points to consider, * People who have been Cc'd who are not on the list can take part in the conversation if the list server is configured to forward responses to a topic from folks originally Cc'd from a list member. * In this particular case I would venture to state that there are enough situations in which internal MSFT employees or external library developers will have need to participate in a conversation and yet forcing them to go through the sign-up process to take part in a single conversation is a bit much to expect. Personally I would think that this topic requires a bit more conversation before the final switch has been flip. Anybody care to +/-|counter/support the above and/or add additional reasons why it makes sense to use a more open reply/response type configuration? -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From charles.nutter at sun.com Thu Sep 13 21:39:30 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Thu, 13 Sep 2007 19:39:30 -0600 Subject: [Ironruby-core] Reply to list ... caving to popular demand In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> <46E9CEBA.3010001@sun.com> Message-ID: <46E9E652.4080303@sun.com> M. David Peterson wrote: > True, though it also encourages off-topic discussions to take place > off-list. I can think of countless times in which an off-topic > conversation was both started and continued on list due to the simple fact > that replying directly to list was easier than was composing a new email, > copying over all relavent information, and continuing. Good! Keep talk on list..if it's irrelevant, ignore the entire thread. But there may be a really useful gem that comes out of the tail-end of an off-topic conversation. Anyone who continues to have off-topic conversations on-list can be gently prodded off-list...and besides, all our emails are still in the "From" header anyway...it's not hard to send just to one person. > Of course this is the exception to the rule, but there are other points to > consider, > > * People who have been Cc'd who are not on the list can take part in the > conversation if the list server is configured to forward responses to a > topic from folks originally Cc'd from a list member. I've never been on a list configured in such a way...and it seems like an easy way for spammers to sneak by list configurations. > * In this particular case I would venture to state that there are enough > situations in which internal MSFT employees or external library developers > will have need to participate in a conversation and yet forcing them to go > through the sign-up process to take part in a single conversation is a bit > much to expect. If they couldn't send to the list, only the original sender would be able to see their responses anyway. What good does that do the project? - Charlie From enicholson at gmail.com Thu Sep 13 22:12:52 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Thu, 13 Sep 2007 22:12:52 -0400 Subject: [Ironruby-core] Reply to list ... caving to popular demand In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Yeah, but we all wanted to hang out on your list. :) Thanks! Eric On 9/13/07, John Lam (CLR) wrote: > > Since nobody wants to defend my point of view L, I've flipped the switch > on the mailing list. Reply will now reply to the list (I think). > > -John > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070913/4ec149e7/attachment.html From m.david at xmlhacker.com Fri Sep 14 09:57:05 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Fri, 14 Sep 2007 07:57:05 -0600 Subject: [Ironruby-core] Reply to list ... caving to popular demand In-Reply-To: <46E9E652.4080303@sun.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2652291@NA-EXMSG-C115.redmond.corp.microsoft.com> <46E9CEBA.3010001@sun.com> <46E9E652.4080303@sun.com> Message-ID: On Thu, 13 Sep 2007 19:39:30 -0600, Charles Oliver Nutter wrote: > > Good! Keep talk on list..if it's irrelevant, ignore the entire thread. > But there may be a really useful gem that comes out of the tail-end of > an off-topic conversation. Anyone who continues to have off-topic > conversations on-list can be gently prodded off-list...and besides, all > our emails are still in the "From" header anyway...it's not hard to send > just to one person. Fair enough. > > I've never been on a list configured in such a way...and it seems like > an easy way for spammers to sneak by list configurations. To be honest, I'm not 100% sure if I have either. It seems like there are several lists that I'm subscribed to that seem to react this way, but I couldn't swear by it. The spammers point I'm not sure is relevant, as *if* my assumption as to the way some of the lists I subscribe to work is correct, the only way a list server would accept a response and propogate that response was if a list member Cc'd them, the list server software then adding their name to a temporary whitelist for use with that particular thread only. If I'm a spammer and subscribe to a list to then proceed to Cc: every person in my database the list server isn't going to automatically add them to the distribution list, only to an "it's okay for you to respond to this thread" list. If they do respond to that thread then their response will be propagated. > If they couldn't send to the list, only the original sender would be > able to see their responses anyway. What good does that do the project? Well, as per above, my point was that it seems to me there are several lists I am subscribed to that will automatically accept responses to the list from non-subscribers for a subject matter they were Cc'd on. So in this regard the entire list would receive their response. They couldn't start their own thread w/o subscribing, but they can respond and that response will be sent out by the server. But with all of this said, I also both recognize and agree that a standard ("Reply" == "Reply to all list subscribers") type setup provides substantial benefits that you don't get otherwise. 'Tis why my original response suggested that I'm good to go either way. John made the statement that nobody seemed interested in defending his viewpoint so it seemed at least worth highlighting some of the benefits that can come with using a (("Reply == Reply to those in the To: field), (Reply All == Reply to everyone")) type configuration. -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From lewistm at gmail.com Sat Sep 15 19:02:50 2007 From: lewistm at gmail.com (Terence Lewis) Date: Sun, 16 Sep 2007 01:02:50 +0200 Subject: [Ironruby-core] Invalid SyntaxErrorException bug Message-ID: <2f1decf20709151602i4a5fc899h463fddbd6e7aa7d5@mail.gmail.com> Hello, After some hunting through the IronRuby code (I wrote a little test app which causes rbx to throw a SyntaxErrorException), I figured out that the parser has a problem parsing a certain sequence of tokens which appears to be valid ruby code (given that it runs fine in my MRI). I've attached a .patch file as per John's "submitting a patch" video - which contains a test showing the problem, which appears in statements of the form: a = b == something or return nil which fails with "syntax error, unexpected kRETURN". Unfortunately, I don't have the faintest clue about where to go in the code to fix this error, so I'll leave that part to someone more capable for now. I discovered the bug while trying to require 'net/http' in a test program after copying net/http from my MRI to somewhere rbx could find it. Presently, this file cannot be successfully parsed - it fails around line 1152 in def [](key) on a statement similar to the one I wrote above. Unfortunately, my country's monopolistic telecommunications provider apparently runs a transparent proxy which makes it impossible for me to log into rubyforge and load this as a bug myself (see http://rubyforge.org/tracker/index.php?func=detail&aid=10650&group_id=5&atid=101for details), so I'll resort to posting bugs here until this issue is resolved. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070916/76f9fa74/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: assign_or_return_bug_test.patch Type: application/octet-stream Size: 793 bytes Desc: not available Url : http://rubyforge.org/pipermail/ironruby-core/attachments/20070916/76f9fa74/attachment.obj From lewistm at gmail.com Sat Sep 15 19:06:46 2007 From: lewistm at gmail.com (Terence Lewis) Date: Sun, 16 Sep 2007 01:06:46 +0200 Subject: [Ironruby-core] Compilation fails when DUMP symbol is defined Message-ID: <2f1decf20709151606p74821a1bv5ab784b0f6741747@mail.gmail.com> Hello, While trying to compile the project (ExternalDebug) with the DUMP symbol defined, I get 3 compiler errors: 1) 'Ruby.Compiler.Rule._rhs' is inaccessible due to its protection level : \src\ironruby\Compiler\Parser\GPPG.cs : line 591 2) The name 'id' does not exist in the current context : \src\ironruby\Compiler\Parser\GPPG.cs : line 58 3) The name 'rhs' does not exist in the current context : \src\ironruby\Compiler\Parser\GPPG.cs : line 85 I managed to solve problem 1 by changing the protection from private to public (protected not allowed on sealed class), and problem 2 by changing id to either _id or Id, but I was unable to solve problem number 3 because no variable is passed into the constructor for Rule which would be assignable to _rhs. I tried simply commenting this line out, but that causes a run-time NullReferenceException failure when the DumpProduction method runs, because it tries to iterate over a null array. Commenting out that loop as well seems to fix this. Also, there is a misspelled property in the Rule class => RhsLenght should read RhsLength. Thank you Terence -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070916/79ae0e55/attachment-0001.html From m.david at xmlhacker.com Sat Sep 15 23:57:33 2007 From: m.david at xmlhacker.com (M. David Peterson) Date: Sat, 15 Sep 2007 21:57:33 -0600 Subject: [Ironruby-core] zlib implementation In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D2651D22@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D2651D22@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On Wed, 12 Sep 2007 19:47:42 -0600, John Lam (CLR) wrote: > 1) System.IO.Compression (we still have to solve the Silverlight > problem since I just looked and saw that it doesn?t ship in Silverlight). Just noticed that the system.dll assembly in Silverlight provides support for the System.Net.DecompressionMethods enumeration, which System.Net.HttpWebRequest.AutomaticDecompression uses to determine the compression/decompression algorithm to use as part of the HttpWebRequest. The values of the enum are Deflate, GZip, or None. Me: "Lutz-O-Mirror on-the-wall, is GZip compression supported after all?" --- public override DecompressionMethods AutomaticDecompression { get { return DecompressionMethods.None; } set { throw new NotSupportedException(); } } --- Me: "DRAT!" Me: "Lutz-O-Mirror on-the-wall, any chance they'll implement support by end of fall?" Lutz-O-Mirror: "Do I look like a Fortune Teller?" Me: "Yes." Lutz-O-Mirror: "No." Me: "No, they won't implement support?" Lutz-O-Mirror: "No, I'm not a Fortune Teller! I can only reflect upon what already exists, not what might exist in the future!" Me: "Hmmm... What good is a Fortune Teller who can't tell me the future?" Lutz-O-Mirror: "I'M NOT A FORTUNE TELLER!" ... and it was at this point of the conversation that I decided it was time to put away Lutz-O-Mirror for the night. Seems some sleep will probably do him some good, huh?! ;-) So while the obviously overworked-and-underpaid Lutz-O-Mirror is sleeping, anybody at MSFT care to take on his fortune telling responsibilities? -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155 From stefan.huettenrauch at hpi.uni-potsdam.de Sun Sep 16 06:03:16 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Sun, 16 Sep 2007 12:03:16 +0200 Subject: [Ironruby-core] Ruby code from C-Sharp; String.split() with rbx Message-ID: <003601c7f848$cd752a10$685f7e30$@huettenrauch@hpi.uni-potsdam.de> Hi all, I am playing around with IronRuby for a week now and have 3 questions/issues that I sincerely hope you have some nice comments or solutions for. Thanks for reading. I appreciate it. Cheers, Stefan FIRST ISSUE ============================= I try to call some ruby code from a c# file. My first attempt was this: 1 RubyEngine re = RubyEngine.CurrentEngine; 2 re.ExecuteCommand("s = 'let us get started'"); 3 re.ExecuteCommand("i = s.length"); Problem and question: I think each line is executed as a block, so that the second time I try to use s it is undefined and I get an exception. If s is global it works. Is there a way to tell the RubyEngine to kind of collect Commands and then execute them as one single block? SECOND ISSUE ============================= My second attempt to call ruby code from a c# file was this: 1 RubyEngine re = RubyEngine.CurrentEngine; 2 re.ExecuteCommand("require 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\mscorlib.dll'"); 3 re.ExecuteFileContent("c:\\myRubyFile.rb"); myRubyFile.rb is: 1 require "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\mscorlib.dll" 2 require "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\System.Windows.Forms.dll" 3 sr = System::IO::StreamReader 4 sr = System::IO::File.OpenText("c:\\atlog.txt") ... Problem: Just executing the ruby file is not much of a problem; so calling ruby that in turn calls the CLR works fine. But, if I include line 2 of the c# code above I get the exception below, not telling me which file couldn't be found. Removing line 2 brings me back to a running program. So I think with requiring a dll twice is a problem. Should it be?? Ruby.Builtins.LoadError was unhandled Message="File not found" Source="Ruby" StackTrace: at Ruby.Runtime.Loader.LoadFile(CodeContext context, Object self, String path, LoadFlags flags) at Ruby.Builtins.Kernel.Require(CodeContext context, Object self, String libraryName) at Ruby.Builtins.Kernel.Require(CodeContext context, Object self, MutableString libraryName) at _stub_##8(Object[] , DynamicSite`3 , CodeContext , Object , MutableString ) at Microsoft.Scripting.Actions.DynamicSiteTarget`3.Invoke(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.UpdateBindingAndInvoke(CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSiteHelpers.UninitializedTargetHelper`7.Invo ke2(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.Invoke(CodeContext context, T0 arg0, T1 arg1) at ##10(Object[] , CodeContext ) at Microsoft.Scripting.CallTargetWithContext0.Invoke(CodeContext context) at Microsoft.Scripting.ScriptCode.Run(CodeContext codeContext, Boolean tryEvaluate) at Microsoft.Scripting.ScriptCode.Run(ScriptModule module) at Microsoft.Scripting.Hosting.CompiledCode.Evaluate(IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteInteractiveCode(String code, IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteCommand(String code, IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteCommand(String code) at RubyFromCSharp.Program.Main(String[] args) in C:\Workspace dotnet\RubyFromCSharp\RubyFromCSharp\Program.cs:line 23 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() I tried to debug this behavior. I set up the ironruby and Microsoft.scripting project in VS2005 as it is described by Judah on http://www.iunknown.com/2007/08/ironruby-on-rub.html. But adding a main to the ironruby project and executing it as a console application gives me the exception below. Why is that? I also recognize that using the Microsoft.Scriptin.dll that is build from VS2005 throws this exception when being used in another project. The same dll compiled with rake works fine. System.IO.FileLoadException was unhandled Message="Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=51c7b9aefdaeb546' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)" Source="ConsoleApplication1" FileName="Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=51c7b9aefdaeb546" FusionLog="" StackTrace: at ConsoleApplication1.Program.Main(String[] args) at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() THIRD ISSUE ============================= I don't know if this is a bug. Using split() with the standard ruby command line is just fine. But using it with rbx throws an error. I also tried the variant with two parameters. Same issue. C:\>irb irb(main):001:0> s = 'hello world' => "hello world" irb(main):002:0> t = s.split(' ') => ["hello", "world"] irb(main):003:0> exit C:\>rbx IronRuby Pre-Alpha (1.0.0.0) on .NET 2.0.50727.42 copyright (c) Microsoft Corporation. All rights reserved. >>> s = 'hello world' => "hello world" >>> t = s.split(' ') System.ArgumentException: wrong number or type of arguments for `split' at _stub_##6(Object[] , DynamicSite`3 , CodeContext , Object , MutableString ) at Microsoft.Scripting.Actions.DynamicSiteTarget`3.Invoke(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.UpdateBindingAndInvoke(CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSiteHelpers.UninitializedTargetHelper`7.Invo ke2(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.Invoke(CodeContext context, T0 arg0, T1 arg1) at ##5(Object[] , CodeContext ) at Microsoft.Scripting.CallTargetWithContext0.Invoke(CodeContext context) at Microsoft.Scripting.ScriptCode.Run(CodeContext codeContext, Boolean tryEvaluate) at Microsoft.Scripting.ScriptCode.Run(ScriptModule module) at Microsoft.Scripting.Hosting.CompiledCode.Evaluate(IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteCommand(String code, IScriptModule module) at Microsoft.Scripting.Shell.CommandLine.RunOneInteraction() at Microsoft.Scripting.Shell.CommandLine.TryInteractiveAction() at Microsoft.Scripting.Shell.CommandLine.RunInteractiveLoop() -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070916/2f5b610c/attachment-0001.html From Tomas.Matousek at microsoft.com Sun Sep 16 18:45:34 2007 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 16 Sep 2007 15:45:34 -0700 Subject: [Ironruby-core] Ruby code from C-Sharp; String.split() with rbx In-Reply-To: <003601c7f848$cd752a10$685f7e30$@huettenrauch@hpi.uni-potsdam.de> References: <003601c7f848$cd752a10$685f7e30$@huettenrauch@hpi.uni-potsdam.de> Message-ID: 1) Currently there is not. What you need is to execute the code against a binding object. This feature should be available as soon as eval is implemented and some refactoring takes place in DLR hosting API. Both are on my TODO list. 2) Our CLR assembly loader is not working right. I think a similar bug has already been filed. It's on my TODO list with high priority. As for the strong name validation error, did you build under External Debug configuration? John should know more about this. 3) The overload taking a separator is not implemented yet. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Sunday, September 16, 2007 3:03 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Ruby code from C-Sharp; String.split() with rbx Hi all, I am playing around with IronRuby for a week now and have 3 questions/issues that I sincerely hope you have some nice comments or solutions for. Thanks for reading. I appreciate it. Cheers, Stefan FIRST ISSUE ============================= I try to call some ruby code from a c# file. My first attempt was this: 1 RubyEngine re = RubyEngine.CurrentEngine; 2 re.ExecuteCommand("s = 'let us get started'"); 3 re.ExecuteCommand("i = s.length"); Problem and question: I think each line is executed as a block, so that the second time I try to use s it is undefined and I get an exception. If s is global it works. Is there a way to tell the RubyEngine to kind of collect Commands and then execute them as one single block? SECOND ISSUE ============================= My second attempt to call ruby code from a c# file was this: 1 RubyEngine re = RubyEngine.CurrentEngine; 2 re.ExecuteCommand("require 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\mscorlib.dll'"); 3 re.ExecuteFileContent("c:\\myRubyFile.rb"); myRubyFile.rb is: 1 require "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\mscorlib.dll" 2 require "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\System.Windows.Forms.dll" 3 sr = System::IO::StreamReader 4 sr = System::IO::File.OpenText("c:\\atlog.txt") ... Problem: Just executing the ruby file is not much of a problem; so calling ruby that in turn calls the CLR works fine. But, if I include line 2 of the c# code above I get the exception below, not telling me which file couldn't be found. Removing line 2 brings me back to a running program. So I think with requiring a dll twice is a problem. Should it be?? Ruby.Builtins.LoadError was unhandled Message="File not found" Source="Ruby" StackTrace: at Ruby.Runtime.Loader.LoadFile(CodeContext context, Object self, String path, LoadFlags flags) at Ruby.Builtins.Kernel.Require(CodeContext context, Object self, String libraryName) at Ruby.Builtins.Kernel.Require(CodeContext context, Object self, MutableString libraryName) at _stub_##8(Object[] , DynamicSite`3 , CodeContext , Object , MutableString ) at Microsoft.Scripting.Actions.DynamicSiteTarget`3.Invoke(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.UpdateBindingAndInvoke(CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSiteHelpers.UninitializedTargetHelper`7.Invoke2(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.Invoke(CodeContext context, T0 arg0, T1 arg1) at ##10(Object[] , CodeContext ) at Microsoft.Scripting.CallTargetWithContext0.Invoke(CodeContext context) at Microsoft.Scripting.ScriptCode.Run(CodeContext codeContext, Boolean tryEvaluate) at Microsoft.Scripting.ScriptCode.Run(ScriptModule module) at Microsoft.Scripting.Hosting.CompiledCode.Evaluate(IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteInteractiveCode(String code, IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteCommand(String code, IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteCommand(String code) at RubyFromCSharp.Program.Main(String[] args) in C:\Workspace dotnet\RubyFromCSharp\RubyFromCSharp\Program.cs:line 23 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() I tried to debug this behavior. I set up the ironruby and Microsoft.scripting project in VS2005 as it is described by Judah on http://www.iunknown.com/2007/08/ironruby-on-rub.html. But adding a main to the ironruby project and executing it as a console application gives me the exception below. Why is that? I also recognize that using the Microsoft.Scriptin.dll that is build from VS2005 throws this exception when being used in another project. The same dll compiled with rake works fine. System.IO.FileLoadException was unhandled Message="Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=51c7b9aefdaeb546' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)" Source="ConsoleApplication1" FileName="Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=51c7b9aefdaeb546" FusionLog="" StackTrace: at ConsoleApplication1.Program.Main(String[] args) at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() THIRD ISSUE ============================= I don't know if this is a bug. Using split() with the standard ruby command line is just fine. But using it with rbx throws an error. I also tried the variant with two parameters. Same issue. C:\>irb irb(main):001:0> s = 'hello world' => "hello world" irb(main):002:0> t = s.split(' ') => ["hello", "world"] irb(main):003:0> exit C:\>rbx IronRuby Pre-Alpha (1.0.0.0) on .NET 2.0.50727.42 copyright (c) Microsoft Corporation. All rights reserved. >>> s = 'hello world' => "hello world" >>> t = s.split(' ') System.ArgumentException: wrong number or type of arguments for `split' at _stub_##6(Object[] , DynamicSite`3 , CodeContext , Object , MutableString ) at Microsoft.Scripting.Actions.DynamicSiteTarget`3.Invoke(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.UpdateBindingAndInvoke(CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSiteHelpers.UninitializedTargetHelper`7.Invoke2(DynamicSite`3 site, CodeContext context, T0 arg0, T1 arg1) at Microsoft.Scripting.Actions.DynamicSite`3.Invoke(CodeContext context, T0 arg0, T1 arg1) at ##5(Object[] , CodeContext ) at Microsoft.Scripting.CallTargetWithContext0.Invoke(CodeContext context) at Microsoft.Scripting.ScriptCode.Run(CodeContext codeContext, Boolean tryEvaluate) at Microsoft.Scripting.ScriptCode.Run(ScriptModule module) at Microsoft.Scripting.Hosting.CompiledCode.Evaluate(IScriptModule module) at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteCommand(String code, IScriptModule module) at Microsoft.Scripting.Shell.CommandLine.RunOneInteraction() at Microsoft.Scripting.Shell.CommandLine.TryInteractiveAction() at Microsoft.Scripting.Shell.CommandLine.RunInteractiveLoop() -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070916/f3e1d01d/attachment-0001.html From jflam at microsoft.com Mon Sep 17 12:22:36 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Mon, 17 Sep 2007 09:22:36 -0700 Subject: [Ironruby-core] zlib implementation In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D2651D22@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D26EBEBC@NA-EXMSG-C115.redmond.corp.microsoft.com> > From: M. David Peterson [mailto:m.david at xmlhacker.com] > Sent: Saturday, September 15, 2007 8:58 PM > To: John Lam (DLR); Eric Nicholson; ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] zlib implementation > > Just noticed that the system.dll assembly in Silverlight provides > support for the System.Net.DecompressionMethods enumeration ... > > > > anybody at MSFT care to take on his fortune telling responsibilities? I've been talking to Kim offline and it seems like compression will be added into Silverlight via an extension. However, since the extension model still hasn't been baked, we're going to have to wait a while to figure out exactly *how* this stuff will all hang together. It seems safe to take a dependency on it though - worst case we can build a thunk that lets us swap out one implementation for the final implementation. -John From jflam at microsoft.com Mon Sep 17 12:32:31 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Mon, 17 Sep 2007 09:32:31 -0700 Subject: [Ironruby-core] Contributor agreements are ready Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D26EBEE3@NA-EXMSG-C115.redmond.corp.microsoft.com> I'm happy to announce that we now have contributor agreements available for folks who would like to contribute code to IronRuby. The process is pretty straightforward - send an email to ssiadmin at microsoft.com and request to be added as a contributor to the IronRuby project. The actual signature process is handled through an online electronic signature tool. No trees will be harmed. Once you've signed the agreement we'll be able to review your code for inclusion in IronRuby. Thanks for your help! -John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070917/9ac7afb9/attachment.html From enicholson at gmail.com Mon Sep 17 15:46:07 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Mon, 17 Sep 2007 15:46:07 -0400 Subject: [Ironruby-core] zlib implementation In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D26EBEBC@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D2651CC1@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D2651D22@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D26EBEBC@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Thanks for the head's up! So I guess the approach is to build off of System.IO.Compression for everything possible and recode the rest from scratch. Erring on the side of compatibility with MRI (Matz's Ruby Interpreter... I had to look it up). I've started building some test cases against MRI Zlib with the thinking that they could eventually test out whatever IR implementation gets created. If anyone wants to take a look, I'll try to make a little more progress tonight and then I'll be happy to share. -Eric On 9/17/07, John Lam (DLR) wrote: > > > From: M. David Peterson [mailto:m.david at xmlhacker.com] > > Sent: Saturday, September 15, 2007 8:58 PM > > To: John Lam (DLR); Eric Nicholson; ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] zlib implementation > > > > Just noticed that the system.dll assembly in Silverlight provides > > support for the System.Net.DecompressionMethods enumeration ... > > > > > > > > anybody at MSFT care to take on his fortune telling responsibilities? > > I've been talking to Kim offline and it seems like compression will be > added into Silverlight via an extension. However, since the extension model > still hasn't been baked, we're going to have to wait a while to figure out > exactly *how* this stuff will all hang together. > > It seems safe to take a dependency on it though - worst case we can build > a thunk that lets us swap out one implementation for the final > implementation. > > -John > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070917/5215aa9e/attachment.html From enicholson at gmail.com Mon Sep 17 17:16:48 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Mon, 17 Sep 2007 17:16:48 -0400 Subject: [Ironruby-core] Contributor agreements are ready In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D26EBEE3@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D26EBEE3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Great! I can attest that it's pretty painless too. Except that newborn clause... ;) Anyways, once that we've signed the agreement, how do we approach external but related code? IronRuby is surrounded by directly & indirectly related open source projects (Matz's Ruby, jRuby, numerous libraries, etc). Do we need to avoid all of that code entirely for risk of patent & copyright contamination? Is it OK to peek at how they solved the same problems? Can we use the same algorithms? Obviously lifting code is inappropriate on many levels, but pretending we're solving problems for the first time seems a little backwards too. -Eric On 9/17/07, John Lam (DLR) wrote: > > I'm happy to announce that we now have contributor agreements available > for folks who would like to contribute code to IronRuby. The process is > pretty straightforward ? send an email to ssiadmin at microsoft.com and > request to be added as a contributor to the IronRuby project. > > > > The actual signature process is handled through an online electronic > signature tool. No trees will be harmed. Once you've signed the agreement > we'll be able to review your code for inclusion in IronRuby. > > > > Thanks for your help! > > -John > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070917/a9d6b2b4/attachment.html From jb at nurv.fr Mon Sep 17 18:24:44 2007 From: jb at nurv.fr (Jb Evain) Date: Tue, 18 Sep 2007 00:24:44 +0200 Subject: [Ironruby-core] svn pollution Message-ID: <69f7d8470709171524h50c654b1i8437a3f71a9243b3@mail.gmail.com> Hey, Now that I've signed the agreement and that I'm the mood for sending a couple of patches, I'd like first to get a clean SVN status to work on :) In my local copy, I've svn:ignored every folder/files that is generated by VS: bin Debug Release FxCop obj *.user *.suo (there's an annoying one that should be deleted prior to be ignored in the root folder). That should help us to create nice patches for review :) Thanks, -- Jb Evain From stefan.huettenrauch at hpi.uni-potsdam.de Tue Sep 18 09:19:33 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Tue, 18 Sep 2007 15:19:33 +0200 Subject: [Ironruby-core] Present and Future of IronRuby In-Reply-To: References: <003601c7f848$cd752a10$685f7e30$@huettenrauch@hpi.uni-potsdam.de> Message-ID: <000501c7f9f6$8d700bb0$a8502310$@huettenrauch@hpi.uni-potsdam.de> Hi, following up on this forum post (http://rubyforge.org/forum/forum.php?thread_id=17543&forum_id=17159) : I recognized that a few things I tried to use in IronRuby ar not yet fully supported (e.g., rand, File, Time). Is there a list available what is not working or what is working right now? And is there maybe kind of a schedule available when the community can expect what to be supported? That would be of much help. Otherwise I am thinking about a script converter for now, converting normal ruby scripts to IronRuby. Thanks Cheers Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070918/a7972179/attachment-0001.html From jflam at microsoft.com Tue Sep 18 12:04:26 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Tue, 18 Sep 2007 09:04:26 -0700 Subject: [Ironruby-core] Contributor agreements are ready In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D26EBEE3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D26EC547@NA-EXMSG-C115.redmond.corp.microsoft.com> > From: Eric Nicholson > Sent: Monday, September 17, 2007 2:17 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Contributor agreements are ready > > Great! I can attest that it's pretty painless too. Except that > newborn clause... ;) Wasn't that newborn clause printed with a white font??? :) > Anyways, once that we've signed the agreement, how do we > approach external but related code? IronRuby is surrounded > by directly & indirectly related open source projects > (Matz's Ruby, jRuby, numerous libraries, etc). Do we need > to avoid all of that code entirely for risk of patent & copyright > contamination? Is it OK to peek at how they solved the same > problems? Can we use the same algorithms? I think you should be fine looking at whatever code that you feel like looking at, since you aren't a Microsoft employee :) But just make sure that you have the rights to do copyright assignment on your contributions. Thanks, -John From jomes at microsoft.com Tue Sep 18 13:59:36 2007 From: jomes at microsoft.com (John Messerly) Date: Tue, 18 Sep 2007 10:59:36 -0700 Subject: [Ironruby-core] Present and Future of IronRuby In-Reply-To: <000501c7f9f6$8d700bb0$a8502310$@huettenrauch@hpi.uni-potsdam.de> References: <003601c7f848$cd752a10$685f7e30$@huettenrauch@hpi.uni-potsdam.de> <000501c7f9f6$8d700bb0$a8502310$@huettenrauch@hpi.uni-potsdam.de> Message-ID: <918705E903F4714CB713D89AB5F1857D712F9D4149@NA-EXMSG-C116.redmond.corp.microsoft.com> Hi Stefan, The easiest way to see this is to look in the IronRuby sources under the Builtins folder. There are a lot of things implemented to varying degrees of completeness. The classes we focused on so far are Array, Hash, Enumerable, Comparable, and Dir, plus a large part of String. A lot of other stuff was filled in as needed to test those classes (e.g. Range implements "each" so all of the Enumerable methods should work on ranges). File IO is pretty high on the list of things to implement next. Time is also up there because it's used by File :). I'm not sure where we'll go after that... our Fearless Leader (John Lam) might have some insight. Cheers, John M. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Tuesday, September 18, 2007 6:20 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Present and Future of IronRuby Hi, following up on this forum post (http://rubyforge.org/forum/forum.php?thread_id=17543&forum_id=17159) : I recognized that a few things I tried to use in IronRuby ar not yet fully supported (e.g., rand, File, Time). Is there a list available what is not working or what is working right now? And is there maybe kind of a schedule available when the community can expect what to be supported? That would be of much help. Otherwise I am thinking about a script converter for now, converting normal ruby scripts to IronRuby. Thanks Cheers Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070918/2dcf6627/attachment.html From jflam at microsoft.com Tue Sep 18 15:09:49 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Tue, 18 Sep 2007 12:09:49 -0700 Subject: [Ironruby-core] Quick agenda for 1pm in 6741 Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D26EC77B@NA-EXMSG-C115.redmond.corp.microsoft.com> A. Discuss next steps in IronRuby implementation: 1. Scanner rewrite (to enable debugging support) 2. Generics implementation (how to prioritize work given demo scenarios) Demo scenarios: 1. Robotics Studio: Several different generic methods in first tutorial: DssEnvironment.ServiceForwarder[bumper.ContactSensorArrayOperations](uri) Arbiter.Receive(params) Arbiter.Choice(params) 2. WPF/SPF: Minimal use of generics - typically only generic types. From DLR Console: pg = wpf.Polygoin() pg.Points = System.Array[wpf.Point](pts) Generic method: pg.SetValue[int](params) From jflam at microsoft.com Tue Sep 18 15:12:35 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Tue, 18 Sep 2007 12:12:35 -0700 Subject: [Ironruby-core] Quick agenda for 1pm in 6741 In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D26EC77B@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D26EC77B@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D26EC782@NA-EXMSG-C115.redmond.corp.microsoft.com> Whoops ... wrong alias! > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of John Lam (DLR) > Sent: Tuesday, September 18, 2007 12:10 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Quick agenda for 1pm in 6741 > > A. Discuss next steps in IronRuby implementation: > > 1. Scanner rewrite (to enable debugging support) > 2. Generics implementation (how to prioritize work given demo > scenarios) > > > Demo scenarios: > > 1. Robotics Studio: > > Several different generic methods in first tutorial: > > DssEnvironment.ServiceForwarder[bumper.ContactSensorArrayOperations](ur > i) > Arbiter.Receive(params) > Arbiter.Choice(params) > > 2. WPF/SPF: > > Minimal use of generics - typically only generic types. From DLR > Console: > > pg = wpf.Polygoin() > pg.Points = System.Array[wpf.Point](pts) > > Generic method: > > pg.SetValue[int](params) > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From ateare at rogers.com Tue Sep 18 22:27:57 2007 From: ateare at rogers.com (Andrew Teare) Date: Tue, 18 Sep 2007 22:27:57 -0400 Subject: [Ironruby-core] Problem running "rake compile" Message-ID: <000401c7fa64$b0f5f090$6401a8c0@PCHP> Great progress on IronRuby! I wanted to give it a try and followed the "getting started" video. I got as far as the "rake compile", which stopped with the error "undefined method `exitstatus' for nil:NilClas" (the trace is below). I took a quick look and couldn't see anything obvious. Am I missing something? Thanks, Andrew Teare PS: Is the video supposed to have sound? Here's the trace: C:\SVN\trunk>rake compile --trace (in C:/SVN/trunk) ** Invoke compile (first_time) ** Invoke clean_build (first_time) ** Execute clean_build rm -rf C:\SVN\trunk\release mkdir -p C:\SVN\trunk\release ** Invoke compile_dlr (first_time) ** Execute compile_dlr resgen "C:\SVN\trunk\src\microsoft.scripting\Math\MathResources.resx" "C:\SVN\trunk\release\Microsoft.Scripting.Math.Mat hResources.resources" rake aborted! undefined method `exitstatus' for nil:NilClass c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:719:in `sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:726:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:726:in `sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:805:in `sh' C:/SVN/trunk/rakefile:152:in `resgen' C:/SVN/trunk/rakefile:152:in `each_pair' C:/SVN/trunk/rakefile:152:in `resgen' C:/SVN/trunk/rakefile:164:in `compile' C:/SVN/trunk/rakefile:172:in `compile_all' C:/SVN/trunk/rakefile:227 c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke' c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in `invoke_prerequisites' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in `invoke_prerequisites' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke' c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 c:/ruby/bin/rake.bat:25:in `load' c:/ruby/bin/rake.bat:25 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070918/c23346f7/attachment-0001.html From shannoncornish at gmail.com Tue Sep 18 23:07:59 2007 From: shannoncornish at gmail.com (Shannon Cornish) Date: Wed, 19 Sep 2007 13:07:59 +1000 Subject: [Ironruby-core] Problem running "rake compile" In-Reply-To: <000401c7fa64$b0f5f090$6401a8c0@PCHP> References: <000401c7fa64$b0f5f090$6401a8c0@PCHP> Message-ID: <75f48f5c0709182007r9f763cama867b45fa7bfe1fd@mail.gmail.com> Hi Andrew, Try running the command using the Visual Studio 2005 Command Prompt shortcut. HTH, Shannon On 9/19/07, Andrew Teare wrote: > > Great progress on IronRuby! I wanted to give it a try and followed the > "getting started" video. I got as far as the "rake compile", which stopped > with the error "undefined method `exitstatus' for nil:NilClas" (the trace is > below). I took a quick look and couldn't see anything obvious. Am I > missing something? > > > > Thanks, > > Andrew Teare > > > > PS: Is the video supposed to have sound? > > > > Here's the trace: > > C:\SVN\trunk>rake compile --trace > > (in C:/SVN/trunk) > > ** Invoke compile (first_time) > > ** Invoke clean_build (first_time) > > ** Execute clean_build > > rm -rf C:\SVN\trunk\release > > mkdir -p C:\SVN\trunk\release > > ** Invoke compile_dlr (first_time) > > ** Execute compile_dlr > > resgen "C:\SVN\trunk\src\microsoft.scripting\Math\MathResources.resx" > "C:\SVN\trunk\release\Microsoft.Scripting.Math.Mat > > hResources.resources" > > rake aborted! > > undefined method `exitstatus' for nil:NilClass > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:719:in `sh' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:726:in `call' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:726:in `sh' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:805:in `sh' > > C:/SVN/trunk/rakefile:152:in `resgen' > > C:/SVN/trunk/rakefile:152:in `each_pair' > > C:/SVN/trunk/rakefile:152:in `resgen' > > C:/SVN/trunk/rakefile:164:in `compile' > > C:/SVN/trunk/rakefile:172:in `compile_all' > > C:/SVN/trunk/rakefile:227 > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke' > > c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in > `invoke_prerequisites' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in > `invoke_prerequisites' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke' > > c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in > `standard_exception_handling' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in > `standard_exception_handling' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run' > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 > > c:/ruby/bin/rake.bat:25:in `load' > > c:/ruby/bin/rake.bat:25 > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070919/ba48e883/attachment.html From olivier.duff at gmail.com Fri Sep 21 06:18:31 2007 From: olivier.duff at gmail.com (olivier dufour) Date: Fri, 21 Sep 2007 12:18:31 +0200 Subject: [Ironruby-core] ruby implementation and Jscript implementation. Message-ID: Hi, 1) I am working on the mono jscript compiler as open source developer (not from novell team) and I reference the MS.Scripting.dll in my project but the MS.Scripting does not succeed to call the mscorlib.dll 2.1 whereas I copy the dll of silverlight in the folder of my compiler ;(. The exception thrown is : ReferenceError: Methode not found : System.reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName, System.Reflection.Emit.assemblyBuilderAccess, Boolean). Why the MS.Scripting.dll from silverlight can not detect the assembly of mscorlib.dll v2.1 of silverlight? Is it because it found the mscorlib v2.0 of the GAC or because it is compile by csc of v2.0 wheras must be compiled byt csc 2.1 which is not public? 2) I like the ruby and want to help on it implementation. I know that I have to sign the contributor agreements. But before doing anything, I want to know the TODO and task list where I can help. Is there any wiki webpage or trac to manage task and todo? Because a lot of things must have go ahead since the first blog post. Thanks for any answer, bye, olivier dufour -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070921/526e7f92/attachment.html From slavof at gmail.com Fri Sep 21 07:01:42 2007 From: slavof at gmail.com (Slavo Furman) Date: Fri, 21 Sep 2007 13:01:42 +0200 Subject: [Ironruby-core] ruby implementation and Jscript implementation. In-Reply-To: References: Message-ID: <24e27e560709210401s39b6983cp1440ef3d2f8103c3@mail.gmail.com> Hello! Just idea. It would be great if there will be a "progress-indication" web page for IronRuby. You know, a single web page with some colored table where lines will be a implementation's areas on which work is on or on which work is planned. There may be also sub-areas. Columns would be "area name", "coordinator/responsible person for area", "contact in MS-team", "status" (like "planning", "implementation", "complete", ...), "link to page with details" (if there's one), and (most important - "progress" - how much is done - like 60%), "to what version/build these actual data refers on". There was something like this in early Mono times when they worked on implementation of .NET Framework libraries. As I said, it would be great if one can go to single page and see in instant on what areas people working, where help is needed, what is already complete, etc. thanks, Slavo. On 9/21/07, olivier dufour wrote: > > ... > 2) I like the ruby and want to help on it implementation. > I know that I have to sign the contributor agreements. > But before doing anything, I want to know the TODO and task list where I > can help. Is there any wiki webpage or trac to manage task and todo? Because > a lot of things must have go ahead since the first blog post. > > Thanks for any answer, > bye, > > olivier dufour > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070921/75b3b618/attachment.html From jflam at microsoft.com Fri Sep 21 12:15:18 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Fri, 21 Sep 2007 09:15:18 -0700 Subject: [Ironruby-core] ruby implementation and Jscript implementation. In-Reply-To: <24e27e560709210401s39b6983cp1440ef3d2f8103c3@mail.gmail.com> References: <24e27e560709210401s39b6983cp1440ef3d2f8103c3@mail.gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2830D62@NA-EXMSG-C115.redmond.corp.microsoft.com> > You know, a single web page with some colored table where lines will > be a implementation's areas on which work is on or on which work is > planned. There may be also sub-areas. Columns would be "area name", > "coordinator/responsible person for area", "contact in MS-team", > "status" (like "planning", "implementation", "complete", ...), "link > to page with details" (if there's one), and (most important - > "progress" - how much is done - like 60%), "to what version/build > these actual data refers on". Great suggestion, Slavo. I'll add it to the list of things that I'll be working on next week. -John From jflam at microsoft.com Fri Sep 21 12:17:44 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Fri, 21 Sep 2007 09:17:44 -0700 Subject: [Ironruby-core] ruby implementation and Jscript implementation. In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D2830D67@NA-EXMSG-C115.redmond.corp.microsoft.com> Hi Olivier, > 1) I am working on the mono jscript compiler as open source developer > (not from novell team) and I reference the MS.Scripting.dll in my > project but the MS.Scripting does not succeed to call the mscorlib.dll > 2.1 whereas I copy the dll of silverlight in the folder of my compiler > ;(. I'll let John Messerly chime in about the Silverlight issues. > But before doing anything, I want to know the TODO and task list where > I can help. Is there any wiki webpage or trac to manage task and todo? On it. :) Thanks! -John From jomes at microsoft.com Fri Sep 21 15:51:24 2007 From: jomes at microsoft.com (John Messerly) Date: Fri, 21 Sep 2007 12:51:24 -0700 Subject: [Ironruby-core] ruby implementation and Jscript implementation. In-Reply-To: References: Message-ID: <918705E903F4714CB713D89AB5F1857D712FCC8434@NA-EXMSG-C116.redmond.corp.microsoft.com> Hi Olivier, >From the error message it does appear to that your project is referencing the 2.0 version of mscorlib, because that overload of DefineDynamicAssembly is only present in the Silverlight version of mscorlib. (A good way to see what assemblies are being referenced is to look at the command line that is being passed to csc). If you're building this in Visual Studio, you'll want to create another project configuration (or two) for Silverlight builds, and then in that configuration check "don't automatically reference mscorlib" (under Project > Properties... > Build > Advanced...). Then add a reference to the Silverlight version of mscorlib and System. If you're using something else to build, you'll have to set whatever option excludes the automatic mscorlib reference, and adds correct reference paths. Whatever route you take, it should ultimately turn into these compiler flags: csc.exe /nostdlib+ /reference:..\..\Program Files\Microsoft Silverlight\mscorlib.dll /reference:..\..\Program Files\Microsoft Silverlight\System.dll ... (where your reference path might be slightly different depending on where your project is and where you put the Silverlight versions of mscorlib and System) Another point worth mentioning, the version of mscorlib.dll & System.dll in Silverlight are still under development. The last source snapshot of Microsoft.Scripting (DLR) that was fully in sync with the Alpha Refresh release of Silverlight is the 2.0 alpha 1 release, here: http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=438. If you're using a more recent version of the DLR, you might run into incompatibilities building against Silverlight. As both DLR and Silverlight stabilize we expect greater compatibility between releases. Cheers, John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of olivier dufour Sent: Friday, September 21, 2007 3:19 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] ruby implementation and Jscript implementation. Hi, 1) I am working on the mono jscript compiler as open source developer (not from novell team) and I reference the MS.Scripting.dll in my project but the MS.Scripting does not succeed to call the mscorlib.dll 2.1 whereas I copy the dll of silverlight in the folder of my compiler ;(. The exception thrown is : ReferenceError: Methode not found : System.reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName, System.Reflection.Emit.assemblyBuilderAccess , Boolean). Why the MS.Scripting.dll from silverlight can not detect the assembly of mscorlib.dll v2.1 of silverlight? Is it because it found the mscorlib v2.0 of the GAC or because it is compile by csc of v2.0 wheras must be compiled byt csc 2.1 which is not public? 2) I like the ruby and want to help on it implementation. I know that I have to sign the contributor agreements. But before doing anything, I want to know the TODO and task list where I can help. Is there any wiki webpage or trac to manage task and todo? Because a lot of things must have go ahead since the first blog post. Thanks for any answer, bye, olivier dufour -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070921/8eda0ed4/attachment.html From ateare at rogers.com Sat Sep 22 00:23:01 2007 From: ateare at rogers.com (Andrew Teare) Date: Sat, 22 Sep 2007 00:23:01 -0400 Subject: [Ironruby-core] Problem running "rake compile" In-Reply-To: <75f48f5c0709182007r9f763cama867b45fa7bfe1fd@mail.gmail.com> References: <000401c7fa64$b0f5f090$6401a8c0@PCHP> <75f48f5c0709182007r9f763cama867b45fa7bfe1fd@mail.gmail.com> Message-ID: <000001c7fcd0$439f29d0$6401a8c0@PCHP> I was using that, so I double checked and the path is not setup properly. Turns out that .net 2.0 is not present either after I re-installed Windows a few days ago. Thanks for the advice. I'll let you know if I have any problems once I get my PC setup properly. Andrew _____ From: Shannon Cornish [mailto:shannoncornish at gmail.com] Sent: Tuesday, September 18, 2007 11:08 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem running "rake compile" Hi Andrew, Try running the command using the Visual Studio 2005 Command Prompt shortcut. HTH, Shannon On 9/19/07, Andrew Teare < ateare at rogers.com > wrote: Great progress on IronRuby! I wanted to give it a try and followed the "getting started" video. I got as far as the "rake compile", which stopped with the error "undefined method `exitstatus' for nil:NilClas" (the trace is below). I took a quick look and couldn't see anything obvious. Am I missing something? Thanks, Andrew Teare PS: Is the video supposed to have sound? Here's the trace: C:\SVN\trunk>rake compile --trace (in C:/SVN/trunk) ** Invoke compile (first_time) ** Invoke clean_build (first_time) ** Execute clean_build rm -rf C:\SVN\trunk\release mkdir -p C:\SVN\trunk\release ** Invoke compile_dlr (first_time) ** Execute compile_dlr resgen "C:\SVN\trunk\src\microsoft.scripting\Math\MathResources.resx" "C:\SVN\trunk\release\Microsoft.Scripting.Math.Mat hResources.resources" rake aborted! undefined method `exitstatus' for nil:NilClass c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:719:in `sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:726:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:726:in `sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:805:in `sh' C:/SVN/trunk/rakefile:152:in `resgen' C:/SVN/trunk/rakefile:152:in `each_pair' C:/SVN/trunk/rakefile:152:in `resgen' C:/SVN/trunk/rakefile:164:in `compile' C:/SVN/trunk/rakefile:172:in `compile_all' C:/SVN/trunk/rakefile:227 c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke' c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in `invoke_prerequisites' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in `invoke_prerequisites' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke' c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 c:/ruby/bin/rake.bat:25:in `load' c:/ruby/bin/rake.bat:25 _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070922/f4997e9f/attachment-0001.html From olivier.duff at gmail.com Sun Sep 23 14:11:01 2007 From: olivier.duff at gmail.com (olivier dufour) Date: Sun, 23 Sep 2007 20:11:01 +0200 Subject: [Ironruby-core] ruby implementation and Jscript implementation. In-Reply-To: <918705E903F4714CB713D89AB5F1857D712FCC8434@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <918705E903F4714CB713D89AB5F1857D712FCC8434@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Hi, In fact, I have ever the good reference and nostdlib as you can see on my VS log. I will try to use the cecil lib (reflection lib) to add some alert and check what lib is call. Anyway thanks for your answer. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;NET_2_1;SILVERLIGHT /reference:"C:\Program Files\Microsoft Silverlight\Microsoft.JScript.Runtime.dll" /reference:bin\Release\Microsoft.Scripting.dll /reference:"C:\Program Files\Microsoft Silverlight\Microsoft.Scripting.Vestigial.dll" /reference:"C:\Program Files\Microsoft Silverlight\mscorlib.dll" /reference:"C:\Program Files\Microsoft Silverlight\system.dll" /debug:pdbonly /optimize+ /out:obj\Release\Microsoft.JScript.Compiler.dll /target:library many thanks, Olivier 2007/9/21, John Messerly : > > Hi Olivier, > > > > From the error message it does appear to that your project is referencing > the 2.0 version of mscorlib, because that overload of > DefineDynamicAssembly is only present in the Silverlight version of > mscorlib. (A good way to see what assemblies are being referenced is to look > at the command line that is being passed to csc). > > > > If you're building this in Visual Studio, you'll want to create another > project configuration (or two) for Silverlight builds, and then in that > configuration check "don't automatically reference mscorlib" (under Project > > Properties? > Build > Advanced?). Then add a reference to the Silverlight > version of mscorlib and System. If you're using something else to build, > you'll have to set whatever option excludes the automatic mscorlib > reference, and adds correct reference paths. Whatever route you take, it > should ultimately turn into these compiler flags: > > > > csc.exe /nostdlib+ /reference:..\..\Program Files\Microsoft > Silverlight\mscorlib.dll /reference:..\..\Program Files\Microsoft > Silverlight\System.dll ? > > (where your reference path might be slightly different depending on where > your project is and where you put the Silverlight versions of mscorlib and > System) > > > > Another point worth mentioning, the version of mscorlib.dll & System.dllin Silverlight are still under development. The last source snapshot of > Microsoft.Scripting (DLR) that was fully in sync with the Alpha Refresh > release of Silverlight is the 2.0 alpha 1 release, here: > http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=438. > If you're using a more recent version of the DLR, you might run into > incompatibilities building against Silverlight. As both DLR and Silverlight > stabilize we expect greater compatibility between releases. > > > > Cheers, > > John > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *olivier dufour > *Sent:* Friday, September 21, 2007 3:19 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] ruby implementation and Jscript implementation. > > > > Hi, > > 1) I am working on the mono jscript compiler as open source developer (not > from novell team) and I reference the MS.Scripting.dll in my project but > the MS.Scripting does not succeed to call the mscorlib.dll 2.1 whereas I > copy the dll of silverlight in the folder of my compiler ;(. > > The exception thrown is : > ReferenceError: Methode not found : System.reflection.Emit.AssemblyBuilder > System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName, > System.Reflection.Emit.assemblyBuilderAccess , Boolean). > > Why the MS.Scripting.dll from silverlight can not detect the assembly of > mscorlib.dll v2.1 of silverlight? > Is it because it found the mscorlib v2.0 of the GAC or because it is > compile by csc of v2.0 wheras must be compiled byt csc 2.1 which is not > public? > > 2) I like the ruby and want to help on it implementation. > I know that I have to sign the contributor agreements. > But before doing anything, I want to know the TODO and task list where I > can help. Is there any wiki webpage or trac to manage task and todo? Because > a lot of things must have go ahead since the first blog post. > > Thanks for any answer, > bye, > > olivier dufour > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070923/e0c3dc01/attachment.html From jomes at microsoft.com Sun Sep 23 17:21:40 2007 From: jomes at microsoft.com (John Messerly) Date: Sun, 23 Sep 2007 14:21:40 -0700 Subject: [Ironruby-core] ruby implementation and Jscript implementation. In-Reply-To: References: <918705E903F4714CB713D89AB5F1857D712FCC8434@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <918705E903F4714CB713D89AB5F1857D712FCC8651@NA-EXMSG-C116.redmond.corp.microsoft.com> Yeah, using some tool to trace assembly loading is probably the right approach. How are you running your javascript engine? Is it through the browser, or from the command line? AFAIK, Silverlight assemblies aren't found unless you are running inside the browser. That might be the problem you're seeing. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of olivier dufour Sent: Sunday, September 23, 2007 11:11 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] ruby implementation and Jscript implementation. Hi, In fact, I have ever the good reference and nostdlib as you can see on my VS log. I will try to use the cecil lib (reflection lib) to add some alert and check what lib is call. Anyway thanks for your answer. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;NET_2_1;SILVERLIGHT /reference:"C:\Program Files\Microsoft Silverlight\Microsoft.JScript.Runtime.dll" /reference:bin\Release\Microsoft.Scripting.dll /reference:"C:\Program Files\Microsoft Silverlight\Microsoft.Scripting.Vestigial.dll" /reference:"C:\Program Files\Microsoft Silverlight\mscorlib.dll" /reference:"C:\Program Files\Microsoft Silverlight\system.dll" /debug:pdbonly /optimize+ /out:obj\Release\Microsoft.JScript.Compiler.dll /target:library many thanks, Olivier 2007/9/21, John Messerly >: Hi Olivier, >From the error message it does appear to that your project is referencing the 2.0 version of mscorlib, because that overload of DefineDynamicAssembly is only present in the Silverlight version of mscorlib. (A good way to see what assemblies are being referenced is to look at the command line that is being passed to csc). If you're building this in Visual Studio, you'll want to create another project configuration (or two) for Silverlight builds, and then in that configuration check "don't automatically reference mscorlib" (under Project > Properties... > Build > Advanced...). Then add a reference to the Silverlight version of mscorlib and System. If you're using something else to build, you'll have to set whatever option excludes the automatic mscorlib reference, and adds correct reference paths. Whatever route you take, it should ultimately turn into these compiler flags: csc.exe /nostdlib+ /reference:..\..\Program Files\Microsoft Silverlight\mscorlib.dll /reference:..\..\Program Files\Microsoft Silverlight\System.dll ... (where your reference path might be slightly different depending on where your project is and where you put the Silverlight versions of mscorlib and System) Another point worth mentioning, the version of mscorlib.dll & System.dll in Silverlight are still under development. The last source snapshot of Microsoft.Scripting (DLR) that was fully in sync with the Alpha Refresh release of Silverlight is the 2.0 alpha 1 release, here: http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=438 . If you're using a more recent version of the DLR, you might run into incompatibilities building against Silverlight. As both DLR and Silverlight stabilize we expect greater compatibility between releases. Cheers, John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of olivier dufour Sent: Friday, September 21, 2007 3:19 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] ruby implementation and Jscript implementation. Hi, 1) I am working on the mono jscript compiler as open source developer (not from novell team) and I reference the MS.Scripting.dll in my project but the MS.Scripting does not succeed to call the mscorlib.dll 2.1 whereas I copy the dll of silverlight in the folder of my compiler ;(. The exception thrown is : ReferenceError: Methode not found : System.reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName, System.Reflection.Emit.assemblyBuilderAccess , Boolean). Why the MS.Scripting.dll from silverlight can not detect the assembly of mscorlib.dll v2.1 of silverlight? Is it because it found the mscorlib v2.0 of the GAC or because it is compile by csc of v2.0 wheras must be compiled byt csc 2.1 which is not public? 2) I like the ruby and want to help on it implementation. I know that I have to sign the contributor agreements. But before doing anything, I want to know the TODO and task list where I can help. Is there any wiki webpage or trac to manage task and todo? Because a lot of things must have go ahead since the first blog post. Thanks for any answer, bye, olivier dufour _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070923/7888300c/attachment-0001.html From olivier.duff at gmail.com Mon Sep 24 01:31:04 2007 From: olivier.duff at gmail.com (olivier dufour) Date: Mon, 24 Sep 2007 07:31:04 +0200 Subject: [Ironruby-core] ruby implementation and Jscript implementation. In-Reply-To: <918705E903F4714CB713D89AB5F1857D712FCC8651@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <918705E903F4714CB713D89AB5F1857D712FCC8434@NA-EXMSG-C116.redmond.corp.microsoft.com> <918705E903F4714CB713D89AB5F1857D712FCC8651@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: OK, you have point my issue! I run it with a consoleHost. I have copy all assembly of silverlight.(unless MS.Jscript.Compiler) I think I will try to use browser or MS.Scripting of ironRuby with some custom add. cheers, Olivier 2007/9/23, John Messerly : > > Yeah, using some tool to trace assembly loading is probably the right > approach. > > > > How are you running your javascript engine? Is it through the browser, or > from the command line? AFAIK, Silverlight assemblies aren't found unless you > are running inside the browser. That might be the problem you're seeing. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *olivier dufour > *Sent:* Sunday, September 23, 2007 11:11 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] ruby implementation and Jscript > implementation. > > > > Hi, > > In fact, I have ever the good reference and nostdlib as you can see on my > VS log. > I will try to use the cecil lib (reflection lib) to add some alert and > check what lib is call. > Anyway thanks for your answer. > > > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig > /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 > /define:TRACE;NET_2_1;SILVERLIGHT /reference:"C:\Program Files\Microsoft > Silverlight\Microsoft.JScript.Runtime.dll" > /reference:bin\Release\Microsoft.Scripting.dll /reference:"C:\Program > Files\Microsoft Silverlight\Microsoft.Scripting.Vestigial.dll" > /reference:"C:\Program Files\Microsoft Silverlight\mscorlib.dll" > /reference:"C:\Program Files\Microsoft Silverlight\system.dll" > /debug:pdbonly /optimize+ /out:obj\Release\Microsoft.JScript.Compiler.dll > /target:library > > many thanks, > Olivier > > 2007/9/21, John Messerly : > > Hi Olivier, > > > > From the error message it does appear to that your project is referencing > the 2.0 version of mscorlib, because that overload of > DefineDynamicAssembly is only present in the Silverlight version of > mscorlib. (A good way to see what assemblies are being referenced is to look > at the command line that is being passed to csc). > > > > If you're building this in Visual Studio, you'll want to create another > project configuration (or two) for Silverlight builds, and then in that > configuration check "don't automatically reference mscorlib" (under Project > > Properties? > Build > Advanced?). Then add a reference to the Silverlight > version of mscorlib and System. If you're using something else to build, > you'll have to set whatever option excludes the automatic mscorlib > reference, and adds correct reference paths. Whatever route you take, it > should ultimately turn into these compiler flags: > > > > csc.exe /nostdlib+ /reference:..\..\Program Files\Microsoft > Silverlight\mscorlib.dll /reference:..\..\Program Files\Microsoft > Silverlight\System.dll ? > > (where your reference path might be slightly different depending on where > your project is and where you put the Silverlight versions of mscorlib and > System) > > > > Another point worth mentioning, the version of mscorlib.dll & System.dllin Silverlight are still under development. The last source snapshot of > Microsoft.Scripting (DLR) that was fully in sync with the Alpha Refresh > release of Silverlight is the 2.0 alpha 1 release, here: http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=438 > . If you're using a more recent version of the DLR, you might run into > incompatibilities building against Silverlight. As both DLR and Silverlight > stabilize we expect greater compatibility between releases. > > > > Cheers, > > John > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *olivier dufour > *Sent:* Friday, September 21, 2007 3:19 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] ruby implementation and Jscript implementation. > > > > Hi, > > 1) I am working on the mono jscript compiler as open source developer (not > from novell team) and I reference the MS.Scripting.dll in my project but > the MS.Scripting does not succeed to call the mscorlib.dll 2.1 whereas I > copy the dll of silverlight in the folder of my compiler ;(. > > The exception thrown is : > ReferenceError: Methode not found : System.reflection.Emit.AssemblyBuilder > System.AppDomain.DefineDynamicAssembly (System.Reflection.AssemblyName, > System.Reflection.Emit.assemblyBuilderAccess , Boolean). > > Why the MS.Scripting.dll from silverlight can not detect the assembly of > mscorlib.dll v2.1 of silverlight? > Is it because it found the mscorlib v2.0 of the GAC or because it is > compile by csc of v2.0 wheras must be compiled byt csc 2.1 which is not > public? > > 2) I like the ruby and want to help on it implementation. > I know that I have to sign the contributor agreements. > But before doing anything, I want to know the TODO and task list where I > can help. Is there any wiki webpage or trac to manage task and todo? Because > a lot of things must have go ahead since the first blog post. > > Thanks for any answer, > bye, > > olivier dufour > > > _______________________________________________ > 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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070924/351f9edc/attachment.html From enicholson at gmail.com Tue Sep 25 20:23:38 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Tue, 25 Sep 2007 20:23:38 -0400 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' Message-ID: When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn't added to SVN in the last update? -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/f02aeb49/attachment.html From jflam at microsoft.com Tue Sep 25 20:24:50 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Tue, 25 Sep 2007 17:24:50 -0700 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> It's a gem - just gem install pathname2. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 5:24 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with new rakefile require 'pathname2' When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn't added to SVN in the last update? -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/0f7a0175/attachment.html From enicholson at gmail.com Tue Sep 25 20:44:33 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Tue, 25 Sep 2007 20:44:33 -0400 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: The build works much better now. Thanks! Any chance we could get that as a "require_gem" in a future release? On 9/25/07, John Lam (DLR) wrote: > > It's a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problems with new rakefile require 'pathname2' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn't added to SVN in the last > update? > > -Eric > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/f31b751f/attachment-0001.html From enicholson at gmail.com Tue Sep 25 21:05:10 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Tue, 25 Sep 2007 21:05:10 -0400 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: What value do we need to have for "MERLIN_ROOT"? I'm getting errors in common.rb when running the test suite: c:/source/ironruby/trunk/tests/ironruby/common.rb:25: undefined method `+' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from run.rb:5 -Eric On 9/25/07, Eric Nicholson wrote: > > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, John Lam (DLR) wrote: > > > It's a gem ? just gem install pathname2. > > > > > > > > Thanks, > > > > -John > > > > > > > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > > *Sent:* Tuesday, September 25, 2007 5:24 PM > > *To:* ironruby-core at rubyforge.org > > *Subject:* [Ironruby-core] problems with new rakefile require > > 'pathname2' > > > > > > > > When I run the updated rakefile I get "no such file to load -- > > pathname2". Is it possible that this file wasn't added to SVN in the last > > update? > > > > -Eric > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/7ebcaf38/attachment.html From sanxiyn at gmail.com Wed Sep 26 00:52:17 2007 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Wed, 26 Sep 2007 13:52:17 +0900 Subject: [Ironruby-core] tmpdir package Message-ID: <5b0248170709252152w3e808cfckd1207ad7497fc820@mail.gmail.com> Please use tmpdir package to get the path to temporary directory in Rakefile. require 'tmpdir' Dir.tmpdir -- Seo Sanghyeon From jflam at microsoft.com Wed Sep 26 00:53:47 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Tue, 25 Sep 2007 21:53:47 -0700 Subject: [Ironruby-core] tmpdir package In-Reply-To: <5b0248170709252152w3e808cfckd1207ad7497fc820@mail.gmail.com> References: <5b0248170709252152w3e808cfckd1207ad7497fc820@mail.gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D28DF001@NA-EXMSG-C115.redmond.corp.microsoft.com> Thanks for the pointer! ... I knew that was lying around somewhere :) -John > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Sanghyeon Seo > Sent: Tuesday, September 25, 2007 9:52 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] tmpdir package > > Please use tmpdir package to get the path to temporary directory in > Rakefile. > > require 'tmpdir' > Dir.tmpdir > > -- > Seo Sanghyeon > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From jflam at microsoft.com Wed Sep 26 11:47:27 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Wed, 26 Sep 2007 08:47:27 -0700 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D28DF0E4@NA-EXMSG-C115.redmond.corp.microsoft.com> Hi Eric, Those are our internal tests, which don't use the same logic that the Rakefile uses to determine where they're being run from. For the time being I'm going to disable those tests and open a bug against Haibo who owns that test suite. Thanks! -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 6:05 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with new rakefile require 'pathname2' What value do we need to have for "MERLIN_ROOT"? I'm getting errors in common.rb when running the test suite: c:/source/ironruby/trunk/tests/ironruby/common.rb:25: undefined method `+' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from run.rb :5 -Eric On 9/25/07, Eric Nicholson > wrote: The build works much better now. Thanks! Any chance we could get that as a "require_gem" in a future release? On 9/25/07, John Lam (DLR) > wrote: It's a gem - just gem install pathname2. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 5:24 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with new rakefile require 'pathname2' When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn't added to SVN in the last update? -Eric _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/55440d7a/attachment.html From stefan.huettenrauch at hpi.uni-potsdam.de Wed Sep 26 12:29:06 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Wed, 26 Sep 2007 18:29:06 +0200 Subject: [Ironruby-core] problems with strongly named assemblies In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <009401c8005a$5ba7cf40$12f76dc0$@huettenrauch@hpi.uni-potsdam.de> Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn't work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/dae4549a/attachment-0001.html From stefan.huettenrauch at hpi.uni-potsdam.de Wed Sep 26 12:29:39 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Wed, 26 Sep 2007 18:29:39 +0200 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <009901c8005a$6f960b20$4ec22160$@huettenrauch@hpi.uni-potsdam.de> I did the gem install for pathname2 and now get rake aborted! no such file to load -- windows/path which goes down to the following code snipped in c:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.5.2/lib/pathname2.rb:54 53 if RUBY_PLATFORM.match('mswin') 54 require 'windows/path' 55 require 'windows/file' 56 include Windows::Path 57 include Windows::File 58 end Does anybody have any ideas? Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Mittwoch, 26. September 2007 02:45 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with new rakefile require 'pathname2' The build works much better now. Thanks! Any chance we could get that as a "require_gem" in a future release? On 9/25/07, John Lam (DLR) wrote: It's a gem ? just gem install pathname2. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 5:24 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with new rakefile require 'pathname2' When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn't added to SVN in the last update? -Eric _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/5e72c5bc/attachment.html From jflam at microsoft.com Wed Sep 26 12:40:31 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Wed, 26 Sep 2007 09:40:31 -0700 Subject: [Ironruby-core] problems with strongly named assemblies In-Reply-To: <009401c8005a$5ba7cf40$12f76dc0$@huettenrauch@hpi.uni-potsdam.de> References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> <009401c8005a$5ba7cf40$12f76dc0$@huettenrauch@hpi.uni-potsdam.de> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D28DF148@NA-EXMSG-C115.redmond.corp.microsoft.com> Here's an answer from Dino on my team: Thanks, -John He needs to define SIGNED when building (Microsoft.Scripting) and update the public key in ScriptEnvironmentSetup.cs which currently looks like: #if SIGNED new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython, Version=2.0.0.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".rb", "rb", "ruby", "ironruby"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLanguageProvider", "Microsoft.VisualBasic.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".vbx", "vbx"), #else new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLanguageProvider", "Microsoft.VisualBasic.Scripting", ".vbx", "vbx"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby", ".rb", "rb", "ruby", "ironruby") #endif From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Wednesday, September 26, 2007 9:29 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with strongly named assemblies Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn't work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/f6fc22c4/attachment-0001.html From tony at v-sim.com Wed Sep 26 12:45:33 2007 From: tony at v-sim.com (Tony Djordjevski) Date: Wed, 26 Sep 2007 12:45:33 -0400 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: <009901c8005a$6f960b20$4ec22160$@huettenrauch@hpi.uni-potsdam.de> References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> <009901c8005a$6f960b20$4ec22160$@huettenrauch@hpi.uni-potsdam.de> Message-ID: <46FA8CAD.8010900@v-sim.com> I had the same problem. Ultimately, I fixed it by uninstalling my Ruby One-Click installer and installing the most recent version: http://rubyforge.org/frs/download.php/18566/ruby186-25.exe After the installation, I did a "gem install -y pathname2" and then I was able to compile. Tony Stefan H?ttenrauch wrote: > I did the gem install for pathname2 and now get > rake aborted! > no such file to load -- windows/path > > which goes down to the following code snipped in > c:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.5.2/lib/pathname2.rb:54 > 53 if RUBY_PLATFORM.match('mswin') > 54 require 'windows/path' > 55 require 'windows/file' > 56 include Windows::Path > 57 include Windows::File > 58 end > > > Does anybody have any ideas? > Thanks > Stefan > > > > > > *From:* ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Mittwoch, 26. September 2007 02:45 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] problems with new rakefile require > 'pathname2' > > > > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, *John Lam (DLR)* > wrote: > > It's a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org > ] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problems with new rakefile require 'pathname2' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn't added to SVN in the > last update? > > -Eric > > > _______________________________________________ > 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 enicholson at gmail.com Wed Sep 26 13:25:38 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Wed, 26 Sep 2007 13:25:38 -0400 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D28DF0E4@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> <372109E149E8084D8E6C7D9CFD82E06329D28DF0E4@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: The tests run now, but a lot of the tests are being skipped. Is there some easy way I can get those going? The reason I ask is that I'm trying to get a DSL built on IronRuby, and I needed to make some tweaks to Kernel & RubyOps to get all the scoping resolved right. I just want to make sure I haven't broken anything too important :) Thanks! Eric On 9/26/07, John Lam (DLR) wrote: > > Hi Eric, > > > > Those are our internal tests, which don't use the same logic that the > Rakefile uses to determine where they're being run from. For the time being > I'm going to disable those tests and open a bug against Haibo who owns that > test suite. > > > > Thanks! > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 6:05 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] problems with new rakefile require > 'pathname2' > > > > What value do we need to have for "MERLIN_ROOT"? I'm getting errors in > common.rb when running the test suite: > > c:/source/ironruby/trunk/tests/ironruby/common.rb:25: undefined method `+' > for nil:NilClass (NoMethodError) > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > from run.rb :5 > > -Eric > > On 9/25/07, *Eric Nicholson* wrote: > > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, *John Lam (DLR)* wrote: > > It's a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problems with new rakefile require 'pathname2' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn't added to SVN in the last > update? > > -Eric > > > _______________________________________________ > 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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/58eefc34/attachment.html From stefan.huettenrauch at hpi.uni-potsdam.de Wed Sep 26 16:34:28 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Wed, 26 Sep 2007 22:34:28 +0200 Subject: [Ironruby-core] problems with strongly named assemblies In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D28DF148@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> <009401c8005a$5ba7cf40$12f76dc0$@huettenrauch@hpi.uni-potsdam.de> <372109E149E8084D8E6C7D9CFD82E06329D28DF148@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <00b301c8007c$a29222d0$e7b66870$@huettenrauch@hpi.uni-potsdam.de> It looks like this did the trick, Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (DLR) Sent: Mittwoch, 26. September 2007 18:41 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with strongly named assemblies Here?s an answer from Dino on my team: Thanks, -John He needs to define SIGNED when building (Microsoft.Scripting) and update the public key in ScriptEnvironmentSetup.cs which currently looks like: #if SIGNED new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython, Version=2.0.0.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".rb", "rb", "ruby", "ironruby"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".vbx", "vbx"), #else new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting", ".vbx", "vbx"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby", ".rb", "rb", "ruby", "ironruby") #endif From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Wednesday, September 26, 2007 9:29 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with strongly named assemblies Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn't work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/829aea21/attachment-0001.html From stefan.huettenrauch at hpi.uni-potsdam.de Wed Sep 26 17:08:31 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Wed, 26 Sep 2007 23:08:31 +0200 Subject: [Ironruby-core] problems with new rakefile require 'pathname2' In-Reply-To: <46FA8CAD.8010900@v-sim.com> References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> <009901c8005a$6f960b20$4ec22160$@huettenrauch@hpi.uni-potsdam.de> <46FA8CAD.8010900@v-sim.com> Message-ID: <00ca01c80081$64665b70$2d331250$@huettenrauch@hpi.uni-potsdam.de> Thanks, Tony for your answer, with IronRuby revision 35 it worked. Before I had 33 and that wasn't even working with your work-around. Cheers, Stefan -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tony Djordjevski Sent: Mittwoch, 26. September 2007 18:46 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with new rakefile require 'pathname2' I had the same problem. Ultimately, I fixed it by uninstalling my Ruby One-Click installer and installing the most recent version: http://rubyforge.org/frs/download.php/18566/ruby186-25.exe After the installation, I did a "gem install -y pathname2" and then I was able to compile. Tony Stefan H?ttenrauch wrote: > I did the gem install for pathname2 and now get > rake aborted! > no such file to load -- windows/path > > which goes down to the following code snipped in > c:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.5.2/lib/pathname2.rb:54 > 53 if RUBY_PLATFORM.match('mswin') > 54 require 'windows/path' > 55 require 'windows/file' > 56 include Windows::Path > 57 include Windows::File > 58 end > > > Does anybody have any ideas? > Thanks > Stefan > > > > > > *From:* ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Mittwoch, 26. September 2007 02:45 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] problems with new rakefile require > 'pathname2' > > > > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, *John Lam (DLR)* > wrote: > > It's a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyf orge.org > ] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problems with new rakefile require 'pathname2' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn't added to SVN in the > last update? > > -Eric > > > _______________________________________________ > 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 haacked at gmail.com Thu Sep 27 01:26:41 2007 From: haacked at gmail.com (Phil Haack) Date: Wed, 26 Sep 2007 22:26:41 -0700 Subject: [Ironruby-core] Building IronRuby... Message-ID: <003f01c800c6$fd3a2530$f7ae6f90$@com> Hate to ask such a n00b question here, but I got the latest code from subversion following the steps here: http://ironruby.rubyforge.org/getting_started/getting_started.htm And the "rake compile" command gives me the following error. D:\Projects\IronRuby\trunk>rake compile --trace >> output.txt resgen "D:\Projects\IronRuby\trunk\src\microsoft.scripting\Math\MathResources.re sx" "D:\Projects\IronRuby\trunk\build\release\Microsoft.Scripting.Math.MathResou rces.resources" rake aborted! undefined method `exitstatus' for nil:NilClass Anyone run into this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/a75d7b3f/attachment.html From stefan.huettenrauch at hpi.uni-potsdam.de Thu Sep 27 02:32:31 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Thu, 27 Sep 2007 08:32:31 +0200 Subject: [Ironruby-core] Building IronRuby... In-Reply-To: <003f01c800c6$fd3a2530$f7ae6f90$@com> References: <003f01c800c6$fd3a2530$f7ae6f90$@com> Message-ID: <00ef01c800d0$2eb65d00$8c231700$@huettenrauch@hpi.uni-potsdam.de> Do you have resgen.exe in your PATH? It must be somewhere around c:\Program Files\Micrsosoft Visual Studio 8\SDK\v2.0\Bin. You also need csc.exe available from c:\Windows\Microsoft.NET\Framework\v2.0.50727. Good luck Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Phil Haack Sent: Donnerstag, 27. September 2007 07:27 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Building IronRuby... Hate to ask such a n00b question here, but I got the latest code from subversion following the steps here: http://ironruby.rubyforge.org/getting_started/getting_started.htm And the ?rake compile? command gives me the following error. D:\Projects\IronRuby\trunk>rake compile --trace >> output.txt resgen "D:\Projects\IronRuby\trunk\src\microsoft.scripting\Math\MathResources.re sx" "D:\Projects\IronRuby\trunk\build\release\Microsoft.Scripting.Math.MathResou rces.resources" rake aborted! undefined method `exitstatus' for nil:NilClass Anyone run into this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/1fbdeaea/attachment.html From haacked at gmail.com Thu Sep 27 02:38:32 2007 From: haacked at gmail.com (Phil Haack) Date: Wed, 26 Sep 2007 23:38:32 -0700 Subject: [Ironruby-core] IronRuby documentation/wiki... Message-ID: <004d01c800d1$06bca3d0$1435eb70$@com> I could have sworn there was a wiki somewhere that collected a lot of the Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and ScottH. But today, I only found this: http://www.ironruby.net/ The RubyForge wiki is blank: http://ironruby.rubyforge.org/wiki/wiki.pl Anyone know where the old documentation went? Am I missing something obvious? Better yet, where should all the new documentation go? I'm looking to help. J Thanks! Phil Haack http://haacked.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/9a9ed18e/attachment.html From haacked at gmail.com Thu Sep 27 02:44:16 2007 From: haacked at gmail.com (Phil Haack) Date: Wed, 26 Sep 2007 23:44:16 -0700 Subject: [Ironruby-core] Building IronRuby... In-Reply-To: <00ef01c800d0$2eb65d00$8c231700$@huettenrauch@hpi.uni-potsdam.de> References: <003f01c800c6$fd3a2530$f7ae6f90$@com> <00ef01c800d0$2eb65d00$8c231700$@huettenrauch@hpi.uni-potsdam.de> Message-ID: <005201c800d1$d3bfdaf0$7b3f90d0$@com> Thanks Stefan, that was definitely it. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Wednesday, September 26, 2007 11:33 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Building IronRuby... Do you have resgen.exe in your PATH? It must be somewhere around c:\Program Files\Micrsosoft Visual Studio 8\SDK\v2.0\Bin. You also need csc.exe available from c:\Windows\Microsoft.NET\Framework\v2.0.50727. Good luck Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Phil Haack Sent: Donnerstag, 27. September 2007 07:27 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Building IronRuby... Hate to ask such a n00b question here, but I got the latest code from subversion following the steps here: http://ironruby.rubyforge.org/getting_started/getting_started.htm And the ?rake compile? command gives me the following error. D:\Projects\IronRuby\trunk>rake compile --trace >> output.txt resgen "D:\Projects\IronRuby\trunk\src\microsoft.scripting\Math\MathResources.re sx" "D:\Projects\IronRuby\trunk\build\release\Microsoft.Scripting.Math.MathResou rces.resources" rake aborted! undefined method `exitstatus' for nil:NilClass Anyone run into this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/482cda2f/attachment-0001.html From stefan.huettenrauch at hpi.uni-potsdam.de Thu Sep 27 10:14:09 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Thu, 27 Sep 2007 16:14:09 +0200 Subject: [Ironruby-core] problems with strongly named assemblies In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D28DF148@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E06329D28DEF20@NA-EXMSG-C115.redmond.corp.microsoft.com> <009401c8005a$5ba7cf40$12f76dc0$@huettenrauch@hpi.uni-potsdam.de> <372109E149E8084D8E6C7D9CFD82E06329D28DF148@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <00fa01c80110$ac2b6a10$04823e30$@huettenrauch@hpi.uni-potsdam.de> Hi again, I moved forward on my way to include IronRuby within a WebPart for SharePoint server. I included some code that calls IronRuby (like re.ExecuteCommand("something");) but wasn't able to prove if it is working. Trying to create a file or displaying a messageBox on rendering the WebPart did nothing visible. The MessageBox didn't appear neither did the file. Do you have any ideas on what I can use in order to produce a visible output from within a WebPart for SharePoint. Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (DLR) Sent: Mittwoch, 26. September 2007 18:41 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with strongly named assemblies Here?s an answer from Dino on my team: Thanks, -John He needs to define SIGNED when building (Microsoft.Scripting) and update the public key in ScriptEnvironmentSetup.cs which currently looks like: #if SIGNED new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython, Version=2.0.0.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".rb", "rb", "ruby", "ironruby"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".vbx", "vbx"), #else new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting", ".vbx", "vbx"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby", ".rb", "rb", "ruby", "ironruby") #endif From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Wednesday, September 26, 2007 9:29 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with strongly named assemblies Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn't work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/a442ce05/attachment.html From jflam at microsoft.com Thu Sep 27 12:17:24 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Thu, 27 Sep 2007 09:17:24 -0700 Subject: [Ironruby-core] IronRuby documentation/wiki... In-Reply-To: <004d01c800d1$06bca3d0$1435eb70$@com> References: <004d01c800d1$06bca3d0$1435eb70$@com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> There's a blog that does a good job of collecting some of the earlier information: http://rubydoes.net/ The wiki wouldn't be a bad place to start collecting some information. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Phil Haack Sent: Wednesday, September 26, 2007 11:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby documentation/wiki... I could have sworn there was a wiki somewhere that collected a lot of the Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and ScottH. But today, I only found this: http://www.ironruby.net/ The RubyForge wiki is blank: http://ironruby.rubyforge.org/wiki/wiki.pl Anyone know where the old documentation went? Am I missing something obvious? Better yet, where should all the new documentation go? I'm looking to help. :) Thanks! Phil Haack http://haacked.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/57e7ab43/attachment-0001.html From jb at nurv.fr Thu Sep 27 12:31:57 2007 From: jb at nurv.fr (Jb Evain) Date: Thu, 27 Sep 2007 18:31:57 +0200 Subject: [Ironruby-core] svn pollution In-Reply-To: <69f7d8470709171524h50c654b1i8437a3f71a9243b3@mail.gmail.com> References: <69f7d8470709171524h50c654b1i8437a3f71a9243b3@mail.gmail.com> Message-ID: <69f7d8470709270931m6f8fcdb3u2782fd39ffcac9c9@mail.gmail.com> Would someone with a write access to the svn repo do the same and commit, so that everyone can benefit from this? Jb On 9/18/07, Jb Evain wrote: > Hey, > > Now that I've signed the agreement and that I'm the mood for sending a > couple of patches, I'd like first to get a clean SVN status to work on > :) > > In my local copy, I've svn:ignored every folder/files that is generated by VS: > > bin > Debug > Release > FxCop > obj > *.user > *.suo (there's an annoying one that should be deleted prior to be > ignored in the root folder). > > That should help us to create nice patches for review :) > > Thanks, > > -- > Jb Evain > -- Jb Evain From tranqy at gmail.com Thu Sep 27 13:18:01 2007 From: tranqy at gmail.com (Aaron Junod) Date: Thu, 27 Sep 2007 13:18:01 -0400 Subject: [Ironruby-core] IronRuby documentation/wiki... In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <004d01c800d1$06bca3d0$1435eb70$@com> <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Thanks for the plug.. We haven't fallen off the map yet either, just haven't had a chance to post because of some hectic times at the day job. I hope to get some more posts up there, and if anyone else on this list is interested posting on the blog just let me know. Thanks Aaron http://rubydoes.net On 9/27/07, John Lam (DLR) wrote: > > There's a blog that does a good job of collecting some of the earlier > information: http://rubydoes.net/ > > > > The wiki wouldn't be a bad place to start collecting some information. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Phil Haack > *Sent:* Wednesday, September 26, 2007 11:39 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] IronRuby documentation/wiki... > > > > I could have sworn there was a wiki somewhere that collected a lot of the > Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and > ScottH. > > > > But today, I only found this: http://www.ironruby.net/ > > > > The RubyForge wiki is blank: http://ironruby.rubyforge.org/wiki/wiki.pl > > > > Anyone know where the old documentation went? Am I missing something > obvious? Better yet, where should all the new documentation go? I'm > looking to help. J > > > > Thanks! > Phil Haack > > http://haacked.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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/59efd671/attachment.html From rbazinet at gmail.com Thu Sep 27 13:29:36 2007 From: rbazinet at gmail.com (Robert Bazinet) Date: Thu, 27 Sep 2007 13:29:36 -0400 Subject: [Ironruby-core] IronRuby documentation/wiki... In-Reply-To: References: <004d01c800d1$06bca3d0$1435eb70$@com> <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Aaron, Is this your blog or are you a contributor??? -Rob On 9/27/07, Aaron Junod wrote: > > Thanks for the plug.. We haven't fallen off the map yet either, just > haven't had a chance to post because of some hectic times at the day job. I > hope to get some more posts up there, and if anyone else on this list is > interested posting on the blog just let me know. > > Thanks > > Aaron > http://rubydoes.net > > On 9/27/07, John Lam (DLR) < jflam at microsoft.com> wrote: > > > > There's a blog that does a good job of collecting some of the earlier > > information: http://rubydoes.net/ > > > > > > > > The wiki wouldn't be a bad place to start collecting some information. > > > > > > > > Thanks, > > > > -John > > > > > > > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Phil Haack > > *Sent:* Wednesday, September 26, 2007 11:39 PM > > *To:* ironruby-core at rubyforge.org > > *Subject:* Re: [Ironruby-core] IronRuby documentation/wiki... > > > > > > > > I could have sworn there was a wiki somewhere that collected a lot of > > the Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and > > ScottH. > > > > > > > > But today, I only found this: http://www.ironruby.net/ > > > > > > > > The RubyForge wiki is blank: http://ironruby.rubyforge.org/wiki/wiki.pl > > > > > > > > Anyone know where the old documentation went? Am I missing something > > obvious? Better yet, where should all the new documentation go? I'm > > looking to help. J > > > > > > > > Thanks! > > Phil Haack > > > > http://haacked.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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/27a96a05/attachment.html From jflam at microsoft.com Thu Sep 27 13:30:37 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Thu, 27 Sep 2007 10:30:37 -0700 Subject: [Ironruby-core] svn pollution In-Reply-To: <69f7d8470709270931m6f8fcdb3u2782fd39ffcac9c9@mail.gmail.com> References: <69f7d8470709171524h50c654b1i8437a3f71a9243b3@mail.gmail.com> <69f7d8470709270931m6f8fcdb3u2782fd39ffcac9c9@mail.gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D28DF7BA@NA-EXMSG-C115.redmond.corp.microsoft.com> Dumb question of the day: I'm pretty sure that none of those directories / files are subversion right now. What exactly do you want me to commit to the repository? Thanks, -John > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jb Evain > Sent: Thursday, September 27, 2007 9:32 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] svn pollution > > Would someone with a write access to the svn repo do the same and > commit, so that everyone can benefit from this? > > Jb > > On 9/18/07, Jb Evain wrote: > > Hey, > > > > Now that I've signed the agreement and that I'm the mood for sending > a > > couple of patches, I'd like first to get a clean SVN status to work > on > > :) > > > > In my local copy, I've svn:ignored every folder/files that is > generated by VS: > > > > bin > > Debug > > Release > > FxCop > > obj > > *.user > > *.suo (there's an annoying one that should be deleted prior to be > > ignored in the root folder). > > > > That should help us to create nice patches for review :) > > > > Thanks, > > > > -- > > Jb Evain > > > > > -- > Jb Evain > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From jb at nurv.fr Thu Sep 27 13:37:12 2007 From: jb at nurv.fr (Jb Evain) Date: Thu, 27 Sep 2007 19:37:12 +0200 Subject: [Ironruby-core] svn pollution In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D28DF7BA@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <69f7d8470709171524h50c654b1i8437a3f71a9243b3@mail.gmail.com> <69f7d8470709270931m6f8fcdb3u2782fd39ffcac9c9@mail.gmail.com> <372109E149E8084D8E6C7D9CFD82E06329D28DF7BA@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <69f7d8470709271037q445ee67atb20ca7f0b1aa8552@mail.gmail.com> Hey John, Only the .suo file is in the repo. I'd like you to add them to svn:ignore, so that they don't show up when you ask svn status. Jb On 9/27/07, John Lam (DLR) wrote: > Dumb question of the day: I'm pretty sure that none of those directories / files are subversion right now. What exactly do you want me to commit to the repository? > > Thanks, > -John > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Jb Evain > > Sent: Thursday, September 27, 2007 9:32 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] svn pollution > > > > Would someone with a write access to the svn repo do the same and > > commit, so that everyone can benefit from this? > > > > Jb > > > > On 9/18/07, Jb Evain wrote: > > > Hey, > > > > > > Now that I've signed the agreement and that I'm the mood for sending > > a > > > couple of patches, I'd like first to get a clean SVN status to work > > on > > > :) > > > > > > In my local copy, I've svn:ignored every folder/files that is > > generated by VS: > > > > > > bin > > > Debug > > > Release > > > FxCop > > > obj > > > *.user > > > *.suo (there's an annoying one that should be deleted prior to be > > > ignored in the root folder). > > > > > > That should help us to create nice patches for review :) > > > > > > Thanks, > > > > > > -- > > > Jb Evain > > > > > > > > > -- > > Jb Evain > > _______________________________________________ > > 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 > -- Jb Evain From haacked at gmail.com Thu Sep 27 13:41:37 2007 From: haacked at gmail.com (Phil Haack) Date: Thu, 27 Sep 2007 10:41:37 -0700 Subject: [Ironruby-core] IronRuby documentation/wiki... In-Reply-To: <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <004d01c800d1$06bca3d0$1435eb70$@com> <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <008d01c8012d$a8956be0$f9c043a0$@com> Thanks for pointing that out. I started making some edits in the wiki. A note for the rest of you, if you link to an external page in the wiki, use all caps for the HTTP part. Ex. HTTP://rubydoes.net/ It's an anti-spam measure they put in. I was bumping my head against this for a while before I found it in the support docs. Jon, can you edit the homepage (http://www.ironruby.net/) to point to the wiki (http://ironruby.rubyforge.org/wiki/wiki.pl?HomePage) directly? Phil From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (DLR) Sent: Thursday, September 27, 2007 9:17 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby documentation/wiki... There's a blog that does a good job of collecting some of the earlier information: http://rubydoes.net/ The wiki wouldn't be a bad place to start collecting some information. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Phil Haack Sent: Wednesday, September 26, 2007 11:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby documentation/wiki... I could have sworn there was a wiki somewhere that collected a lot of the Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and ScottH. But today, I only found this: http://www.ironruby.net/ The RubyForge wiki is blank: http://ironruby.rubyforge.org/wiki/wiki.pl Anyone know where the old documentation went? Am I missing something obvious? Better yet, where should all the new documentation go? I'm looking to help. J Thanks! Phil Haack http://haacked.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/089c8033/attachment-0001.html From haacked at gmail.com Thu Sep 27 13:54:54 2007 From: haacked at gmail.com (Phil Haack) Date: Thu, 27 Sep 2007 10:54:54 -0700 Subject: [Ironruby-core] svn pollution In-Reply-To: <69f7d8470709271037q445ee67atb20ca7f0b1aa8552@mail.gmail.com> References: <69f7d8470709171524h50c654b1i8437a3f71a9243b3@mail.gmail.com> <69f7d8470709270931m6f8fcdb3u2782fd39ffcac9c9@mail.gmail.com> <372109E149E8084D8E6C7D9CFD82E06329D28DF7BA@NA-EXMSG-C115.redmond.corp.microsoft.com> <69f7d8470709271037q445ee67atb20ca7f0b1aa8552@mail.gmail.com> Message-ID: <00b501c8012f$83299410$897cbc30$@com> John, I recommend doing this in the trunk and then apply recursively. Here's my svn:ignore list for Subtext. *.resharper *.suo *.user *.pdb *.vspscc *.vsssccc *.scc */_ReSharper* */bin */obj _ReSharper.Fan bin obj *.resharperoptions *.db *.bak *_ReSharper* *.snk This helps keep the incidents of people accidentally committing this cruft to a minimum. Phil -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jb Evain Sent: Thursday, September 27, 2007 10:37 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] svn pollution Hey John, Only the .suo file is in the repo. I'd like you to add them to svn:ignore, so that they don't show up when you ask svn status. Jb On 9/27/07, John Lam (DLR) wrote: > Dumb question of the day: I'm pretty sure that none of those directories / files are subversion right now. What exactly do you want me to commit to the repository? > > Thanks, > -John > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Jb Evain > > Sent: Thursday, September 27, 2007 9:32 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] svn pollution > > > > Would someone with a write access to the svn repo do the same and > > commit, so that everyone can benefit from this? > > > > Jb > > > > On 9/18/07, Jb Evain wrote: > > > Hey, > > > > > > Now that I've signed the agreement and that I'm the mood for sending > > a > > > couple of patches, I'd like first to get a clean SVN status to work > > on > > > :) > > > > > > In my local copy, I've svn:ignored every folder/files that is > > generated by VS: > > > > > > bin > > > Debug > > > Release > > > FxCop > > > obj > > > *.user > > > *.suo (there's an annoying one that should be deleted prior to be > > > ignored in the root folder). > > > > > > That should help us to create nice patches for review :) > > > > > > Thanks, > > > > > > -- > > > Jb Evain > > > > > > > > > -- > > Jb Evain > > _______________________________________________ > > 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 > -- Jb Evain _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From haacked at gmail.com Thu Sep 27 13:58:48 2007 From: haacked at gmail.com (Phil Haack) Date: Thu, 27 Sep 2007 10:58:48 -0700 Subject: [Ironruby-core] IronRuby documentation/wiki... In-Reply-To: References: <004d01c800d1$06bca3d0$1435eb70$@com> <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <00bb01c80130$0f619310$2e24b930$@com> I put a link to rubydoes.net on the wiki homepage. Great stuff on that blog! I have to get back to some other work, but I put some essential topics on the home page. How to get the code (added to the building iron ruby topic) Executing ruby code from .NET. Executing .NET code from Ruby. Phil From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Aaron Junod Sent: Thursday, September 27, 2007 10:18 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby documentation/wiki... Thanks for the plug.. We haven't fallen off the map yet either, just haven't had a chance to post because of some hectic times at the day job. I hope to get some more posts up there, and if anyone else on this list is interested posting on the blog just let me know. Thanks Aaron http://rubydoes.net On 9/27/07, John Lam (DLR) < jflam at microsoft.com > wrote: There's a blog that does a good job of collecting some of the earlier information: http://rubydoes.net/ The wiki wouldn't be a bad place to start collecting some information. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Phil Haack Sent: Wednesday, September 26, 2007 11:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby documentation/wiki... I could have sworn there was a wiki somewhere that collected a lot of the Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and ScottH. But today, I only found this: http://www.ironruby.net/ The RubyForge wiki is blank: http://ironruby.rubyforge.org/wiki/wiki.pl Anyone know where the old documentation went? Am I missing something obvious? Better yet, where should all the new documentation go? I'm looking to help. J Thanks! Phil Haack http://haacked.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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/32a02e55/attachment.html From jflam at microsoft.com Thu Sep 27 13:59:27 2007 From: jflam at microsoft.com (John Lam (DLR)) Date: Thu, 27 Sep 2007 10:59:27 -0700 Subject: [Ironruby-core] svn pollution In-Reply-To: <00b501c8012f$83299410$897cbc30$@com> References: <69f7d8470709171524h50c654b1i8437a3f71a9243b3@mail.gmail.com> <69f7d8470709270931m6f8fcdb3u2782fd39ffcac9c9@mail.gmail.com> <372109E149E8084D8E6C7D9CFD82E06329D28DF7BA@NA-EXMSG-C115.redmond.corp.microsoft.com> <69f7d8470709271037q445ee67atb20ca7f0b1aa8552@mail.gmail.com> <00b501c8012f$83299410$897cbc30$@com> Message-ID: <372109E149E8084D8E6C7D9CFD82E06329D28DF800@NA-EXMSG-C115.redmond.corp.microsoft.com> Just committed these changes. Thanks! -John > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Phil Haack > Sent: Thursday, September 27, 2007 10:55 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] svn pollution > > John, > > I recommend doing this in the trunk and then apply recursively. Here's > my > svn:ignore list for Subtext. > > *.resharper > *.suo > *.user > *.pdb > *.vspscc > *.vsssccc > *.scc > */_ReSharper* > */bin > */obj > _ReSharper.Fan > bin > obj > *.resharperoptions > *.db > *.bak > *_ReSharper* > *.snk > > This helps keep the incidents of people accidentally committing this > cruft > to a minimum. > > Phil > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jb Evain > Sent: Thursday, September 27, 2007 10:37 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] svn pollution > > Hey John, > > Only the .suo file is in the repo. > > I'd like you to add them to svn:ignore, so that they don't show up > when you ask svn status. > > Jb > > On 9/27/07, John Lam (DLR) wrote: > > Dumb question of the day: I'm pretty sure that none of those > directories / > files are subversion right now. What exactly do you want me to commit > to the > repository? > > > > Thanks, > > -John > > > > > > > -----Original Message----- > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > > bounces at rubyforge.org] On Behalf Of Jb Evain > > > Sent: Thursday, September 27, 2007 9:32 AM > > > To: ironruby-core at rubyforge.org > > > Subject: Re: [Ironruby-core] svn pollution > > > > > > Would someone with a write access to the svn repo do the same and > > > commit, so that everyone can benefit from this? > > > > > > Jb > > > > > > On 9/18/07, Jb Evain wrote: > > > > Hey, > > > > > > > > Now that I've signed the agreement and that I'm the mood for > sending > > > a > > > > couple of patches, I'd like first to get a clean SVN status to > work > > > on > > > > :) > > > > > > > > In my local copy, I've svn:ignored every folder/files that is > > > generated by VS: > > > > > > > > bin > > > > Debug > > > > Release > > > > FxCop > > > > obj > > > > *.user > > > > *.suo (there's an annoying one that should be deleted prior to be > > > > ignored in the root folder). > > > > > > > > That should help us to create nice patches for review :) > > > > > > > > Thanks, > > > > > > > > -- > > > > Jb Evain > > > > > > > > > > > > > -- > > > Jb Evain > > > _______________________________________________ > > > 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 > > > > > -- > Jb Evain > _______________________________________________ > 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 sanxiyn at gmail.com Thu Sep 27 20:01:26 2007 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Fri, 28 Sep 2007 09:01:26 +0900 Subject: [Ironruby-core] Wiki syntax Message-ID: <5b0248170709271701n26a8070dsb6491eb41e7648cb@mail.gmail.com> Phil created some wiki pages on RubyForge, but his (or other's) wiki syntax is wrong, so some links are not working. I think he is using MediaWiki syntax, but RubyForge's wiki is using UseModWiki. UseModWiki documentations are available here: http://www.usemod.com/cgi-bin/wiki.pl I (and some other) already fixed pages. -- Seo Sanghyeon From tranqy at gmail.com Thu Sep 27 20:47:06 2007 From: tranqy at gmail.com (Aaron Junod) Date: Thu, 27 Sep 2007 20:47:06 -0400 Subject: [Ironruby-core] IronRuby documentation/wiki... In-Reply-To: References: <004d01c800d1$06bca3d0$1435eb70$@com> <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: I own the domain, but a couple other people post there as well. My blog is separate, but just as dead :) Aaron On 9/27/07, Robert Bazinet wrote: > > Aaron, > > Is this your blog or are you a contributor??? > > -Rob > > On 9/27/07, Aaron Junod wrote: > > > > Thanks for the plug.. We haven't fallen off the map yet either, just > > haven't had a chance to post because of some hectic times at the day job. I > > hope to get some more posts up there, and if anyone else on this list is > > interested posting on the blog just let me know. > > > > Thanks > > > > Aaron > > http://rubydoes.net > > > > On 9/27/07, John Lam (DLR) < jflam at microsoft.com> wrote: > > > > > > There's a blog that does a good job of collecting some of the earlier > > > information: http://rubydoes.net/ > > > > > > > > > > > > The wiki wouldn't be a bad place to start collecting some information. > > > > > > > > > > > > > > > Thanks, > > > > > > -John > > > > > > > > > > > > > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > > > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Phil Haack > > > *Sent:* Wednesday, September 26, 2007 11:39 PM > > > *To:* ironruby-core at rubyforge.org > > > *Subject:* Re: [Ironruby-core] IronRuby documentation/wiki... > > > > > > > > > > > > I could have sworn there was a wiki somewhere that collected a lot of > > > the Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and > > > ScottH. > > > > > > > > > > > > But today, I only found this: http://www.ironruby.net/ > > > > > > > > > > > > The RubyForge wiki is blank: > > > http://ironruby.rubyforge.org/wiki/wiki.pl > > > > > > > > > > > > Anyone know where the old documentation went? Am I missing something > > > obvious? Better yet, where should all the new documentation go? I'm > > > looking to help. J > > > > > > > > > > > > Thanks! > > > Phil Haack > > > > > > http://haacked.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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/fa749221/attachment-0001.html From haacked at gmail.com Fri Sep 28 02:46:08 2007 From: haacked at gmail.com (Phil Haack) Date: Thu, 27 Sep 2007 23:46:08 -0700 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... Message-ID: <013901c8019b$49bc8770$dd359650$@com> Hi All, I posted some code for calling IronRuby code I found in the mailing list onto the wiki. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp RubyEngine re = RubyEngine.CurrentEngine; string script = "s = 'let us get started'" + Environment.NewLine + "i = s.length"); re.ExecuteCommand(script); The only thing is, I don't know how to pass a .NET object to the context of the RubyEngine so it can be called from within the script. I'd like to update the example with that. Any help? Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/4c5b1502/attachment.html From Cory.Foy at microsoft.com Fri Sep 28 07:36:46 2007 From: Cory.Foy at microsoft.com (Cory Foy) Date: Fri, 28 Sep 2007 04:36:46 -0700 Subject: [Ironruby-core] Diving inside IronRuby Message-ID: <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D98C7@NA-EXMSG-C110.redmond.corp.microsoft.com> Howdy all, Last night I decided to write up what happens when you execute a block of code using IronRuby. Being that I'm not on the IronRuby team, and I can only know what I see in the code, I'm betting I got stuff wrong. Here's the post: http://www.cornetdesign.com/2007/09/inside-ironruby.html If I got anything wrong, feel free to let me know. I did find one typo - in GPPG.cs the Rule class has RhsLength misspelled as RhsLenght. I'd be happy to fix it, but I don't have access. Cory -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/e33b593d/attachment.html From enicholson at gmail.com Fri Sep 28 09:38:28 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Fri, 28 Sep 2007 09:38:28 -0400 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <013901c8019b$49bc8770$dd359650$@com> References: <013901c8019b$49bc8770$dd359650$@com> Message-ID: Here's a quick example: RubyEngine re = RubyEngine.CurrentEngine; IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule string script = "puts 'Ruby and ' + var.to_s + ' together at last'" mod.SetVariable("var", ".NET") re.ExecuteCommand(script, mod); A couple things to note: 1. var.to_s is necessary because I don't think IR is coercing CLR Strings to Ruby Strings yet. 2. I'm not sure why you need to pass in the default module to ExecuteCommand, but I wasn't able to evaluate the variable in Ruby otherwise. -Eric On 9/28/07, Phil Haack wrote: > > Hi All, I posted some code for calling IronRuby code I found in the > mailing list onto the wiki. > > > > http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp > > > > RubyEngine re = RubyEngine.CurrentEngine; > > string script = "s = 'let us get started'" + Environment.NewLine > > + "i = s.length"); > > re.ExecuteCommand(script); > > > > The only thing is, I don't know how to pass a .NET object to the context > of the RubyEngine so it can be called from within the script. I'd like to > update the example with that. > > > > Any help? > > > > Phil > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/e7a698c0/attachment.html From enicholson at gmail.com Fri Sep 28 09:39:37 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Fri, 28 Sep 2007 09:39:37 -0400 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: References: <013901c8019b$49bc8770$dd359650$@com> Message-ID: Whoops ... missing some semicolons there. Can you tell I spend most of my day in VB.NET? On 9/28/07, Eric Nicholson wrote: > > Here's a quick example: > > RubyEngine re = RubyEngine.CurrentEngine; > IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule > > string script = "puts 'Ruby and ' + var.to_s + ' together at last'" > > mod.SetVariable("var", ".NET") > > re.ExecuteCommand(script, mod); > A couple things to note: > 1. var.to_s is necessary because I don't think IR is coercing CLR Strings > to Ruby Strings yet. > 2. I'm not sure why you need to pass in the default module to > ExecuteCommand, but I wasn't able to evaluate the variable in Ruby > otherwise. > > -Eric > > On 9/28/07, Phil Haack wrote: > > > Hi All, I posted some code for calling IronRuby code I found in the > > mailing list onto the wiki. > > > > > > > > http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp > > > > > > > > RubyEngine re = RubyEngine.CurrentEngine; > > > > string script = "s = 'let us get started'" + Environment.NewLine > > > > + "i = s.length"); > > > > re.ExecuteCommand(script); > > > > > > > > The only thing is, I don't know how to pass a .NET object to the context > > of the RubyEngine so it can be called from within the script. I'd like to > > update the example with that. > > > > > > > > Any help? > > > > > > > > Phil > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/1e4d04f9/attachment.html From stefan.huettenrauch at hpi.uni-potsdam.de Fri Sep 28 10:49:24 2007 From: stefan.huettenrauch at hpi.uni-potsdam.de (=?iso-8859-1?Q?Stefan_H=FCttenrauch?=) Date: Fri, 28 Sep 2007 16:49:24 +0200 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: References: <013901c8019b$49bc8770$dd359650$@com> Message-ID: <017501c801de$c36e6aa0$4a4b3fe0$@huettenrauch@hpi.uni-potsdam.de> Nice stuff Eric, Have you already passed real objects back and forth between Ruby and C#?? That would be the real cool stuff. I will hack a little tomorrow I guess, but if you have any tips already, that would be great. Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Freitag, 28. September 2007 15:40 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Whoops ... missing some semicolons there. Can you tell I spend most of my day in VB.NET? On 9/28/07, Eric Nicholson < enicholson at gmail.com > wrote: Here's a quick example: RubyEngine re = RubyEngine.CurrentEngine; IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule string script = "puts 'Ruby and ' + var.to_s + ' together at last'" mod.SetVariable("var", ".NET") re.ExecuteCommand(script, mod); A couple things to note: 1. var.to_s is necessary because I don't think IR is coercing CLR Strings to Ruby Strings yet. 2. I'm not sure why you need to pass in the default module to ExecuteCommand, but I wasn't able to evaluate the variable in Ruby otherwise. -Eric On 9/28/07, Phil Haack wrote: Hi All, I posted some code for calling IronRuby code I found in the mailing list onto the wiki. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp RubyEngine re = RubyEngine.CurrentEngine; string script = "s = 'let us get started'" + Environment.NewLine + "i = s.length"); re.ExecuteCommand(script); The only thing is, I don't know how to pass a .NET object to the context of the RubyEngine so it can be called from within the script. I'd like to update the example with that. Any help? Phil _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/d986f3ec/attachment-0001.html From enicholson at gmail.com Fri Sep 28 10:55:27 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Fri, 28 Sep 2007 10:55:27 -0400 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <2386411504455518446@unknownmsgid> References: <013901c8019b$49bc8770$dd359650$@com> <2386411504455518446@unknownmsgid> Message-ID: Well, technically between Ruby and VB.Net, but yeah, absolutely, works quite well too. The string above is actually a "real" object the way Ruby sees it, so it's basically the same. I'll put a quick example together if no one beats me to it. -Eric On 9/28/07, Stefan H?ttenrauch wrote: > > Nice stuff Eric, > > > > Have you already passed real objects back and forth between Ruby and C#?? > That would be the real cool stuff. I will hack a little tomorrow I guess, > but if you have any tips already, that would be great. > > > > Thanks > > Stefan > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Freitag, 28. September 2007 15:40 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Passing a .NET object to the RubyEngine... > > > > Whoops ... missing some semicolons there. Can you tell I spend most of my > day in VB.NET? > > On 9/28/07, *Eric Nicholson* < enicholson at gmail.com> wrote: > > Here's a quick example: > > RubyEngine re = RubyEngine.CurrentEngine; > IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule > > string script = "puts 'Ruby and ' + var.to_s + ' together at last'" > > mod.SetVariable("var", ".NET") > > re.ExecuteCommand(script, mod); > > A couple things to note: > 1. var.to_s is necessary because I don't think IR is coercing CLR Strings > to Ruby Strings yet. > 2. I'm not sure why you need to pass in the default module to > ExecuteCommand, but I wasn't able to evaluate the variable in Ruby > otherwise. > > -Eric > > On 9/28/07, *Phil Haack* wrote: > > Hi All, I posted some code for calling IronRuby code I found in the > mailing list onto the wiki. > > > > http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp > > > > RubyEngine re = RubyEngine.CurrentEngine; > > string script = "s = 'let us get started'" + Environment.NewLine > > + "i = s.length"); > > re.ExecuteCommand(script); > > > > The only thing is, I don't know how to pass a .NET object to the context > of the RubyEngine so it can be called from within the script. I'd like to > update the example with that. > > > > Any help? > > > > Phil > > > _______________________________________________ > 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: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/dac01851/attachment.html From Cory.Foy at microsoft.com Fri Sep 28 11:02:28 2007 From: Cory.Foy at microsoft.com (Cory Foy) Date: Fri, 28 Sep 2007 08:02:28 -0700 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <017501c801de$c36e6aa0$4a4b3fe0$@huettenrauch@hpi.uni-potsdam.de> References: <013901c8019b$49bc8770$dd359650$@com> <017501c801de$c36e6aa0$4a4b3fe0$@huettenrauch@hpi.uni-potsdam.de> Message-ID: <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D997C@NA-EXMSG-C110.redmond.corp.microsoft.com> That's what I was thinking too. Here's what I put together: class Program { static void Main(string[] args) { RubyEngine re = RubyEngine.CurrentEngine; IScriptModule scriptModule = ScriptDomainManager.CurrentManager.Host.DefaultModule; string script = "require 'CSIronRuby'; puts 'Hello, ' + var.GetName.to_s + ' World!'"; MyName name = new MyName(); scriptModule.SetVariable("var", name); re.ExecuteCommand(script, scriptModule); Console.ReadLine(); } } public class MyName { public string Name = "Cory"; public string GetName() { return Name; } } For some reason, I was having difficulty getting it to output just Name - I just didn't want to tear into it. Cory From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Friday, September 28, 2007 10:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Nice stuff Eric, Have you already passed real objects back and forth between Ruby and C#?? That would be the real cool stuff. I will hack a little tomorrow I guess, but if you have any tips already, that would be great. Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Freitag, 28. September 2007 15:40 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Whoops ... missing some semicolons there. Can you tell I spend most of my day in VB.NET? On 9/28/07, Eric Nicholson < enicholson at gmail.com> wrote: Here's a quick example: RubyEngine re = RubyEngine.CurrentEngine; IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule string script = "puts 'Ruby and ' + var.to_s + ' together at last'" mod.SetVariable("var", ".NET") re.ExecuteCommand(script, mod); A couple things to note: 1. var.to_s is necessary because I don't think IR is coercing CLR Strings to Ruby Strings yet. 2. I'm not sure why you need to pass in the default module to ExecuteCommand, but I wasn't able to evaluate the variable in Ruby otherwise. -Eric On 9/28/07, Phil Haack > wrote: Hi All, I posted some code for calling IronRuby code I found in the mailing list onto the wiki. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp RubyEngine re = RubyEngine.CurrentEngine; string script = "s = 'let us get started'" + Environment.NewLine + "i = s.length"); re.ExecuteCommand(script); The only thing is, I don't know how to pass a .NET object to the context of the RubyEngine so it can be called from within the script. I'd like to update the example with that. Any help? Phil _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/e69beed1/attachment-0001.html From charles.nutter at sun.com Fri Sep 28 12:12:43 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Fri, 28 Sep 2007 18:12:43 +0200 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: References: <013901c8019b$49bc8770$dd359650$@com> Message-ID: <46FD27FB.60805@sun.com> Eric Nicholson wrote: > Here's a quick example: > > RubyEngine re = RubyEngine.CurrentEngine; > IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule > > string script = "puts 'Ruby and ' + var.to_s + ' together at last'" > > mod.SetVariable("var", ".NET") > > re.ExecuteCommand(script, mod); > > A couple things to note: > 1. var.to_s is necessary because I don't think IR is coercing CLR > Strings to Ruby Strings yet. > 2. I'm not sure why you need to pass in the default module to > ExecuteCommand, but I wasn't able to evaluate the variable in Ruby > otherwise. How can this work? In order for var to be available in the script, it would have to be added into the toplevel scope. This would either mean that var is now available in all toplevel scopes across the system (incompatible with Ruby) or that it would only be available in the current thread's scope above toplevel (which would prevent seeing it in other threads. I'm a little confused. In JRuby we opted to not allow external variable binding into the eventual execution scope, because it seemed to violate that the scope should be created fresh for each script execution. - Charlie From enicholson at gmail.com Fri Sep 28 13:28:43 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Fri, 28 Sep 2007 13:28:43 -0400 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <46FD27FB.60805@sun.com> References: <013901c8019b$49bc8770$dd359650$@com> <46FD27FB.60805@sun.com> Message-ID: Someone at MS can probably answer this better than I, but I'm guessing that passing in the module explicitly to the ExecuteCommand statement is what makes this work. If you leave off that optional parameter the variable isn't directly accessible. You can always create a new module fairly easily and pass that in as well if you'd rather. On 9/28/07, Charles Oliver Nutter wrote: > > Eric Nicholson wrote: > > Here's a quick example: > > > > RubyEngine re = RubyEngine.CurrentEngine; > > IScriptModule mod = > ScriptDomainManager.CurrentManager.Host.DefaultModule > > > > string script = "puts 'Ruby and ' + var.to_s + ' together at last'" > > > > mod.SetVariable("var", ".NET") > > > > re.ExecuteCommand(script, mod); > > > > A couple things to note: > > 1. var.to_s is necessary because I don't think IR is coercing CLR > > Strings to Ruby Strings yet. > > 2. I'm not sure why you need to pass in the default module to > > ExecuteCommand, but I wasn't able to evaluate the variable in Ruby > > otherwise. > > How can this work? In order for var to be available in the script, it > would have to be added into the toplevel scope. This would either mean > that var is now available in all toplevel scopes across the system > (incompatible with Ruby) or that it would only be available in the > current thread's scope above toplevel (which would prevent seeing it in > other threads. I'm a little confused. In JRuby we opted to not allow > external variable binding into the eventual execution scope, because it > seemed to violate that the scope should be created fresh for each script > execution. > > - Charlie > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/75418b50/attachment.html From Cory.Foy at microsoft.com Fri Sep 28 13:33:47 2007 From: Cory.Foy at microsoft.com (Cory Foy) Date: Fri, 28 Sep 2007 10:33:47 -0700 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D997C@NA-EXMSG-C110.redmond.corp.microsoft.com> References: <013901c8019b$49bc8770$dd359650$@com> <017501c801de$c36e6aa0$4a4b3fe0$@huettenrauch@hpi.uni-potsdam.de> <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D997C@NA-EXMSG-C110.redmond.corp.microsoft.com> Message-ID: <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D9AC5@NA-EXMSG-C110.redmond.corp.microsoft.com> Sorry, ignore the require line in the script - that was cruft left over from something else I was doing and isn't needed. Cory From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Cory Foy Sent: Friday, September 28, 2007 11:02 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... That's what I was thinking too. Here's what I put together: class Program { static void Main(string[] args) { RubyEngine re = RubyEngine.CurrentEngine; IScriptModule scriptModule = ScriptDomainManager.CurrentManager.Host.DefaultModule; string script = "require 'CSIronRuby'; puts 'Hello, ' + var.GetName.to_s + ' World!'"; MyName name = new MyName(); scriptModule.SetVariable("var", name); re.ExecuteCommand(script, scriptModule); Console.ReadLine(); } } public class MyName { public string Name = "Cory"; public string GetName() { return Name; } } For some reason, I was having difficulty getting it to output just Name - I just didn't want to tear into it. Cory From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Friday, September 28, 2007 10:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Nice stuff Eric, Have you already passed real objects back and forth between Ruby and C#?? That would be the real cool stuff. I will hack a little tomorrow I guess, but if you have any tips already, that would be great. Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Freitag, 28. September 2007 15:40 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Whoops ... missing some semicolons there. Can you tell I spend most of my day in VB.NET? On 9/28/07, Eric Nicholson < enicholson at gmail.com> wrote: Here's a quick example: RubyEngine re = RubyEngine.CurrentEngine; IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule string script = "puts 'Ruby and ' + var.to_s + ' together at last'" mod.SetVariable("var", ".NET") re.ExecuteCommand(script, mod); A couple things to note: 1. var.to_s is necessary because I don't think IR is coercing CLR Strings to Ruby Strings yet. 2. I'm not sure why you need to pass in the default module to ExecuteCommand, but I wasn't able to evaluate the variable in Ruby otherwise. -Eric On 9/28/07, Phil Haack > wrote: Hi All, I posted some code for calling IronRuby code I found in the mailing list onto the wiki. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp RubyEngine re = RubyEngine.CurrentEngine; string script = "s = 'let us get started'" + Environment.NewLine + "i = s.length"); re.ExecuteCommand(script); The only thing is, I don't know how to pass a .NET object to the context of the RubyEngine so it can be called from within the script. I'd like to update the example with that. Any help? Phil _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/06bccb0e/attachment-0001.html From haacked at gmail.com Fri Sep 28 13:36:02 2007 From: haacked at gmail.com (Phil Haack) Date: Fri, 28 Sep 2007 10:36:02 -0700 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: References: <013901c8019b$49bc8770$dd359650$@com> Message-ID: <01b501c801f6$0b75c7f0$226157d0$@com> Nice! I'll update the wiki. This worked for me. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Friday, September 28, 2007 6:38 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Here's a quick example: RubyEngine re = RubyEngine.CurrentEngine; IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule string script = "puts 'Ruby and ' + var.to_s + ' together at last'" mod.SetVariable("var", ".NET") re.ExecuteCommand(script, mod); A couple things to note: 1. var.to_s is necessary because I don't think IR is coercing CLR Strings to Ruby Strings yet. 2. I'm not sure why you need to pass in the default module to ExecuteCommand, but I wasn't able to evaluate the variable in Ruby otherwise. -Eric On 9/28/07, Phil Haack wrote: Hi All, I posted some code for calling IronRuby code I found in the mailing list onto the wiki. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp RubyEngine re = RubyEngine.CurrentEngine; string script = "s = 'let us get started'" + Environment.NewLine + "i = s.length"); re.ExecuteCommand(script); The only thing is, I don't know how to pass a .NET object to the context of the RubyEngine so it can be called from within the script. I'd like to update the example with that. Any help? Phil _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/21ad9bf9/attachment.html From charles.nutter at sun.com Fri Sep 28 13:48:05 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Fri, 28 Sep 2007 19:48:05 +0200 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: References: <013901c8019b$49bc8770$dd359650$@com> <46FD27FB.60805@sun.com> Message-ID: <46FD3E55.309@sun.com> Eric Nicholson wrote: > Someone at MS can probably answer this better than I, but I'm guessing > that passing in the module explicitly to the ExecuteCommand statement is > what makes this work. If you leave off that optional parameter the > variable isn't directly accessible. > > You can always create a new module fairly easily and pass that in as > well if you'd rather. Local variables aren't stored in modules though; unless this is adding an attribute, which would seem really wrong. - Charlie From enicholson at gmail.com Fri Sep 28 14:09:14 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Fri, 28 Sep 2007 14:09:14 -0400 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <46FD3E55.309@sun.com> References: <013901c8019b$49bc8770$dd359650$@com> <46FD27FB.60805@sun.com> <46FD3E55.309@sun.com> Message-ID: I believe there are two types of "Modules" at play here. I think a DLR "Module" is something more like a scope than the Ruby "Module". On 9/28/07, Charles Oliver Nutter wrote: > > Eric Nicholson wrote: > > Someone at MS can probably answer this better than I, but I'm guessing > > that passing in the module explicitly to the ExecuteCommand statement is > > what makes this work. If you leave off that optional parameter the > > variable isn't directly accessible. > > > > You can always create a new module fairly easily and pass that in as > > well if you'd rather. > > Local variables aren't stored in modules though; unless this is adding > an attribute, which would seem really wrong. > > - Charlie > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/e52eabd8/attachment.html From Tomas.Matousek at microsoft.com Fri Sep 28 15:45:32 2007 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 28 Sep 2007 12:45:32 -0700 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D997C@NA-EXMSG-C110.redmond.corp.microsoft.com> References: <013901c8019b$49bc8770$dd359650$@com> <017501c801de$c36e6aa0$4a4b3fe0$@huettenrauch@hpi.uni-potsdam.de> <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D997C@NA-EXMSG-C110.redmond.corp.microsoft.com> Message-ID: This is part of the hosting API we provide for host applications so that they can pass objects to and from a dynamic language (be it Ruby or Python), execute some code within some scope etc. This API gradually undergoes major changes and it isn't fully compatible with Ruby's semantics today. We already have some design on "paper" (needs to be polished/reviewed still) that makes it right. It's implementation will take some time though. The code bellow should kind of work (there is a little tweak to the variable binding in the Ruby compiler to allow it) until we provide some better way. Good news is that we found a way how to do the integration right for Ruby, so all features listed above (passing objects there and back, executing code, etc) will be available in future. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Cory Foy Sent: Friday, September 28, 2007 8:02 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... That's what I was thinking too. Here's what I put together: class Program { static void Main(string[] args) { RubyEngine re = RubyEngine.CurrentEngine; IScriptModule scriptModule = ScriptDomainManager.CurrentManager.Host.DefaultModule; string script = "require 'CSIronRuby'; puts 'Hello, ' + var.GetName.to_s + ' World!'"; MyName name = new MyName(); scriptModule.SetVariable("var", name); re.ExecuteCommand(script, scriptModule); Console.ReadLine(); } } public class MyName { public string Name = "Cory"; public string GetName() { return Name; } } For some reason, I was having difficulty getting it to output just Name - I just didn't want to tear into it. Cory From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Friday, September 28, 2007 10:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Nice stuff Eric, Have you already passed real objects back and forth between Ruby and C#?? That would be the real cool stuff. I will hack a little tomorrow I guess, but if you have any tips already, that would be great. Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Freitag, 28. September 2007 15:40 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Whoops ... missing some semicolons there. Can you tell I spend most of my day in VB.NET? On 9/28/07, Eric Nicholson < enicholson at gmail.com> wrote: Here's a quick example: RubyEngine re = RubyEngine.CurrentEngine; IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule string script = "puts 'Ruby and ' + var.to_s + ' together at last'" mod.SetVariable("var", ".NET") re.ExecuteCommand(script, mod); A couple things to note: 1. var.to_s is necessary because I don't think IR is coercing CLR Strings to Ruby Strings yet. 2. I'm not sure why you need to pass in the default module to ExecuteCommand, but I wasn't able to evaluate the variable in Ruby otherwise. -Eric On 9/28/07, Phil Haack > wrote: Hi All, I posted some code for calling IronRuby code I found in the mailing list onto the wiki. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp RubyEngine re = RubyEngine.CurrentEngine; string script = "s = 'let us get started'" + Environment.NewLine + "i = s.length"); re.ExecuteCommand(script); The only thing is, I don't know how to pass a .NET object to the context of the RubyEngine so it can be called from within the script. I'd like to update the example with that. Any help? Phil _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/edea60fb/attachment-0001.html From haacked at gmail.com Fri Sep 28 18:19:38 2007 From: haacked at gmail.com (Phil Haack) Date: Fri, 28 Sep 2007 15:19:38 -0700 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: References: <013901c8019b$49bc8770$dd359650$@com> <017501c801de$c36e6aa0$4a4b3fe0$@huettenrauch@hpi.uni-potsdam.de> <1AC17FAF2165B641AC2AF42BBEED58CF3BB83D997C@NA-EXMSG-C110.redmond.corp.microsoft.com> Message-ID: <020801c8021d$a9566de0$fc0349a0$@com> I updated the demo code in the wiki based on the code snippet here. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp I?ll try and make sure it stays up to date. J Phil From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Friday, September 28, 2007 12:46 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... This is part of the hosting API we provide for host applications so that they can pass objects to and from a dynamic language (be it Ruby or Python), execute some code within some scope etc. This API gradually undergoes major changes and it isn?t fully compatible with Ruby?s semantics today. We already have some design on ?paper? (needs to be polished/reviewed still) that makes it right. It?s implementation will take some time though. The code bellow should kind of work (there is a little tweak to the variable binding in the Ruby compiler to allow it) until we provide some better way. Good news is that we found a way how to do the integration right for Ruby, so all features listed above (passing objects there and back, executing code, etc) will be available in future. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Cory Foy Sent: Friday, September 28, 2007 8:02 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... That?s what I was thinking too. Here?s what I put together: class Program { static void Main(string[] args) { RubyEngine re = RubyEngine.CurrentEngine; IScriptModule scriptModule = ScriptDomainManager.CurrentManager.Host.DefaultModule; string script = "require 'CSIronRuby'; puts 'Hello, ' + var.GetName.to_s + ' World!'"; MyName name = new MyName(); scriptModule.SetVariable("var", name); re.ExecuteCommand(script, scriptModule); Console.ReadLine(); } } public class MyName { public string Name = "Cory"; public string GetName() { return Name; } } For some reason, I was having difficulty getting it to output just Name ? I just didn?t want to tear into it. Cory From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Friday, September 28, 2007 10:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Nice stuff Eric, Have you already passed real objects back and forth between Ruby and C#?? That would be the real cool stuff. I will hack a little tomorrow I guess, but if you have any tips already, that would be great. Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Freitag, 28. September 2007 15:40 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Passing a .NET object to the RubyEngine... Whoops ... missing some semicolons there. Can you tell I spend most of my day in VB.NET? On 9/28/07, Eric Nicholson < enicholson at gmail.com > wrote: Here's a quick example: RubyEngine re = RubyEngine.CurrentEngine; IScriptModule mod = ScriptDomainManager.CurrentManager.Host.DefaultModule string script = "puts 'Ruby and ' + var.to_s + ' together at last'" mod.SetVariable("var", ".NET") re.ExecuteCommand(script, mod); A couple things to note: 1. var.to_s is necessary because I don't think IR is coercing CLR Strings to Ruby Strings yet. 2. I'm not sure why you need to pass in the default module to ExecuteCommand, but I wasn't able to evaluate the variable in Ruby otherwise. -Eric On 9/28/07, Phil Haack wrote: Hi All, I posted some code for calling IronRuby code I found in the mailing list onto the wiki. http://ironruby.rubyforge.org/wiki/wiki.pl?ExecutingIronRubyFromCSharp RubyEngine re = RubyEngine.CurrentEngine; string script = "s = 'let us get started'" + Environment.NewLine + "i = s.length"); re.ExecuteCommand(script); The only thing is, I don't know how to pass a .NET object to the context of the RubyEngine so it can be called from within the script. I'd like to update the example with that. Any help? Phil _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070928/cecc71ec/attachment.html From tranqy at gmail.com Sat Sep 29 16:02:52 2007 From: tranqy at gmail.com (Aaron Junod) Date: Sat, 29 Sep 2007 16:02:52 -0400 Subject: [Ironruby-core] IronRuby documentation/wiki... In-Reply-To: References: <004d01c800d1$06bca3d0$1435eb70$@com> <372109E149E8084D8E6C7D9CFD82E06329D28DF6F3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: I moved the list of audio and video links to the wiki. I'm sure I missed one ot two,, http://ironruby.rubyforge.org/wiki/wiki.pl?PodcastsAndVideos On 9/27/07, Aaron Junod wrote: > > I own the domain, but a couple other people post there as well. My blog is > separate, but just as dead :) > > Aaron > > On 9/27/07, Robert Bazinet < rbazinet at gmail.com> wrote: > > > > Aaron, > > > > Is this your blog or are you a contributor??? > > > > -Rob > > > > On 9/27/07, Aaron Junod < tranqy at gmail.com > wrote: > > > > > > Thanks for the plug.. We haven't fallen off the map yet either, just > > > haven't had a chance to post because of some hectic times at the day job. I > > > hope to get some more posts up there, and if anyone else on this list is > > > interested posting on the blog just let me know. > > > > > > Thanks > > > > > > Aaron > > > http://rubydoes.net > > > > > > On 9/27/07, John Lam (DLR) < jflam at microsoft.com> wrote: > > > > > > > > There's a blog that does a good job of collecting some of the > > > > earlier information: http://rubydoes.net/ > > > > > > > > > > > > > > > > The wiki wouldn't be a bad place to start collecting some > > > > information. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > -John > > > > > > > > > > > > > > > > > > > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > > > > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Phil Haack > > > > *Sent:* Wednesday, September 26, 2007 11:39 PM > > > > *To:* ironruby-core at rubyforge.org > > > > *Subject:* Re: [Ironruby-core] IronRuby documentation/wiki... > > > > > > > > > > > > > > > > I could have sworn there was a wiki somewhere that collected a lot > > > > of the Iron Ruby documentation spread out in the blogs of JLam, ScottGu, and > > > > ScottH. > > > > > > > > > > > > > > > > But today, I only found this: http://www.ironruby.net/ > > > > > > > > > > > > > > > > The RubyForge wiki is blank: > > > > http://ironruby.rubyforge.org/wiki/wiki.pl > > > > > > > > > > > > > > > > Anyone know where the old documentation went? Am I missing something > > > > obvious? Better yet, where should all the new documentation go? I'm > > > > looking to help. J > > > > > > > > > > > > > > > > Thanks! > > > > Phil Haack > > > > > > > > http://haacked.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 > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070929/db5040b8/attachment-0001.html From Shri.Borde at microsoft.com Sat Sep 29 23:24:45 2007 From: Shri.Borde at microsoft.com (Shri Borde) Date: Sat, 29 Sep 2007 20:24:45 -0700 Subject: [Ironruby-core] Hosting APIs walkthrough document Message-ID: <50B69702CA6E6D4E849D30CD4989AB8EAEB35C6132@DF-GRTDANE-MSG.exchange.corp.microsoft.com> http://compilerlab.members.winisp.net/hosting-tour.doc has a good walk through of the hosting APIs in IPy 2.0. It may be a little out of sync with the current sources, but its still a very good source of information. There have been questions on using the hosting APIs, and this should help with getting started. Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070929/558101d0/attachment.html From tranqy at gmail.com Sun Sep 30 08:17:44 2007 From: tranqy at gmail.com (Aaron Junod) Date: Sun, 30 Sep 2007 08:17:44 -0400 Subject: [Ironruby-core] ironruby.net and www.ironruby.net Message-ID: http://ironruby.net goes to a godaddy hosting page for me instead of the page at http://www.ironruby.net. Just noticed it as I was preparing a post. Thanks Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070930/3fa148f9/attachment.html From josh.nursing at gmail.com Sun Sep 30 15:24:54 2007 From: josh.nursing at gmail.com (Josh Nursing) Date: Sun, 30 Sep 2007 14:24:54 -0500 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <46FD3E55.309@sun.com> References: <013901c8019b$49bc8770$dd359650$@com> <46FD27FB.60805@sun.com> <46FD3E55.309@sun.com> Message-ID: <46FFF806.3080908@gmail.com> BTW, Charles, congrats on the release of JRuby. Josh Nursing Charles Oliver Nutter wrote: From enicholson at gmail.com Sun Sep 30 19:15:15 2007 From: enicholson at gmail.com (Eric Nicholson) Date: Sun, 30 Sep 2007 19:15:15 -0400 Subject: [Ironruby-core] IO, File Implementations Message-ID: What's the status on the IO and File classes? Is that something you would take contributions on? I would rate that as a pretty high barrier to entry. Having File would make lots of useful scripts possible. -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070930/336afe49/attachment.html From charles.nutter at sun.com Sun Sep 30 22:23:24 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Sun, 30 Sep 2007 21:23:24 -0500 Subject: [Ironruby-core] Passing a .NET object to the RubyEngine... In-Reply-To: <46FFF806.3080908@gmail.com> References: <013901c8019b$49bc8770$dd359650$@com> <46FD27FB.60805@sun.com> <46FD3E55.309@sun.com> <46FFF806.3080908@gmail.com> Message-ID: <47005A1C.4010607@sun.com> Josh Nursing wrote: > BTW, Charles, > > congrats on the release of JRuby. Well, it isn't a new release yet; the current release is still the 1.0.1 maintenance release we cut this summer. I just blogged about the compiler being complete, and it will be shipped with the 1.1 release (candidate) in November. Thanks for the congrats though :) - Charlie