From dotnetguy at gmail.com Sun Jun 1 16:18:27 2008 From: dotnetguy at gmail.com (Brad Wilson) Date: Sun, 1 Jun 2008 13:18:27 -0700 Subject: [Ironruby-core] Build target for YAML project Message-ID: <6bbcce480806011318n676e9cbbj28218b8c617beb31@mail.gmail.com> Is there a reason why the output path for the YAML project is: ..\..\..\..\..\Main\bin\Debug\ rather than ..\..\build\debug\ ? The latter tries to place binaries outside the checkout folder. -- http://bradwilson.typepad.com/ http://www.flickr.com/photos/dotnetguy/ http://www.last.fm/user/dotnetguy/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From curt at hagenlocher.org Sun Jun 1 17:13:37 2008 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Sun, 1 Jun 2008 14:13:37 -0700 Subject: [Ironruby-core] Build target for YAML project In-Reply-To: <6bbcce480806011318n676e9cbbj28218b8c617beb31@mail.gmail.com> References: <6bbcce480806011318n676e9cbbj28218b8c617beb31@mail.gmail.com> Message-ID: The reason for this is that our internal directory tree doesn't quite match the tree that gets published to RubyForge. The process for pushing out the sources includes the application of some transforms to file layout and to certain files. This file was apparently missed, probably because it was added during the run-up to RailsConf. The best way to make sure it gets resolved is to file a bug report for it at RubyForge. On Sun, Jun 1, 2008 at 1:18 PM, Brad Wilson wrote: > Is there a reason why the output path for the YAML project is: > > ..\..\..\..\..\Main\bin\Debug\ > > rather than > > ..\..\build\debug\ > > ? The latter tries to place binaries outside the checkout folder. > > -- > http://bradwilson.typepad.com/ > http://www.flickr.com/photos/dotnetguy/ > http://www.last.fm/user/dotnetguy/ > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Mon Jun 2 00:52:06 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Sun, 1 Jun 2008 21:52:06 -0700 Subject: [Ironruby-core] Just pushed out r113 to SVN Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD0600D36@NA-EXMSG-C115.redmond.corp.microsoft.com> This is the version of IronRuby that we had before we went down to RailsConf. It will run "hello world" in a view which contains an erb template. This code does pass our test suite and does not have any known regressions from previous builds. This version does not, however, contain the code that we used to get ActiveRecord running. We were hacking and slashing our way to get that to work with 10 minutes to spare before our talk, and that code does not pass our tests today. We will fix that code tomorrow and run it through our checkin troll. Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Mon Jun 2 01:01:21 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Sun, 1 Jun 2008 22:01:21 -0700 Subject: [Ironruby-core] RailsConf hacks Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD0600D3A@NA-EXMSG-C115.redmond.corp.microsoft.com> I've prepared a diff that contains the code that we hacked in to get ActiveRecord to work. If you're curious, take a look at this code or apply it to r113. That said, it does break a TON of tests for some reason that I don't quite understand right now. Hopefully it helps you understand what we did to get things to work ... I'm also attaching our SQL Server ActiveRecord adapter that was writing in pure Ruby. Thanks, -John -------------- next part -------------- A non-text attachment was scrubbed... Name: railsconf1.diff Type: application/octet-stream Size: 68896 bytes Desc: railsconf1.diff URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mssql_adapter.rb Type: application/octet-stream Size: 18958 bytes Desc: mssql_adapter.rb URL: From lists at ruby-forum.com Mon Jun 2 03:07:59 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Mon, 2 Jun 2008 09:07:59 +0200 Subject: [Ironruby-core] Asp.Net MVC with IronRuby at TechEd Message-ID: Hi, In response to my comment on ScottGu's blog regarding VS Express Support for IronRuby and Asp.Net MVC, I was immediately responded with Encouraging news from Mr. ScottGu. I Hope many would like to read this and smile. This is the Original Blog By Mr. ScottGu. http://weblogs.asp.net/scottgu/archive/2008/06/01/asp-net-mvc-support-with-visual-web-developer-2008-express.aspx#comments Here's the response by Mr. Scott. Hi Softmind, >>>>>>>> Congrats to your team. Now Asp.Net will be used by 4 communities (1) C# (2) VB.Net (3) IronRuby and (4) IronPython. I would like to know more about your plans for supporting this this 2 new languages to VS Express 2008. I personally think, the support for this two languages will be welcomed by mass developers, who are keen to enter .Net with their Python and Ruby background. --SoftMind I believe we will be showing using ASP.NET MVC with IronRuby and IronPython later this week at TechEd. I don't think we've finalized what the tooling support will be - but you will be able to use these as language options with ASP.NET. Hope this helps, Scott Hello John, Can we expect more details of TechEd on your blog next week. Thanks -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Jun 2 03:39:06 2008 From: lists at ruby-forum.com (Rahil Kantharia) Date: Mon, 2 Jun 2008 09:39:06 +0200 Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. Message-ID: Hi, Will there be any significant difference between Asp.Net with C# and IronRuby.? Since i have ready many blogs claiming C# to be running faster than Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or Vb.Net. I am more confused about performance since C# runs directly on CLR and... IronRuby runs on DLR, which itself runs above CLR. Let me make more clear. C# -------- Runs on DLR ---------Only one layer. IronRuby ---------- DLR --------- CLR --------------Two layers. Sorry for my newbie question. This question applies to IronRuby final RTM Thanks -- Posted via http://www.ruby-forum.com/. From dotnetguy at gmail.com Mon Jun 2 04:20:20 2008 From: dotnetguy at gmail.com (Brad Wilson) Date: Mon, 2 Jun 2008 01:20:20 -0700 Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. In-Reply-To: References: Message-ID: <6bbcce480806020120r1d0574b1yaf38e6e2c23634da@mail.gmail.com> On Mon, Jun 2, 2008 at 12:39 AM, Rahil Kantharia wrote: > Will there be any significant difference between Asp.Net with C# and > IronRuby.? > > Since i have ready many blogs claiming C# to be running faster than > Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or > Vb.Net. > This question pre-supposes that the speed of the language is the most important factor in the performance of a web-site, an assertion I believe to be contrary to most evidence and experience. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ksunair at yahoo.com Mon Jun 2 09:47:09 2008 From: ksunair at yahoo.com (Unnikrishnan Nair) Date: Mon, 2 Jun 2008 06:47:09 -0700 (PDT) Subject: [Ironruby-core] RailsConf hacks In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD0600D3A@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <384356.38545.qm@web50604.mail.re2.yahoo.com> John,   Will you be posting the slides somewhere for the folks like me who couldn't attend the RailsConf?   Thanks and great work getting rails run. Unni --- On Sun, 6/1/08, John Lam (IRONRUBY) <jflam at microsoft.com> wrote: From: John Lam (IRONRUBY) <jflam at microsoft.com> Subject: [Ironruby-core] RailsConf hacks To: "ironruby-core at rubyforge.org" <ironruby-core at rubyforge.org> Date: Sunday, June 1, 2008, 11:01 PM I've prepared a diff that contains the code that we hacked in to get ActiveRecord to work. If you're curious, take a look at this code or apply it to r113. That said, it does break a TON of tests for some reason that I don't quite understand right now. Hopefully it helps you understand what we did to get things to work ... I'm also attaching our SQL Server ActiveRecord adapter that was writing in pure Ruby. Thanks, -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: From jdeville at microsoft.com Mon Jun 2 13:10:23 2008 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 2 Jun 2008 10:10:23 -0700 Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. In-Reply-To: <6bbcce480806020120r1d0574b1yaf38e6e2c23634da@mail.gmail.com> References: <6bbcce480806020120r1d0574b1yaf38e6e2c23634da@mail.gmail.com> Message-ID: Agreed, unless you are running high performance computing applications, like number crunching, your code will probably be slowed down by I/O, Database or other external factors. As far as performance, it isn?t a major concern for us yet. We are more focused on being compatible with RubySpec and CRuby. We will be involved in the Ruby Benchmark Suite project (http://antoniocangiano.com/2008/06/01/help-me-create-the-ruby-benchmark-suite/), and will focus on those benchmarks when the time comes. I?d say a better comparison would be ?will we be at par with JRuby or CRuby? and we hope to be on par with JRuby eventually. Sidenote: Can anyone give some links on those blogs (VB vs C#) they are both compiled to IL, so I don?t see why one would be faster, just curious. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brad Wilson Sent: Monday, June 02, 2008 1:20 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. On Mon, Jun 2, 2008 at 12:39 AM, Rahil Kantharia > wrote: Will there be any significant difference between Asp.Net with C# and IronRuby.? Since i have ready many blogs claiming C# to be running faster than Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or Vb.Net. This question pre-supposes that the speed of the language is the most important factor in the performance of a web-site, an assertion I believe to be contrary to most evidence and experience. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dotnetguy at gmail.com Mon Jun 2 13:24:30 2008 From: dotnetguy at gmail.com (Brad Wilson) Date: Mon, 2 Jun 2008 10:24:30 -0700 Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. In-Reply-To: References: <6bbcce480806020120r1d0574b1yaf38e6e2c23634da@mail.gmail.com> Message-ID: <6bbcce480806021024l3d846a73l117ccd2bb41e9365@mail.gmail.com> It was true, early in .NET, that the C# compiler was a more aggressive optimizer than the VB.net compiler. Not sure if it's still true or not. On Mon, Jun 2, 2008 at 10:10 AM, Jim Deville wrote: > Sidenote: Can anyone give some links on those blogs (VB vs C#) they are > both compiled to IL, so I don't see why one would be faster, just curious. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jun 2 13:31:11 2008 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 2 Jun 2008 10:31:11 -0700 Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. In-Reply-To: <6bbcce480806021024l3d846a73l117ccd2bb41e9365@mail.gmail.com> References: <6bbcce480806020120r1d0574b1yaf38e6e2c23634da@mail.gmail.com> <6bbcce480806021024l3d846a73l117ccd2bb41e9365@mail.gmail.com> Message-ID: Ah. Didn?t know that. Thanks! JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brad Wilson Sent: Monday, June 02, 2008 10:25 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. It was true, early in .NET, that the C# compiler was a more aggressive optimizer than the VB.net compiler. Not sure if it's still true or not. On Mon, Jun 2, 2008 at 10:10 AM, Jim Deville > wrote: Sidenote: Can anyone give some links on those blogs (VB vs C#) they are both compiled to IL, so I don't see why one would be faster, just curious. -------------- next part -------------- An HTML attachment was scrubbed... URL: From enicholson at gmail.com Mon Jun 2 14:04:11 2008 From: enicholson at gmail.com (Eric Nicholson) Date: Mon, 2 Jun 2008 14:04:11 -0400 Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. In-Reply-To: References: <6bbcce480806020120r1d0574b1yaf38e6e2c23634da@mail.gmail.com> Message-ID: I've seen a couple suggestions on blogs that suggested C# was faster than VB.NET, but when it came down to testing, either the code wasn't directly equivalent or the performance difference was fairly negligible. If someone has something to suggest otherwise, I'd be interested in that too. On Mon, Jun 2, 2008 at 1:10 PM, Jim Deville wrote: > Agreed, unless you are running high performance computing applications, > like number crunching, your code will probably be slowed down by I/O, > Database or other external factors. As far as performance, it isn't a major > concern for us yet. We are more focused on being compatible with RubySpec > and CRuby. We will be involved in the Ruby Benchmark Suite project ( > http://antoniocangiano.com/2008/06/01/help-me-create-the-ruby-benchmark-suite/), > and will focus on those benchmarks when the time comes. I'd say a better > comparison would be "will we be at par with JRuby or CRuby" and we hope to > be on par with JRuby eventually. > > > > Sidenote: Can anyone give some links on those blogs (VB vs C#) they are > both compiled to IL, so I don't see why one would be faster, just curious. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Brad Wilson > *Sent:* Monday, June 02, 2008 1:20 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Performance difference in Asp.Net with > IronRuby. > > > > On Mon, Jun 2, 2008 at 12:39 AM, Rahil Kantharia > wrote: > > Will there be any significant difference between Asp.Net with C# and > IronRuby.? > > Since i have ready many blogs claiming C# to be running faster than > Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or > Vb.Net. > > > This question pre-supposes that the speed of the language is the most > important factor in the performance of a web-site, an assertion I believe to > be contrary to most evidence and experience. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_tayseer82 at yahoo.com Mon Jun 2 14:07:57 2008 From: m_tayseer82 at yahoo.com (Mohammad Tayseer) Date: Mon, 2 Jun 2008 11:07:57 -0700 (PDT) Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. Message-ID: <942514.52427.qm@web31103.mail.mud.yahoo.com> Performance is a very complex issue. I suggest that everyone reads Joseph Newcomer article "Optimization: Your Worst Enemy" Mohammad Tayseer http://spellcoder.com/blogs/tayseer ----- Original Message ---- From: Jim Deville To: "ironruby-core at rubyforge.org" Sent: Monday, June 2, 2008 8:31:11 PM Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. Ah. Didn?t know that. Thanks! JD From:ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brad Wilson Sent: Monday, June 02, 2008 10:25 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. It was true, early in .NET, that the C# compiler was a more aggressive optimizer than the VB.net compiler. Not sure if it's still true or not. On Mon, Jun 2, 2008 at 10:10 AM, Jim Deville wrote: Sidenote: Can anyone give some links on those blogs (VB vs C#) they are both compiled to IL, so I don't see why one would be faster, just curious. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Jun 2 14:39:36 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 2 Jun 2008 11:39:36 -0700 Subject: [Ironruby-core] Code Review: RailsConf6 Message-ID: tfpt review "/shelveset:RailsConf6;REDMOND\tomat" Refactoring: - Use CreateTemporaryVariable/CreateLocalVariable that takes a string instead of a symbol. - Don't use local variables for temporary variables. - Move scope related functionality to RubyScope from RubyOps and RubyExecutionContext. - Removes SuperCallTargetInfo struct - replaced by out parameters. Add CLR type creation and sting based evals logging. Adds SaveToDisk (-save) LoadFromDisk (-load) options and an experimental implementation. Adds SetName, TryLookupName to RubyContext to enable local variable lookup in DLR interpreter. Fixes bug [#20390] Regexp::MULTILINE doesn't make the regex multiline. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: RailsConf6.diff Type: application/octet-stream Size: 66462 bytes Desc: RailsConf6.diff URL: From jflam at microsoft.com Mon Jun 2 16:21:19 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 2 Jun 2008 13:21:19 -0700 Subject: [Ironruby-core] RailsConf hacks In-Reply-To: <384356.38545.qm@web50604.mail.re2.yahoo.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD0600D3A@NA-EXMSG-C115.redmond.corp.microsoft.com> <384356.38545.qm@web50604.mail.re2.yahoo.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06010B5@NA-EXMSG-C115.redmond.corp.microsoft.com> Slides aren't going to be much use - they are entirely content-free. Thanks, -Jon From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Unnikrishnan Nair Sent: Monday, June 02, 2008 6:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] RailsConf hacks John, Will you be posting the slides somewhere for the folks like me who couldn't attend the RailsConf? Thanks and great work getting rails run. Unni --- On Sun, 6/1/08, John Lam (IRONRUBY) wrote: From: John Lam (IRONRUBY) Subject: [Ironruby-core] RailsConf hacks To: "ironruby-core at rubyforge.org" Date: Sunday, June 1, 2008, 11:01 PM I've prepared a diff that contains the code that we hacked in to get ActiveRecord to work. If you're curious, take a look at this code or apply it to r113. That said, it does break a TON of tests for some reason that I don't quite understand right now. Hopefully it helps you understand what we did to get things to work ... I'm also attaching our SQL Server ActiveRecord adapter that was writing in pure Ruby. Thanks, -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: From jflam at microsoft.com Mon Jun 2 16:39:52 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 2 Jun 2008 13:39:52 -0700 Subject: [Ironruby-core] Asp.Net MVC with IronRuby at TechEd In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> Softmind Technology: > Here's the response by Mr. Scott. > > Hi Softmind, > > >>>>>>>> Congrats to your team. Now Asp.Net will be used by 4 > communities (1) C# (2) VB.Net (3) IronRuby and (4) IronPython. I would > like to know more about your plans for supporting this this 2 new > languages to VS Express 2008. I personally think, the support for this > two languages will be welcomed by mass developers, who are keen to > enter .Net with their Python and Ruby background. > > --SoftMind > > > I believe we will be showing using ASP.NET MVC with IronRuby and > IronPython later this week at TechEd. I don't think we've finalized > what the tooling support will be - but you will be able to use these as > language options with ASP.NET. > > Hope this helps, > > Scott > > > Hello John, > > Can we expect more details of TechEd on your blog next week. We have a bunch of work to do to land ASP.NET MVC + IronRuby for my Tech Ed talk. I'll have a blog post about that likely on the Friday just before my talk. Thanks, -John From jflam at microsoft.com Mon Jun 2 16:37:49 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 2 Jun 2008 13:37:49 -0700 Subject: [Ironruby-core] Performance difference in Asp.Net with IronRuby. In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06010DF@NA-EXMSG-C115.redmond.corp.microsoft.com> Rahil Kantharia: > Will there be any significant difference between Asp.Net with C# and > IronRuby.? > > Since i have ready many blogs claiming C# to be running faster than > Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or > Vb.Net. For pure computational speed, VB and C# are equivalent to each other and will be much faster than IronRuby. Whether you see the performance difference in real code will depend on where the bottleneck in your application is. For web application, it is highly unlikely that your app's perceived performance will bottleneck in the code that renders HTML. It is far more likely the case that you'll bottleneck on your database or some other shared resource. Thanks, -John From blowmage at gmail.com Mon Jun 2 16:51:08 2008 From: blowmage at gmail.com (Mike Moore) Date: Mon, 2 Jun 2008 14:51:08 -0600 Subject: [Ironruby-core] Asp.Net MVC with IronRuby at TechEd In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On Mon, Jun 2, 2008 at 2:39 PM, John Lam (IRONRUBY) wrote: > We have a bunch of work to do to land ASP.NET MVC + IronRuby for my Tech > Ed talk. I'll have a blog post about that likely on the Friday just before > my talk. > Isn't Tech?Ed this week? http://www.microsoft.com/events/teched2008/default.mspx If so, that doesn't seem like alot of time to get the ASP.NET MVC DLR-aware. Or is there less to do than I assume? > Thanks, > -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: From jflam at microsoft.com Mon Jun 2 17:42:43 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 2 Jun 2008 14:42:43 -0700 Subject: [Ironruby-core] Asp.Net MVC with IronRuby at TechEd In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06011AB@NA-EXMSG-C115.redmond.corp.microsoft.com> Mike Moore: > Isn't Tech*Ed this week? > > http://www.microsoft.com/events/teched2008/default.mspx > > If so, that doesn't seem like alot of time to get the ASP.NET MVC DLR- > aware. Or is there less to do than I assume? Yes it is. We hope there is less to do that you would assume :) -John From Tomas.Matousek at microsoft.com Mon Jun 2 22:13:55 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 2 Jun 2008 19:13:55 -0700 Subject: [Ironruby-core] Code Review: Symbols Message-ID: tfpt review "/shelveset:Symbols;REDMOND\tomat" Removes usage of obsolete DLR AST factories. Adds stop-watches measuring load time. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Symbols.diff Type: application/octet-stream Size: 18038 bytes Desc: Symbols.diff URL: From oleg at tkachenko.com Tue Jun 3 01:46:05 2008 From: oleg at tkachenko.com (Oleg Tkachenko) Date: Mon, 02 Jun 2008 22:46:05 -0700 Subject: [Ironruby-core] IronRuby got /.-ed Message-ID: <4844DA9D.3030208@tkachenko.com> Hey, IronRuby is on slashdot: http://developers.slashdot.org/article.pl?sid=08/06/02/203247 -- Oleg From bacondarwin at googlemail.com Tue Jun 3 09:43:48 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Tue, 3 Jun 2008 14:43:48 +0100 Subject: [Ironruby-core] GenerateInitializers.cmd Message-ID: <000d01c8c57f$db6fe100$924fa300$@com> Often I don't use "rake gen" to generate the library initializers file. I usually just run GenerateInitilizers.cmd, found in the src\IronRuby.Libraries folder. Recently, at r111, this file got sullied with yet more MERLIN_ROOT guff. This was about the time that it was re-jigged to accommodate independent library initializers. It would be great if this got cleaned up again (after TechEd obviously). By the way, this is what I change it to so that it works from anywhere: "%dp0\..\..\build\Debug\ClassInitGenerator" "%dp0\..\..\build\Debug\IronRuby.Libraries.dll" /libraries:Ruby.Builtins;Ruby.StandardLibrary.Threading;Ruby.StandardLibrary .Sockets;Ruby.StandardLibrary.OpenSsl;Ruby.StandardLibrary.Digest;Ruby.Stand ardLibrary.Zlib;Ruby.StandardLibrary.StringIO;Ruby.StandardLibrary.StringSca nner;Ruby.StandardLibrary.Enumerator;Ruby.StandardLibrary.FunctionControl;Ru by.StandardLibrary.FileControl;Ruby.StandardLibrary.BigDecimal /out:%~dp0\Initializers.Generated.cs -------------- next part -------------- An HTML attachment was scrubbed... URL: From enicholson at gmail.com Tue Jun 3 10:08:23 2008 From: enicholson at gmail.com (Eric Nicholson) Date: Tue, 3 Jun 2008 10:08:23 -0400 Subject: [Ironruby-core] IronRuby got /.-ed In-Reply-To: <4844DA9D.3030208@tkachenko.com> References: <4844DA9D.3030208@tkachenko.com> Message-ID: Wow, good job integrated Ruby on Rails & Silverlight. :P I guess there's no such thing as bad press, but the blurb and the comments that follow are *seriously* detached from reality. The level of misunderstanding is almost hard to believe. -Eric On Tue, Jun 3, 2008 at 1:46 AM, Oleg Tkachenko wrote: > Hey, IronRuby is on slashdot: > http://developers.slashdot.org/article.pl?sid=08/06/02/203247 > > -- > Oleg > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From curt at hagenlocher.org Tue Jun 3 10:16:48 2008 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Tue, 3 Jun 2008 07:16:48 -0700 Subject: [Ironruby-core] IronRuby got /.-ed In-Reply-To: References: <4844DA9D.3030208@tkachenko.com> Message-ID: On Tue, Jun 3, 2008 at 7:08 AM, Eric Nicholson wrote: > > I guess there's no such thing as bad press, but the blurb and the comments > that follow are seriously detached from reality. The level of misunderstanding > is almost hard to believe. We *are* talking about Slashdot here, aren't we? -- Curt Hagenlocher curt at hagenlocher.org From michael.letterle at gmail.com Tue Jun 3 10:46:23 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Tue, 3 Jun 2008 10:46:23 -0400 Subject: [Ironruby-core] IronRuby got /.-ed In-Reply-To: References: <4844DA9D.3030208@tkachenko.com> Message-ID: You must be new here... ;) On Tue, Jun 3, 2008 at 10:08 AM, Eric Nicholson wrote: > Wow, good job integrated Ruby on Rails & Silverlight. :P > > I guess there's no such thing as bad press, but the blurb and the comments > that follow are *seriously* detached from reality. The level of > misunderstanding is almost hard to believe. > > -Eric > > On Tue, Jun 3, 2008 at 1:46 AM, Oleg Tkachenko wrote: > >> Hey, IronRuby is on slashdot: >> http://developers.slashdot.org/article.pl?sid=08/06/02/203247 >> >> -- >> Oleg >> >> _______________________________________________ >> 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 > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.david at xmlhacker.com Tue Jun 3 11:13:52 2008 From: m.david at xmlhacker.com (M. David Peterson) Date: Tue, 03 Jun 2008 09:13:52 -0600 Subject: [Ironruby-core] IronRuby got /.-ed In-Reply-To: References: <4844DA9D.3030208@tkachenko.com> Message-ID: On Tue, 03 Jun 2008 08:08:23 -0600, Eric Nicholson wrote: > The level of misunderstanding is almost hard to believe. Have you not been exposed to /. before now? /. lands somewhere between Dungeons and Dragons and SecondLife, where current events are adventures that are strung together in realtime to form a never ending campaign against the mighty eveel one: Microsoft. Here's the underlying plot: There's a foregone conclusion that anything and everything related to MSFT is evil, corrupt, and must be fought from every angle. As such, when a story related to Microsoft is posted, it's the role of each character in the party to uncover and expose the "truth", saving us all from the evil terrors of the Microsoft monster. "Hooray!" ;-) -- /M:D M. David Peterson Co-Founder & Chief Architect, 3rd&Urban, LLC Email: m.david at 3rdandUrban.com | m.david at amp.fm Mobile: (206) 999-0588 http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354 From jflam at microsoft.com Tue Jun 3 11:18:40 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Tue, 3 Jun 2008 08:18:40 -0700 Subject: [Ironruby-core] IronRuby got /.-ed Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06B36FA@NA-EXMSG-C115.redmond.corp.microsoft.com> I hope this is a signal that we are no longer in kathy sierra's 'zone of mediocraty' :) - John Sent from my phone -----Original Message----- From: M. David Peterson Sent: Tuesday, June 03, 2008 8:14 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby got /.-ed On Tue, 03 Jun 2008 08:08:23 -0600, Eric Nicholson wrote: > The level of misunderstanding is almost hard to believe. Have you not been exposed to /. before now? /. lands somewhere between Dungeons and Dragons and SecondLife, where current events are adventures that are strung together in realtime to form a never ending campaign against the mighty eveel one: Microsoft. Here's the underlying plot: There's a foregone conclusion that anything and everything related to MSFT is evil, corrupt, and must be fought from every angle. As such, when a story related to Microsoft is posted, it's the role of each character in the party to uncover and expose the "truth", saving us all from the evil terrors of the Microsoft monster. "Hooray!" ;-) -- /M:D M. David Peterson Co-Founder & Chief Architect, 3rd&Urban, LLC Email: m.david at 3rdandUrban.com | m.david at amp.fm Mobile: (206) 999-0588 http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354 _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From m.david at xmlhacker.com Tue Jun 3 11:26:23 2008 From: m.david at xmlhacker.com (M. David Peterson) Date: Tue, 03 Jun 2008 09:26:23 -0600 Subject: [Ironruby-core] IronRuby got /.-ed In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD06B36FA@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06B36FA@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: On Tue, 03 Jun 2008 09:18:40 -0600, John Lam (IRONRUBY) wrote: > I hope this is a signal that we are no longer in kathy sierra's 'zone of > mediocraty' Oh, it most definitely is a signal: The IronRuby Love/Hate Festival has officially begun! ;-) -- /M:D M. David Peterson Co-Founder & Chief Architect, 3rd&Urban, LLC Email: m.david at 3rdandUrban.com | m.david at amp.fm Mobile: (206) 999-0588 http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354 From jdeville at microsoft.com Tue Jun 3 17:29:47 2008 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 3 Jun 2008 14:29:47 -0700 Subject: [Ironruby-core] Deleting tests/ironruby/specs/library Message-ID: I am planning on deleting tests/ironruby/specs/library in order to keep the tests (Socket in this case) in the RubySpec directory tree we have (tests/ironruby/specs/ruby/1.8/library). I wanted to give a heads up before I did it so that people didn't try to add tests and then redo them after the delete. JD -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Jun 3 19:21:08 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 3 Jun 2008 16:21:08 -0700 Subject: [Ironruby-core] Code Review: protected Message-ID: tfpt review "/shelveset:protected;REDMOND\tomat" Temporary workaround to enable calls to protected CLR methods. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Protected.diff Type: application/octet-stream Size: 10279 bytes Desc: Protected.diff URL: From lists at ruby-forum.com Wed Jun 4 01:08:08 2008 From: lists at ruby-forum.com (Rahil Kantharia) Date: Wed, 4 Jun 2008 07:08:08 +0200 Subject: [Ironruby-core] Asp.Net MVC with IronRuby at TechEd In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <66df2d63d2393babf9d15ca58cda9ae8@ruby-forum.com> John Lam (IRONRUBY) wrote: > > We have a bunch of work to do to land ASP.NET MVC + IronRuby for my Tech > Ed talk. I'll have a blog post about that likely on the Friday just > before my talk. > > Thanks, > -John ------------------------------------------ Hi John, Do you have any plans to show Asp.Net MVC with Active Record...? Is it possible to use Active Record/ DataMapper with Asp.Net MVC in Future...? Which ORM, you'll be using in the demo....? Thanks -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Wed Jun 4 16:51:45 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 4 Jun 2008 13:51:45 -0700 Subject: [Ironruby-core] Code Review: GlobalScope Message-ID: tfpt review "/shelveset:GlobalScope;REDMOND\tomat" Makes global constants visible in Runtime.Globals. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: GlobalScope.diff Type: application/octet-stream Size: 2050 bytes Desc: GlobalScope.diff URL: From Tomas.Matousek at microsoft.com Wed Jun 4 21:36:22 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 4 Jun 2008 18:36:22 -0700 Subject: [Ironruby-core] Code Review: RubyTypes1 Message-ID: tfpt review "/shelveset:RubyTypes1;REDMOND\tomat" Generates a new CLR type for Ruby classes only if the class derives from a CLR class not impleemnting IRubyObject interface. This reduces number of types generated during Rails startup to 15 (from ~500). Builtin classes will inherit from RubyObject, where possible, or implement IRubyObject in future (that will reduce the number of generated classes in pure Ruby app near to 0). Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: RubyTypes1.diff Type: application/octet-stream Size: 46588 bytes Desc: RubyTypes1.diff URL: From bacondarwin at googlemail.com Thu Jun 5 08:50:46 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 13:50:46 +0100 Subject: [Ironruby-core] Running rake mspec:lib Message-ID: <002301c8c70a$c7751a80$565f4f80$@com> I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.r b:91:in `main' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:i n `require': no such file to load -- optparse (LoadError) from :0:in `Initialize##1' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Thu Jun 5 09:16:14 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 14:16:14 +0100 Subject: [Ironruby-core] rake mspec Message-ID: <002801c8c70e$55c9b090$015d11b0$@com> Running mspec.rb directly via ir doesn't work either... D:\dev\ruby\ironruby\head\tests\ironruby\Specs>..\..\..\build\debug\ir mspec.rb D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:i n `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or cannot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Thu Jun 5 09:27:43 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Thu, 5 Jun 2008 09:27:43 -0400 Subject: [Ironruby-core] Running rake mspec:lib In-Reply-To: <002301c8c70a$c7751a80$565f4f80$@com> References: <002301c8c70a$c7751a80$565f4f80$@com> Message-ID: Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote: > I am having trouble running the RubySpecs from rake. > > > > First I get this: > > D:\dev\ruby\ironruby\head>rake mspec:lib > > (in D:/dev/ruby/ironruby/head) > > mspec/bin/mspec:141:in `exec': No such file or directory - > d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) > > from mspec/bin/mspec:141:in `run' > > from > d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.rb:91:in > `main' > > from mspec/bin/mspec:146 > > rake aborted! > > Command failed with status (1): [ruby mspec/bin/mspec ci -t > d:\dev\ruby\iro...] > > D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec' > > (See full trace by running task with --trace) > > > > It appears that ir.cmd is hard-coded inside rake to look in the release > folder rather than debug, which is to where rake compile is building. > > > > OK so I copy the files over from debug to release and now I get: > > D:\dev\ruby\ironruby\head>rake mspec:lib > > (in D:/dev/ruby/ironruby/head) > > d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in > `require': no such file to load -- optparse (LoadError) > > from :0:in `Initialize##1' > > rake aborted! > > Command failed with status (1): [ruby mspec/bin/mspec ci -t > d:\dev\ruby\iro...] > > D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec' > > (See full trace by running task with --trace) > > > > I get the same result with rake mspec:core and mspec:lang. > > Any ideas? > > Pete > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Thu Jun 5 09:51:36 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 14:51:36 +0100 Subject: [Ironruby-core] Running rake mspec:lib In-Reply-To: References: <002301c8c70a$c7751a80$565f4f80$@com> Message-ID: <003301c8c713$46d724f0$d4856ed0$@com> Thanks Michael. I copied it across but still got the same failure. I can't even get the optparse.rb to require directly (here optparse.rb is in the build\debug folder): D:\dev\ruby\ironruby\head\build\debug>ir IronRuby 1.0.0.0 on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. Note that local variables do not work today in the console. As a workaround, use globals instead (eg $x = 42 instead of x = 42). >>> require 'optparse' D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:i n `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or cannot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' But this does not crash... D:\dev\ruby\ironruby\head\build\debug>ir optparse.rb Is there a problem with the requiring mechanism? Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Thu Jun 5 09:46:19 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Thu, 5 Jun 2008 09:46:19 -0400 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Message-ID: <1BEDA9C0-854F-430A-884A-AAB5994D6CD2@faithfulgeek.org> I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\ \Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development \open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini From michael.letterle at gmail.com Thu Jun 5 10:15:34 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Thu, 5 Jun 2008 10:15:34 -0400 Subject: [Ironruby-core] Running rake mspec:lib In-Reply-To: <003301c8c713$46d724f0$d4856ed0$@com> References: <002301c8c70a$c7751a80$565f4f80$@com> <003301c8c713$46d724f0$d4856ed0$@com> Message-ID: You need to remove the SIGNED compliation constants from the project files. If you notice it's looking for a strong-named assembly. IronRuby 1.0.0.0 on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. Note that local variables do not work today in the console. As a workaround, use globals instead (eg $x = 42 instead of x = 42). >>> require 'optparse' => true >>> On Thu, Jun 5, 2008 at 9:51 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote: > Thanks Michael. > > > > I copied it across but still got the same failure. I can't even get the > optparse.rb to require directly (here optparse.rb is in the build\debug > folder): > > > > D:\dev\ruby\ironruby\head\build\debug>ir > > IronRuby 1.0.0.0 on .NET 2.0.50727.1433 > > Copyright (c) Microsoft Corporation. All rights reserved. > > > > Note that local variables do not work today in the console. > > As a workaround, use globals instead (eg $x = 42 instead of x = 42). > > > > >>> require 'optparse' > > D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:in > `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is > > missing or cannot be loaded. > (Microsoft::Scripting::Runtime::MissingTypeException) > > from :0:in `Initialize##1' > > > > But this does not crash... > > D:\dev\ruby\ironruby\head\build\debug>ir optparse.rb > > > > Is there a problem with the requiring mechanism? > > > > Pete > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Thu Jun 5 10:16:53 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Thu, 5 Jun 2008 10:16:53 -0400 Subject: [Ironruby-core] rake mspec In-Reply-To: <002801c8c70e$55c9b090$015d11b0$@com> References: <002801c8c70e$55c9b090$015d11b0$@com> Message-ID: This is the same error with the "SIGNED" conditional compilation symbols. On Thu, Jun 5, 2008 at 9:16 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote: > Running mspec.rb directly via ir doesn't work either... > > > > D:\dev\ruby\ironruby\head\tests\ironruby\Specs>..\..\..\build\debug\ir > mspec.rb > > D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:in > `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is > > missing or cannot be loaded. > (Microsoft::Scripting::Runtime::MissingTypeException) > > from :0:in `Initialize##1' > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Thu Jun 5 10:21:10 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Thu, 5 Jun 2008 10:21:10 -0400 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <1BEDA9C0-854F-430A-884A-AAB5994D6CD2@faithfulgeek.org> References: <1BEDA9C0-854F-430A-884A-AAB5994D6CD2@faithfulgeek.org> Message-ID: Install the embedded Windows SDK components from VS2008? (Use can use the express editions: http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini wrote: > I get the following error when issuing a Rake compile w/ r113: > > error CS1668: Warning as Error: Invalid search path 'C:\Program > Files\\Microsoft > SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- > 'The > system cannot find the path specified. ' > rake aborted! > Command failed with status (1): [csc /out:"c:\software development\open > sou...] > C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 > > Anyone have an idea how to fix this? > > Thanks! > Joe Fiorini > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 5 11:05:32 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 5 Jun 2008 08:05:32 -0700 Subject: [Ironruby-core] rake mspec In-Reply-To: <002801c8c70e$55c9b090$015d11b0$@com> References: <002801c8c70e$55c9b090$015d11b0$@com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD09C5008@NA-EXMSG-C115.redmond.corp.microsoft.com> Peter Bacon Darwin: > Running mspec.rb directly via ir doesn't work either... > > > > D:\dev\ruby\ironruby\head\tests\ironruby\Specs>..\..\..\build\debug\ir > mspec.rb > > D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs: > 3 > 00:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is > > missing or cannot be loaded. > (Microsoft::Scripting::Runtime::MissingTypeException) > > from :0:in `Initialize##1' There's something busted in the external transform for mspec. So please avoid using it for the time being - rake spec - - fail and friends should still work in this release. Jim - can you investigate? Thanks, -John From dinov at exchange.microsoft.com Thu Jun 5 11:47:28 2008 From: dinov at exchange.microsoft.com (Dino Viehland) Date: Thu, 5 Jun 2008 08:47:28 -0700 Subject: [Ironruby-core] Code Review: RubyTypes1 In-Reply-To: References: Message-ID: <7AD436E4270DD54A94238001769C2227012BC9D34BA9@DF-GRTDANE-MSG.exchange.corp.microsoft.com> Looks good. -----Original Message----- From: Tomas Matousek Sent: Wednesday, June 04, 2008 6:36 PM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: RubyTypes1 tfpt review "/shelveset:RubyTypes1;REDMOND\tomat" Generates a new CLR type for Ruby classes only if the class derives from a CLR class not impleemnting IRubyObject interface. This reduces number of types generated during Rails startup to 15 (from ~500). Builtin classes will inherit from RubyObject, where possible, or implement IRubyObject in future (that will reduce the number of generated classes in pure Ruby app near to 0). Tomas From bacondarwin at googlemail.com Thu Jun 5 11:59:35 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 16:59:35 +0100 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: References: <1BEDA9C0-854F-430A-884A-AAB5994D6CD2@faithfulgeek.org> Message-ID: <004a01c8c725$2826adc0$78740940$@com> Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions: http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2 008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Thu Jun 5 12:03:41 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Thu, 5 Jun 2008 12:03:41 -0400 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <004a01c8c725$2826adc0$78740940$@com> References: <1BEDA9C0-854F-430A-884A-AAB5994D6CD2@faithfulgeek.org> <004a01c8c725$2826adc0$78740940$@com> Message-ID: <27A4F679-E8CC-4AE6-946F-9B7796316CC8@faithfulgeek.org> Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: > Or just create the folder it is looking for. > Pete > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org > ] On Behalf Of Michael Letterle > Sent: Thursday,05 June 05, 2008 15:21 > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby > on Windows > > Install the embedded Windows SDK components from VS2008? (Use can > use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) > or remove that directory from the LIB environment variable. > On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: > I get the following error when issuing a Rake compile w/ r113: > > error CS1668: Warning as Error: Invalid search path 'C:\Program Files > \\Microsoft > SDKs\Windows\v6.0A\lib' specified in 'LIB environment > variable' -- 'The > system cannot find the path specified. ' > rake aborted! > Command failed with status (1): [csc /out:"c:\software development > \open sou...] > C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile: > 159 > > Anyone have an idea how to fix this? > > Thanks! > Joe Fiorini > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 12:23:44 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 09:23:44 -0700 Subject: [Ironruby-core] Running rake mspec:lib In-Reply-To: References: <002301c8c70a$c7751a80$565f4f80$@com> Message-ID: Optparse should be in the Libs folder with our hacks and such. If it's not then something didn't get pushed out correctly. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 6:28 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin > wrote: I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.rb:91:in `main' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in `require': no such file to load -- optparse (LoadError) from :0:in `Initialize##1' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Thu Jun 5 12:26:35 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 17:26:35 +0100 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <27A4F679-E8CC-4AE6-946F-9B7796316CC8@faithfulgeek.org> References: <1BEDA9C0-854F-430A-884A-AAB5994D6CD2@faithfulgeek.org> <004a01c8c725$2826adc0$78740940$@com> <27A4F679-E8CC-4AE6-946F-9B7796316CC8@faithfulgeek.org> Message-ID: <005e01c8c728$ed7c6170$c8752450$@com> I found that if I typed in ir.cmd then it failed with some " wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 12:27:37 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 09:27:37 -0700 Subject: [Ironruby-core] rake mspec In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD09C5008@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <002801c8c70e$55c9b090$015d11b0$@com> <372109E149E8084D8E6C7D9CFD82E0632FD09C5008@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Yeah, I'll try running the transform and see what's not getting pushed over. JD -----Original Message----- From: John Lam (IRONRUBY) Sent: Thursday, June 05, 2008 8:06 AM To: ironruby-core at rubyforge.org; Jim Deville Subject: RE: [Ironruby-core] rake mspec Peter Bacon Darwin: > Running mspec.rb directly via ir doesn't work either... > > > > D:\dev\ruby\ironruby\head\tests\ironruby\Specs>..\..\..\build\debug\ir > mspec.rb > > D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs: > 3 > 00:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is > > missing or cannot be loaded. > (Microsoft::Scripting::Runtime::MissingTypeException) > > from :0:in `Initialize##1' There's something busted in the external transform for mspec. So please avoid using it for the time being - rake spec - - fail and friends should still work in this release. Jim - can you investigate? Thanks, -John From jflam at microsoft.com Thu Jun 5 12:27:54 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 5 Jun 2008 09:27:54 -0700 Subject: [Ironruby-core] Running rake mspec:lib Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06B36FE@NA-EXMSG-C115.redmond.corp.microsoft.com> Can you verify this behavior by doing a local deploy and running the svn build from a non merlin cmd prompt? - John Sent from my phone ________________________________ From: Jim Deville Sent: Thursday, June 05, 2008 12:24 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Optparse should be in the Libs folder with our hacks and such. If it?s not then something didn?t get pushed out correctly. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 6:28 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin > wrote: I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.rb:91:in `main' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in `require': no such file to load -- optparse (LoadError) from :0:in `Initialize##1' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Thu Jun 5 12:28:17 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 17:28:17 +0100 Subject: [Ironruby-core] Running rake mspec:lib In-Reply-To: References: <002301c8c70a$c7751a80$565f4f80$@com> Message-ID: <006301c8c729$2a1895e0$7e49c1a0$@com> optparse.rb is not there but also I find that I can't require any of those rb files in lib at the moment. So to rather than require 'socket' I am having to do the whole load_assembly... which is a bit annoying. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 17:24 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Optparse should be in the Libs folder with our hacks and such. If it's not then something didn't get pushed out correctly. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 6:28 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin wrote: I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.r b:91:in `main' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:i n `require': no such file to load -- optparse (LoadError) from :0:in `Initialize##1' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 5 12:30:13 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 5 Jun 2008 09:30:13 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 12:32:52 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 09:32:52 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Is there a env variable in the external case? One that we can use in place of MERLN_ROOT? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday, June 05, 2008 9:30 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 5 12:37:59 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 5 Jun 2008 09:37:59 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD06B3702@NA-EXMSG-C115.redmond.corp.microsoft.com> No. If you want to tackle this it would be great to define an external irvars.bat file to setup the paths based on the dir that it lives in. - John Sent from my phone ________________________________ From: Jim Deville Sent: Thursday, June 05, 2008 12:35 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Is there a env variable in the external case? One that we can use in place of MERLN_ROOT? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday, June 05, 2008 9:30 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Thu Jun 5 12:48:57 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 17:48:57 +0100 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <008001c8c72c$0dc0b280$29421780$@com> What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone _____ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual -studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Thu Jun 5 12:52:15 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Thu, 5 Jun 2008 12:52:15 -0400 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <008001c8c72c$0dc0b280$29421780$@com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> Message-ID: rbx is rubinius' executable. On Thu, Jun 5, 2008 at 12:48 PM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote: > What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to > be generated by the build so how is there much use in a clean copy? > > Pete > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *John Lam (IRONRUBY) > *Sent:* Thursday,05 June 05, 2008 17:30 > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Invalid Search Path - Building IronRuby on > Windows > > > > Something in the build process is trashing that file. Jim - can you send a > clean copy of ir.cmd to the list? Note that there are hard coded paths in > ir.cmd that we need to generate for the ext layout. > > - John > Sent from my phone > ------------------------------ > > *From: *Joe Fiorini > *Sent: *Thursday, June 05, 2008 12:04 PM > *To: *ironruby-core at rubyforge.org > *Subject: *Re: [Ironruby-core] Invalid Search Path - Building IronRuby on > Windows > > Thanks for the advice. I took it out of the LIB path. Felt kinda stupid > that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. > Any ideas on that? > > > > -Joe > > > > On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: > > Or just create the folder it is looking for. > > Pete > > > > *From:* ironruby-core-bounces at rubyforge.org [ > mailto:ironruby-core-bounces at rubyforge.org > ] *On Behalf Of *Michael Letterle > *Sent:* Thursday,05 June 05, 2008 15:21 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Invalid Search Path - Building IronRuby on > Windows > > > > Install the embedded Windows SDK components from VS2008? (Use can use the > express editions: > http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) > or remove that directory from the LIB environment variable. > > On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini wrote: > > I get the following error when issuing a Rake compile w/ r113: > > error CS1668: Warning as Error: Invalid search path 'C:\Program > Files\\Microsoft > SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- > 'The > system cannot find the path specified. ' > rake aborted! > Command failed with status (1): [csc /out:"c:\software development\open > sou...] > C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 > > Anyone have an idea how to fix this? > > Thanks! > Joe Fiorini > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.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 > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 12:53:24 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 09:53:24 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <008001c8c72c$0dc0b280$29421780$@com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> Message-ID: It shouldn't be rbx.exe to ir.cmd. The transition is from rbx.exe to ir.exe, due to Rubinius already naming their executable rbx. Ir.cmd is supposed to be a cmd file that calls ir.exe with a set of load paths included. Primarily our libs directory, but also the CRuby lib paths. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 9:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 13:09:30 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 10:09:30 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> Message-ID: This is our ir.cmd (as .txt for outlook users), the paths relate to our internal layout, and I will be creating a transform for it today, but it shouldn't be a binary file. It should be text like this. The other problem is that we have the ruby libs in a portion of our repository so that we don't have to have everyone install ruby, and install it to the same location and all. We don't have the ruby libs in the SVN repository, so we'll need to work around that. My suggestion is to put 2 variables in the irvars.bat (coming soon), one var represents the root of the repository. The other is going to be the location of your ruby install. This would need to be edited by you when you setup your repo, (or when you download this revision). Any objections? Any other recommended variables? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 9:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows It shouldn't be rbx.exe to ir.cmd. The transition is from rbx.exe to ir.exe, due to Rubinius already naming their executable rbx. Ir.cmd is supposed to be a cmd file that calls ir.exe with a set of load paths included. Primarily our libs directory, but also the CRuby lib paths. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 9:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.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: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ir.txt URL: From bacondarwin at googlemail.com Thu Jun 5 14:39:00 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 19:39:00 +0100 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> Message-ID: <009a01c8c73b$6d6da800$4848f800$@com> Ah, now I think you'll find that rake compile actually build ir.cmd rather than ir.exe. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 18:10 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows This is our ir.cmd (as .txt for outlook users), the paths relate to our internal layout, and I will be creating a transform for it today, but it shouldn't be a binary file. It should be text like this. The other problem is that we have the ruby libs in a portion of our repository so that we don't have to have everyone install ruby, and install it to the same location and all. We don't have the ruby libs in the SVN repository, so we'll need to work around that. My suggestion is to put 2 variables in the irvars.bat (coming soon), one var represents the root of the repository. The other is going to be the location of your ruby install. This would need to be edited by you when you setup your repo, (or when you download this revision). Any objections? Any other recommended variables? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 9:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows It shouldn't be rbx.exe to ir.cmd. The transition is from rbx.exe to ir.exe, due to Rubinius already naming their executable rbx. Ir.cmd is supposed to be a cmd file that calls ir.exe with a set of load paths included. Primarily our libs directory, but also the CRuby lib paths. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 9:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone _____ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual -studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 15:20:15 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 12:20:15 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <009a01c8c73b$6d6da800$4848f800$@com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> <009a01c8c73b$6d6da800$4848f800$@com> Message-ID: Agreed. I think that is the entire problem. So, I'll try to fix that or get John to fix it while I write a batch file to set root variables. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 11:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Ah, now I think you'll find that rake compile actually build ir.cmd rather than ir.exe. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 18:10 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows This is our ir.cmd (as .txt for outlook users), the paths relate to our internal layout, and I will be creating a transform for it today, but it shouldn't be a binary file. It should be text like this. The other problem is that we have the ruby libs in a portion of our repository so that we don't have to have everyone install ruby, and install it to the same location and all. We don't have the ruby libs in the SVN repository, so we'll need to work around that. My suggestion is to put 2 variables in the irvars.bat (coming soon), one var represents the root of the repository. The other is going to be the location of your ruby install. This would need to be edited by you when you setup your repo, (or when you download this revision). Any objections? Any other recommended variables? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 9:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows It shouldn't be rbx.exe to ir.cmd. The transition is from rbx.exe to ir.exe, due to Rubinius already naming their executable rbx. Ir.cmd is supposed to be a cmd file that calls ir.exe with a set of load paths included. Primarily our libs directory, but also the CRuby lib paths. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 9:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Thu Jun 5 15:45:43 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 20:45:43 +0100 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> <009a01c8c73b$6d6da800$4848f800$@com> Message-ID: <00a501c8c744$bec76020$3c562060$@com> I note that in your ir.cmd you are including the standard ruby library path. This could be a bit tricky since most people will have their ruby installation in different places. Is it worth just bundling these Ruby library files in the SVN tree somewhere? Also, while you are at it, there are no ExternalDebug build configurations for a number of the projects. This means that the SIGNED conditional compilation symbol has slipped into the build again, which is what is causing require to fail. [If it finds the required file, it tries to load up the Ruby language context but because of the SIGNED it is looking for a strongly named assembly, which of course is not available to us.] Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 20:20 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Agreed. I think that is the entire problem. So, I'll try to fix that or get John to fix it while I write a batch file to set root variables. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 11:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Ah, now I think you'll find that rake compile actually build ir.cmd rather than ir.exe. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 18:10 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows This is our ir.cmd (as .txt for outlook users), the paths relate to our internal layout, and I will be creating a transform for it today, but it shouldn't be a binary file. It should be text like this. The other problem is that we have the ruby libs in a portion of our repository so that we don't have to have everyone install ruby, and install it to the same location and all. We don't have the ruby libs in the SVN repository, so we'll need to work around that. My suggestion is to put 2 variables in the irvars.bat (coming soon), one var represents the root of the repository. The other is going to be the location of your ruby install. This would need to be edited by you when you setup your repo, (or when you download this revision). Any objections? Any other recommended variables? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 9:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows It shouldn't be rbx.exe to ir.cmd. The transition is from rbx.exe to ir.exe, due to Rubinius already naming their executable rbx. Ir.cmd is supposed to be a cmd file that calls ir.exe with a set of load paths included. Primarily our libs directory, but also the CRuby lib paths. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 9:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone _____ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual -studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Thu Jun 5 15:47:19 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 5 Jun 2008 20:47:19 +0100 Subject: [Ironruby-core] rake mspec In-Reply-To: References: <002801c8c70e$55c9b090$015d11b0$@com> Message-ID: <00aa01c8c744$f9d7c470$ed874d50$@com> Thanks for kicking me about the SIGNED symbol Michael. It hadn't been a problem for a few revisions so I forgot about it. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:17 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] rake mspec This is the same error with the "SIGNED" conditional compilation symbols. On Thu, Jun 5, 2008 at 9:16 AM, Peter Bacon Darwin wrote: Running mspec.rb directly via ir doesn't work either... D:\dev\ruby\ironruby\head\tests\ironruby\Specs>..\..\..\build\debug\ir mspec.rb D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:i n `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or cannot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 16:10:58 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 13:10:58 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: <00a501c8c744$bec76020$3c562060$@com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> <009a01c8c73b$6d6da800$4848f800$@com> <00a501c8c744$bec76020$3c562060$@com> Message-ID: I was planning on just having a Env var that can get set... although that would be a pain to manage in SVN. I guess we do need to have the libs in the repro, but I don't know if we can. John, do you have any thoughts? Also, I don't know how to turn off the SIGNED bit. Tomas? John? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 12:46 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows I note that in your ir.cmd you are including the standard ruby library path. This could be a bit tricky since most people will have their ruby installation in different places. Is it worth just bundling these Ruby library files in the SVN tree somewhere? Also, while you are at it, there are no ExternalDebug build configurations for a number of the projects. This means that the SIGNED conditional compilation symbol has slipped into the build again, which is what is causing require to fail. [If it finds the required file, it tries to load up the Ruby language context but because of the SIGNED it is looking for a strongly named assembly, which of course is not available to us.] Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 20:20 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Agreed. I think that is the entire problem. So, I'll try to fix that or get John to fix it while I write a batch file to set root variables. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 11:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Ah, now I think you'll find that rake compile actually build ir.cmd rather than ir.exe. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 18:10 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows This is our ir.cmd (as .txt for outlook users), the paths relate to our internal layout, and I will be creating a transform for it today, but it shouldn't be a binary file. It should be text like this. The other problem is that we have the ruby libs in a portion of our repository so that we don't have to have everyone install ruby, and install it to the same location and all. We don't have the ruby libs in the SVN repository, so we'll need to work around that. My suggestion is to put 2 variables in the irvars.bat (coming soon), one var represents the root of the repository. The other is going to be the location of your ruby install. This would need to be edited by you when you setup your repo, (or when you download this revision). Any objections? Any other recommended variables? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 9:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows It shouldn't be rbx.exe to ir.cmd. The transition is from rbx.exe to ir.exe, due to Rubinius already naming their executable rbx. Ir.cmd is supposed to be a cmd file that calls ir.exe with a set of load paths included. Primarily our libs directory, but also the CRuby lib paths. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 9:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 16:29:50 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 13:29:50 -0700 Subject: [Ironruby-core] irvars.bat Message-ID: Any problems with this file? It's what I have so far as the batch file for the SVN vars. jd -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: irvars.txt URL: From michael.letterle at gmail.com Thu Jun 5 16:37:05 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Thu, 5 Jun 2008 16:37:05 -0400 Subject: [Ironruby-core] irvars.bat In-Reply-To: References: Message-ID: Looks good, it does look like PROGRAM_FILES_64 is never actually used... On Thu, Jun 5, 2008 at 4:29 PM, Jim Deville wrote: > Any problems with this file? It's what I have so far as the batch file > for the SVN vars. > > > > jd > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 16:43:04 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 13:43:04 -0700 Subject: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD06B3700@NA-EXMSG-C115.redmond.corp.microsoft.com> <008001c8c72c$0dc0b280$29421780$@com> <009a01c8c73b$6d6da800$4848f800$@com> <00a501c8c744$bec76020$3c562060$@com> Message-ID: For some reason, that I can't personally explain (yeah, I know I did it), I sent the batch file out for checking in a different thread. Sorry about the confusion. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 1:11 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows I was planning on just having a Env var that can get set... although that would be a pain to manage in SVN. I guess we do need to have the libs in the repro, but I don't know if we can. John, do you have any thoughts? Also, I don't know how to turn off the SIGNED bit. Tomas? John? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 12:46 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows I note that in your ir.cmd you are including the standard ruby library path. This could be a bit tricky since most people will have their ruby installation in different places. Is it worth just bundling these Ruby library files in the SVN tree somewhere? Also, while you are at it, there are no ExternalDebug build configurations for a number of the projects. This means that the SIGNED conditional compilation symbol has slipped into the build again, which is what is causing require to fail. [If it finds the required file, it tries to load up the Ruby language context but because of the SIGNED it is looking for a strongly named assembly, which of course is not available to us.] Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 20:20 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Agreed. I think that is the entire problem. So, I'll try to fix that or get John to fix it while I write a batch file to set root variables. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 11:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Ah, now I think you'll find that rake compile actually build ir.cmd rather than ir.exe. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 18:10 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows This is our ir.cmd (as .txt for outlook users), the paths relate to our internal layout, and I will be creating a transform for it today, but it shouldn't be a binary file. It should be text like this. The other problem is that we have the ruby libs in a portion of our repository so that we don't have to have everyone install ruby, and install it to the same location and all. We don't have the ruby libs in the SVN repository, so we'll need to work around that. My suggestion is to put 2 variables in the irvars.bat (coming soon), one var represents the root of the repository. The other is going to be the location of your ruby install. This would need to be edited by you when you setup your repo, (or when you download this revision). Any objections? Any other recommended variables? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 9:53 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows It shouldn't be rbx.exe to ir.cmd. The transition is from rbx.exe to ir.exe, due to Rubinius already naming their executable rbx. Ir.cmd is supposed to be a cmd file that calls ir.exe with a set of load paths included. Primarily our libs directory, but also the CRuby lib paths. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Thursday, June 05, 2008 9:49 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows What is behind the name change from rbx.exe to ir.cmd? ir.cmd seems to be generated by the build so how is there much use in a clean copy? Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday,05 June 05, 2008 17:30 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Something in the build process is trashing that file. Jim - can you send a clean copy of ir.cmd to the list? Note that there are hard coded paths in ir.cmd that we need to generate for the ext layout. - John Sent from my phone ________________________________ From: Joe Fiorini Sent: Thursday, June 05, 2008 12:04 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Thanks for the advice. I took it out of the LIB path. Felt kinda stupid that that was it ;). Now I'm getting a syntax error trying to run ir.cmd. Any ideas on that? -Joe On Jun 5, 2008, at 11:59 AM, Peter Bacon Darwin wrote: Or just create the folder it is looking for. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday,05 June 05, 2008 15:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Invalid Search Path - Building IronRuby on Windows Install the embedded Windows SDK components from VS2008? (Use can use the express editions:http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx) or remove that directory from the LIB environment variable. On Thu, Jun 5, 2008 at 9:46 AM, Joe Fiorini > wrote: I get the following error when issuing a Rake compile w/ r113: error CS1668: Warning as Error: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' rake aborted! Command failed with status (1): [csc /out:"c:\software development\open sou...] C:/Software Development/Open Source Projects/IronRuby/trunk/rakefile:159 Anyone have an idea how to fix this? Thanks! Joe Fiorini _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 16:44:35 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 13:44:35 -0700 Subject: [Ironruby-core] irvars.bat In-Reply-To: References: Message-ID: Fixed. So this still leaves the problem of how to manage it so it doesn't have version conflicts. We could make a irvars.bat.temp in the repo, add irvars.bat to the .svnignore and have people fill out the Ruby path in their personal copy of irvars.bat. But I'm not wild about that one. Any other ideas? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 1:37 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] irvars.bat Looks good, it does look like PROGRAM_FILES_64 is never actually used... On Thu, Jun 5, 2008 at 4:29 PM, Jim Deville > wrote: Any problems with this file? It's what I have so far as the batch file for the SVN vars. jd _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 5 16:48:39 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 5 Jun 2008 13:48:39 -0700 Subject: [Ironruby-core] irvars.bat In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD09C52C2@NA-EXMSG-C115.redmond.corp.microsoft.com> Make it calculate the path based on the path where irvars.bat lives- put it in a known location and you should be able to figure out everything else modulo MRI lib install path based on that. In the future we'll start shipping the MRI standard pure ruby libs along with IronRuby. -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 4:45 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] irvars.bat Fixed. So this still leaves the problem of how to manage it so it doesn't have version conflicts. We could make a irvars.bat.temp in the repo, add irvars.bat to the .svnignore and have people fill out the Ruby path in their personal copy of irvars.bat. But I'm not wild about that one. Any other ideas? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 1:37 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] irvars.bat Looks good, it does look like PROGRAM_FILES_64 is never actually used... On Thu, Jun 5, 2008 at 4:29 PM, Jim Deville > wrote: Any problems with this file? It's what I have so far as the batch file for the SVN vars. jd _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 5 16:55:35 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 13:55:35 -0700 Subject: [Ironruby-core] irvars.bat In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD09C52C2@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD09C52C2@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: So leave the CRuby libs portion alone for now, and just get it to identify a root path. That I can do. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday, June 05, 2008 1:49 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] irvars.bat Make it calculate the path based on the path where irvars.bat lives- put it in a known location and you should be able to figure out everything else modulo MRI lib install path based on that. In the future we'll start shipping the MRI standard pure ruby libs along with IronRuby. -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, June 05, 2008 4:45 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] irvars.bat Fixed. So this still leaves the problem of how to manage it so it doesn't have version conflicts. We could make a irvars.bat.temp in the repo, add irvars.bat to the .svnignore and have people fill out the Ruby path in their personal copy of irvars.bat. But I'm not wild about that one. Any other ideas? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 1:37 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] irvars.bat Looks good, it does look like PROGRAM_FILES_64 is never actually used... On Thu, Jun 5, 2008 at 4:29 PM, Jim Deville > wrote: Any problems with this file? It's what I have so far as the batch file for the SVN vars. jd _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sanxiyn at gmail.com Thu Jun 5 21:02:31 2008 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Fri, 6 Jun 2008 10:02:31 +0900 Subject: [Ironruby-core] irvars.bat In-Reply-To: References: Message-ID: <5b0248170806051802t27655c46x992f779fde8b2e1e@mail.gmail.com> 2008/6/6 Jim Deville : > Any problems with this file? It's what I have so far as the batch file for > the SVN vars. Would you want a shell script version of this file, instead of batch file? (As everybody knows shell script is superior to batch files. :-) -- Seo Sanghyeon From ksunair at yahoo.com Thu Jun 5 23:37:30 2008 From: ksunair at yahoo.com (Unnikrishnan Nair) Date: Thu, 5 Jun 2008 20:37:30 -0700 (PDT) Subject: [Ironruby-core] IronRuby got /.-ed Message-ID: <788861.67932.qm@web50601.mail.re2.yahoo.com> I had a serious headache after reading throught that thread on the slashdot. Unni ----- Original Message ---- From: Oleg Tkachenko To: ironruby-core at rubyforge.org Sent: Tuesday, June 3, 2008 12:46:05 AM Subject: [Ironruby-core] IronRuby got /.-ed Hey, IronRuby is on slashdot: http://developers.slashdot.org/article.pl?sid=08/06/02/203247 -- Oleg _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 5 23:39:19 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 5 Jun 2008 20:39:19 -0700 Subject: [Ironruby-core] irvars.bat In-Reply-To: <5b0248170806051802t27655c46x992f779fde8b2e1e@mail.gmail.com> References: <5b0248170806051802t27655c46x992f779fde8b2e1e@mail.gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD09C550F@NA-EXMSG-C115.redmond.corp.microsoft.com> Hang on for a bit, Seo - we'll push out a release next week that fixes all of the core problems that are leading to this behavior that everyone's seeing. Thanks & sorry all for the problems with the SVN release. Things have been a bit hectic as of late :) -John > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Sanghyeon Seo > Sent: Thursday, June 05, 2008 9:03 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] irvars.bat > > 2008/6/6 Jim Deville : > > Any problems with this file? It's what I have so far as the batch > file for > > the SVN vars. > > Would you want a shell script version of this file, instead of batch > file? (As everybody knows shell script is superior to batch files. :-) > > -- > Seo Sanghyeon > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Fri Jun 6 00:12:09 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 5 Jun 2008 21:12:09 -0700 Subject: [Ironruby-core] irvars.bat In-Reply-To: <5b0248170806051802t27655c46x992f779fde8b2e1e@mail.gmail.com> References: , <5b0248170806051802t27655c46x992f779fde8b2e1e@mail.gmail.com> Message-ID: I can write one of those too, I was thinking about the Windows/DOS side since people were having problems there ;) I can do a Powershell one too ;) JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Sanghyeon Seo [sanxiyn at gmail.com] Sent: Thursday, June 05, 2008 6:02 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] irvars.bat 2008/6/6 Jim Deville : > Any problems with this file? It's what I have so far as the batch file for > the SVN vars. Would you want a shell script version of this file, instead of batch file? (As everybody knows shell script is superior to batch files. :-) -- Seo Sanghyeon _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Fri Jun 6 13:10:44 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 6 Jun 2008 10:10:44 -0700 Subject: [Ironruby-core] Code Review: RubyPrecompilation Message-ID: Ruby and DLR. tfpt review "/shelveset:RubyPrecompilation;REDMOND\tomat" Removes dependency of precompiled code on optimized scopes. Enables loading/saving precompiled assemblies in Ruby loader. Implements IExpressionSerializable on ProtocolConversionAction to enable its serialization to IL. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: RubyPrecompilation.diff Type: application/octet-stream Size: 16112 bytes Desc: RubyPrecompilation.diff URL: From dinov at exchange.microsoft.com Fri Jun 6 13:31:21 2008 From: dinov at exchange.microsoft.com (Dino Viehland) Date: Fri, 6 Jun 2008 10:31:21 -0700 Subject: [Ironruby-core] Code Review: RubyPrecompilation In-Reply-To: References: Message-ID: <7AD436E4270DD54A94238001769C2227012BC9D34E52@DF-GRTDANE-MSG.exchange.corp.microsoft.com> The only concerning thing I see in the Ruby changes are the Assembly.LoadFrom - what's up with that? It's probably file for this simple case (because all of the dependencies will already be loaded) but it's a little scary. Adding DLR Code Reviews just to make sure the DLR devs don't miss this. -----Original Message----- From: Tomas Matousek Sent: Friday, June 06, 2008 10:11 AM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: RubyPrecompilation Ruby and DLR. tfpt review "/shelveset:RubyPrecompilation;REDMOND\tomat" Removes dependency of precompiled code on optimized scopes. Enables loading/saving precompiled assemblies in Ruby loader. Implements IExpressionSerializable on ProtocolConversionAction to enable its serialization to IL. Tomas From Tomas.Matousek at microsoft.com Fri Jun 6 13:37:05 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 6 Jun 2008 10:37:05 -0700 Subject: [Ironruby-core] Code Review: RubyPrecompilation In-Reply-To: <7AD436E4270DD54A94238001769C2227012BC9D34E52@DF-GRTDANE-MSG.exchange.corp.microsoft.com> References: <7AD436E4270DD54A94238001769C2227012BC9D34E52@DF-GRTDANE-MSG.exchange.corp.microsoft.com> Message-ID: The implementation is still experimental, so it expects IronRubyApplication.dll file located in the current directory. We need to design how pre-compilation is exposed to the users. Tomas -----Original Message----- From: Dino Viehland Sent: Friday, June 06, 2008 10:31 AM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers; DLR Code Reviews Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: RubyPrecompilation The only concerning thing I see in the Ruby changes are the Assembly.LoadFrom - what's up with that? It's probably file for this simple case (because all of the dependencies will already be loaded) but it's a little scary. Adding DLR Code Reviews just to make sure the DLR devs don't miss this. -----Original Message----- From: Tomas Matousek Sent: Friday, June 06, 2008 10:11 AM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: RubyPrecompilation Ruby and DLR. tfpt review "/shelveset:RubyPrecompilation;REDMOND\tomat" Removes dependency of precompiled code on optimized scopes. Enables loading/saving precompiled assemblies in Ruby loader. Implements IExpressionSerializable on ProtocolConversionAction to enable its serialization to IL. Tomas From s450r1 at gmail.com Fri Jun 6 16:22:06 2008 From: s450r1 at gmail.com (Jeff Dik) Date: Fri, 6 Jun 2008 16:22:06 -0400 Subject: [Ironruby-core] Difference between requiring a DLL versus using an assembly name? Message-ID: Hi, A couple weeks ago, I started using IronRuby to unit test my C# code. I was amazed how well it worked. The IronRuby team has done an amazing job! I'm tremendously impressed. When I first started using IronRuby, support for requiring DLLs had just been removed. Because of this, I had the Rake "spec" task copy the DLLs I was going to test to the directory containing ir.exe. Yesterday I started modifying the code to require the DLLs instead of using the assembly names. This works fine for my non-signed DLLs, but for some reason doesn't work with the signed Rhino.Mocks.dll. (This is with revision r113.) Below is transcript of the issue I found. In the interactive IronRuby session, notice how the code doesn't work when the Rhino.Mocks.dll is required, but does work after 'Rhino.Mocks, Version=2.9.6.40350, Culture=neutral, PublicKeyToken=0b3305902db7183f' is required. d:/jad/tmp/Foo $ cat Bar.cs namespace Foo { using System; using Rhino.Mocks; public class Bar { private MockRepository mocks; public Bar(MockRepository mocks) { this.mocks = mocks; } } } d:/jad/tmp/Foo $ ls Bar.cs Rhino.Mocks.dll d:/jad/tmp/Foo $ csc /t:library /r:Rhino.Mocks.dll Bar.cs Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved. d:/jad/tmp/Foo $ ls Bar.cs Bar.dll Rhino.Mocks.dll d:/jad/tmp/Foo $ ls ~/tmp/ironruby/trunk/build/debug/Rhino.Mocks.dll d:/jad/tmp/ironruby/trunk/build/debug/Rhino.Mocks.dll d:/jad/tmp/Foo $ ir IronRuby 1.0.0.0 on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. Note that local variables do not work today in the console. As a workaround, use globals instead (eg $x = 42 instead of x = 42). >>> require 'Rhino.Mocks.dll' => true >>> require 'Bar.dll' => true >>> $mocks = Rhino::Mocks::MockRepository.new => # >>> $bar = Foo::Bar.new($mocks) :0:in `Initialize##14': wrong number or type of arguments for `Foo::Bar' (ArgumentError) >>> require 'Rhino.Mocks, Version=2.9.6.40350, Culture=neutral, PublicKeyToken=0b3305902db7183f' => true >>> $mocks = Rhino::Mocks::MockRepository.new => # >>> $bar = Foo::Bar.new($mocks) => # >>> exit Is this a bug, or am I doing something incorrectly? Thanks, Jeff From Tomas.Matousek at microsoft.com Fri Jun 6 21:36:13 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 6 Jun 2008 18:36:13 -0700 Subject: [Ironruby-core] Code Review: FileWritable In-Reply-To: References: Message-ID: Looks good. Tomas -----Original Message----- From: Oleg Tkachenko Sent: Friday, June 06, 2008 6:29 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: FileWritable tfpt review "/shelveset:FileWritable;REDMOND\olegtkac" [#20411] File.writable? throws does not exist exception Refactores RubyStatOps.Create() into exception-free TryCreate() and uses it to fix File.writable? so it returns false when file doesn't exist. -- Oleg From Tomas.Matousek at microsoft.com Fri Jun 6 23:29:52 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 6 Jun 2008 20:29:52 -0700 Subject: [Ironruby-core] Code Review: CC2 Message-ID: tfpt review "/shelveset:CC2;REDMOND\tomat" Replaces most uses of Ast.CodeContext() calls by references to the current RubyScope variable. Removes uses of LambdaBuilder and scope factories. Introduces LocalsBuilder - a simple List wrapper. Moves a scope variable stored on FrameScope up to the VariableScope (renamed from SelfScope). The VariableScope represents a scope of local variables - it could either be a method scope, block scope, or module scope. Merges RubyOps.Create*Scope and RubyOps.Initialize*Scope. This is now possible due to Ast.AllLocalVariables node. Factories are now explicitly called by IronRuby and not passed to DLR scopes. Also fixes bug in module scopes - local variables were not allocated on a correct scope. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: CC2.diff Type: application/octet-stream Size: 150348 bytes Desc: CC2.diff URL: From lists at ruby-forum.com Sat Jun 7 02:23:40 2008 From: lists at ruby-forum.com (Rahil Kantharia) Date: Sat, 7 Jun 2008 08:23:40 +0200 Subject: [Ironruby-core] Asp.Net MVC with IronRuby at TechEd In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD06010E6@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: John Lam (IRONRUBY) wrote: > We have a bunch of work to do to land ASP.NET MVC + IronRuby for my Tech > Ed talk. I'll have a blog post about that likely on the Friday just > before my talk. > > Thanks, > -John -------------------------------------- Hi John, Any Fresh News/Updates on this...? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Jun 7 12:23:19 2008 From: lists at ruby-forum.com (Ales Sturala) Date: Sat, 7 Jun 2008 18:23:19 +0200 Subject: [Ironruby-core] Few questions on DLR Message-ID: Hi, I have few questions about DLR, mostly about how it works inside. 1) So my first question is about compiling. I actually didn?t find much information about this, but I know that in DLR I can interpret or compile code. I wonder how to compile code into executable file or into dll so I could simply use it in other .NET applications. Is it possible? I expect, that in case of compiling my code into dll, I would have to do also some modifications on my AST, let?s say in case of ToyScript, I would have to wrap it into some static class and from all the functions make static methods etc, right? 2) Second question is still connected to compiling, I can?t figure out how calling methods works. I understand, that you take the DLR AST and emit the IL code, but what happens when there is a DLR node Ast.Expression.Call(typeof(Helpers).GetMethod(?WriteLine?)), how do you emit code of this method when all you have is something you can call, but you can?t get to the code tree of this method? DLR caches 3) How many dynamic sites are in the application?s execution? Is it one dynamic site for one language so if I have application written one part in IronPhyton and rest in IronRuby, then there will be two dynamic sites in the execution? 4) Do dynamic actions always provide better performance and so we should use it everywhere? It seems that if I use dynamic action on every arithmetic operation, but let?s say only addition (+) has a rule in a binder, then for every other arithmetic operation (- * /) will be always generated just a static node, right? So is there some other advantage for using dynamic actions in this case? For example ToyScript uses actions almost everywhere, even for every arithmetic operation while only addition has a rule in a binder. 5) now my hypothetical question... All the caching is done on runtime, so each new execution of my code starts with empty cache and actions are searched thru all actions in binder of my language, eventually thru all actions in binder of DLR, right? Could you say how this is expensive on running real applications? Is it possible to improve it? I understand that you can?t exactly say, what actions will be used on runtime, but you have a source code of the program so you could assume what rules can and which can?t be used, simple example: x = 5; x + x; I know, that I need only rule for (+) and two integers. Or another example: if (System.Console.ReadLine() == ?x?) x = ?abc?; else x = 5; x + x; Now I know that I need only rules where operation is (+) and left and right side is string or int. There is limited number of nodes, so I think it could be possible for each node to define something like preconditions (expected types of input expressions) and post condition (of what all types can be the result). Then when code is compiled, I could go thru DLR AST, from bottom up, infer types and when I get to action node I know, what are all the possible types of input expressions. Then I can say what rules from action binder most probably will be used and what rules will not be used. This just can?t be implemented only inside DLR but also developer of the language would have to define those pre and post conditions for each action inside action binder of his language. Another possibility would be not removing all the rules ?I assume won?t be used?, but just shifting rules I expect will be used at the beginning of the rules list so they could be found much faster. Of course there is still that question if there would be even some significant performance improvement using this analysis or not. -- Posted via http://www.ruby-forum.com/. From angrygreg at gmail.com Sun Jun 8 12:38:45 2008 From: angrygreg at gmail.com (Greg Akins) Date: Sun, 8 Jun 2008 12:38:45 -0400 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example Message-ID: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> Using rev 113, I tried to duplicate Phil Haack's blog post (here http://haacked.com/archive/2008/04/09/my-first-ironruby-unit-test-spec-for-asp.net-mvc.aspx) I downloaded Rspec 1.1.4 and ran the exact code from the blog; setting the path on the first 'require' to point to where I extracted RSpect require File.dirname(__FILE__) + '/../../Libraries/rspec-1.1.4/spec/spec_helper' The error I get is: IronRuby.Libraries:0:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neut ral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or ca nnot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' When I comment out the entire file, and just include the first 'require' I still get this error; so I assume the problem is in loading that RSpect spec_helper file? Anyone else run into this? -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue From curth at microsoft.com Sun Jun 8 13:35:23 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sun, 8 Jun 2008 10:35:23 -0700 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> Message-ID: What happens if you try to require an empty .rb file in the startup directory? Same error, or success? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday, June 08, 2008 9:39 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Trying to duplicate Phil Haack's example Using rev 113, I tried to duplicate Phil Haack's blog post (here http://haacked.com/archive/2008/04/09/my-first-ironruby-unit-test-spec-for-asp.net-mvc.aspx) I downloaded Rspec 1.1.4 and ran the exact code from the blog; setting the path on the first 'require' to point to where I extracted RSpect require File.dirname(__FILE__) + '/../../Libraries/rspec-1.1.4/spec/spec_helper' The error I get is: IronRuby.Libraries:0:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neut ral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or ca nnot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' When I comment out the entire file, and just include the first 'require' I still get this error; so I assume the problem is in loading that RSpect spec_helper file? Anyone else run into this? -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From bacondarwin at googlemail.com Sun Jun 8 13:58:53 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Sun, 8 Jun 2008 18:58:53 +0100 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> Message-ID: <000801c8c991$51e67dc0$f5b37940$@com> Is this not the old SIGNED problem? Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday,08 June 08, 2008 17:39 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Trying to duplicate Phil Haack's example Using rev 113, I tried to duplicate Phil Haack's blog post (here http://haacked.com/archive/2008/04/09/my-first-ironruby-unit-test-spec-for-a sp.net-mvc.aspx) I downloaded Rspec 1.1.4 and ran the exact code from the blog; setting the path on the first 'require' to point to where I extracted RSpect require File.dirname(__FILE__) + '/../../Libraries/rspec-1.1.4/spec/spec_helper' The error I get is: IronRuby.Libraries:0:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neut ral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or ca nnot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' When I comment out the entire file, and just include the first 'require' I still get this error; so I assume the problem is in loading that RSpect spec_helper file? Anyone else run into this? -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From curth at microsoft.com Sun Jun 8 14:07:28 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sun, 8 Jun 2008 11:07:28 -0700 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <000801c8c991$51e67dc0$f5b37940$@com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> <000801c8c991$51e67dc0$f5b37940$@com> Message-ID: I don't think he would have gotten that far if it were. Ruby.Runtime.RubyContext is in IronRuby.dll, which has to be loaded in order to do anything at all. Offhand, I'd say that versioning is the most likely source of the problem, perhaps related to changes in file names. Make sure that there's no copy of rbx.exe or Ruby.dll someplace where they might cause trouble, as these have been replaced by ir.exe and IronRuby.dll. And after deletion, do the equivalent of a "rebuild all" for good measure. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Sunday, June 08, 2008 10:59 AM To: gakins at insomnia-consulting.org; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Trying to duplicate Phil Haack's example Is this not the old SIGNED problem? Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday,08 June 08, 2008 17:39 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Trying to duplicate Phil Haack's example Using rev 113, I tried to duplicate Phil Haack's blog post (here http://haacked.com/archive/2008/04/09/my-first-ironruby-unit-test-spec-for-a sp.net-mvc.aspx) I downloaded Rspec 1.1.4 and ran the exact code from the blog; setting the path on the first 'require' to point to where I extracted RSpect require File.dirname(__FILE__) + '/../../Libraries/rspec-1.1.4/spec/spec_helper' The error I get is: IronRuby.Libraries:0:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neut ral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or ca nnot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' When I comment out the entire file, and just include the first 'require' I still get this error; so I assume the problem is in loading that RSpect spec_helper file? Anyone else run into this? -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ 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 bacondarwin at googlemail.com Sun Jun 8 16:05:39 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Sun, 8 Jun 2008 21:05:39 +0100 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> <000801c8c991$51e67dc0$f5b37940$@com> Message-ID: <000901c8c9a3$06e14d20$14a3e760$@com> I don't know. Revision 113 has the SIGNED symbol set in a number of projects. When I was having this problem last week the Ruby.Console was able to load up and run code. It was only when you require a file that it popped up exactly this error. [I haven't looked but I suspect that Ruby.Console is able to load up IronRuby.dll without doing the strong named assembly lookup.] Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Sunday,08 June 08, 2008 19:07 To: ironruby-core at rubyforge.org; gakins at insomnia-consulting.org Subject: Re: [Ironruby-core] Trying to duplicate Phil Haack's example I don't think he would have gotten that far if it were. Ruby.Runtime.RubyContext is in IronRuby.dll, which has to be loaded in order to do anything at all. Offhand, I'd say that versioning is the most likely source of the problem, perhaps related to changes in file names. Make sure that there's no copy of rbx.exe or Ruby.dll someplace where they might cause trouble, as these have been replaced by ir.exe and IronRuby.dll. And after deletion, do the equivalent of a "rebuild all" for good measure. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Sunday, June 08, 2008 10:59 AM To: gakins at insomnia-consulting.org; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Trying to duplicate Phil Haack's example Is this not the old SIGNED problem? Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday,08 June 08, 2008 17:39 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Trying to duplicate Phil Haack's example Using rev 113, I tried to duplicate Phil Haack's blog post (here http://haacked.com/archive/2008/04/09/my-first-ironruby-unit-test-spec-for-a sp.net-mvc.aspx) I downloaded Rspec 1.1.4 and ran the exact code from the blog; setting the path on the first 'require' to point to where I extracted RSpect require File.dirname(__FILE__) + '/../../Libraries/rspec-1.1.4/spec/spec_helper' The error I get is: IronRuby.Libraries:0:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neut ral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or ca nnot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' When I comment out the entire file, and just include the first 'require' I still get this error; so I assume the problem is in loading that RSpect spec_helper file? Anyone else run into this? -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ 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 bacondarwin at googlemail.com Sun Jun 8 17:04:39 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Sun, 8 Jun 2008 22:04:39 +0100 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> Message-ID: <000a01c8c9ab$4535e650$cfa1b2f0$@com> This is definitely a problem with the SIGNED conditional compilation symbol. I can reproduce it by checking out a clean copy of r113 and building via Visual Studio 2008. At least two of the project files in the solution have the SIGNED symbol set in their Debug configuration. Some projects have an ExternalDebug configuration which is supposed not to have this set but the whole lot appears to be in a bit of a mess at the moment. The thing to do is go through each project and remove any traces of SIGNED. If you build this revision with rake compile you don't get the SIGNED problem because the rake task does not use the .csproj files to build the assemblies. What you do get in that case, though, is a corrupt ir.cmd file. The output from rake compile is ir.cmd instead of ir.exe. Just rename the file to ir.exe and all is well. Finally, I did have some problems requiring the MVC assemblies. I downloaded the most recent ones (Preview 3) but the System.Web.Abstractions and System.Web.Routing had 0.0.0.0 for their version number. I couldn't get IronRuby to require them from the GAC. What I found was that if you move them into the local folder and require them without their full name then all works fine. Here is my mvc.rb script and output (note my mvc.rb file is in trunk\tests\ironruby\specs\) ... require File.dirname(__FILE__) + '/spec_helper' require 'System.Web.Routing' require 'System.Web.Mvc' require 'System.Web.Abstractions' describe "Route#<<" do it "can create RouteCollection which is empty" do rc = System::Web::Routing::RouteCollection.new rc.count.should == 0 end it "can add route to RouteCollection" do rc = System::Web::Routing::RouteCollection.new r = System::Web::Routing::Route.new "", nil rc.add "route-name", r rc.count.should == 1 end end >>>>>>>>> D:\dev\ruby\ironruby\mvc\tests\ironruby\Specs>..\..\..\build\debug\ir mvc.rb Route#<< - can create RouteCollection which is empty - can add route to RouteCollection 2 examples, 0 failures Hope that helps. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday,08 June 08, 2008 17:39 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Trying to duplicate Phil Haack's example Using rev 113, I tried to duplicate Phil Haack's blog post (here http://haacked.com/archive/2008/04/09/my-first-ironruby-unit-test-spec-for-a sp.net-mvc.aspx) I downloaded Rspec 1.1.4 and ran the exact code from the blog; setting the path on the first 'require' to point to where I extracted RSpect require File.dirname(__FILE__) + '/../../Libraries/rspec-1.1.4/spec/spec_helper' The error I get is: IronRuby.Libraries:0:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neut ral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or ca nnot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' When I comment out the entire file, and just include the first 'require' I still get this error; so I assume the problem is in loading that RSpect spec_helper file? Anyone else run into this? -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From angrygreg at gmail.com Sun Jun 8 17:36:15 2008 From: angrygreg at gmail.com (Greg Akins) Date: Sun, 8 Jun 2008 17:36:15 -0400 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <000a01c8c9ab$4535e650$cfa1b2f0$@com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> <000a01c8c9ab$4535e650$cfa1b2f0$@com> Message-ID: <8526685f0806081436j76a6a13ar11a46fc1ce621f99@mail.gmail.com> When I used the output from rake compile, I didn't those errors. My attempt at duplicating Phil's blog still didn't work, but I haven't tried all of Peter's suggestions yet. -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue From angrygreg at gmail.com Sun Jun 8 17:47:07 2008 From: angrygreg at gmail.com (Greg Akins) Date: Sun, 8 Jun 2008 17:47:07 -0400 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <8526685f0806081436j76a6a13ar11a46fc1ce621f99@mail.gmail.com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> <000a01c8c9ab$4535e650$cfa1b2f0$@com> <8526685f0806081436j76a6a13ar11a46fc1ce621f99@mail.gmail.com> Message-ID: <8526685f0806081447s53a2c3d6n1d6f22843b37db94@mail.gmail.com> Ignoring the MVC requires, and just trying to require rspec, I get c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in `require': no such file to load -- stringio (LoadError) from :0:in `Initialize##3' from c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelo ps.cs:300:in `require' from :0:in `Initialize##1' Seems like the paths are correct, so I'm not sure why I'm getting this... On Sun, Jun 8, 2008 at 5:36 PM, Greg Akins wrote: > When I used the output from rake compile, I didn't those errors. > > My attempt at duplicating Phil's blog still didn't work, but I haven't > tried all of Peter's suggestions yet. > > -- > Greg Akins > > http://www.pghcodingdojo.org > http://www.insomnia-consulting.org/monologue > -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue From curth at microsoft.com Sun Jun 8 17:49:58 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sun, 8 Jun 2008 14:49:58 -0700 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <8526685f0806081447s53a2c3d6n1d6f22843b37db94@mail.gmail.com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> <000a01c8c9ab$4535e650$cfa1b2f0$@com> <8526685f0806081436j76a6a13ar11a46fc1ce621f99@mail.gmail.com> <8526685f0806081447s53a2c3d6n1d6f22843b37db94@mail.gmail.com> Message-ID: There should be a "stringio.rb" in the Libs directory. It has a single line which reads: load_assembly 'IronRuby.Libraries', 'Ruby.StandardLibrary.StringIO' Either "Libs" needs to be in your Ruby path, or you'll need to copy this .rb file (and probably the other .rb files in Libs) someplace where it can be found. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday, June 08, 2008 2:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Trying to duplicate Phil Haack's example Ignoring the MVC requires, and just trying to require rspec, I get c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in `require': no such file to load -- stringio (LoadError) from :0:in `Initialize##3' from c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelo ps.cs:300:in `require' from :0:in `Initialize##1' Seems like the paths are correct, so I'm not sure why I'm getting this... On Sun, Jun 8, 2008 at 5:36 PM, Greg Akins wrote: > When I used the output from rake compile, I didn't those errors. > > My attempt at duplicating Phil's blog still didn't work, but I haven't > tried all of Peter's suggestions yet. > > -- > Greg Akins > > http://www.pghcodingdojo.org > http://www.insomnia-consulting.org/monologue > -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Sun Jun 8 21:27:38 2008 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 8 Jun 2008 18:27:38 -0700 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <000a01c8c9ab$4535e650$cfa1b2f0$@com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com>, <000a01c8c9ab$4535e650$cfa1b2f0$@com> Message-ID: For the record the Rakefile is fixed on the internal side, but I didn't want to venture screwing up either repository by trying a push without John being around. When I get into the office, I'll ask John to make sure I don't screw stuff up and I'll push out a changeset that will include the new Rakefile (compiling to ir.exe) and a svn version of ir.cmd and irvars.bat. JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin [bacondarwin at googlemail.com] Sent: Sunday, June 08, 2008 2:04 PM To: gakins at insomnia-consulting.org; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Trying to duplicate Phil Haack's example This is definitely a problem with the SIGNED conditional compilation symbol. I can reproduce it by checking out a clean copy of r113 and building via Visual Studio 2008. At least two of the project files in the solution have the SIGNED symbol set in their Debug configuration. Some projects have an ExternalDebug configuration which is supposed not to have this set but the whole lot appears to be in a bit of a mess at the moment. The thing to do is go through each project and remove any traces of SIGNED. If you build this revision with rake compile you don't get the SIGNED problem because the rake task does not use the .csproj files to build the assemblies. What you do get in that case, though, is a corrupt ir.cmd file. The output from rake compile is ir.cmd instead of ir.exe. Just rename the file to ir.exe and all is well. Finally, I did have some problems requiring the MVC assemblies. I downloaded the most recent ones (Preview 3) but the System.Web.Abstractions and System.Web.Routing had 0.0.0.0 for their version number. I couldn't get IronRuby to require them from the GAC. What I found was that if you move them into the local folder and require them without their full name then all works fine. Here is my mvc.rb script and output (note my mvc.rb file is in trunk\tests\ironruby\specs\) ... require File.dirname(__FILE__) + '/spec_helper' require 'System.Web.Routing' require 'System.Web.Mvc' require 'System.Web.Abstractions' describe "Route#<<" do it "can create RouteCollection which is empty" do rc = System::Web::Routing::RouteCollection.new rc.count.should == 0 end it "can add route to RouteCollection" do rc = System::Web::Routing::RouteCollection.new r = System::Web::Routing::Route.new "", nil rc.add "route-name", r rc.count.should == 1 end end >>>>>>>>> D:\dev\ruby\ironruby\mvc\tests\ironruby\Specs>..\..\..\build\debug\ir mvc.rb Route#<< - can create RouteCollection which is empty - can add route to RouteCollection 2 examples, 0 failures Hope that helps. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday,08 June 08, 2008 17:39 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Trying to duplicate Phil Haack's example Using rev 113, I tried to duplicate Phil Haack's blog post (here http://haacked.com/archive/2008/04/09/my-first-ironruby-unit-test-spec-for-a sp.net-mvc.aspx) I downloaded Rspec 1.1.4 and ran the exact code from the blog; setting the path on the first 'require' to point to where I extracted RSpect require File.dirname(__FILE__) + '/../../Libraries/rspec-1.1.4/spec/spec_helper' The error I get is: IronRuby.Libraries:0:in `require': Type 'IronRuby, Version=1.0.0.0, Culture=neut ral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or ca nnot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' When I comment out the entire file, and just include the first 'require' I still get this error; so I assume the problem is in loading that RSpect spec_helper file? Anyone else run into this? -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ 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 bacondarwin at googlemail.com Mon Jun 9 01:57:28 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Mon, 9 Jun 2008 06:57:28 +0100 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <8526685f0806081447s53a2c3d6n1d6f22843b37db94@mail.gmail.com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> <000a01c8c9ab$4535e650$cfa1b2f0$@com> <8526685f0806081436j76a6a13ar11a46fc1ce621f99@mail.gmail.com> <8526685f0806081447s53a2c3d6n1d6f22843b37db94@mail.gmail.com> Message-ID: <000001c8c9f5$b4572680$1d057380$@com> Hi Greg, I think you would be better off using the version of rspec included with IronRuby at the moment rather than the one you downloaded from RSpec. My results yesterday were from requiring the spec_helper.rb contained within the trunk\tests\ironruby\specs folder. I tried downloading RSpec 1.1.4, requiring spec_helper.rb in there and I get the same error as you. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins Sent: Sunday,08 June 08, 2008 22:47 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Trying to duplicate Phil Haack's example Ignoring the MVC requires, and just trying to require rspec, I get c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelops.cs:300 :in `require': no such file to load -- stringio (LoadError) from :0:in `Initialize##3' from c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelo ps.cs:300:in `require' from :0:in `Initialize##1' Seems like the paths are correct, so I'm not sure why I'm getting this... On Sun, Jun 8, 2008 at 5:36 PM, Greg Akins wrote: > When I used the output from rake compile, I didn't those errors. > > My attempt at duplicating Phil's blog still didn't work, but I haven't > tried all of Peter's suggestions yet. > > -- > Greg Akins > > http://www.pghcodingdojo.org > http://www.insomnia-consulting.org/monologue > -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From angrygreg at gmail.com Mon Jun 9 06:33:18 2008 From: angrygreg at gmail.com (Greg Akins) Date: Mon, 9 Jun 2008 06:33:18 -0400 Subject: [Ironruby-core] Trying to duplicate Phil Haack's example In-Reply-To: <000001c8c9f5$b4572680$1d057380$@com> References: <8526685f0806080938l489faef7xb7f245ca210589ab@mail.gmail.com> <000a01c8c9ab$4535e650$cfa1b2f0$@com> <8526685f0806081436j76a6a13ar11a46fc1ce621f99@mail.gmail.com> <8526685f0806081447s53a2c3d6n1d6f22843b37db94@mail.gmail.com> <000001c8c9f5$b4572680$1d057380$@com> Message-ID: <8526685f0806090333p390a5078mf5ecdfc21b6a2c46@mail.gmail.com> Ah, thank you! I didn't realize there was a version of rspec included. I didn't get to do anymore work yesterday, but should be able to get back and try that later this morning. On Mon, Jun 9, 2008 at 1:57 AM, Peter Bacon Darwin wrote: > Hi Greg, > I think you would be better off using the version of rspec included with > IronRuby at the moment rather than the one you downloaded from RSpec. > > My results yesterday were from requiring the spec_helper.rb contained within > the trunk\tests\ironruby\specs folder. > > I tried downloading RSpec 1.1.4, requiring spec_helper.rb in there and I get > the same error as you. > > Pete > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Akins > Sent: Sunday,08 June 08, 2008 22:47 > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Trying to duplicate Phil Haack's example > > Ignoring the MVC requires, and just trying to require rspec, I get > > c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelops.cs:300 > :in > `require': no such file to load -- stringio (LoadError) > from :0:in `Initialize##3' > from > c:\Libraries\IronRuby\trunk\src\IronRuby.Libraries\Builtins\kernelo > ps.cs:300:in `require' > from :0:in `Initialize##1' > > Seems like the paths are correct, so I'm not sure why I'm getting this... > > On Sun, Jun 8, 2008 at 5:36 PM, Greg Akins wrote: >> When I used the output from rake compile, I didn't those errors. >> >> My attempt at duplicating Phil's blog still didn't work, but I haven't >> tried all of Peter's suggestions yet. >> >> -- >> Greg Akins >> >> http://www.pghcodingdojo.org >> http://www.insomnia-consulting.org/monologue >> > > > > -- > Greg Akins > > http://www.pghcodingdojo.org > http://www.insomnia-consulting.org/monologue > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Greg Akins http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue From Jimmy.Schementi at microsoft.com Tue Jun 10 17:08:32 2008 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 10 Jun 2008 14:08:32 -0700 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic Languages SDK has been updated as well! Download the Dynamic Languages SDK: http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 There's a lot of new stuff here, from new versions of IronRuby, IronPython, Managed JScript, and the Dynamic Languages Runtime, to more sample. Also, there are now three packages: SDK, SDK Samples, and SDK Source. * SDK: Necessary package to create dynamic language Silverlight applications. * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet is to unzip this in the SDK directory. * SDK Source Code: If you want to modify the languages/DLR/Silverlight integration, you can do so here, and build using the given Solution file in Visual Studio. This will create a /bin directory with the identical binaries as the /bin directory in the SDK, however without DLL signing. Enjoy! ~Jimmy From ben2004uk at googlemail.com Tue Jun 10 17:29:34 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Tue, 10 Jun 2008 22:29:34 +0100 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I can actually get my app working tonight! Thanks Ben Blog.BenHall.me.uk On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi wrote: > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic Languages SDK has been updated as well! > > Download the Dynamic Languages SDK: > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > > There's a lot of new stuff here, from new versions of IronRuby, IronPython, Managed JScript, and the Dynamic Languages Runtime, to more sample. Also, there are now three packages: SDK, SDK Samples, and SDK Source. > > * SDK: Necessary package to create dynamic language Silverlight applications. > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet is to unzip this in the SDK directory. > * SDK Source Code: If you want to modify the languages/DLR/Silverlight integration, you can do so here, and build using the given Solution file in Visual Studio. This will create a /bin directory with the identical binaries as the /bin directory in the SDK, however without DLL signing. > > Enjoy! > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From ivan at flanders.co.nz Tue Jun 10 17:32:17 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 11 Jun 2008 09:32:17 +1200 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Sweet. That means I can compile my dynamic script control for the all the DLR based languages. On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall wrote: > Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I > can actually get my app working tonight! > > Thanks > > Ben > Blog.BenHall.me.uk > > On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > wrote: > > > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > > > > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic > Languages SDK has been updated as well! > > > > Download the Dynamic Languages SDK: > > > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > > > > There's a lot of new stuff here, from new versions of IronRuby, > IronPython, Managed JScript, and the Dynamic Languages Runtime, to more > sample. Also, there are now three packages: SDK, SDK Samples, and SDK > Source. > > > > * SDK: Necessary package to create dynamic language Silverlight > applications. > > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet > is to unzip this in the SDK directory. > > * SDK Source Code: If you want to modify the languages/DLR/Silverlight > integration, you can do so here, and build using the given Solution file in > Visual Studio. This will create a /bin directory with the identical binaries > as the /bin directory in the SDK, however without DLL signing. > > > > Enjoy! > > ~Jimmy > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jun 10 18:30:45 2008 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 10 Jun 2008 15:30:45 -0700 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> What dynamic script control is this? For ASP.NET? Similar to this? http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx PS. I?m gonna get it updated for SL2Beta2 shortly ? ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, June 10, 2008 2:32 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 Sweet. That means I can compile my dynamic script control for the all the DLR based languages. On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall > wrote: Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I can actually get my app working tonight! Thanks Ben Blog.BenHall.me.uk On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > wrote: > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic Languages SDK has been updated as well! > > Download the Dynamic Languages SDK: > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > > There's a lot of new stuff here, from new versions of IronRuby, IronPython, Managed JScript, and the Dynamic Languages Runtime, to more sample. Also, there are now three packages: SDK, SDK Samples, and SDK Source. > > * SDK: Necessary package to create dynamic language Silverlight applications. > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet is to unzip this in the SDK directory. > * SDK Source Code: If you want to modify the languages/DLR/Silverlight integration, you can do so here, and build using the given Solution file in Visual Studio. This will create a /bin directory with the identical binaries as the /bin directory in the SDK, however without DLL signing. > > Enjoy! > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Jun 10 18:33:38 2008 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 10 Jun 2008 15:33:38 -0700 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63C6@NA-EXMSG-C116.redmond.corp.microsoft.com> Woops, Curt just informed me this is a control for XAML ? awesomer! =) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, June 10, 2008 3:31 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 What dynamic script control is this? For ASP.NET? Similar to this? http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx PS. I?m gonna get it updated for SL2Beta2 shortly ? ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, June 10, 2008 2:32 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 Sweet. That means I can compile my dynamic script control for the all the DLR based languages. On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall > wrote: Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I can actually get my app working tonight! Thanks Ben Blog.BenHall.me.uk On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > wrote: > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic Languages SDK has been updated as well! > > Download the Dynamic Languages SDK: > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > > There's a lot of new stuff here, from new versions of IronRuby, IronPython, Managed JScript, and the Dynamic Languages Runtime, to more sample. Also, there are now three packages: SDK, SDK Samples, and SDK Source. > > * SDK: Necessary package to create dynamic language Silverlight applications. > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet is to unzip this in the SDK directory. > * SDK Source Code: If you want to modify the languages/DLR/Silverlight integration, you can do so here, and build using the given Solution file in Visual Studio. This will create a /bin directory with the identical binaries as the /bin directory in the SDK, however without DLL signing. > > Enjoy! > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Tue Jun 10 18:36:56 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Tue, 10 Jun 2008 15:36:56 -0700 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63C6@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63C6@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: That?s assuming that it?s a reference to this: http://www.codeplex.com/dynamicscriptcontrol. Let me know if I?m mistaken. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, June 10, 2008 3:34 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 Woops, Curt just informed me this is a control for XAML ? awesomer! =) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, June 10, 2008 3:31 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 What dynamic script control is this? For ASP.NET? Similar to this? http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx PS. I?m gonna get it updated for SL2Beta2 shortly ? ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, June 10, 2008 2:32 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 Sweet. That means I can compile my dynamic script control for the all the DLR based languages. On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall > wrote: Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I can actually get my app working tonight! Thanks Ben Blog.BenHall.me.uk On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > wrote: > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic Languages SDK has been updated as well! > > Download the Dynamic Languages SDK: > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > > There's a lot of new stuff here, from new versions of IronRuby, IronPython, Managed JScript, and the Dynamic Languages Runtime, to more sample. Also, there are now three packages: SDK, SDK Samples, and SDK Source. > > * SDK: Necessary package to create dynamic language Silverlight applications. > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet is to unzip this in the SDK directory. > * SDK Source Code: If you want to modify the languages/DLR/Silverlight integration, you can do so here, and build using the given Solution file in Visual Studio. This will create a /bin directory with the identical binaries as the /bin directory in the SDK, however without DLL signing. > > Enjoy! > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Jun 10 18:39:06 2008 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 10 Jun 2008 15:39:06 -0700 Subject: [Ironruby-core] Code review: socketpatch Message-ID: Ruby only Tfpt review /shelveset:socketpatch;jdeville External patch from Peter Bacon Darwin resolving Rubyforge bug [#20517] Socket::Constants not defined JD -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: socketpatch.diff Type: application/octet-stream Size: 89178 bytes Desc: socketpatch.diff URL: From ivan at flanders.co.nz Tue Jun 10 18:44:17 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 11 Jun 2008 10:44:17 +1200 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: No it's for xaml and eventually silverlight too probably. At the moment I only have a little experiment online and I'm now the more useful version. Anyway I wanted a way to write my controls in IronRuby and then have them participate in a xaml layout as any CLR based control can do. At this moment I've made it so that you set the properties on the DLR based control with a language specific hash/dictionary. So if you use it in python you set the properties on the control using a python dictionary or at least that's the plan but for that I needed a common DLR which I have now. It's up on codeplex. http://codeplex.com/dynamicscriptcontrol On Wed, Jun 11, 2008 at 10:30 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > What dynamic script control is this? For ASP.NET? Similar to this? > > > http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx > > > > PS. I'm gonna get it updated for SL2Beta2 shortly ? > > > > ~js > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Tuesday, June 10, 2008 2:32 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 > > > > Sweet. That means I can compile my dynamic script control for the all the > DLR based languages. > > On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall > wrote: > > Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I > can actually get my app working tonight! > > Thanks > > Ben > Blog.BenHall.me.uk > > > On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > wrote: > > > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > > > > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic > Languages SDK has been updated as well! > > > > Download the Dynamic Languages SDK: > > > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > > > > There's a lot of new stuff here, from new versions of IronRuby, > IronPython, Managed JScript, and the Dynamic Languages Runtime, to more > sample. Also, there are now three packages: SDK, SDK Samples, and SDK > Source. > > > > * SDK: Necessary package to create dynamic language Silverlight > applications. > > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet > is to unzip this in the SDK directory. > > * SDK Source Code: If you want to modify the languages/DLR/Silverlight > integration, you can do so here, and build using the given Solution file in > Visual Studio. This will create a /bin directory with the identical binaries > as the /bin directory in the SDK, however without DLL signing. > > > > Enjoy! > > ~Jimmy > > > > _______________________________________________ > > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben2004uk at googlemail.com Tue Jun 10 18:51:42 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Tue, 10 Jun 2008 23:51:42 +0100 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Should these assemblies work with WinForms applications? I just posted a message on the IP list with an exception i'm getting. Guess I should have posted in here :) On Tue, Jun 10, 2008 at 11:44 PM, Ivan Porto Carrero wrote: > No it's for xaml and eventually silverlight too probably. > At the moment I only have a little experiment online and I'm now the more > useful version. > > Anyway I wanted a way to write my controls in IronRuby and then have them > participate in a xaml layout as any CLR based control can do. At this moment > I've made it so that you set the properties on the DLR based control with a > language specific hash/dictionary. So if you use it in python you set the > properties on the control using a python dictionary or at least that's the > plan but for that I needed a common DLR which I have now. > > It's up on codeplex. > http://codeplex.com/dynamicscriptcontrol > > On Wed, Jun 11, 2008 at 10:30 AM, Jimmy Schementi > wrote: >> >> What dynamic script control is this? For ASP.NET? Similar to this? >> >> >> http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx >> >> >> >> PS. I'm gonna get it updated for SL2Beta2 shortly ? >> >> >> >> ~js >> >> >> >> >> >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero >> Sent: Tuesday, June 10, 2008 2:32 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 >> >> >> >> Sweet. That means I can compile my dynamic script control for the all the >> DLR based languages. >> >> On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall >> wrote: >> >> Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I >> can actually get my app working tonight! >> >> Thanks >> >> Ben >> Blog.BenHall.me.uk >> >> On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi >> wrote: >> > >> > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html >> > >> > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic >> > Languages SDK has been updated as well! >> > >> > Download the Dynamic Languages SDK: >> > >> > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 >> > >> > There's a lot of new stuff here, from new versions of IronRuby, >> > IronPython, Managed JScript, and the Dynamic Languages Runtime, to more >> > sample. Also, there are now three packages: SDK, SDK Samples, and SDK >> > Source. >> > >> > * SDK: Necessary package to create dynamic language Silverlight >> > applications. >> > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best bet >> > is to unzip this in the SDK directory. >> > * SDK Source Code: If you want to modify the >> > languages/DLR/Silverlight integration, you can do so here, and build using >> > the given Solution file in Visual Studio. This will create a /bin directory >> > with the identical binaries as the /bin directory in the SDK, however >> > without DLL signing. >> > >> > Enjoy! >> > ~Jimmy >> > >> > _______________________________________________ >> >> > Ironruby-core mailing list >> > Ironruby-core at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/ironruby-core >> > >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From ivan at flanders.co.nz Tue Jun 10 19:01:09 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 11 Jun 2008 11:01:09 +1200 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Hi Ben I just created a new project build target which doesn't define the silverlight constant and then I had to replace the references to the silverlight assemblies in Microsoft.Scripting.Core and Microsoft.Scripting. I also unchecked Chiron and Microsoft.Scripting.Core.Silverlight but that isn't necessary if you don't want to use build solutiion. Cheers Ivan On Wed, Jun 11, 2008 at 10:51 AM, Ben Hall wrote: > Should these assemblies work with WinForms applications? I just posted > a message on the IP list with an exception i'm getting. > > Guess I should have posted in here :) > > On Tue, Jun 10, 2008 at 11:44 PM, Ivan Porto Carrero > wrote: > > No it's for xaml and eventually silverlight too probably. > > At the moment I only have a little experiment online and I'm now the more > > useful version. > > > > Anyway I wanted a way to write my controls in IronRuby and then have them > > participate in a xaml layout as any CLR based control can do. At this > moment > > I've made it so that you set the properties on the DLR based control with > a > > language specific hash/dictionary. So if you use it in python you set the > > properties on the control using a python dictionary or at least that's > the > > plan but for that I needed a common DLR which I have now. > > > > It's up on codeplex. > > http://codeplex.com/dynamicscriptcontrol > > > > On Wed, Jun 11, 2008 at 10:30 AM, Jimmy Schementi > > wrote: > >> > >> What dynamic script control is this? For ASP.NET? Similar to this? > >> > >> > >> > http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx > >> > >> > >> > >> PS. I'm gonna get it updated for SL2Beta2 shortly ? > >> > >> > >> > >> ~js > >> > >> > >> > >> > >> > >> From: ironruby-core-bounces at rubyforge.org > >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto > Carrero > >> Sent: Tuesday, June 10, 2008 2:32 PM > >> To: ironruby-core at rubyforge.org > >> Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 > >> > >> > >> > >> Sweet. That means I can compile my dynamic script control for the all > the > >> DLR based languages. > >> > >> On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall > >> wrote: > >> > >> Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I > >> can actually get my app working tonight! > >> > >> Thanks > >> > >> Ben > >> Blog.BenHall.me.uk > >> > >> On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > >> wrote: > >> > > >> > > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > >> > > >> > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic > >> > Languages SDK has been updated as well! > >> > > >> > Download the Dynamic Languages SDK: > >> > > >> > > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > >> > > >> > There's a lot of new stuff here, from new versions of IronRuby, > >> > IronPython, Managed JScript, and the Dynamic Languages Runtime, to > more > >> > sample. Also, there are now three packages: SDK, SDK Samples, and SDK > >> > Source. > >> > > >> > * SDK: Necessary package to create dynamic language Silverlight > >> > applications. > >> > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best > bet > >> > is to unzip this in the SDK directory. > >> > * SDK Source Code: If you want to modify the > >> > languages/DLR/Silverlight integration, you can do so here, and build > using > >> > the given Solution file in Visual Studio. This will create a /bin > directory > >> > with the identical binaries as the /bin directory in the SDK, however > >> > without DLL signing. > >> > > >> > Enjoy! > >> > ~Jimmy > >> > > >> > _______________________________________________ > >> > >> > Ironruby-core mailing list > >> > Ironruby-core at rubyforge.org > >> > http://rubyforge.org/mailman/listinfo/ironruby-core > >> > > >> _______________________________________________ > >> Ironruby-core mailing list > >> Ironruby-core at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/ironruby-core > >> > >> > >> > >> _______________________________________________ > >> Ironruby-core mailing list > >> Ironruby-core at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/ironruby-core > >> > > > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jun 10 19:01:55 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 11 Jun 2008 11:01:55 +1200 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: I'm happy to send you the binaries if you want them. On Wed, Jun 11, 2008 at 10:51 AM, Ben Hall wrote: > Should these assemblies work with WinForms applications? I just posted > a message on the IP list with an exception i'm getting. > > Guess I should have posted in here :) > > On Tue, Jun 10, 2008 at 11:44 PM, Ivan Porto Carrero > wrote: > > No it's for xaml and eventually silverlight too probably. > > At the moment I only have a little experiment online and I'm now the more > > useful version. > > > > Anyway I wanted a way to write my controls in IronRuby and then have them > > participate in a xaml layout as any CLR based control can do. At this > moment > > I've made it so that you set the properties on the DLR based control with > a > > language specific hash/dictionary. So if you use it in python you set the > > properties on the control using a python dictionary or at least that's > the > > plan but for that I needed a common DLR which I have now. > > > > It's up on codeplex. > > http://codeplex.com/dynamicscriptcontrol > > > > On Wed, Jun 11, 2008 at 10:30 AM, Jimmy Schementi > > wrote: > >> > >> What dynamic script control is this? For ASP.NET? Similar to this? > >> > >> > >> > http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx > >> > >> > >> > >> PS. I'm gonna get it updated for SL2Beta2 shortly ? > >> > >> > >> > >> ~js > >> > >> > >> > >> > >> > >> From: ironruby-core-bounces at rubyforge.org > >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto > Carrero > >> Sent: Tuesday, June 10, 2008 2:32 PM > >> To: ironruby-core at rubyforge.org > >> Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 > >> > >> > >> > >> Sweet. That means I can compile my dynamic script control for the all > the > >> DLR based languages. > >> > >> On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall > >> wrote: > >> > >> Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I > >> can actually get my app working tonight! > >> > >> Thanks > >> > >> Ben > >> Blog.BenHall.me.uk > >> > >> On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > >> wrote: > >> > > >> > > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > >> > > >> > With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic > >> > Languages SDK has been updated as well! > >> > > >> > Download the Dynamic Languages SDK: > >> > > >> > > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > >> > > >> > There's a lot of new stuff here, from new versions of IronRuby, > >> > IronPython, Managed JScript, and the Dynamic Languages Runtime, to > more > >> > sample. Also, there are now three packages: SDK, SDK Samples, and SDK > >> > Source. > >> > > >> > * SDK: Necessary package to create dynamic language Silverlight > >> > applications. > >> > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best > bet > >> > is to unzip this in the SDK directory. > >> > * SDK Source Code: If you want to modify the > >> > languages/DLR/Silverlight integration, you can do so here, and build > using > >> > the given Solution file in Visual Studio. This will create a /bin > directory > >> > with the identical binaries as the /bin directory in the SDK, however > >> > without DLL signing. > >> > > >> > Enjoy! > >> > ~Jimmy > >> > > >> > _______________________________________________ > >> > >> > Ironruby-core mailing list > >> > Ironruby-core at rubyforge.org > >> > http://rubyforge.org/mailman/listinfo/ironruby-core > >> > > >> _______________________________________________ > >> Ironruby-core mailing list > >> Ironruby-core at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/ironruby-core > >> > >> > >> > >> _______________________________________________ > >> Ironruby-core mailing list > >> Ironruby-core at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/ironruby-core > >> > > > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Jun 10 19:27:10 2008 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 10 Jun 2008 16:27:10 -0700 Subject: [Ironruby-core] Code Review: socketpatch2 Message-ID: Ruby only External patch from Peter Bacon Darwin closing Rubyforge [#20518] Socket.new doesn't have int, int, int overload and doesn't return a Ruby Socket Tfpt review /shelveset:socketpatch2 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: socketpatch2.diff Type: application/octet-stream Size: 29636 bytes Desc: socketpatch2.diff URL: From ben2004uk at googlemail.com Tue Jun 10 19:30:34 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Wed, 11 Jun 2008 00:30:34 +0100 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Hi Ivan, That would be great! Sent you a direct mail from my other account. Cheers Ben On Wed, Jun 11, 2008 at 12:01 AM, Ivan Porto Carrero wrote: > I'm happy to send you the binaries if you want them. > > On Wed, Jun 11, 2008 at 10:51 AM, Ben Hall wrote: >> >> Should these assemblies work with WinForms applications? I just posted >> a message on the IP list with an exception i'm getting. >> >> Guess I should have posted in here :) >> >> On Tue, Jun 10, 2008 at 11:44 PM, Ivan Porto Carrero >> wrote: >> > No it's for xaml and eventually silverlight too probably. >> > At the moment I only have a little experiment online and I'm now the >> > more >> > useful version. >> > >> > Anyway I wanted a way to write my controls in IronRuby and then have >> > them >> > participate in a xaml layout as any CLR based control can do. At this >> > moment >> > I've made it so that you set the properties on the DLR based control >> > with a >> > language specific hash/dictionary. So if you use it in python you set >> > the >> > properties on the control using a python dictionary or at least that's >> > the >> > plan but for that I needed a common DLR which I have now. >> > >> > It's up on codeplex. >> > http://codeplex.com/dynamicscriptcontrol >> > >> > On Wed, Jun 11, 2008 at 10:30 AM, Jimmy Schementi >> > wrote: >> >> >> >> What dynamic script control is this? For ASP.NET? Similar to this? >> >> >> >> >> >> >> >> http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx >> >> >> >> >> >> >> >> PS. I'm gonna get it updated for SL2Beta2 shortly ? >> >> >> >> >> >> >> >> ~js >> >> >> >> >> >> >> >> >> >> >> >> From: ironruby-core-bounces at rubyforge.org >> >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto >> >> Carrero >> >> Sent: Tuesday, June 10, 2008 2:32 PM >> >> To: ironruby-core at rubyforge.org >> >> Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 >> >> >> >> >> >> >> >> Sweet. That means I can compile my dynamic script control for the all >> >> the >> >> DLR based languages. >> >> >> >> On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall >> >> wrote: >> >> >> >> Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I >> >> can actually get my app working tonight! >> >> >> >> Thanks >> >> >> >> Ben >> >> Blog.BenHall.me.uk >> >> >> >> On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi >> >> wrote: >> >> > >> >> > >> >> > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html >> >> > >> >> > With the announcement of Silverlight 2 Beta 2, the Silverlight >> >> > Dynamic >> >> > Languages SDK has been updated as well! >> >> > >> >> > Download the Dynamic Languages SDK: >> >> > >> >> > >> >> > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 >> >> > >> >> > There's a lot of new stuff here, from new versions of IronRuby, >> >> > IronPython, Managed JScript, and the Dynamic Languages Runtime, to >> >> > more >> >> > sample. Also, there are now three packages: SDK, SDK Samples, and SDK >> >> > Source. >> >> > >> >> > * SDK: Necessary package to create dynamic language Silverlight >> >> > applications. >> >> > * SDK Samples: a bunch of Ruby, Python, and JScript samples. Best >> >> > bet >> >> > is to unzip this in the SDK directory. >> >> > * SDK Source Code: If you want to modify the >> >> > languages/DLR/Silverlight integration, you can do so here, and build >> >> > using >> >> > the given Solution file in Visual Studio. This will create a /bin >> >> > directory >> >> > with the identical binaries as the /bin directory in the SDK, however >> >> > without DLL signing. >> >> > >> >> > Enjoy! >> >> > ~Jimmy >> >> > >> >> > _______________________________________________ >> >> >> >> > Ironruby-core mailing list >> >> > Ironruby-core at rubyforge.org >> >> > http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > >> >> _______________________________________________ >> >> Ironruby-core mailing list >> >> Ironruby-core at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> >> >> >> _______________________________________________ >> >> Ironruby-core mailing list >> >> Ironruby-core at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> > >> > >> > _______________________________________________ >> > Ironruby-core mailing list >> > Ironruby-core at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/ironruby-core >> > >> > >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From Tomas.Matousek at microsoft.com Tue Jun 10 19:32:03 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 10 Jun 2008 16:32:03 -0700 Subject: [Ironruby-core] Code review: socketpatch In-Reply-To: References: Message-ID: Looks good as well. From: Jim Deville Sent: Tuesday, June 10, 2008 3:39 PM To: John Lam (IRONRUBY); Oleg Tkachenko; Tomas Matousek; Rowan Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code review: socketpatch Ruby only Tfpt review /shelveset:socketpatch;jdeville External patch from Peter Bacon Darwin resolving Rubyforge bug [#20517] Socket::Constants not defined JD -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Jun 10 19:46:45 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 11 Jun 2008 11:46:45 +1200 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Hi Ben, I've sent you the files. Now to answer the question as to why there is a need for building against different assemblies. Because Silverlight includes the CoreCLR something like a CLR lite :) it has a different mscorlib with less stuff in it. Since mscorlib is the base library of the CLR you need to have a different build for everything that relies on that CLR lite. Which is why you need a different System and so on. So when you just use one or the other visual studio will take care of selecting the appropriate assemblies for you. In this case you had to do it manually. I don't think that will change in the future, what will change is that you will be able to download IronRuby or IronPython or so and you can then be sure that both rely on the same DLR so that you can support any of those languages. Cheers, Ivan On Wed, Jun 11, 2008 at 11:30 AM, Ben Hall wrote: > Hi Ivan, > > That would be great! Sent you a direct mail from my other account. > > Cheers > > Ben > > On Wed, Jun 11, 2008 at 12:01 AM, Ivan Porto Carrero > wrote: > > I'm happy to send you the binaries if you want them. > > > > On Wed, Jun 11, 2008 at 10:51 AM, Ben Hall > wrote: > >> > >> Should these assemblies work with WinForms applications? I just posted > >> a message on the IP list with an exception i'm getting. > >> > >> Guess I should have posted in here :) > >> > >> On Tue, Jun 10, 2008 at 11:44 PM, Ivan Porto Carrero > >> wrote: > >> > No it's for xaml and eventually silverlight too probably. > >> > At the moment I only have a little experiment online and I'm now the > >> > more > >> > useful version. > >> > > >> > Anyway I wanted a way to write my controls in IronRuby and then have > >> > them > >> > participate in a xaml layout as any CLR based control can do. At this > >> > moment > >> > I've made it so that you set the properties on the DLR based control > >> > with a > >> > language specific hash/dictionary. So if you use it in python you set > >> > the > >> > properties on the control using a python dictionary or at least that's > >> > the > >> > plan but for that I needed a common DLR which I have now. > >> > > >> > It's up on codeplex. > >> > http://codeplex.com/dynamicscriptcontrol > >> > > >> > On Wed, Jun 11, 2008 at 10:30 AM, Jimmy Schementi > >> > wrote: > >> >> > >> >> What dynamic script control is this? For ASP.NET? Similar to this? > >> >> > >> >> > >> >> > >> >> > http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx > >> >> > >> >> > >> >> > >> >> PS. I'm gonna get it updated for SL2Beta2 shortly ? > >> >> > >> >> > >> >> > >> >> ~js > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> From: ironruby-core-bounces at rubyforge.org > >> >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto > >> >> Carrero > >> >> Sent: Tuesday, June 10, 2008 2:32 PM > >> >> To: ironruby-core at rubyforge.org > >> >> Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta > 2 > >> >> > >> >> > >> >> > >> >> Sweet. That means I can compile my dynamic script control for the all > >> >> the > >> >> DLR based languages. > >> >> > >> >> On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall > >> >> wrote: > >> >> > >> >> Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I > >> >> can actually get my app working tonight! > >> >> > >> >> Thanks > >> >> > >> >> Ben > >> >> Blog.BenHall.me.uk > >> >> > >> >> On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi > >> >> wrote: > >> >> > > >> >> > > >> >> > > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html > >> >> > > >> >> > With the announcement of Silverlight 2 Beta 2, the Silverlight > >> >> > Dynamic > >> >> > Languages SDK has been updated as well! > >> >> > > >> >> > Download the Dynamic Languages SDK: > >> >> > > >> >> > > >> >> > > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 > >> >> > > >> >> > There's a lot of new stuff here, from new versions of IronRuby, > >> >> > IronPython, Managed JScript, and the Dynamic Languages Runtime, to > >> >> > more > >> >> > sample. Also, there are now three packages: SDK, SDK Samples, and > SDK > >> >> > Source. > >> >> > > >> >> > * SDK: Necessary package to create dynamic language Silverlight > >> >> > applications. > >> >> > * SDK Samples: a bunch of Ruby, Python, and JScript samples. > Best > >> >> > bet > >> >> > is to unzip this in the SDK directory. > >> >> > * SDK Source Code: If you want to modify the > >> >> > languages/DLR/Silverlight integration, you can do so here, and > build > >> >> > using > >> >> > the given Solution file in Visual Studio. This will create a /bin > >> >> > directory > >> >> > with the identical binaries as the /bin directory in the SDK, > however > >> >> > without DLL signing. > >> >> > > >> >> > Enjoy! > >> >> > ~Jimmy > >> >> > > >> >> > _______________________________________________ > >> >> > >> >> > Ironruby-core mailing list > >> >> > Ironruby-core at rubyforge.org > >> >> > http://rubyforge.org/mailman/listinfo/ironruby-core > >> >> > > >> >> _______________________________________________ > >> >> Ironruby-core mailing list > >> >> Ironruby-core at rubyforge.org > >> >> http://rubyforge.org/mailman/listinfo/ironruby-core > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Ironruby-core mailing list > >> >> Ironruby-core at rubyforge.org > >> >> http://rubyforge.org/mailman/listinfo/ironruby-core > >> >> > >> > > >> > > >> > _______________________________________________ > >> > Ironruby-core mailing list > >> > Ironruby-core at rubyforge.org > >> > http://rubyforge.org/mailman/listinfo/ironruby-core > >> > > >> > > >> _______________________________________________ > >> Ironruby-core mailing list > >> Ironruby-core at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben2004uk at googlemail.com Tue Jun 10 20:25:37 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Wed, 11 Jun 2008 01:25:37 +0100 Subject: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2 In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B62EC@NA-EXMSG-C116.redmond.corp.microsoft.com> <5283CA0A4168DF4FBBD71AE9ECA5A32845CC4B63BF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Thanks for that. It does make sense now. All of my unit tests are passing, apart from two. I have this method: public string GetSaveFilter() { string filter = string.Empty; foreach (string ext in Engine.GetRegisteredExtensions()) { filter += string.Format("{0}|*{1}", Engine.LanguageDisplayName, ext); } return filter; } This was for my save dialog so I could have IronPython|*.py. However, with this release GetRegisteredExtensions doesn't seem to be working the same. If I look in my Quick Watch window, what I get is (Engine == ScriptEngine): Engine.GetRegisteredExtensions() {string[0]} string[] It might be something my end. Haven't investigated it yet. On Wed, Jun 11, 2008 at 12:46 AM, Ivan Porto Carrero wrote: > Hi Ben, > > I've sent you the files. Now to answer the question as to why there is a > need for building against different assemblies. Because Silverlight includes > the CoreCLR something like a CLR lite :) it has a different mscorlib with > less stuff in it. Since mscorlib is the base library of the CLR you need to > have a different build for everything that relies on that CLR lite. Which > is why you need a different System and so on. > > So when you just use one or the other visual studio will take care of > selecting the appropriate assemblies for you. In this case you had to do it > manually. I don't think that will change in the future, what will change is > that you will be able to download IronRuby or IronPython or so and you can > then be sure that both rely on the same DLR so that you can support any of > those languages. > > Cheers, > Ivan > > On Wed, Jun 11, 2008 at 11:30 AM, Ben Hall wrote: >> >> Hi Ivan, >> >> That would be great! Sent you a direct mail from my other account. >> >> Cheers >> >> Ben >> >> On Wed, Jun 11, 2008 at 12:01 AM, Ivan Porto Carrero >> wrote: >> > I'm happy to send you the binaries if you want them. >> > >> > On Wed, Jun 11, 2008 at 10:51 AM, Ben Hall >> > wrote: >> >> >> >> Should these assemblies work with WinForms applications? I just posted >> >> a message on the IP list with an exception i'm getting. >> >> >> >> Guess I should have posted in here :) >> >> >> >> On Tue, Jun 10, 2008 at 11:44 PM, Ivan Porto Carrero >> >> wrote: >> >> > No it's for xaml and eventually silverlight too probably. >> >> > At the moment I only have a little experiment online and I'm now the >> >> > more >> >> > useful version. >> >> > >> >> > Anyway I wanted a way to write my controls in IronRuby and then have >> >> > them >> >> > participate in a xaml layout as any CLR based control can do. At this >> >> > moment >> >> > I've made it so that you set the properties on the DLR based control >> >> > with a >> >> > language specific hash/dictionary. So if you use it in python you set >> >> > the >> >> > properties on the control using a python dictionary or at least >> >> > that's >> >> > the >> >> > plan but for that I needed a common DLR which I have now. >> >> > >> >> > It's up on codeplex. >> >> > http://codeplex.com/dynamicscriptcontrol >> >> > >> >> > On Wed, Jun 11, 2008 at 10:30 AM, Jimmy Schementi >> >> > wrote: >> >> >> >> >> >> What dynamic script control is this? For ASP.NET? Similar to this? >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> http://blogs.msdn.com/dmitryr/archive/2008/05/06/dynamic-client-script-for-silverlight-2-beta2.aspx >> >> >> >> >> >> >> >> >> >> >> >> PS. I'm gonna get it updated for SL2Beta2 shortly ? >> >> >> >> >> >> >> >> >> >> >> >> ~js >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> From: ironruby-core-bounces at rubyforge.org >> >> >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto >> >> >> Carrero >> >> >> Sent: Tuesday, June 10, 2008 2:32 PM >> >> >> To: ironruby-core at rubyforge.org >> >> >> Subject: Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta >> >> >> 2 >> >> >> >> >> >> >> >> >> >> >> >> Sweet. That means I can compile my dynamic script control for the >> >> >> all >> >> >> the >> >> >> DLR based languages. >> >> >> >> >> >> On Wed, Jun 11, 2008 at 9:29 AM, Ben Hall >> >> >> wrote: >> >> >> >> >> >> Excellent!! A new set of IronPython, IronRuby and DLR assemblies. I >> >> >> can actually get my app working tonight! >> >> >> >> >> >> Thanks >> >> >> >> >> >> Ben >> >> >> Blog.BenHall.me.uk >> >> >> >> >> >> On Tue, Jun 10, 2008 at 10:08 PM, Jimmy Schementi >> >> >> wrote: >> >> >> > >> >> >> > >> >> >> > >> >> >> > http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html >> >> >> > >> >> >> > With the announcement of Silverlight 2 Beta 2, the Silverlight >> >> >> > Dynamic >> >> >> > Languages SDK has been updated as well! >> >> >> > >> >> >> > Download the Dynamic Languages SDK: >> >> >> > >> >> >> > >> >> >> > >> >> >> > http://www.codeplex.com/sdlsdk/Release/ProjectReleases.aspx?ReleaseId=14254 >> >> >> > >> >> >> > There's a lot of new stuff here, from new versions of IronRuby, >> >> >> > IronPython, Managed JScript, and the Dynamic Languages Runtime, to >> >> >> > more >> >> >> > sample. Also, there are now three packages: SDK, SDK Samples, and >> >> >> > SDK >> >> >> > Source. >> >> >> > >> >> >> > * SDK: Necessary package to create dynamic language Silverlight >> >> >> > applications. >> >> >> > * SDK Samples: a bunch of Ruby, Python, and JScript samples. >> >> >> > Best >> >> >> > bet >> >> >> > is to unzip this in the SDK directory. >> >> >> > * SDK Source Code: If you want to modify the >> >> >> > languages/DLR/Silverlight integration, you can do so here, and >> >> >> > build >> >> >> > using >> >> >> > the given Solution file in Visual Studio. This will create a /bin >> >> >> > directory >> >> >> > with the identical binaries as the /bin directory in the SDK, >> >> >> > however >> >> >> > without DLL signing. >> >> >> > >> >> >> > Enjoy! >> >> >> > ~Jimmy >> >> >> > >> >> >> > _______________________________________________ >> >> >> >> >> >> > Ironruby-core mailing list >> >> >> > Ironruby-core at rubyforge.org >> >> >> > http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> > >> >> >> _______________________________________________ >> >> >> Ironruby-core mailing list >> >> >> Ironruby-core at rubyforge.org >> >> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> Ironruby-core mailing list >> >> >> Ironruby-core at rubyforge.org >> >> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> > >> >> > >> >> > _______________________________________________ >> >> > Ironruby-core mailing list >> >> > Ironruby-core at rubyforge.org >> >> > http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > >> >> > >> >> _______________________________________________ >> >> Ironruby-core mailing list >> >> Ironruby-core at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > >> > >> > _______________________________________________ >> > Ironruby-core mailing list >> > Ironruby-core at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/ironruby-core >> > >> > >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From raymond.roestenburg at gmail.com Wed Jun 11 03:25:17 2008 From: raymond.roestenburg at gmail.com (Raymond Roestenburg) Date: Wed, 11 Jun 2008 09:25:17 +0200 Subject: [Ironruby-core] Would like to start contributing Message-ID: <729ba3df0806110025m65f2a79bo2b0c9508cbec0d5b@mail.gmail.com> Hi, I have just signed the electronic documents to contribute to IronRuby. What are the next steps for me to actually start having fun and writing some code, submitting patches etc? Where can I find out what tasks are available, what needs to be done etc? Raymond -------------- next part -------------- An HTML attachment was scrubbed... URL: From sanxiyn at gmail.com Wed Jun 11 03:31:02 2008 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Wed, 11 Jun 2008 16:31:02 +0900 Subject: [Ironruby-core] Would like to start contributing In-Reply-To: <729ba3df0806110025m65f2a79bo2b0c9508cbec0d5b@mail.gmail.com> References: <729ba3df0806110025m65f2a79bo2b0c9508cbec0d5b@mail.gmail.com> Message-ID: <5b0248170806110031o450659e4u75a97bb1592d2fa3@mail.gmail.com> 2008/6/11 Raymond Roestenburg : > I have just signed the electronic documents to contribute to IronRuby. > What are the next steps for me to actually start having fun and writing some > code, submitting patches etc? > Where can I find out what tasks are available, what needs to be done etc? RubyForge project page has a link to the bug tracker. (And the patch tracker.) http://rubyforge.org/projects/ironruby In my opinion, the project is more in need of quality bug reports than actual codes, but you are free to choose the area you want to contribute in. -- Seo Sanghyeon From bacondarwin at googlemail.com Wed Jun 11 03:52:21 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Wed, 11 Jun 2008 08:52:21 +0100 Subject: [Ironruby-core] Would like to start contributing In-Reply-To: <5b0248170806110031o450659e4u75a97bb1592d2fa3@mail.gmail.com> References: <729ba3df0806110025m65f2a79bo2b0c9508cbec0d5b@mail.gmail.com> <5b0248170806110031o450659e4u75a97bb1592d2fa3@mail.gmail.com> Message-ID: <004801c8cb98$15ca0dd0$415e2970$@com> A good place would be to try running the RubySpec tests and dig through what you find. You can also take a look at the wiki (http://ironruby.rubyforge.org/wiki/wiki.pl). There are pages where you can sign up to take on a library module. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Sanghyeon Seo Sent: Wednesday,11 June 11, 2008 08:31 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Would like to start contributing 2008/6/11 Raymond Roestenburg : > I have just signed the electronic documents to contribute to IronRuby. > What are the next steps for me to actually start having fun and writing some > code, submitting patches etc? > Where can I find out what tasks are available, what needs to be done etc? RubyForge project page has a link to the bug tracker. (And the patch tracker.) http://rubyforge.org/projects/ironruby In my opinion, the project is more in need of quality bug reports than actual codes, but you are free to choose the area you want to contribute in. -- Seo Sanghyeon _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Wed Jun 11 11:52:08 2008 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 11 Jun 2008 08:52:08 -0700 Subject: [Ironruby-core] Would like to start contributing In-Reply-To: <004801c8cb98$15ca0dd0$415e2970$@com> References: <729ba3df0806110025m65f2a79bo2b0c9508cbec0d5b@mail.gmail.com> <5b0248170806110031o450659e4u75a97bb1592d2fa3@mail.gmail.com> <004801c8cb98$15ca0dd0$415e2970$@com> Message-ID: A good way to run those tests is to run rake mspec [class] [method] run. That run parameter tells mspec to run all tests, even if they have been excluded. Later this week I'll be adding a ruby task to rake, that works like: rake ruby mspec [class] [method] [runner]. That will run the same thing as rake mspec [class] [method] [runner], but it will run it under CRuby instead of IR. Feel free to create bugs as you find them, or to make a patch and fix them. All code goes through code review, so if you do something wrong, we'll help you. Thanks for your interest! JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Wednesday, June 11, 2008 12:52 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Would like to start contributing A good place would be to try running the RubySpec tests and dig through what you find. You can also take a look at the wiki (http://ironruby.rubyforge.org/wiki/wiki.pl). There are pages where you can sign up to take on a library module. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Sanghyeon Seo Sent: Wednesday,11 June 11, 2008 08:31 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Would like to start contributing 2008/6/11 Raymond Roestenburg : > I have just signed the electronic documents to contribute to IronRuby. > What are the next steps for me to actually start having fun and writing some > code, submitting patches etc? > Where can I find out what tasks are available, what needs to be done etc? RubyForge project page has a link to the bug tracker. (And the patch tracker.) http://rubyforge.org/projects/ironruby In my opinion, the project is more in need of quality bug reports than actual codes, but you are free to choose the area you want to contribute in. -- Seo Sanghyeon _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Wed Jun 11 18:01:20 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 11 Jun 2008 15:01:20 -0700 Subject: [Ironruby-core] Code Review: Partial1 Message-ID: tfpt review "/shelveset:Partial1;REDMOND\tomat" Adds /partial mode to IronRuby unit tests. If specified, the harness will run tests in an app-domain that has restricted permissions. Simple DLR changes: Snippet assembly needs to be marked by SecurityTransparent attribute in order to work in partial trust. Fixed TestAst - a handful of types were declared private yet referenced from generated code. Ruby changes: IronRuby assemblies were missing SecurityTransparent and AllowPartiallyTrustedCallers attributes. Few tests access files, so they need to be excluded in partial trust. Methods invoked via reflection need to be public. Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Partial1.diff Type: application/octet-stream Size: 26705 bytes Desc: Partial1.diff URL: From jflam at microsoft.com Wed Jun 11 19:20:50 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Wed, 11 Jun 2008 16:20:50 -0700 Subject: [Ironruby-core] Build issues and ETA for a the next source drop Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D0C8@NA-EXMSG-C115.redmond.corp.microsoft.com> Hi Folks, Sorry about the delay in getting out a new drop of the sources - particularly the version of the sources that will run Rails. Right now we have some problems with sync between the two repositories, and a bunch of configuration related issues around how we map enable external folks to access the same environment settings. We're troubleshooting them over here, and I hope to get a fix out tomorrow. Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Jun 11 19:59:57 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 12 Jun 2008 11:59:57 +1200 Subject: [Ironruby-core] can't require any of the libs Message-ID: Hi I tried requiring any of the libs that are included in the ironruby source. I tried putting the libs folder in different places but to no avail. So far i've put the libs in. irdir\libs irdir\build\libs irdir\build\debug irdir\build\debug\libs irdir\build\release irdir\build\release\libs where do I have to copy the libs folder to so that IronRuby picks it up? I can require them when i put them in the same folder where I call the ir command. + C:\tools\IronRuby\build\debug ? ir IronRuby 1.0.0.0 on .NET 2.0.50727.1434 Copyright (c) Microsoft Corporation. All rights reserved. Note that local variables do not work today in the console. As a workaround, use globals instead (eg $x = 42 instead of x = 42). >>> require 'yaml' => true Somehow this doesn't seem right to me.. but that's probably because I'm putting my stuff in the wrong place. also when I compile with rake compile config=release it will just compile a debug version -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Wed Jun 11 20:05:13 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Wed, 11 Jun 2008 17:05:13 -0700 Subject: [Ironruby-core] can't require any of the libs In-Reply-To: References: Message-ID: We don?t do anything auto-magic as far as the path is concerned. I specify the include directories on the command-line by running the now-notorious ?ir.cmd?. My version of the file looks like this: %MERLIN_ROOT%\bin\debug\ir.exe -I %MERLIN_ROOT%\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\1.8;%MERLIN_ROOT%\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site_ruby\1.8;%MERLIN_ROOT%\Languages\Ruby\Libs %* You?d obviously need to change the paths to suit your file system layout. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, June 11, 2008 5:00 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] can't require any of the libs Hi I tried requiring any of the libs that are included in the ironruby source. I tried putting the libs folder in different places but to no avail. So far i've put the libs in. irdir\libs irdir\build\libs irdir\build\debug irdir\build\debug\libs irdir\build\release irdir\build\release\libs where do I have to copy the libs folder to so that IronRuby picks it up? I can require them when i put them in the same folder where I call the ir command. + C:\tools\IronRuby\build\debug ? ir IronRuby 1.0.0.0 on .NET 2.0.50727.1434 Copyright (c) Microsoft Corporation. All rights reserved. Note that local variables do not work today in the console. As a workaround, use globals instead (eg $x = 42 instead of x = 42). >>> require 'yaml' => true Somehow this doesn't seem right to me.. but that's probably because I'm putting my stuff in the wrong place. also when I compile with rake compile config=release it will just compile a debug version -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Jun 11 20:12:17 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 12 Jun 2008 12:12:17 +1200 Subject: [Ironruby-core] can't require any of the libs In-Reply-To: References: Message-ID: ok thanks that does work. On Thu, Jun 12, 2008 at 12:05 PM, Curt Hagenlocher wrote: > We don't do anything auto-magic as far as the path is concerned. I > specify the include directories on the command-line by running the > now-notorious "ir.cmd". My version of the file looks like this: > > > > %MERLIN_ROOT%\bin\debug\ir.exe -I > %MERLIN_ROOT%\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\1.8;%MERLIN_ROOT%\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site_ruby\1.8;%MERLIN_ROOT%\Languages\Ruby\Libs > %* > > > > You'd obviously need to change the paths to suit your file system layout. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Wednesday, June 11, 2008 5:00 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] can't require any of the libs > > > > Hi > > I tried requiring any of the libs that are included in the ironruby source. > > I tried putting the libs folder in different places but to no avail. > So far i've put the libs in. > > irdir\libs > irdir\build\libs > irdir\build\debug > irdir\build\debug\libs > irdir\build\release > irdir\build\release\libs > > where do I have to copy the libs folder to so that IronRuby picks it up? > I can require them when i put them in the same folder where I call the ir > command. > > > + C:\tools\IronRuby\build\debug > ? ir > IronRuby 1.0.0.0 on .NET 2.0.50727.1434 > Copyright (c) Microsoft Corporation. All rights reserved. > > Note that local variables do not work today in the console. > As a workaround, use globals instead (eg $x = 42 instead of x = 42). > > >>> require 'yaml' > => true > > Somehow this doesn't seem right to me.. but that's probably because I'm > putting my stuff in the wrong place. > > also when I compile with rake compile config=release > it will just compile a debug version > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Jun 11 23:06:55 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 11 Jun 2008 20:06:55 -0700 Subject: [Ironruby-core] Code Review: RemoveLC Message-ID: tfpt review "/shelveset:RemoveLC;REDMOND\tomat" Removes LanguageContext property from Ruby IDO classes. It's not needed anymore. Adds a couple of tests for instance variables. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: RemoveLC.diff Type: application/octet-stream Size: 6796 bytes Desc: RemoveLC.diff URL: From lists at ruby-forum.com Wed Jun 11 23:39:52 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Thu, 12 Jun 2008 05:39:52 +0200 Subject: [Ironruby-core] Asp.Net MVC with IronRuby with ActiveRecord Message-ID: Hi, Congrats to John Lam and his team for doing a fantastic job with Asp.Net MVC and IronRuby. It would be great if someone works around to implement Asp.Net MVC with IronRuby and Active Record. I would like to go that way only. Somehow... Linq to SQL has never impressed me. I think.. many would would like to see the clear implementation with Active Record. Since MySQL is also popular, i hope the MySql adaptor supporting Asp.Net MVC will be out soon. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Jun 12 03:41:15 2008 From: lists at ruby-forum.com (Ubaldo Villaseca) Date: Thu, 12 Jun 2008 09:41:15 +0200 Subject: [Ironruby-core] Can't require a simple file Message-ID: <847da84e29f901e0e2018c50246b4f1b@ruby-forum.com> I just got and compiled the latest IronRuby revision. When I try to require a simple file, I got this error: E:\downloads\temp\bak\trunk\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:in `require': Type 'IronRuby, Version=1.0.0 .0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or cannot be loaded. (Microso ft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' The files I'm using are: # new.rb require "other" puts "Hello world" # other.rb puts "Bye" The strange thing is that the example code at http://ironruby.rubyforge.org/wiki/wiki.pl?CallingDotNetObjectsFromRuby work ok. Thanks in advance, Ubaldo -- Posted via http://www.ruby-forum.com/. From bacondarwin at googlemail.com Thu Jun 12 06:16:47 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Thu, 12 Jun 2008 11:16:47 +0100 Subject: [Ironruby-core] Can't require a simple file In-Reply-To: <847da84e29f901e0e2018c50246b4f1b@ruby-forum.com> References: <847da84e29f901e0e2018c50246b4f1b@ruby-forum.com> Message-ID: <002601c8cc75$6d85bbe0$489133a0$@com> Check out this thread: http://rubyforge.org/pipermail/ironruby-core/2008-June/002039.html Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ubaldo Villaseca Sent: Thursday,12 June 12, 2008 08:41 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Can't require a simple file I just got and compiled the latest IronRuby revision. When I try to require a simple file, I got this error: E:\downloads\temp\bak\trunk\src\IronRuby.Libraries\Builtins\KernelOps.cs:300 :in `require': Type 'IronRuby, Version=1.0.0 .0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is missing or cannot be loaded. (Microso ft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1' The files I'm using are: # new.rb require "other" puts "Hello world" # other.rb puts "Bye" The strange thing is that the example code at http://ironruby.rubyforge.org/wiki/wiki.pl?CallingDotNetObjectsFromRuby work ok. Thanks in advance, Ubaldo -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ironruby at monnet-usa.com Thu Jun 12 08:36:53 2008 From: ironruby at monnet-usa.com (Philippe Monnet) Date: Thu, 12 Jun 2008 06:36:53 -0600 Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code Message-ID: <48511865.70104@monnet-usa.com> An HTML attachment was scrubbed... URL: From sanxiyn at gmail.com Thu Jun 12 09:02:46 2008 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Thu, 12 Jun 2008 22:02:46 +0900 Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code In-Reply-To: <48511865.70104@monnet-usa.com> References: <48511865.70104@monnet-usa.com> Message-ID: <5b0248170806120602t26808c2dm7228697215506aa6@mail.gmail.com> 2008/6/12 Philippe Monnet : > - the require "mywebsvcproxy" returns true > - if I evaluate mywebsvcproxyns I get undefined This is the expected behavior. See: irb> require 'date' => true irb> date NameError: ... irb> Date => Date As in the above Ruby session, require in Ruby does not create a local variable with the filename in the namespace. It simply makes classes defined in the file available. IronRuby follows this behavior when requiring DLL, so, require 'mydllname' MyDLLObject = MyDLLNamespace::MyDLLClass.new ... -- Seo Sanghyeon From ivan at flanders.co.nz Thu Jun 12 09:04:08 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 13 Jun 2008 01:04:08 +1200 Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code In-Reply-To: <48511865.70104@monnet-usa.com> References: <48511865.70104@monnet-usa.com> Message-ID: For me that just works with a namespace what I do is I have my assemblies in a folder bin in my application but that could be what ever I call require 'bin/AssemblyName.dll' In that assembly I have a namespace MyNamespace.Model then I can do include MyNamespace::Model if that namespace contains a class called Message I can now use it as message = Message.new message.content = "The body of the test message" puts message.content I don't know if you know about this but Rails 2.0 has a component ActiveResource which should replace ActiveWebservice. That component allows you to use the resources (if you're using the restful routing that is) you've exposed for your rest application and on the client side you can use that same active resource stuff to create proxies and do queries against that rest service in a fairly nice way. hope this helps Ivan On Fri, Jun 13, 2008 at 12:36 AM, Philippe Monnet wrote: > Now that the Beta 2 of Silverlight provides support for WSI web services, > I can now get an all-C# Silverlight app to call Rails (Action Web Service) > web services. > So I encapsulated my generated web service proxy in its own DLL so I can > use it from Ruby, like so: > > ... > require "System.ServiceModel" > require "mywebsvcproxy" #my DLL > ... > include System::ServiceModel > *include mywebsvcproxyns* > ... > svcproxy = mywebsvcproxyns::MyRoRServiceReference::MyRorWsPortClient.new() > ... etc ... > > However I keep getting an error as soon as I hit the include for my > assembly namespace. > I have tried to simplify the issue by creating a very tiny assembly with a > C# class with 2 properties and a constructor but I get the same issue. > I even tried that from IR with the same results: > - the require "mywebsvcproxy" returns true > - if I evaluate mywebsvcproxyns I get undefined > The DLL is in the same location as other .rb files in my Silverlight app > directory. I have even tried to provide an absolute path in the require > statement but that did not make any difference. > After putting this email on hold for another check, I found out that as > soon as I remove the namespace inside my custom assembly everything works > like a charm. I ended up also removing all namespace references in the C# > generated proxy and was able to get my IronRuby Silverlight app to > successfully invoke my Rails web service. > > But coming back to the namespace issue, am I missing something basic in how > I should be integrating with custom assemblies? > Or is this a limitation for the time being? > > Philippe > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sanxiyn at gmail.com Thu Jun 12 09:04:25 2008 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Thu, 12 Jun 2008 22:04:25 +0900 Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code In-Reply-To: <5b0248170806120602t26808c2dm7228697215506aa6@mail.gmail.com> References: <48511865.70104@monnet-usa.com> <5b0248170806120602t26808c2dm7228697215506aa6@mail.gmail.com> Message-ID: <5b0248170806120604x3e4a7adaw291179cd2adc782e@mail.gmail.com> Oops, I misinterpreted. Disregard my mail. -- Seo Sanghyeon From Tomas.Matousek at microsoft.com Thu Jun 12 12:31:49 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 12 Jun 2008 09:31:49 -0700 Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code In-Reply-To: <48511865.70104@monnet-usa.com> References: <48511865.70104@monnet-usa.com> Message-ID: The casing is not right. include mywebsvcproxyns is the same as include(mywebsvcproxyns()) I.e. mywebsvcproxyns is a method call. You need to start namespaces with a capital letter. BTW, that's also .NET naming convention. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Philippe Monnet Sent: Thursday, June 12, 2008 5:37 AM To: IronRuby Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code Now that the Beta 2 of Silverlight provides support for WSI web services, I can now get an all-C# Silverlight app to call Rails (Action Web Service) web services. So I encapsulated my generated web service proxy in its own DLL so I can use it from Ruby, like so: ... require "System.ServiceModel" require "mywebsvcproxy" #my DLL ... include System::ServiceModel include mywebsvcproxyns ... svcproxy = mywebsvcproxyns::MyRoRServiceReference::MyRorWsPortClient.new() ... etc ... However I keep getting an error as soon as I hit the include for my assembly namespace. I have tried to simplify the issue by creating a very tiny assembly with a C# class with 2 properties and a constructor but I get the same issue. I even tried that from IR with the same results: - the require "mywebsvcproxy" returns true - if I evaluate mywebsvcproxyns I get undefined The DLL is in the same location as other .rb files in my Silverlight app directory. I have even tried to provide an absolute path in the require statement but that did not make any difference. After putting this email on hold for another check, I found out that as soon as I remove the namespace inside my custom assembly everything works like a charm. I ended up also removing all namespace references in the C# generated proxy and was able to get my IronRuby Silverlight app to successfully invoke my Rails web service. But coming back to the namespace issue, am I missing something basic in how I should be integrating with custom assemblies? Or is this a limitation for the time being? Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 12 12:34:43 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 12 Jun 2008 09:34:43 -0700 Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code In-Reply-To: References: <48511865.70104@monnet-usa.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D3EC@NA-EXMSG-C115.redmond.corp.microsoft.com> Yeah, but we're also going to have to think about some way to workaround this problem since we're going to run into cases out there with folks who have compiled assemblies that don't follow the .NET naming conventions (unbelievable but true! :)) Thanks, -John > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Tomas Matousek > Sent: Thursday, June 12, 2008 9:32 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Having difficulties using custom C# dlls > with namespaces within IronRuby code > > The casing is not right. > > > > include mywebsvcproxyns > > > > is the same as > > > > include(mywebsvcproxyns()) > > > > I.e. mywebsvcproxyns is a method call. > > > > You need to start namespaces with a capital letter. BTW, that's also > .NET naming convention. > > > > Tomas > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Philippe > Monnet > Sent: Thursday, June 12, 2008 5:37 AM > To: IronRuby > Subject: [Ironruby-core] Having difficulties using custom C# dlls with > namespaces within IronRuby code > > > > Now that the Beta 2 of Silverlight provides support for WSI web > services, I can now get an all-C# Silverlight app to call Rails > (Action Web Service) web services. > So I encapsulated my generated web service proxy in its own DLL so I > can use it from Ruby, like so: > > ... > require "System.ServiceModel" > require "mywebsvcproxy" #my DLL > ... > include System::ServiceModel > include mywebsvcproxyns > ... > svcproxy = > mywebsvcproxyns::MyRoRServiceReference::MyRorWsPortClient.new() > ... etc ... > > However I keep getting an error as soon as I hit the include for my > assembly namespace. > I have tried to simplify the issue by creating a very tiny assembly > with a C# class with 2 properties and a constructor but I get the same > issue. > I even tried that from IR with the same results: > - the require "mywebsvcproxy" returns true > - if I evaluate mywebsvcproxyns I get undefined The DLL is in the > same location as other .rb files in my Silverlight app directory. I > have even tried to provide an absolute path in the require statement > but that did not make any difference. > After putting this email on hold for another check, I found out that > as soon as I remove the namespace inside my custom assembly everything > works like a charm. I ended up also removing all namespace references > in the C# generated proxy and was able to get my IronRuby Silverlight > app to successfully invoke my Rails web service. > > But coming back to the namespace issue, am I missing something basic > in how I should be integrating with custom assemblies? > Or is this a limitation for the time being? > > Philippe From ironruby at monnet-usa.com Thu Jun 12 14:55:23 2008 From: ironruby at monnet-usa.com (Philippe Monnet) Date: Thu, 12 Jun 2008 12:55:23 -0600 Subject: [Ironruby-core] Having difficulties using custom C# dlls with namespaces within IronRuby code In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D3EC@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <48511865.70104@monnet-usa.com> <372109E149E8084D8E6C7D9CFD82E0632FD0B7D3EC@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <4851711B.7050705@monnet-usa.com> An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Jun 12 15:07:00 2008 From: lists at ruby-forum.com (Ubaldo Villaseca) Date: Thu, 12 Jun 2008 21:07:00 +0200 Subject: [Ironruby-core] Can't require a simple file In-Reply-To: <002601c8cc75$6d85bbe0$489133a0$@com> References: <847da84e29f901e0e2018c50246b4f1b@ruby-forum.com> <002601c8cc75$6d85bbe0$489133a0$@com> Message-ID: Cool, now it is working! BTW, I will be doing a lot tests on IronRuby, I hope I can contribute with you guys. -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Thu Jun 12 19:10:39 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 12 Jun 2008 16:10:39 -0700 Subject: [Ironruby-core] Code Review: openblock Message-ID: tfpt review "/shelveset:openblock;REDMOND\jdeville" Modifies File.open and IO.open to close the stream/file after executing the block if a block is given. JD -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: openblock.diff Type: application/octet-stream Size: 829 bytes Desc: openblock.diff URL: From jflam at microsoft.com Thu Jun 12 22:49:47 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 12 Jun 2008 19:49:47 -0700 Subject: [Ironruby-core] SVN r114 is out Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> This update contains the code we demo'd at RailsConf, and a few improvements that we've made since then. If you rake compile this build, it will generate an ir.cmd file for you in the build\debug directory. The rakefile now looks for your MRI install (by searching your PATH for ruby.exe). If you have your build\debug directory on your path, this file will run correctly. You will see a bunch of warnings when compiling. We know about these, and will fix them soon (it's the DLR folks deprecating a bunch of old APIs). I've also added a RubyTestKey.snk file which contains a public key. Our assemblies are delay-signed using this key, and you must enable skip verification to run the assemblies on your dev machine. You'll need to run the runfirst.cmd file in svn\trunk to turn on skip verification for assemblies signed using our public key. This should simplify some of the SIGN flag problems, although it introduces a new set of problems around signing if you want to distribute the signed assemblies. Unfortunately, we had to enable signing on external builds because there's some bug that only occurs when running an unsigned build. We're investigating this now. Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Jun 12 23:07:58 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 13 Jun 2008 15:07:58 +1200 Subject: [Ironruby-core] SVN r114 is out In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: What could be wrong here? def using(o) begin yield if block_given? ensure o.dispose end end This code worked until rev.113 but now it tells me : >>> $sr = StringReader.new('Hello, world') => # >>> $sr.dispose :0:in `Initialize': wrong number or type of arguments for `dispose' (ArgumentError) Thanks Ivan On Fri, Jun 13, 2008 at 2:49 PM, John Lam (IRONRUBY) wrote: > This update contains the code we demo'd at RailsConf, and a few > improvements that we've made since then. > > > > If you rake compile this build, it will generate an ir.cmd file for you in > the build\debug directory. The rakefile now looks for your MRI install (by > searching your PATH for ruby.exe). If you have your build\debug directory on > your path, this file will run correctly. > > > > You will see a bunch of warnings when compiling. We know about these, and > will fix them soon (it's the DLR folks deprecating a bunch of old APIs). > > > > I've also added a RubyTestKey.snk file which contains a public key. Our > assemblies are delay-signed using this key, and you must enable skip > verification to run the assemblies on your dev machine. You'll need to run > the runfirst.cmd file in svn\trunk to turn on skip verification for > assemblies signed using our public key. > > > > This should simplify some of the SIGN flag problems, although it introduces > a new set of problems around signing if you want to distribute the signed > assemblies. Unfortunately, we had to enable signing on external builds > because there's some bug that only occurs when running an unsigned build. > We're investigating this now. > > > > Thanks, > > -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: From dinov at exchange.microsoft.com Thu Jun 12 23:21:00 2008 From: dinov at exchange.microsoft.com (Dino Viehland) Date: Thu, 12 Jun 2008 20:21:00 -0700 Subject: [Ironruby-core] SVN r114 is out In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <7AD436E4270DD54A94238001769C2227012BC9F4F857@DF-GRTDANE-MSG.exchange.corp.microsoft.com> StringReader defines dispose(bool disposing) and inherits dispose() from TextReader. So it?s either that dispose(bool) is completely hiding the inherited dispose or the overload resolution is completely broken ? probably the former. It?s probably related to exposing protected members to everyone or just some bug in filtering protected members out. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, June 12, 2008 8:08 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] SVN r114 is out What could be wrong here? def using(o) begin yield if block_given? ensure o.dispose end end This code worked until rev.113 but now it tells me : >>> $sr = StringReader.new('Hello, world') => # >>> $sr.dispose :0:in `Initialize': wrong number or type of arguments for `dispose' (ArgumentError) Thanks Ivan On Fri, Jun 13, 2008 at 2:49 PM, John Lam (IRONRUBY) > wrote: This update contains the code we demo'd at RailsConf, and a few improvements that we've made since then. If you rake compile this build, it will generate an ir.cmd file for you in the build\debug directory. The rakefile now looks for your MRI install (by searching your PATH for ruby.exe). If you have your build\debug directory on your path, this file will run correctly. You will see a bunch of warnings when compiling. We know about these, and will fix them soon (it's the DLR folks deprecating a bunch of old APIs). I've also added a RubyTestKey.snk file which contains a public key. Our assemblies are delay-signed using this key, and you must enable skip verification to run the assemblies on your dev machine. You'll need to run the runfirst.cmd file in svn\trunk to turn on skip verification for assemblies signed using our public key. This should simplify some of the SIGN flag problems, although it introduces a new set of problems around signing if you want to distribute the signed assemblies. Unfortunately, we had to enable signing on external builds because there's some bug that only occurs when running an unsigned build. We're investigating this now. Thanks, -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: From curth at microsoft.com Thu Jun 12 23:29:54 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 12 Jun 2008 20:29:54 -0700 Subject: [Ironruby-core] SVN r114 is out In-Reply-To: <7AD436E4270DD54A94238001769C2227012BC9F4F857@DF-GRTDANE-MSG.exchange.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> <7AD436E4270DD54A94238001769C2227012BC9F4F857@DF-GRTDANE-MSG.exchange.corp.microsoft.com> Message-ID: What?s changed since the last release is that we?re now exposing protected members on CLR types as protected members on the Ruby class that?s generated to represent the type. And in doing so, we?re apparently hiding the (public) no-arg method on the base class. And what?s more, it looks like the protected one-arg overload is also being exposed as though it were public, and it shouldn?t be. Improved CLR interop is very high on our priority list. Nice function, btw, and an excellent example of the power of Ruby. If only the language didn?t make life so hard on implementers? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dino Viehland Sent: Thursday, June 12, 2008 8:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] SVN r114 is out StringReader defines dispose(bool disposing) and inherits dispose() from TextReader. So it?s either that dispose(bool) is completely hiding the inherited dispose or the overload resolution is completely broken ? probably the former. It?s probably related to exposing protected members to everyone or just some bug in filtering protected members out. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, June 12, 2008 8:08 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] SVN r114 is out What could be wrong here? def using(o) begin yield if block_given? ensure o.dispose end end This code worked until rev.113 but now it tells me : >>> $sr = StringReader.new('Hello, world') => # >>> $sr.dispose :0:in `Initialize': wrong number or type of arguments for `dispose' (ArgumentError) Thanks Ivan On Fri, Jun 13, 2008 at 2:49 PM, John Lam (IRONRUBY) > wrote: This update contains the code we demo'd at RailsConf, and a few improvements that we've made since then. If you rake compile this build, it will generate an ir.cmd file for you in the build\debug directory. The rakefile now looks for your MRI install (by searching your PATH for ruby.exe). If you have your build\debug directory on your path, this file will run correctly. You will see a bunch of warnings when compiling. We know about these, and will fix them soon (it's the DLR folks deprecating a bunch of old APIs). I've also added a RubyTestKey.snk file which contains a public key. Our assemblies are delay-signed using this key, and you must enable skip verification to run the assemblies on your dev machine. You'll need to run the runfirst.cmd file in svn\trunk to turn on skip verification for assemblies signed using our public key. This should simplify some of the SIGN flag problems, although it introduces a new set of problems around signing if you want to distribute the signed assemblies. Unfortunately, we had to enable signing on external builds because there's some bug that only occurs when running an unsigned build. We're investigating this now. Thanks, -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: From ivan at flanders.co.nz Thu Jun 12 23:45:43 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 13 Jun 2008 15:45:43 +1200 Subject: [Ironruby-core] SVN r114 is out In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> <7AD436E4270DD54A94238001769C2227012BC9F4F857@DF-GRTDANE-MSG.exchange.corp.microsoft.com> Message-ID: Cool passing it a bool makes it work :) I stole the function of Andrew Peters when I saw it I thought the same thing :) Do I submit a bug report for this? On Fri, Jun 13, 2008 at 3:29 PM, Curt Hagenlocher wrote: > What's changed since the last release is that we're now exposing > protected members on CLR types as protected members on the Ruby class that's > generated to represent the type. And in doing so, we're apparently hiding > the (public) no-arg method on the base class. And what's more, it looks > like the protected one-arg overload is also being exposed as though it were > public, and it shouldn't be. > > > > Improved CLR interop is very high on our priority list. > > > > Nice function, btw, and an excellent example of the power of Ruby. If only > the language didn't make life so hard on implementers? > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dino Viehland > *Sent:* Thursday, June 12, 2008 8:21 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] SVN r114 is out > > > > StringReader defines dispose(bool disposing) and inherits dispose() from > TextReader. So it's either that dispose(bool) is completely hiding the > inherited dispose or the overload resolution is completely broken ? probably > the former. It's probably related to exposing protected members to everyone > or just some bug in filtering protected members out. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, June 12, 2008 8:08 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] SVN r114 is out > > > > What could be wrong here? > > def using(o) > begin > yield if block_given? > ensure > o.dispose > end > end > > This code worked until rev.113 but now it tells me : > > >>> $sr = StringReader.new('Hello, world') > => # > >>> $sr.dispose > :0:in `Initialize': wrong number or type of arguments for `dispose' > (ArgumentError) > > Thanks > Ivan > > On Fri, Jun 13, 2008 at 2:49 PM, John Lam (IRONRUBY) > wrote: > > This update contains the code we demo'd at RailsConf, and a few > improvements that we've made since then. > > > > If you rake compile this build, it will generate an ir.cmd file for you in > the build\debug directory. The rakefile now looks for your MRI install (by > searching your PATH for ruby.exe). If you have your build\debug directory on > your path, this file will run correctly. > > > > You will see a bunch of warnings when compiling. We know about these, and > will fix them soon (it's the DLR folks deprecating a bunch of old APIs). > > > > I've also added a RubyTestKey.snk file which contains a public key. Our > assemblies are delay-signed using this key, and you must enable skip > verification to run the assemblies on your dev machine. You'll need to run > the runfirst.cmd file in svn\trunk to turn on skip verification for > assemblies signed using our public key. > > > > This should simplify some of the SIGN flag problems, although it introduces > a new set of problems around signing if you want to distribute the signed > assemblies. Unfortunately, we had to enable signing on external builds > because there's some bug that only occurs when running an unsigned build. > We're investigating this now. > > > > Thanks, > > -John > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at mindscape.co.nz Thu Jun 12 23:49:39 2008 From: andrew at mindscape.co.nz (Andrew Peters) Date: Fri, 13 Jun 2008 15:49:39 +1200 Subject: [Ironruby-core] SVN r114 is out In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> <7AD436E4270DD54A94238001769C2227012BC9F4F857@DF-GRTDANE-MSG.exchange.corp.microsoft.com> Message-ID: <771cfe010806122049r1737475dp3958a08eb5df0c3c@mail.gmail.com> Except there is a bug... o.dispose if o :-) On Fri, Jun 13, 2008 at 3:45 PM, Ivan Porto Carrero wrote: > Cool passing it a bool makes it work :) > > I stole the function of Andrew Peters when I saw it I thought the same > thing :) > > Do I submit a bug report for this? > > > On Fri, Jun 13, 2008 at 3:29 PM, Curt Hagenlocher > wrote: > >> What's changed since the last release is that we're now exposing >> protected members on CLR types as protected members on the Ruby class that's >> generated to represent the type. And in doing so, we're apparently hiding >> the (public) no-arg method on the base class. And what's more, it looks >> like the protected one-arg overload is also being exposed as though it were >> public, and it shouldn't be. >> >> >> >> Improved CLR interop is very high on our priority list. >> >> >> >> Nice function, btw, and an excellent example of the power of Ruby. If >> only the language didn't make life so hard on implementers? >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Dino Viehland >> *Sent:* Thursday, June 12, 2008 8:21 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] SVN r114 is out >> >> >> >> StringReader defines dispose(bool disposing) and inherits dispose() from >> TextReader. So it's either that dispose(bool) is completely hiding the >> inherited dispose or the overload resolution is completely broken ? probably >> the former. It's probably related to exposing protected members to everyone >> or just some bug in filtering protected members out. >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero >> *Sent:* Thursday, June 12, 2008 8:08 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] SVN r114 is out >> >> >> >> What could be wrong here? >> >> def using(o) >> begin >> yield if block_given? >> ensure >> o.dispose >> end >> end >> >> This code worked until rev.113 but now it tells me : >> >> >>> $sr = StringReader.new('Hello, world') >> => # >> >>> $sr.dispose >> :0:in `Initialize': wrong number or type of arguments for `dispose' >> (ArgumentError) >> >> Thanks >> Ivan >> >> On Fri, Jun 13, 2008 at 2:49 PM, John Lam (IRONRUBY) >> wrote: >> >> This update contains the code we demo'd at RailsConf, and a few >> improvements that we've made since then. >> >> >> >> If you rake compile this build, it will generate an ir.cmd file for you in >> the build\debug directory. The rakefile now looks for your MRI install (by >> searching your PATH for ruby.exe). If you have your build\debug directory on >> your path, this file will run correctly. >> >> >> >> You will see a bunch of warnings when compiling. We know about these, and >> will fix them soon (it's the DLR folks deprecating a bunch of old APIs). >> >> >> >> I've also added a RubyTestKey.snk file which contains a public key. Our >> assemblies are delay-signed using this key, and you must enable skip >> verification to run the assemblies on your dev machine. You'll need to run >> the runfirst.cmd file in svn\trunk to turn on skip verification for >> assemblies signed using our public key. >> >> >> >> This should simplify some of the SIGN flag problems, although it >> introduces a new set of problems around signing if you want to distribute >> the signed assemblies. Unfortunately, we had to enable signing on external >> builds because there's some bug that only occurs when running an unsigned >> build. We're investigating this now. >> >> >> >> Thanks, >> >> -John >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Thu Jun 12 23:53:22 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 12 Jun 2008 20:53:22 -0700 Subject: [Ironruby-core] SVN r114 is out In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD0B7D86D@NA-EXMSG-C115.redmond.corp.microsoft.com> <7AD436E4270DD54A94238001769C2227012BC9F4F857@DF-GRTDANE-MSG.exchange.corp.microsoft.com> Message-ID: But of course! Unfortunately, the ?with-bool? version won?t work for classes that don?t follow that convention. And it looks like ?arity? isn?t working for CLR methods, so there?s no way to tell the difference. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, June 12, 2008 8:46 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] SVN r114 is out Cool passing it a bool makes it work :) I stole the function of Andrew Peters when I saw it I thought the same thing :) Do I submit a bug report for this? On Fri, Jun 13, 2008 at 3:29 PM, Curt Hagenlocher > wrote: What's changed since the last release is that we're now exposing protected members on CLR types as protected members on the Ruby class that's generated to represent the type. And in doing so, we're apparently hiding the (public) no-arg method on the base class. And what's more, it looks like the protected one-arg overload is also being exposed as though it were public, and it shouldn't be. Improved CLR interop is very high on our priority list. Nice function, btw, and an excellent example of the power of Ruby. If only the language didn't make life so hard on implementers? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dino Viehland Sent: Thursday, June 12, 2008 8:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] SVN r114 is out StringReader defines dispose(bool disposing) and inherits dispose() from TextReader. So it's either that dispose(bool) is completely hiding the inherited dispose or the overload resolution is completely broken ? probably the former. It's probably related to exposing protected members to everyone or just some bug in filtering protected members out. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, June 12, 2008 8:08 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] SVN r114 is out What could be wrong here? def using(o) begin yield if block_given? ensure o.dispose end end This code worked until rev.113 but now it tells me : >>> $sr = StringReader.new('Hello, world') => # >>> $sr.dispose :0:in `Initialize': wrong number or type of arguments for `dispose' (ArgumentError) Thanks Ivan On Fri, Jun 13, 2008 at 2:49 PM, John Lam (IRONRUBY) > wrote: This update contains the code we demo'd at RailsConf, and a few improvements that we've made since then. If you rake compile this build, it will generate an ir.cmd file for you in the build\debug directory. The rakefile now looks for your MRI install (by searching your PATH for ruby.exe). If you have your build\debug directory on your path, this file will run correctly. You will see a bunch of warnings when compiling. We know about these, and will fix them soon (it's the DLR folks deprecating a bunch of old APIs). I've also added a RubyTestKey.snk file which contains a public key. Our assemblies are delay-signed using this key, and you must enable skip verification to run the assemblies on your dev machine. You'll need to run the runfirst.cmd file in svn\trunk to turn on skip verification for assemblies signed using our public key. This should simplify some of the SIGN flag problems, although it introduces a new set of problems around signing if you want to distribute the signed assemblies. Unfortunately, we had to enable signing on external builds because there's some bug that only occurs when running an unsigned build. We're investigating this now. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Jun 13 12:48:26 2008 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 13 Jun 2008 09:48:26 -0700 Subject: [Ironruby-core] FW: Shootout dates Message-ID: FYI, IronRuby is in this shootout, and this will be good for us to see where we stand (sit?). JD -----Original Message----- From: ruby-benchmark-suite at googlegroups.com [mailto:ruby-benchmark-suite at googlegroups.com] On Behalf Of Antonio Cangiano Sent: Friday, June 13, 2008 9:16 AM To: ruby-benchmark-suite at googlegroups.com Subject: Shootout dates Hi guys, this is just a heads up to let you know that I plan to start testing for the next shootout on the 24th, and have the results published in my blog no later than the 30th. Cheers, Antonio -- http://antoniocangiano.com - Zen and the Art of Programming http://math-blog.com - Mathematics is wonderful! http://stacktrace.it - Aperiodico di resistenza informatica Currently writing "Ruby on Rails for Microsoft Developers" for Wrox. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby Benchmark Suite" group. To post to this group, send email to ruby-benchmark-suite at googlegroups.com To unsubscribe from this group, send email to ruby-benchmark-suite-unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/ruby-benchmark-suite?hl=en -~----------~----~----~----~------~----~------~--~--- From Tomas.Matousek at microsoft.com Fri Jun 13 20:58:45 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 13 Jun 2008 17:58:45 -0700 Subject: [Ironruby-core] Code Review: YamlTestsAndStream In-Reply-To: References: Message-ID: 1) The lookup for Stream constant is slightly different in Ruby: require 'YAML' class Module def const_missing name puts "missing #{name}" $S end end module YAML $S = Stream remove_const "Stream" end p YAML::load_stream(File.new("C:\\temp\\yaml.txt")) --- To achieve the same behavior use RubyUtils.GetConstant(context, self, "Stream", false) instead of TryLookupConstant. This method also throws the right exception on failure. 2) In YAML.Stream.Emit: return RubyYaml.DumpAll(context, RubyUtils.GetExecutionContext(context).GetModule(typeof(YamlStreamOps)), self.Documents, io); Since DumpAll method doesn't use "self" parameter, it's unnecessary to create one. It would be better to define a new method that doesn't take the argument and call it from Emit. 3) YamlStream fields seem to be readonly, yet they are not marked as such. Also, it seems that you expect _documents to be non-nullable (mark it by /*!*/ if so). 4) YAML::Stream could be used as a base class in Ruby: class MyStream < YAML::Stream end To enable that, YamlStream class needs to have a default constructor (could be protected). Tomas -----Original Message----- From: Oleg Tkachenko Sent: Friday, June 13, 2008 5:09 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlTestsAndStream tfpt review "/shelveset:YamlTestsAndStream;REDMOND\olegtkac" Comment : Adds some basic unit tests (taken from yaml spec and ruby 1.8.6). Fixes a bug with registration of predefined ruby contructors, which allows to load more that one yaml document. Checks if YAML::Stream class is avaliable and fails gracefully if not. Introduces YAML::Stream class implementation. -- Oleg -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Fri Jun 13 21:14:43 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Fri, 13 Jun 2008 21:14:43 -0400 Subject: [Ironruby-core] Code Review: YamlTestsAndStream In-Reply-To: References: Message-ID: I was waiting to see if this was fixed in the latest drop... but the build output for the YAML library seems a little... wonky compared to the rest of the projects. Seems like it should be the same as IronRuby.Libraries. Bug? On Fri, Jun 13, 2008 at 8:58 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > 1) > > The lookup for Stream constant is slightly different in Ruby: > > > > require 'YAML' > > > > class Module > > def const_missing name > > puts "missing #{name}" > > $S > > end > > end > > > > module YAML > > $S = Stream > > remove_const "Stream" > > end > > > > p YAML::load_stream(File.new("C:\\temp\\yaml.txt")) > > > > --- > > > > To achieve the same behavior use RubyUtils.GetConstant(context, self, > "Stream", false) instead of TryLookupConstant. This method also throws the > right exception on failure. > > > > 2) > > In YAML.Stream.Emit: > > > > return RubyYaml.DumpAll(context, > RubyUtils.GetExecutionContext(context).GetModule(typeof(YamlStreamOps)), > self.Documents, io); > > > > Since DumpAll method doesn't use "self" parameter, it's unnecessary to > create one. It would be better to define a new method that doesn't take the > argument and call it from Emit. > > > > 3) YamlStream fields seem to be readonly, yet they are not marked as such. > Also, it seems that you expect _documents to be non-nullable (mark it by > /*!*/ if so). > > > > 4) YAML::Stream could be used as a base class in Ruby: > > > > class MyStream < YAML::Stream > > end > > > > To enable that, YamlStream class needs to have a default constructor (could > be protected). > > > > Tomas > > > > -----Original Message----- > From: Oleg Tkachenko > Sent: Friday, June 13, 2008 5:09 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: Code Review: YamlTestsAndStream > > > > tfpt review "/shelveset:YamlTestsAndStream;REDMOND\olegtkac" > > Comment : > > Adds some basic unit tests (taken from yaml spec and ruby 1.8.6). > > Fixes a bug with registration of predefined ruby contructors, which > allows to load more that one yaml document. > > Checks if YAML::Stream class is avaliable and fails gracefully if not. > > Introduces YAML::Stream class implementation. > > > > -- > > Oleg > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Fri Jun 13 22:26:30 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 14 Jun 2008 14:26:30 +1200 Subject: [Ironruby-core] passing a script context around Message-ID: Hi For the dynamic script control I wrote I want to be able to share the runtime environment that IronRuby has got. Is that possible with the ir command ? My WPF application has got a bunch of assembly references and code files already loaded. It also has some constants defined. Now when I use the dynamic script control I have to reinitialize that whole environment and that is quite costly. It would be nice if I would know how to share variables around and such. It looks like the class that gets me the info I want is RubyExecutionContext :) Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Fri Jun 13 23:11:28 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Fri, 13 Jun 2008 23:11:28 -0400 Subject: [Ironruby-core] Strange issue with Process.times Message-ID: Check this out.... >>> Process.times => # >>> require 'test' => true >>> Process.times [hangs] As soon as you require a file (test.rb above was blank) you get stuck in an infinite loop on UpdateAndExecute. Specifically the last loop (// Miss on Level 0, 1 and 2 caches. Create new rule), from what I can tell mm.Match is false you keep looping until its true. This keeps Benchmark from running, so it'll be tough for that shootout to happen at the end of the month until fixed. Any ideas? -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Jun 13 23:22:17 2008 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 13 Jun 2008 20:22:17 -0700 Subject: [Ironruby-core] Strange issue with Process.times In-Reply-To: References: Message-ID: That appears to be related to the but that was hitting us in compiling. Is the particular loop the for( ; ; ) loop? For the shootout, I'm involved in the discussions and I will be running their script against our stuff to give feedback, so I'll keep an eye on that. JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [michael.letterle at gmail.com] Sent: Friday, June 13, 2008 8:11 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Strange issue with Process.times Check this out.... >>> Process.times => # >>> require 'test' => true >>> Process.times [hangs] As soon as you require a file (test.rb above was blank) you get stuck in an infinite loop on UpdateAndExecute. Specifically the last loop (// Miss on Level 0, 1 and 2 caches. Create new rule), from what I can tell mm.Match is false you keep looping until its true. This keeps Benchmark from running, so it'll be tough for that shootout to happen at the end of the month until fixed. Any ideas? -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com From michael.letterle at gmail.com Fri Jun 13 23:37:37 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Fri, 13 Jun 2008 23:37:37 -0400 Subject: [Ironruby-core] Strange issue with Process.times In-Reply-To: References: Message-ID: That be the loop. You should be able to simulate the Benchmark measure method just fine manually through ir, just cant require 'benchmark' :/ On Fri, Jun 13, 2008 at 11:22 PM, Jim Deville wrote: > That appears to be related to the but that was hitting us in compiling. Is > the particular loop the for( ; ; ) loop? > > For the shootout, I'm involved in the discussions and I will be running > their script against our stuff to give feedback, so I'll keep an eye on > that. > > JD > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [ > michael.letterle at gmail.com] > Sent: Friday, June 13, 2008 8:11 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Strange issue with Process.times > > Check this out.... > > > >>> Process.times > => # > >>> require 'test' > => true > >>> Process.times > > [hangs] > > > As soon as you require a file (test.rb above was blank) you get stuck in > an infinite loop on UpdateAndExecute. Specifically the last loop (// Miss > on Level 0, 1 and 2 caches. Create new rule), from what I can tell mm.Match > is false you keep looping until its true. This keeps Benchmark from > running, so it'll be tough for that shootout to happen at the end of the > month until fixed. > > Any ideas? > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Jun 13 23:40:48 2008 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 13 Jun 2008 20:40:48 -0700 Subject: [Ironruby-core] Strange issue with Process.times In-Reply-To: References: , Message-ID: Pretty sure it will fail, but can you run "rake mspec nil - run" and see if you hang in the same point? JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [michael.letterle at gmail.com] Sent: Friday, June 13, 2008 8:37 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Strange issue with Process.times That be the loop. You should be able to simulate the Benchmark measure method just fine manually through ir, just cant require 'benchmark' :/ On Fri, Jun 13, 2008 at 11:22 PM, Jim Deville > wrote: That appears to be related to the but that was hitting us in compiling. Is the particular loop the for( ; ; ) loop? For the shootout, I'm involved in the discussions and I will be running their script against our stuff to give feedback, so I'll keep an eye on that. JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [michael.letterle at gmail.com] Sent: Friday, June 13, 2008 8:11 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Strange issue with Process.times Check this out.... >>> Process.times => # >>> require 'test' => true >>> Process.times [hangs] As soon as you require a file (test.rb above was blank) you get stuck in an infinite loop on UpdateAndExecute. Specifically the last loop (// Miss on Level 0, 1 and 2 caches. Create new rule), from what I can tell mm.Match is false you keep looping until its true. This keeps Benchmark from running, so it'll be tough for that shootout to happen at the end of the month until fixed. Any ideas? -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com From michael.letterle at gmail.com Fri Jun 13 23:54:22 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Fri, 13 Jun 2008 23:54:22 -0400 Subject: [Ironruby-core] Strange issue with Process.times In-Reply-To: References: Message-ID: that's.. uh easier said then done. My main ruby environments are cygwin and linux, neither of which seem very friendly at the moment. :) On Fri, Jun 13, 2008 at 11:40 PM, Jim Deville wrote: > Pretty sure it will fail, but can you run "rake mspec nil - run" and see if > you hang in the same point? > > JD > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [ > michael.letterle at gmail.com] > Sent: Friday, June 13, 2008 8:37 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Strange issue with Process.times > > That be the loop. You should be able to simulate the Benchmark measure > method just fine manually through ir, just cant require 'benchmark' :/ > > On Fri, Jun 13, 2008 at 11:22 PM, Jim Deville > wrote: > That appears to be related to the but that was hitting us in compiling. Is > the particular loop the for( ; ; ) loop? > > For the shootout, I'm involved in the discussions and I will be running > their script against our stuff to give feedback, so I'll keep an eye on > that. > > JD > ________________________________________ > From: ironruby-core-bounces at rubyforge.org ironruby-core-bounces at rubyforge.org> [ironruby-core-bounces at rubyforge.org > ] On Behalf Of Michael > Letterle [michael.letterle at gmail.com] > Sent: Friday, June 13, 2008 8:11 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Strange issue with Process.times > > Check this out.... > > > >>> Process.times > => # > >>> require 'test' > => true > >>> Process.times > > [hangs] > > > As soon as you require a file (test.rb above was blank) you get stuck in > an infinite loop on UpdateAndExecute. Specifically the last loop (// Miss > on Level 0, 1 and 2 caches. Create new rule), from what I can tell mm.Match > is false you keep looping until its true. This keeps Benchmark from > running, so it'll be tough for that shootout to happen at the end of the > month until fixed. > > Any ideas? > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Jun 13 23:56:39 2008 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 13 Jun 2008 20:56:39 -0700 Subject: [Ironruby-core] Strange issue with Process.times In-Reply-To: References: , Message-ID: k, I'll give it a try later. Do you have any changes? or is this a clean build of 114? JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [michael.letterle at gmail.com] Sent: Friday, June 13, 2008 8:54 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Strange issue with Process.times that's.. uh easier said then done. My main ruby environments are cygwin and linux, neither of which seem very friendly at the moment. :) On Fri, Jun 13, 2008 at 11:40 PM, Jim Deville > wrote: Pretty sure it will fail, but can you run "rake mspec nil - run" and see if you hang in the same point? JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [michael.letterle at gmail.com] Sent: Friday, June 13, 2008 8:37 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Strange issue with Process.times That be the loop. You should be able to simulate the Benchmark measure method just fine manually through ir, just cant require 'benchmark' :/ On Fri, Jun 13, 2008 at 11:22 PM, Jim Deville >> wrote: That appears to be related to the but that was hitting us in compiling. Is the particular loop the for( ; ; ) loop? For the shootout, I'm involved in the discussions and I will be running their script against our stuff to give feedback, so I'll keep an eye on that. JD ________________________________________ From: ironruby-core-bounces at rubyforge.org> [ironruby-core-bounces at rubyforge.org>] On Behalf Of Michael Letterle [michael.letterle at gmail.com>] Sent: Friday, June 13, 2008 8:11 PM To: ironruby-core at rubyforge.org> Subject: [Ironruby-core] Strange issue with Process.times Check this out.... >>> Process.times => # >>> require 'test' => true >>> Process.times [hangs] As soon as you require a file (test.rb above was blank) you get stuck in an infinite loop on UpdateAndExecute. Specifically the last loop (// Miss on Level 0, 1 and 2 caches. Create new rule), from what I can tell mm.Match is false you keep looping until its true. This keeps Benchmark from running, so it'll be tough for that shootout to happen at the end of the month until fixed. Any ideas? -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com From michael.letterle at gmail.com Fri Jun 13 23:59:27 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Fri, 13 Jun 2008 23:59:27 -0400 Subject: [Ironruby-core] Strange issue with Process.times In-Reply-To: References: Message-ID: Pure has the driven snow, I even "reverted" to 114 thinking that merging with 113 may have been a source of strangeness. On Fri, Jun 13, 2008 at 11:56 PM, Jim Deville wrote: > k, I'll give it a try later. Do you have any changes? or is this a clean > build of 114? > > JD > > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle [ > michael.letterle at gmail.com] > Sent: Friday, June 13, 2008 8:54 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Strange issue with Process.times > > that's.. uh easier said then done. My main ruby environments are cygwin > and linux, neither of which seem very friendly at the moment. :) > > On Fri, Jun 13, 2008 at 11:40 PM, Jim Deville > wrote: > Pretty sure it will fail, but can you run "rake mspec nil - run" and see if > you hang in the same point? > > JD > ________________________________________ > From: ironruby-core-bounces at rubyforge.org ironruby-core-bounces at rubyforge.org> [ironruby-core-bounces at rubyforge.org > ] On Behalf Of Michael > Letterle [michael.letterle at gmail.com] > Sent: Friday, June 13, 2008 8:37 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Strange issue with Process.times > > That be the loop. You should be able to simulate the Benchmark measure > method just fine manually through ir, just cant require 'benchmark' :/ > > On Fri, Jun 13, 2008 at 11:22 PM, Jim Deville jdeville at microsoft.com>>> wrote: > That appears to be related to the but that was hitting us in compiling. Is > the particular loop the for( ; ; ) loop? > > For the shootout, I'm involved in the discussions and I will be running > their script against our stuff to give feedback, so I'll keep an eye on > that. > > JD > ________________________________________ > From: ironruby-core-bounces at rubyforge.org ironruby-core-bounces at rubyforge.org> ironruby-core-bounces at rubyforge.org ironruby-core-bounces at rubyforge.org>> [ironruby-core-bounces at rubyforge.org > ironruby-core-bounces at rubyforge.org ironruby-core-bounces at rubyforge.org>>] On Behalf Of Michael Letterle [ > michael.letterle at gmail.com michael.letterle at gmail.com>] > Sent: Friday, June 13, 2008 8:11 PM > To: ironruby-core at rubyforge.org >> > Subject: [Ironruby-core] Strange issue with Process.times > > Check this out.... > > > >>> Process.times > => # > >>> require 'test' > => true > >>> Process.times > > [hangs] > > > As soon as you require a file (test.rb above was blank) you get stuck in > an infinite loop on UpdateAndExecute. Specifically the last loop (// Miss > on Level 0, 1 and 2 caches. Create new rule), from what I can tell mm.Match > is false you keep looping until its true. This keeps Benchmark from > running, so it'll be tough for that shootout to happen at the end of the > month until fixed. > > Any ideas? > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org Ironruby-core at rubyforge.org> > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Jun 14 01:57:03 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 14 Jun 2008 17:57:03 +1200 Subject: [Ironruby-core] How to get to the CLR type Message-ID: How do I get to the CLR type definition of a class? I assumed that the code below would just work or at least not fail where it did :) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler, LoginControl) That has IronRuby complaining about the wrong type of arguments and so on. And I figure it's because the register_routed_event method expects a CLR type instead of a DLR one. The only way I know to get to the same information as typeof(RoutedEventHandler) is to create an instance and then calling get_type on it. Is there anoter way for that? Cheers Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Jun 14 02:12:52 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 14 Jun 2008 18:12:52 +1200 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: I hit send to quickly there is more If I do pass it the correct types (which I got from creating instances) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, LoginControl.new.get_type) then I get a new error RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' already used. Which leads me to believe that either I'm doing it wrong or that that's not supposed to happen/supported yet and I have to file a bug report :) Cheers Ivan On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero wrote: > How do I get to the CLR type definition of a class? > > I assumed that the code below would just work or at least not fail where it > did :) > @@login_event = EventManager.register_routed_event("login", > RoutingStrategy.bubble, RoutedEventHandler, LoginControl) > > That has IronRuby complaining about the wrong type of arguments and so on. > And I figure it's because the register_routed_event method expects a CLR > type instead of a DLR one. The only way I know to get to the same > information as typeof(RoutedEventHandler) is to create an instance and then > calling get_type on it. Is there anoter way for that? > > Cheers > Ivan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Jun 14 02:39:18 2008 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 13 Jun 2008 23:39:18 -0700 Subject: [Ironruby-core] New blog Message-ID: I've started up a blog at http://blog.jredville.com. And John, once I set up jredville.com to redirect or mirror that, I own the top result for jredville ;) JD From Tomas.Matousek at microsoft.com Sat Jun 14 03:20:12 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 14 Jun 2008 00:20:12 -0700 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: >>> require 'mscorlib' => true >>> System::String.to_clr_type => # Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, June 13, 2008 11:13 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type I hit send to quickly there is more If I do pass it the correct types (which I got from creating instances) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, LoginControl.new.get_type) then I get a new error RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' already used. Which leads me to believe that either I'm doing it wrong or that that's not supposed to happen/supported yet and I have to file a bug report :) Cheers Ivan On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero > wrote: How do I get to the CLR type definition of a class? I assumed that the code below would just work or at least not fail where it did :) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler, LoginControl) That has IronRuby complaining about the wrong type of arguments and so on. And I figure it's because the register_routed_event method expects a CLR type instead of a DLR one. The only way I know to get to the same information as typeof(RoutedEventHandler) is to create an instance and then calling get_type on it. Is there anoter way for that? Cheers Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Jun 14 03:42:47 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 14 Jun 2008 19:42:47 +1200 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: I'm sure i tried that, but then again I tried many things. and I'm sure I've used that before too when I was playing with LightSpeed... Thanks On Sat, Jun 14, 2008 at 7:20 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > >>> require 'mscorlib' > > => true > > >>> System::String.to_clr_type > > => # > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Friday, June 13, 2008 11:13 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] How to get to the CLR type > > > > I hit send to quickly there is more > > If I do pass it the correct types (which I got from creating instances) > @@login_event = EventManager.register_routed_event("login", > RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, > LoginControl.new.get_type) > > then I get a new error > RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' > already used. > > Which leads me to believe that either I'm doing it wrong or that that's not > supposed to happen/supported yet and I have to file a bug report :) > > Cheers > Ivan > > On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero > wrote: > > How do I get to the CLR type definition of a class? > > I assumed that the code below would just work or at least not fail where it > did :) > @@login_event = EventManager.register_routed_event("login", > RoutingStrategy.bubble, RoutedEventHandler, LoginControl) > > That has IronRuby complaining about the wrong type of arguments and so on. > And I figure it's because the register_routed_event method expects a CLR > type instead of a DLR one. The only way I know to get to the same > information as typeof(RoutedEventHandler) is to create an instance and then > calling get_type on it. Is there anoter way for that? > > Cheers > Ivan > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Jun 14 04:11:46 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 14 Jun 2008 20:11:46 +1200 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: Oh I see.. When I call .to_clr_type on a type that has only been defined in Ruby it returns nil >>> class Testing; end; => nil >>> Testing.to_clr_type => nil >>> Testing.new.get_type => # >>> On Sat, Jun 14, 2008 at 7:42 PM, Ivan Porto Carrero wrote: > I'm sure i tried that, but then again I tried many things. and I'm sure > I've used that before too when I was playing with LightSpeed... > Thanks > > On Sat, Jun 14, 2008 at 7:20 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >> >>> require 'mscorlib' >> >> => true >> >> >>> System::String.to_clr_type >> >> => # >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero >> *Sent:* Friday, June 13, 2008 11:13 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] How to get to the CLR type >> >> >> >> I hit send to quickly there is more >> >> If I do pass it the correct types (which I got from creating instances) >> @@login_event = EventManager.register_routed_event("login", >> RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, >> LoginControl.new.get_type) >> >> then I get a new error >> RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' >> already used. >> >> Which leads me to believe that either I'm doing it wrong or that that's >> not supposed to happen/supported yet and I have to file a bug report :) >> >> Cheers >> Ivan >> >> On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero >> wrote: >> >> How do I get to the CLR type definition of a class? >> >> I assumed that the code below would just work or at least not fail where >> it did :) >> @@login_event = EventManager.register_routed_event("login", >> RoutingStrategy.bubble, RoutedEventHandler, LoginControl) >> >> That has IronRuby complaining about the wrong type of arguments and so on. >> And I figure it's because the register_routed_event method expects a CLR >> type instead of a DLR one. The only way I know to get to the same >> information as typeof(RoutedEventHandler) is to create an instance and then >> calling get_type on it. Is there anoter way for that? >> >> Cheers >> Ivan >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben2004uk at googlemail.com Sat Jun 14 05:18:28 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Sat, 14 Jun 2008 10:18:28 +0100 Subject: [Ironruby-core] New blog In-Reply-To: References: Message-ID: Great to see a tester blogging! Really looking forward to hearing about what your doing and how your testing IronRuby :) Ben Blog.BenHall.me.uk On Sat, Jun 14, 2008 at 7:39 AM, Jim Deville wrote: > I've started up a blog at http://blog.jredville.com. And John, once I set up jredville.com to redirect or mirror that, I own the top result for jredville ;) > > JD > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From sanxiyn at gmail.com Sat Jun 14 08:01:09 2008 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Sat, 14 Jun 2008 21:01:09 +0900 Subject: [Ironruby-core] Mono build trouble Message-ID: <5b0248170806140501j3b126c50gb2839ed61b8d8ed2@mail.gmail.com> First, thank you for getting the new revision out. SVN r114 introduced a change to context.rb. Instead of using /recurse:*.cs, it now gets the list of C# files to compile from *.csproj files using REXML. Unfortunately, all paths in *.csproj files are Windows paths, and the build fails. Reverting the change locally seems to work fine. -- Seo Sanghyeon From michael.letterle at gmail.com Sat Jun 14 10:07:02 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Sat, 14 Jun 2008 10:07:02 -0400 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: >>> System::Type.get_type_from_handle System::Type.get_type_handle(Test) => # On Sat, Jun 14, 2008 at 4:11 AM, Ivan Porto Carrero wrote: > Oh I see.. When I call .to_clr_type on a type that has only been defined > in Ruby it returns nil > > >>> class Testing; end; > => nil > >>> Testing.to_clr_type > => nil > >>> Testing.new.get_type > => # > > >>> > > > > On Sat, Jun 14, 2008 at 7:42 PM, Ivan Porto Carrero > wrote: > >> I'm sure i tried that, but then again I tried many things. and I'm sure >> I've used that before too when I was playing with LightSpeed... >> Thanks >> >> On Sat, Jun 14, 2008 at 7:20 PM, Tomas Matousek < >> Tomas.Matousek at microsoft.com> wrote: >> >>> >>> require 'mscorlib' >>> >>> => true >>> >>> >>> System::String.to_clr_type >>> >>> => # >>> >>> >>> >>> Tomas >>> >>> >>> >>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero >>> *Sent:* Friday, June 13, 2008 11:13 PM >>> *To:* ironruby-core at rubyforge.org >>> *Subject:* Re: [Ironruby-core] How to get to the CLR type >>> >>> >>> >>> I hit send to quickly there is more >>> >>> If I do pass it the correct types (which I got from creating instances) >>> @@login_event = EventManager.register_routed_event("login", >>> RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, >>> LoginControl.new.get_type) >>> >>> then I get a new error >>> RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' >>> already used. >>> >>> Which leads me to believe that either I'm doing it wrong or that that's >>> not supposed to happen/supported yet and I have to file a bug report :) >>> >>> Cheers >>> Ivan >>> >>> On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero >>> wrote: >>> >>> How do I get to the CLR type definition of a class? >>> >>> I assumed that the code below would just work or at least not fail where >>> it did :) >>> @@login_event = EventManager.register_routed_event("login", >>> RoutingStrategy.bubble, RoutedEventHandler, LoginControl) >>> >>> That has IronRuby complaining about the wrong type of arguments and so >>> on. >>> And I figure it's because the register_routed_event method expects a CLR >>> type instead of a DLR one. The only way I know to get to the same >>> information as typeof(RoutedEventHandler) is to create an instance and then >>> calling get_type on it. Is there anoter way for that? >>> >>> Cheers >>> Ivan >>> >>> >>> >>> _______________________________________________ >>> 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 > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Jun 14 13:36:14 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 14 Jun 2008 10:36:14 -0700 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: Ruby classes have no CLR type. The type you're getting by this is shared across multiple Ruby classes. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Saturday, June 14, 2008 7:07 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type >>> System::Type.get_type_from_handle System::Type.get_type_handle(Test) => # On Sat, Jun 14, 2008 at 4:11 AM, Ivan Porto Carrero > wrote: Oh I see.. When I call .to_clr_type on a type that has only been defined in Ruby it returns nil >>> class Testing; end; => nil >>> Testing.to_clr_type => nil >>> Testing.new.get_type => # >>> On Sat, Jun 14, 2008 at 7:42 PM, Ivan Porto Carrero > wrote: I'm sure i tried that, but then again I tried many things. and I'm sure I've used that before too when I was playing with LightSpeed... Thanks On Sat, Jun 14, 2008 at 7:20 PM, Tomas Matousek > wrote: >>> require 'mscorlib' => true >>> System::String.to_clr_type => # Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, June 13, 2008 11:13 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type I hit send to quickly there is more If I do pass it the correct types (which I got from creating instances) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, LoginControl.new.get_type) then I get a new error RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' already used. Which leads me to believe that either I'm doing it wrong or that that's not supposed to happen/supported yet and I have to file a bug report :) Cheers Ivan On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero > wrote: How do I get to the CLR type definition of a class? I assumed that the code below would just work or at least not fail where it did :) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler, LoginControl) That has IronRuby complaining about the wrong type of arguments and so on. And I figure it's because the register_routed_event method expects a CLR type instead of a DLR one. The only way I know to get to the same information as typeof(RoutedEventHandler) is to create an instance and then calling get_type on it. Is there anoter way for that? Cheers Ivan _______________________________________________ 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 -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Sat Jun 14 18:37:43 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sun, 15 Jun 2008 10:37:43 +1200 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: Oh ok. So what's the story going to be for XAML then? I wrote an application in WPF but I have to resort to writing quite some bits and pieces in C# because XAML for example don't want to play ball when you create a value converter in ruby not even when defining the interface. class CharRemainingConverter include IValueConverter def convert(value, target_type, parameter, culture) return Constants::CHARACTER_LIMIT - value end def convert_back(value, target_type, parameter, culture) NotImplementedException.new("The method or operation is not implemented.") end end I have a similar experience when it comes to DependencyProperties. I would like to know what that story is going to around these things. Since this applies to both WPF and Silverlight I think everything will work out fine and I am just too soon for this stuff? Many things come to mind to solve the DependencyProperties or the RoutedEvents like an GlobalEventManagerManager ;) and such but unfortunately some of the building blocks (GlobalEventHandlersStore) are internal so I'm pretty sure I shouldn't mess with it if I don't want my stuff to break in the future. There is also an issue with ResourceDictionaries where you can't index into them from IronRuby defining a method in C# that reads the dictionary works just fine. I'm not ranting or complaining.. just sharing my observations :) Cheers Ivan On Sun, Jun 15, 2008 at 5:36 AM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > Ruby classes have no CLR type. The type you're getting by this is shared > across multiple Ruby classes. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Michael Letterle > *Sent:* Saturday, June 14, 2008 7:07 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] How to get to the CLR type > > > > >>> System::Type.get_type_from_handle System::Type.get_type_handle(Test) > => # > > > On Sat, Jun 14, 2008 at 4:11 AM, Ivan Porto Carrero > wrote: > > Oh I see.. When I call .to_clr_type on a type that has only been defined > in Ruby it returns nil > > >>> class Testing; end; > => nil > >>> Testing.to_clr_type > => nil > >>> Testing.new.get_type > => # > > > >>> > > > > On Sat, Jun 14, 2008 at 7:42 PM, Ivan Porto Carrero > wrote: > > I'm sure i tried that, but then again I tried many things. and I'm sure > I've used that before too when I was playing with LightSpeed... > Thanks > > On Sat, Jun 14, 2008 at 7:20 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > > >>> require 'mscorlib' > > => true > > >>> System::String.to_clr_type > > => # > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Friday, June 13, 2008 11:13 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] How to get to the CLR type > > > > I hit send to quickly there is more > > If I do pass it the correct types (which I got from creating instances) > @@login_event = EventManager.register_routed_event("login", > RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, > LoginControl.new.get_type) > > then I get a new error > RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' > already used. > > Which leads me to believe that either I'm doing it wrong or that that's not > supposed to happen/supported yet and I have to file a bug report :) > > Cheers > Ivan > > On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero > wrote: > > How do I get to the CLR type definition of a class? > > I assumed that the code below would just work or at least not fail where it > did :) > @@login_event = EventManager.register_routed_event("login", > RoutingStrategy.bubble, RoutedEventHandler, LoginControl) > > That has IronRuby complaining about the wrong type of arguments and so on. > And I figure it's because the register_routed_event method expects a CLR > type instead of a DLR one. The only way I know to get to the same > information as typeof(RoutedEventHandler) is to create an instance and then > calling get_type on it. Is there anoter way for that? > > Cheers > Ivan > > > > > > _______________________________________________ > 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 > > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sat Jun 14 19:34:02 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 14 Jun 2008 16:34:02 -0700 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: ?I think everything will work out fine and I am just too soon for this stuff?? Yes :-) We will definitely support definitions of static classes, but not just yet. For example, it could be that a CLR type is created for a Ruby class that includes a CLR interface at the point the class definition is closed first time since the interface is included. Such a class could still be ?dynamic? in Ruby (reopened, method added/changed) but no more CLR interfaces could be added (the CLR type won?t change). Or something like that. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, June 14, 2008 3:38 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type Oh ok. So what's the story going to be for XAML then? I wrote an application in WPF but I have to resort to writing quite some bits and pieces in C# because XAML for example don't want to play ball when you create a value converter in ruby not even when defining the interface. class CharRemainingConverter include IValueConverter def convert(value, target_type, parameter, culture) return Constants::CHARACTER_LIMIT - value end def convert_back(value, target_type, parameter, culture) NotImplementedException.new("The method or operation is not implemented.") end end I have a similar experience when it comes to DependencyProperties. I would like to know what that story is going to around these things. Since this applies to both WPF and Silverlight I think everything will work out fine and I am just too soon for this stuff? Many things come to mind to solve the DependencyProperties or the RoutedEvents like an GlobalEventManagerManager ;) and such but unfortunately some of the building blocks (GlobalEventHandlersStore) are internal so I'm pretty sure I shouldn't mess with it if I don't want my stuff to break in the future. There is also an issue with ResourceDictionaries where you can't index into them from IronRuby defining a method in C# that reads the dictionary works just fine. I'm not ranting or complaining.. just sharing my observations :) Cheers Ivan On Sun, Jun 15, 2008 at 5:36 AM, Tomas Matousek > wrote: Ruby classes have no CLR type. The type you're getting by this is shared across multiple Ruby classes. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Saturday, June 14, 2008 7:07 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type >>> System::Type.get_type_from_handle System::Type.get_type_handle(Test) => # On Sat, Jun 14, 2008 at 4:11 AM, Ivan Porto Carrero > wrote: Oh I see.. When I call .to_clr_type on a type that has only been defined in Ruby it returns nil >>> class Testing; end; => nil >>> Testing.to_clr_type => nil >>> Testing.new.get_type => # >>> On Sat, Jun 14, 2008 at 7:42 PM, Ivan Porto Carrero > wrote: I'm sure i tried that, but then again I tried many things. and I'm sure I've used that before too when I was playing with LightSpeed... Thanks On Sat, Jun 14, 2008 at 7:20 PM, Tomas Matousek > wrote: >>> require 'mscorlib' => true >>> System::String.to_clr_type => # Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, June 13, 2008 11:13 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type I hit send to quickly there is more If I do pass it the correct types (which I got from creating instances) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, LoginControl.new.get_type) then I get a new error RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' already used. Which leads me to believe that either I'm doing it wrong or that that's not supposed to happen/supported yet and I have to file a bug report :) Cheers Ivan On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero > wrote: How do I get to the CLR type definition of a class? I assumed that the code below would just work or at least not fail where it did :) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler, LoginControl) That has IronRuby complaining about the wrong type of arguments and so on. And I figure it's because the register_routed_event method expects a CLR type instead of a DLR one. The only way I know to get to the same information as typeof(RoutedEventHandler) is to create an instance and then calling get_type on it. Is there anoter way for that? Cheers Ivan _______________________________________________ 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 -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From suppakilla at gmail.com Sun Jun 15 05:52:58 2008 From: suppakilla at gmail.com (Daniele Alessandri) Date: Sun, 15 Jun 2008 11:52:58 +0200 Subject: [Ironruby-core] Errno::ENOENT and %x[..] Message-ID: <3bf20550806150252p5d9807b9n2fbb160640d239f7@mail.gmail.com> Hi, Last month, in my spare time, I have started to implement Process::Status and the related methods Kernel#system, Kernel#exec and %x[..]. While trying to solve a few design issues on my side, I noticed that %x[..] behaves like Kernel#exec in that they both throw exceptions: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] irb(main):001:0> system "doesnotexist" => false irb(main):002:0> exec "doesnotexist" Errno::ENOENT: No such file or directory - doesnotexist from (irb):2:in `exec' from (irb):2 irb(main):003:0> %x[doesnotexist] Errno::ENOENT: No such file or directory - doesnotexist from (irb):3:in ``' from (irb):3 irb(main):004:0> Now the problem is that the implementation of %x[..] is in the Ruby project (more precisely, in the static method ExecuteCommand of RubyOps) while the NoEntryError exception (Errno::ENOENT) is defined in the IronRuby.Libraries project and thus not accessible AFAIK. Any ideas on how to work around this? -- Daniele Alessandri http://www.clorophilla.net/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sun Jun 15 12:29:00 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 15 Jun 2008 09:29:00 -0700 Subject: [Ironruby-core] Errno::ENOENT and %x[..] In-Reply-To: <3bf20550806150252p5d9807b9n2fbb160640d239f7@mail.gmail.com> References: <3bf20550806150252p5d9807b9n2fbb160640d239f7@mail.gmail.com> Message-ID: %x and ` should be compiled to a dynamic call of Kernel#`. So you can entirely implement the feature in libraries. Send a patch as soon as you?ll have something ready. I?ll make the compiler to emit the right call. irb(main):007:0> module Kernel irb(main):008:1> def ` x irb(main):009:2> puts '`' irb(main):010:2> end irb(main):011:1> end => nil irb(main):012:0> `dir` ` => nil irb(main):013:0> %x{dir} ` => nil Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Daniele Alessandri Sent: Sunday, June 15, 2008 2:53 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Errno::ENOENT and %x[..] Hi, Last month, in my spare time, I have started to implement Process::Status and the related methods Kernel#system, Kernel#exec and %x[..]. While trying to solve a few design issues on my side, I noticed that %x[..] behaves like Kernel#exec in that they both throw exceptions: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] irb(main):001:0> system "doesnotexist" => false irb(main):002:0> exec "doesnotexist" Errno::ENOENT: No such file or directory - doesnotexist from (irb):2:in `exec' from (irb):2 irb(main):003:0> %x[doesnotexist] Errno::ENOENT: No such file or directory - doesnotexist from (irb):3:in ``' from (irb):3 irb(main):004:0> Now the problem is that the implementation of %x[..] is in the Ruby project (more precisely, in the static method ExecuteCommand of RubyOps) while the NoEntryError exception (Errno::ENOENT) is defined in the IronRuby.Libraries project and thus not accessible AFAIK. Any ideas on how to work around this? -- Daniele Alessandri http://www.clorophilla.net/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Jun 16 15:21:13 2008 From: lists at ruby-forum.com (Ryan Belcher) Date: Mon, 16 Jun 2008 21:21:13 +0200 Subject: [Ironruby-core] Signing problem on Vista 64 Message-ID: <3c77b51c77bb7afc514ad5835505c77a@ruby-forum.com> I'm having a problem running r114 on Vista 64. I did run the runfirst.cmd This is the exception I get: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'ir, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'ir, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A) The Zone of the assembly that failed was: MyComputer Any ideas? -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Mon Jun 16 15:59:03 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 16 Jun 2008 12:59:03 -0700 Subject: [Ironruby-core] Signing problem on Vista 64 In-Reply-To: <3c77b51c77bb7afc514ad5835505c77a@ruby-forum.com> References: <3c77b51c77bb7afc514ad5835505c77a@ruby-forum.com> Message-ID: Have you run it in 64bit cmd.exe? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Belcher Sent: Monday, June 16, 2008 12:21 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Signing problem on Vista 64 I'm having a problem running r114 on Vista 64. I did run the runfirst.cmd This is the exception I get: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'ir, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'ir, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A) The Zone of the assembly that failed was: MyComputer Any ideas? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From curth at microsoft.com Mon Jun 16 16:06:56 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Mon, 16 Jun 2008 13:06:56 -0700 Subject: [Ironruby-core] Signing problem on Vista 64 In-Reply-To: References: <3c77b51c77bb7afc514ad5835505c77a@ruby-forum.com> Message-ID: To elaborate on this a little, the 64-bit versions of Windows basically have two copies of the registry -- one for 32-bit programs and one for 64-bit programs. If you've run "sn.exe -Vr" from the "Visual Studio 2008 Command Prompt", you will end up running the 32-bit version of the program which will update the 32-bit key that controls strong name verification -- but will not update the 64-bit key. If you run sn.exe from the x64 version of Visual Studio Command Prompt, you will get the 64-bit executable which will therefore update the 64-bit version of the registry. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Monday, June 16, 2008 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Signing problem on Vista 64 Have you run it in 64bit cmd.exe? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Belcher Sent: Monday, June 16, 2008 12:21 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Signing problem on Vista 64 I'm having a problem running r114 on Vista 64. I did run the runfirst.cmd This is the exception I get: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'ir, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'ir, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A) The Zone of the assembly that failed was: MyComputer Any ideas? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Mon Jun 16 16:08:29 2008 From: lists at ruby-forum.com (Ryan Belcher) Date: Mon, 16 Jun 2008 22:08:29 +0200 Subject: [Ironruby-core] Signing problem on Vista 64 In-Reply-To: References: <3c77b51c77bb7afc514ad5835505c77a@ruby-forum.com> Message-ID: Tomas Matousek wrote: > Have you run it in 64bit cmd.exe? > > Tomas I tried it just now and got the same result. -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Mon Jun 16 16:38:16 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 16 Jun 2008 13:38:16 -0700 Subject: [Ironruby-core] Signing problem on Vista 64 In-Reply-To: References: <3c77b51c77bb7afc514ad5835505c77a@ruby-forum.com> Message-ID: What do you get if you run "sn -Vl" on 32bit and 64bit command lines? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Belcher Sent: Monday, June 16, 2008 1:08 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Signing problem on Vista 64 Tomas Matousek wrote: > Have you run it in 64bit cmd.exe? > > Tomas I tried it just now and got the same result. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Mon Jun 16 17:04:30 2008 From: lists at ruby-forum.com (Ryan Belcher) Date: Mon, 16 Jun 2008 23:04:30 +0200 Subject: [Ironruby-core] Signing problem on Vista 64 In-Reply-To: References: <3c77b51c77bb7afc514ad5835505c77a@ruby-forum.com> Message-ID: <168251689294e1488495d2085f6dd6aa@ruby-forum.com> Tomas Matousek wrote: > What do you get if you run "sn -Vl" on 32bit and 64bit command lines? The problem was I was not running the 64 bit sn, as Curt described. It's working now. Thanks for the help. -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Mon Jun 16 20:14:43 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 16 Jun 2008 17:14:43 -0700 Subject: [Ironruby-core] Code Review: ExecCmd Message-ID: tfpt review "/shelveset:ExecCmd;REDMOND\tomat" Fixes compiler to emit a call to ` method when compiling `cmd`. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: ExecCmd.diff Type: application/octet-stream Size: 9020 bytes Desc: ExecCmd.diff URL: From jdeville at microsoft.com Tue Jun 17 16:35:32 2008 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 17 Jun 2008 13:35:32 -0700 Subject: [Ironruby-core] Code Review: systemstack Message-ID: Ruby Only Changes the exception inheritance tree to put SystemStackError under StandardError to match CRuby -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: systemstack.diff Type: application/octet-stream Size: 9960 bytes Desc: systemstack.diff URL: From jdeville at microsoft.com Tue Jun 17 16:37:50 2008 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 17 Jun 2008 13:37:50 -0700 Subject: [Ironruby-core] Code Review: systemstack In-Reply-To: References: Message-ID: For those internal: tfpt review "/shelveset:systemstack;jdeville" From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, June 17, 2008 1:36 PM To: ironruby-core at rubyforge.org; IronRuby External Code Reviewers Subject: [Ironruby-core] Code Review: systemstack Ruby Only Changes the exception inheritance tree to put SystemStackError under StandardError to match CRuby -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Jun 17 16:41:15 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 17 Jun 2008 13:41:15 -0700 Subject: [Ironruby-core] Code Review: systemstack In-Reply-To: References: Message-ID: Looks good. From: Jim Deville Sent: Tuesday, June 17, 2008 1:38 PM To: ironruby-core at rubyforge.org; IronRuby External Code Reviewers Subject: RE: Code Review: systemstack For those internal: tfpt review "/shelveset:systemstack;jdeville" From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, June 17, 2008 1:36 PM To: ironruby-core at rubyforge.org; IronRuby External Code Reviewers Subject: [Ironruby-core] Code Review: systemstack Ruby Only Changes the exception inheritance tree to put SystemStackError under StandardError to match CRuby -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Jun 17 16:43:20 2008 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 17 Jun 2008 13:43:20 -0700 Subject: [Ironruby-core] Code Review: systemstack In-Reply-To: References: Message-ID: Also F2F with John. From: Tomas Matousek Sent: Tuesday, June 17, 2008 1:41 PM To: Jim Deville; ironruby-core at rubyforge.org; IronRuby External Code Reviewers Subject: RE: Code Review: systemstack Looks good. From: Jim Deville Sent: Tuesday, June 17, 2008 1:38 PM To: ironruby-core at rubyforge.org; IronRuby External Code Reviewers Subject: RE: Code Review: systemstack For those internal: tfpt review "/shelveset:systemstack;jdeville" From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, June 17, 2008 1:36 PM To: ironruby-core at rubyforge.org; IronRuby External Code Reviewers Subject: [Ironruby-core] Code Review: systemstack Ruby Only Changes the exception inheritance tree to put SystemStackError under StandardError to match CRuby -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Jun 18 01:29:32 2008 From: lists at ruby-forum.com (Web Reservoir) Date: Wed, 18 Jun 2008 07:29:32 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives Message-ID: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> Ruby and IronRuby are the best thing happened to us. We had no options in the past to work with asp.net except Vb.net and C#. And to my knowledge Vb.Net community was silently forced to switchover to C#, by making more examples available in C# than Vb.Net. Even C# developers are currently offered more salary than Vb.Net But *NOW* that's not the scenario any more. With IronRuby, we can enjoy best of both the world... I mean IronRuby on Rails and Asp.Net MVC with IronRuby. Ruby in fact has won many hearts by its dynamic language and more power. Just wondering what percentage will still prefer to work with the ugly coding and long code approach with C#.....? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jun 18 01:37:30 2008 From: lists at ruby-forum.com (SoftMind Systems) Date: Wed, 18 Jun 2008 07:37:30 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> Message-ID: <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> > Just wondering what percentage will still prefer to work with the ugly > coding and long code approach with C#.....? ------------------------------------------------------------ To be frank and honest... I just hate C#. C# 3.0 is just nothing but imitating few powers of Ruby onto C#. I just do not know.. whether MSFT will respect IronRuby like C#. The Day i feel, IronRuby is treated as a MSFT child, i will make a switchover to IronRuby with wasting a second. I am currently exploring Ruby and Ruby on Rails -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jun 18 02:43:51 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Wed, 18 Jun 2008 08:43:51 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> Message-ID: <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Iron Ruby wrote: > The Day i feel, IronRuby is treated as a MSFT child, i will make a > switchover to IronRuby with wasting a second. > ------------------------------------------------------------------------ Hi, Let me make few things clear. IronRuby/Ironpython are the first ever open source projects taken up by MSFT. If they are really serious, they should justify both the new DLR languages with a good IDE like VS Express Tools. Not much cannot be done, without a good IDE support. I do not think any good IDE is shaping up at MSFT end for this new language support. The only IronRuby tool that's shaping up is from Sapphire Steel, but that does not come free. Sun has been working very hard with their NetBeans IDE. Its latest Netbeans 6.1 can serve as a great inspiration for IronRuby Team. MSFT has expertise with great IDE tools from beginning and with VS Express Tools and VS 2008, i am surprised to see, what's stopping MSFT to go ahead with IronRuby support within VS Express Tools. Provided i get a good IDE from MSFT, i am sure to join u guys . -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jun 18 06:05:10 2008 From: lists at ruby-forum.com (Huw Collingbourne) Date: Wed, 18 Jun 2008 12:05:10 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: <06287e9adf82506acdc23c37c00bac1b@ruby-forum.com> Softmind Technology wrote: > The only IronRuby tool that's shaping up is from Sapphire Steel, but > that does not come free. Can I clarify that IronRuby In Steel - our IronRuby-specific IDE - is free and will remain free. best wishes Huw SapphireSteel Software Ruby and Rails In Visual Studio http://www.sapphiresteel.com -- Posted via http://www.ruby-forum.com/. From fuzzyman at voidspace.org.uk Wed Jun 18 05:53:56 2008 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Wed, 18 Jun 2008 10:53:56 +0100 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> Message-ID: <4858DB34.4020504@voidspace.org.uk> I think you'll find that C# has a strong following and that not *everyone* prefers Ruby (or Python)... Michael Foord SoftMind Systems wrote: >> Just wondering what percentage will still prefer to work with the ugly >> coding and long code approach with C#.....? >> > > ------------------------------------------------------------ > To be frank and honest... I just hate C#. C# 3.0 is just nothing but > imitating few powers of Ruby onto C#. > > I just do not know.. whether MSFT will respect IronRuby like C#. > > The Day i feel, IronRuby is treated as a MSFT child, i will make a > switchover to IronRuby with wasting a second. > > I am currently exploring Ruby and Ruby on Rails > > From ben2004uk at googlemail.com Wed Jun 18 06:33:40 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Wed, 18 Jun 2008 11:33:40 +0100 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <4858DB34.4020504@voidspace.org.uk> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> Message-ID: I think 'jumping ship' is the wrong way to think about it. C# is still a very useful language, however in certain situations Ruby is the more logical choice. I don't see this as either\or, but a way to extend your toolset and choice the right language for your scenario - be it C#, Ruby or even VB.net! Plus there are a lot of legacy systems and knowledge based around C#, certainly a decision when deciding on your language. Ben Blog.BenHall.me.uk On Wed, Jun 18, 2008 at 10:53 AM, Michael Foord wrote: > I think you'll find that C# has a strong following and that not *everyone* > prefers Ruby (or Python)... > > Michael Foord > > SoftMind Systems wrote: >>> >>> Just wondering what percentage will still prefer to work with the ugly >>> coding and long code approach with C#.....? >>> >> >> ------------------------------------------------------------ >> To be frank and honest... I just hate C#. C# 3.0 is just nothing but >> imitating few powers of Ruby onto C#. >> >> I just do not know.. whether MSFT will respect IronRuby like C#. >> >> The Day i feel, IronRuby is treated as a MSFT child, i will make a >> switchover to IronRuby with wasting a second. >> >> I am currently exploring Ruby and Ruby on Rails >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From lists at ruby-forum.com Wed Jun 18 07:28:22 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Wed, 18 Jun 2008 13:28:22 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <4858DB34.4020504@voidspace.org.uk> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> Message-ID: <3e966a22167668ed85749d1c9591120e@ruby-forum.com> Michael Foord wrote: > I think you'll find that C# has a strong following and that not > *everyone* prefers Ruby (or Python)... > > Michael Foord ---------------------------------------- Agreed, C# has a great following, but it was because there was no other *OPTION* to work with .Net. Ruby without IronRuby is neck to neck with C# as per Tiobe Index. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Guess what popularity IronRuby will gain, once it enters .Net Platform.. I'm sure it will take over C# soon Just my Opinion. SoftMind. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jun 18 09:23:12 2008 From: lists at ruby-forum.com (Rahil Kantharia) Date: Wed, 18 Jun 2008 15:23:12 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <3e966a22167668ed85749d1c9591120e@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <3e966a22167668ed85749d1c9591120e@ruby-forum.com> Message-ID: <9dd81748bf746636301aad4c4c05ce53@ruby-forum.com> Hi, I VOTE FOR IRONRUBY....My Big PLUS for it. + I always kept myself away from .Net, since i never liked C#, and i was sorry to see the Vb.Net community ignored after their long association with VB6 and then Vb.Net. MSFT should support their loyal developers ( Vb6 and Vb.Net ) first. C# came much later. I was scared to be ignored in long run. With IronRuby/Ruby, i am safe with both the worlds. -- Posted via http://www.ruby-forum.com/. From ben2004uk at googlemail.com Wed Jun 18 09:43:19 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Wed, 18 Jun 2008 14:43:19 +0100 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <9dd81748bf746636301aad4c4c05ce53@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <3e966a22167668ed85749d1c9591120e@ruby-forum.com> <9dd81748bf746636301aad4c4c05ce53@ruby-forum.com> Message-ID: I don't think Microsoft ignored the VB.net community, infact is has some real nice features not found in C#. I don't see why Microsoft should support VB6 when its a horrible language for actual development. On Wed, Jun 18, 2008 at 2:23 PM, Rahil Kantharia wrote: > Hi, > > I VOTE FOR IRONRUBY....My Big PLUS for it. + > > I always kept myself away from .Net, since i never liked C#, and i was > sorry to see the Vb.Net community ignored after their long association > with VB6 and then Vb.Net. > > MSFT should support their loyal developers ( Vb6 and Vb.Net ) first. C# > came much later. I was scared to be ignored in long run. > > With IronRuby/Ruby, i am safe with both the worlds. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From blowmage at gmail.com Wed Jun 18 09:48:40 2008 From: blowmage at gmail.com (Mike Moore) Date: Wed, 18 Jun 2008 07:48:40 -0600 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: On Wed, Jun 18, 2008 at 12:43 AM, Softmind Technology wrote: > Not much cannot be done, without a good IDE support. > The same reason you think this is the same reason Ruby will have a hard time succeeding in the .NET community. Ruby didn't get to where it is today with overwhelming IDE support, and I don't think it _needs_ the kind of IDE support like you get with Visual Studio to move forward. You can argue that VB and C# and Java need that level of IDE support. My opinion is that the IDEs have lead to the state of those languages today, and is part of the reason so many are looking to Ruby and Python. -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh.charles at gmail.com Wed Jun 18 09:54:36 2008 From: josh.charles at gmail.com (Josh Charles) Date: Wed, 18 Jun 2008 08:54:36 -0500 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: On Wed, Jun 18, 2008 at 8:48 AM, Mike Moore wrote: > The same reason you think this is the same reason Ruby will have a hard > time succeeding in the .NET community. Ruby didn't get to where it is today > with overwhelming IDE support, and I don't think it _needs_ the kind of IDE > support like you get with Visual Studio to move forward. I have to agree with Mike here. Ruby development with TextMate (a text editor only) works wonderfully, but I would be hesitant to develop C# applications in the same way. On the other hand, one thing that will be really nice is to have a debugger that works easily, and at least similar to the one in Visual Studio. From blowmage at gmail.com Wed Jun 18 09:55:14 2008 From: blowmage at gmail.com (Mike Moore) Date: Wed, 18 Jun 2008 07:55:14 -0600 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> Message-ID: On Wed, Jun 18, 2008 at 4:33 AM, Ben Hall wrote: > I think 'jumping ship' is the wrong way to think about it. C# is still > a very useful language, however in certain situations Ruby is the more > logical choice. I don't see this as either\or, but a way to extend > your toolset and choice the right language for your scenario - be it > C#, Ruby or even VB.net! Plus there are a lot of legacy systems and > knowledge based around C#, certainly a decision when deciding on your > language. > I believe the future will be similar to the whole 'polyglot programming' or 'language oriented programming' meme. A strong focus on domain specific languages built with dynamic languages, lots of business logic in a dynamic language, and a platform layer underneath built with a language like C# that is closely aligned with the VM. I did a presentation about this. You can get the slides here: http://blowmage.com/2008/3/10/ironruby-csharp-awesomeness And I recorded a podcast with Ola Bini about this. You can find that here: http://rubiverse.com/podcasts/5-ola-bini-on-polyglot-programming ~Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Jun 18 09:58:54 2008 From: lists at ruby-forum.com (Rahil Kantharia) Date: Wed, 18 Jun 2008 15:58:54 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <3e966a22167668ed85749d1c9591120e@ruby-forum.com> <9dd81748bf746636301aad4c4c05ce53@ruby-forum.com> Message-ID: <5701d7401cb232765e8db8b6b9a21a4f@ruby-forum.com> Ben Hall wrote: I don't see why Microsoft > should support VB6 when its a horrible language for actual > development. --------------------------------------------------- Hi, Just to clarify. By VB6 and Vb.Net i meant those, dedicated developers who started their career with VB and ended up with Vb.Net. MSFT should support keeping their old establishment in mind. Majority of VB6 developers had no other option but to go with Vb.Net MSFT created C#, just to attract Java community, but infact it did not happen. Java was scared of Ruby and hence jRuby appeared. MS waked up a bit later and now we have IronRuby. Its no wonder that Ruby is here to stay for longer time. Its important to see, how MSFT treats this new baby. -- Posted via http://www.ruby-forum.com/. From curt at hagenlocher.org Wed Jun 18 09:59:12 2008 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Wed, 18 Jun 2008 06:59:12 -0700 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> Message-ID: On Wed, Jun 18, 2008 at 6:55 AM, Mike Moore wrote: > > I believe the future will be similar to the whole 'polyglot programming' or > 'language oriented programming' meme. A strong focus on domain specific > languages built with dynamic languages, lots of business logic in a dynamic > language, and a platform layer underneath built with a language like C# that > is closely aligned with the VM. See also Steve Yegge's recent (and quite lengthy) blog entry at http://steve-yegge.blogspot.com/2008/06/rhinos-and-tigers.html -- Curt Hagenlocher curt at hagenlocher.org From lists at ruby-forum.com Wed Jun 18 10:09:48 2008 From: lists at ruby-forum.com (Rahil Kantharia) Date: Wed, 18 Jun 2008 16:09:48 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: Josh Charles wrote: > > I have to agree with Mike here. Ruby development with TextMate (a > text editor only) works wonderfully, but I would be hesitant to > develop C# applications in the same way. > > On the other hand, one thing that will be really nice is to have a > debugger that works easily, and at least similar to the one in Visual > Studio. ---------------------------------- Majority of IronRuby developers will be using Ironruby for web designing purpose, and working with Asp.Net MVC with IronRuby, a good IDE like VS Express is a must. For a plain Ruby development even "Scite" and "Netbeans 6.1" are the best choice around. Even NotePad can solve that problem, but its hardly used. But when it comes to Asp.Net MVC with IronRuby, one cannot survive without a great IDE, thats sure. -- Posted via http://www.ruby-forum.com/. From sanxiyn at gmail.com Wed Jun 18 10:13:29 2008 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Wed, 18 Jun 2008 23:13:29 +0900 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: <5b0248170806180713n122f546at51a4cf8e0219b634@mail.gmail.com> 2008/6/18 Rahil Kantharia : > Majority of IronRuby developers will be using Ironruby for web designing > purpose, and working with Asp.Net MVC with IronRuby, a good IDE like VS > Express is a must. > > For a plain Ruby development even "Scite" and "Netbeans 6.1" are the > best choice around. Even NotePad can solve that problem, but its hardly > used. > > But when it comes to Asp.Net MVC with IronRuby, one cannot survive > without a great IDE, thats sure. What's wrong with Vim? (I am sincere.) Ok I openly admit that I am not too familiar with so-called integrated development environments. So sue me. -- Seo Sanghyeon From joe at faithfulgeek.org Wed Jun 18 10:13:38 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Wed, 18 Jun 2008 10:13:38 -0400 Subject: [Ironruby-core] Evil Fun with IronRuby Message-ID: <73fd69b50806180713k6c0e43a1q9b2b109230b252b8@mail.gmail.com> Hey all, I posted the results of some recent experimenting with IronRuby to my blog at: http://faithfulgeek.org/2008/6/17/evil-fun-with-ironruby. My question is, how do these things work under the covers? Do .NET types that have a Ruby equivalent get treated as the Ruby type or is there an extra layer that allows any .NET type to be modified at runtime? It's totally cool that any of this is possible, but I was very surprised that it is. Thanks all! -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From curtismitchell at gmail.com Wed Jun 18 10:15:37 2008 From: curtismitchell at gmail.com (Curtis Mitchell) Date: Wed, 18 Jun 2008 10:15:37 -0400 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> Message-ID: <004f01c8d14d$c99d5f00$5cd81d00$@com> This is a very interesting discussion. I'd like to add a few points: 1. VB is still MSFTs most widely used programming language (as mentioned by some seemingly knowledgeable MSFT guy on Hanselminutes podcast) 2. C# and VB will probably still out perform IronRuby when it is released 3. IMO, most .NET developers know very little about Ruby and even less about IronRuby right now. The impact of IronRuby will most likely have a direct relationship to the impact of Silverlight. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Wednesday, June 18, 2008 9:59 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives On Wed, Jun 18, 2008 at 6:55 AM, Mike Moore wrote: > > I believe the future will be similar to the whole 'polyglot programming' or > 'language oriented programming' meme. A strong focus on domain specific > languages built with dynamic languages, lots of business logic in a dynamic > language, and a platform layer underneath built with a language like C# that > is closely aligned with the VM. See also Steve Yegge's recent (and quite lengthy) blog entry at http://steve-yegge.blogspot.com/2008/06/rhinos-and-tigers.html -- Curt Hagenlocher curt at hagenlocher.org _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From curt at hagenlocher.org Wed Jun 18 10:25:39 2008 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Wed, 18 Jun 2008 07:25:39 -0700 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <5701d7401cb232765e8db8b6b9a21a4f@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <3e966a22167668ed85749d1c9591120e@ruby-forum.com> <9dd81748bf746636301aad4c4c05ce53@ruby-forum.com> <5701d7401cb232765e8db8b6b9a21a4f@ruby-forum.com> Message-ID: On Wed, Jun 18, 2008 at 6:58 AM, Rahil Kantharia wrote: > > MSFT created C#, just to attract Java community, but infact it did not > happen. > Java was scared of Ruby and hence jRuby appeared. MS waked up a bit > later and now we have IronRuby. If you start with C++ and remove all of its painful, unsafe and rarely-used features, you're going to end up with a language that looks like Java. That's not to say that Java wasn't an influence on C#, but the language was clearly aimed primarily at C++ programmers already on a Microsoft platform. Another way of looking at it is to recognize that in 1999, Microsoft had two first-class development environments -- VB6 and VC6. VB.NET was the CLR "upgrade path" for the VB6 programmers and C# served the same purpose for VC6. As for "Java was scared of Ruby", I assume by Java that you mean Sun. Sun didn't start supporting JRuby until well after the project was started by people in the community. Well before that, there was Jython -- an implementation of Python for the JVM. The creator of Jython was Jim Hugunin, who went on to create IronPython and work for Microsoft. And this was before Ruby's fairly recent meteoric (and largely Rails-driven) rise to prominence. So, interest in dynamic languages has been growing steadily over the last decade and it's not just some recent mad (and fear-based) scramble to support them. Finally, I think you'll find that -- at least in the short term -- most programmers don't have a choice about the language they use; it's dictated to them by their employer. -- Curt Hagenlocher curt at hagenlocher.org From lists at ruby-forum.com Wed Jun 18 10:26:46 2008 From: lists at ruby-forum.com (Ryan Belcher) Date: Wed, 18 Jun 2008 16:26:46 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: Rahil Kantharia wrote: > Josh Charles wrote: > >> >> I have to agree with Mike here. Ruby development with TextMate (a >> text editor only) works wonderfully, but I would be hesitant to >> develop C# applications in the same way. >> >> On the other hand, one thing that will be really nice is to have a >> debugger that works easily, and at least similar to the one in Visual >> Studio. > > ---------------------------------- > Majority of IronRuby developers will be using Ironruby for web designing > purpose, and working with Asp.Net MVC with IronRuby, a good IDE like VS > Express is a must. > > For a plain Ruby development even "Scite" and "Netbeans 6.1" are the > best choice around. Even NotePad can solve that problem, but its hardly > used. > > But when it comes to Asp.Net MVC with IronRuby, one cannot survive > without a great IDE, thats sure. There are aspects of Ruby that make IDE's both far more complicated and far more useful. Consider working with ActiveRecord. There's no denying that it would be nice to have Intellisense-like autocompletion for your AR objects if, for example, you forgot the name of one of your fields. (Sure you can keep a schema file open if you have 3 tables, but what if you have 50). And is the method you are looking for a field in the table, a method in the class, or base class, or a method added by a module, or worse a method that was monkey-patched in. I suppose you could keep a script/console running to query such things, but certainly its faster to have that information immediately in editor. I've never worked on an IDE before, but the topic of how you implement Intellisense for Ruby has always interested me. I imagine it must be 100x harder to do it for Ruby than for C++ (or maybe just use 100x more processing power). But I'm thinking that the DLR must make such things much easier. Is that the case? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jun 18 10:27:41 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Wed, 18 Jun 2008 16:27:41 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: <5e4d13934ebe4d203a438402ceaf7ebd@ruby-forum.com> Hi, We are talking about pure IronRuby applications here. For Plain Ruby development we already have many options The real fact is "Asp.Net MVC with IronRuby", needs a great IDE support,the same way Vb.Net and C# needs today. Without IDE, it will take ages to create folders with MVC approach. If MSFT and IronRuby team are really serious about their first Open Source Project, they should not neglect a great IDE. It would be really sad to lose large amount of ruby developers moving away from .net without a good IDE support. CLR + DLR with great .net framework is the best thing happened to us.MSFT should not kill this charm with a lack of good IDE. -- Posted via http://www.ruby-forum.com/. From blowmage at gmail.com Wed Jun 18 10:29:47 2008 From: blowmage at gmail.com (Mike Moore) Date: Wed, 18 Jun 2008 08:29:47 -0600 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: On Wed, Jun 18, 2008 at 8:09 AM, Rahil Kantharia wrote: > But when it comes to Asp.Net MVC with IronRuby, one cannot survive > without a great IDE, thats sure. > I think you *need *an IDE like Visual Studio for writing ASP.NET MVC web apps because ASP.NET MVC is a web framework written for C#. Even if you use a different language like Python or Ruby. In the same vein, Ruby on Rails is a web framework written for Ruby, and doesn't *need *those IDEs to be productive. -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowmage at gmail.com Wed Jun 18 10:39:02 2008 From: blowmage at gmail.com (Mike Moore) Date: Wed, 18 Jun 2008 08:39:02 -0600 Subject: [Ironruby-core] Evil Fun with IronRuby In-Reply-To: <73fd69b50806180713k6c0e43a1q9b2b109230b252b8@mail.gmail.com> References: <73fd69b50806180713k6c0e43a1q9b2b109230b252b8@mail.gmail.com> Message-ID: I left a comment on your blog, but I'll answer here as well. IronRuby adds the Ruby Enumerable mixin to IEnumerable objects, which allows for CLR lists and collections to act more like Ruby arrays. And the new methods you add to CLR classes in IronRuby will not be available when calling them from a non-DLR language like C#. On Wed, Jun 18, 2008 at 8:13 AM, Joe Fiorini wrote: > Hey all, > I posted the results of some recent experimenting with IronRuby to my blog > at: http://faithfulgeek.org/2008/6/17/evil-fun-with-ironruby. My question > is, how do these things work under the covers? Do .NET types that have a > Ruby equivalent get treated as the Ruby type or is there an extra layer that > allows any .NET type to be modified at runtime? It's totally cool that any > of this is possible, but I was very surprised that it is. > > Thanks all! > > -- > joe fiorini > http://www.faithfulgeek.org > // freelancing & knowledge sharing > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Jun 18 10:48:13 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Wed, 18 Jun 2008 16:48:13 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: <213ede6893c50ad3beccef8750b1098e@ruby-forum.com> Mike Moore wrote: > > I think you *need *an IDE like Visual Studio for writing ASP.NET MVC web > apps because ASP.NET MVC is a web framework written for C#. Even if you > use > a different language like Python or Ruby. ------------------------- Hi Mike, Just Curious, what makes you say that Asp.Net MVC is a framework written for C# only. I think its for all 4 languages working with .Net ( C#,Vb.Net, IronRuby and Ironpython and very soon F# as the fifth language ) Whats IronRuby community suppose to do, if VS 2008 does not support IronRuby and IronPython....? Does MSFT / DLR Team, really think that VS2008 is a must for C# and Vb.Net only...? -- Posted via http://www.ruby-forum.com/. From joe at faithfulgeek.org Wed Jun 18 10:59:08 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Wed, 18 Jun 2008 10:59:08 -0400 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <5e4d13934ebe4d203a438402ceaf7ebd@ruby-forum.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> <5e4d13934ebe4d203a438402ceaf7ebd@ruby-forum.com> Message-ID: <73fd69b50806180759o209cb7eft6b145ca1b495cb10@mail.gmail.com> As much as I hate to, I would have to agree that IDE support for IronRuby with other .NET applications is a necessity. I've tried to do MVC development in TextMate and I can say it's very difficult. Not from an IntelliSense perspective, I can live without that, but building your code & creating the web.config and other necessary files is made far more difficult by not having IDE support. Along those lines, I feel the need to mention that MS has already said they are not going to be marketing IronRuby at all. They will put it out there and it will be up to us to market it. It's usage will depend on coming up with valid use cases for Ruby. ASP.NET MVC with IR is a great example. However, companies that already have an investment in C# or VB will likely stick with that. -Joe On Wed, Jun 18, 2008 at 10:27 AM, Softmind Technology wrote: > Hi, > > We are talking about pure IronRuby applications here. For Plain Ruby > development we already have many options > > The real fact is "Asp.Net MVC with IronRuby", needs a great IDE > support,the same way Vb.Net and C# needs today. > > Without IDE, it will take ages to create folders with MVC approach. > > If MSFT and IronRuby team are really serious about their first Open > Source Project, they should not neglect a great IDE. > > It would be really sad to lose large amount of ruby developers moving > away from .net without a good IDE support. > > CLR + DLR with great .net framework is the best thing happened to > us.MSFT should not kill this charm with a lack of good IDE. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayme.edwards at gmail.com Wed Jun 18 11:04:10 2008 From: jayme.edwards at gmail.com (Jayme) Date: Wed, 18 Jun 2008 10:04:10 -0500 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <73fd69b50806180759o209cb7eft6b145ca1b495cb10@mail.gmail.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> <5e4d13934ebe4d203a438402ceaf7ebd@ruby-forum.com> <73fd69b50806180759o209cb7eft6b145ca1b495cb10@mail.gmail.com> Message-ID: Having used C# since it came out, which I still feel is simply a more Microsoft-supported Java (the syntax is different but the flavor/approach is right there) I find ruby very refreshing. I will still use C# when I need to and am very proficient in it, but if IronRuby keeps the spirit of metaprogramming alive in its implementation I think folks who take the time to really learn it will adopt ruby in a heartbeat as their primary language. There are always those who go kicking and screaming to a new language/platform - I'm not talking about you :). -Jayme On Wed, Jun 18, 2008 at 9:59 AM, Joe Fiorini wrote: > As much as I hate to, I would have to agree that IDE support for IronRuby > with other .NET applications is a necessity. I've tried to do MVC > development in TextMate and I can say it's very difficult. Not from an > IntelliSense perspective, I can live without that, but building your code & > creating the web.config and other necessary files is made far more difficult > by not having IDE support. > Along those lines, I feel the need to mention that MS has already said they > are not going to be marketing IronRuby at all. They will put it out there > and it will be up to us to market it. It's usage will depend on coming up > with valid use cases for Ruby. ASP.NET MVC with IR is a > great example. However, companies that already have an investment in C# or > VB will likely stick with that. > > -Joe > > > On Wed, Jun 18, 2008 at 10:27 AM, Softmind Technology < > lists at ruby-forum.com> wrote: > >> Hi, >> >> We are talking about pure IronRuby applications here. For Plain Ruby >> development we already have many options >> >> The real fact is "Asp.Net MVC with IronRuby", needs a great IDE >> support,the same way Vb.Net and C# needs today. >> >> Without IDE, it will take ages to create folders with MVC approach. >> >> If MSFT and IronRuby team are really serious about their first Open >> Source Project, they should not neglect a great IDE. >> >> It would be really sad to lose large amount of ruby developers moving >> away from .net without a good IDE support. >> >> CLR + DLR with great .net framework is the best thing happened to >> us.MSFT should not kill this charm with a lack of good IDE. >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > > -- > joe fiorini > http://www.faithfulgeek.org > // freelancing & knowledge sharing > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Jun 18 11:09:45 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Wed, 18 Jun 2008 17:09:45 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <004f01c8d14d$c99d5f00$5cd81d00$@com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <004f01c8d14d$c99d5f00$5cd81d00$@com> Message-ID: Curtis Mitchell wrote: > 3. IMO, most .NET developers know very little about Ruby and even less > about > IronRuby right now. -------------------------------------------------------- Hi Curtis, I totally agree with you. I have checked with many .Net developers and very few are aware of IronRuby. IronPython 2.0 has reached beta 2.0 stage and yet its not promoted by DLR team. I have observed that Microsoft is in no mood to promote IronRuby at all. There are hardly few blogs seen regarding IronRuby and whatever blogs i have seen are from IronRuby lovers and contributors. Asp.Net team has ignored many requests of starting a section for IronRuby on Asp.Net Forums On one hand they invite experts like Jim and John to work for Ironpython and IronRuby, and on the other hand they ignore/waste their efforts by not promoting it. All i smell is something fishy in the case of DLR languages. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Jun 18 11:18:36 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Wed, 18 Jun 2008 17:18:36 +0200 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <73fd69b50806180759o209cb7eft6b145ca1b495cb10@mail.gmail.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> <5e4d13934ebe4d203a438402ceaf7ebd@ruby-forum.com> <73fd69b50806180759o209cb7eft6b145ca1b495cb10@mail.gmail.com> Message-ID: <4d47a1b1ea788e79be3710947f700df9@ruby-forum.com> Joe Fiorini wrote: > Along those lines, I feel the need to mention that MS has already said > they > are not going to be marketing IronRuby at all. They will put it out > there > and it will be up to us to market it. ---------------------------- Hi Joe, Very sad news indeed. I always had the same feeling about IronRuby being neglected badly by MSFT. Can you kindly post that link here that says "MS shall not be marketing IronRuby at all." Mr John Lam, What do you have to say here....? I am not dragging you in this conversation, just hoping you can focus and clear few doubts about the future of IronRuby with MS. -- Posted via http://www.ruby-forum.com/. From rbazinet at gmail.com Wed Jun 18 11:20:28 2008 From: rbazinet at gmail.com (Robert Bazinet) Date: Wed, 18 Jun 2008 11:20:28 -0400 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <004f01c8d14d$c99d5f00$5cd81d00$@com> Message-ID: Most corporate .NET developers live with their heads in the sand. IronRuby/Python are for a niche set of higher-level and often multi-platform developers, not your everyday "mort" which we find all too often. These developers often use VS IDE as a crutch instead of understanding the underlying libraries. The .NET framework is huge so this is tough to do BUT those who have been working with Ruby get used to the TextMate style of coding and it works. Once you are competant in the base Ruby libraries you are very efficient using TextMate. I am sure once Silverlight DLR and IronRuby is fully baked then we will see MS promote it better but it will never be a C#, simply for the mort factor. -Rob Bazinet On Wed, Jun 18, 2008 at 11:09 AM, Softmind Technology wrote: > Curtis Mitchell wrote: > > > 3. IMO, most .NET developers know very little about Ruby and even less > > about > > IronRuby right now. > > -------------------------------------------------------- > Hi Curtis, > > I totally agree with you. I have checked with many .Net developers and > very few are aware of IronRuby. IronPython 2.0 has reached beta 2.0 > stage and yet its not promoted by DLR team. > > I have observed that Microsoft is in no mood to promote IronRuby at all. > There are hardly few blogs seen regarding IronRuby and whatever blogs i > have seen are from IronRuby lovers and contributors. > > Asp.Net team has ignored many requests of starting a section for > IronRuby on Asp.Net Forums > > On one hand they invite experts like Jim and John to work for Ironpython > and IronRuby, and on the other hand they ignore/waste their efforts by > not promoting it. > > All i smell is something fishy in the case of DLR languages. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Rob Bazinet InfoQ Ruby and .NET Editor http://www.accidentaltechnologist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Wed Jun 18 12:00:22 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Wed, 18 Jun 2008 12:00:22 -0400 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: > > > > > I have to agree with Mike here. Ruby development with TextMate (a > > text editor only) works wonderfully, but I would be hesitant to > > develop C# applications in the same way. > It ain't so shabby in "e" either (TextMate clone for Windows) :) > > > ---------------------------------- > Majority of IronRuby developers will be using Ironruby for web designing > purpose, and working with Asp.Net MVC with IronRuby, a good IDE like VS > Express is a must. I don't know about this, I see a BIG future in IronRuby for scripting business logic written in other .NET languages. Developing DSLs for existing business logic that is already existing. > As much as I hate to, I would have to agree that IDE support for IronRuby > with other .NET applications is a necessity. I've tried to do MVC > development in TextMate and I can say it's very difficult. Not from an > IntelliSense perspective, I can live without that, but building your code & > creating the web.config and other necessary files is made far more difficult > by not having IDE support. > > That's what TextMate bundles are for! As for IronRuby being ignored by MS... I'm not sure about that, there's been alot of sexy Silverlight demos I've seen using IronRuby both by MSers and non MSers. But I don't think they're really going to consider pushing it until it hits a 1.0 release, IR still needs quite a bit of work. -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Wed Jun 18 12:08:56 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Wed, 18 Jun 2008 09:08:56 -0700 Subject: [Ironruby-core] Evil Fun with IronRuby In-Reply-To: <73fd69b50806180713k6c0e43a1q9b2b109230b252b8@mail.gmail.com> References: <73fd69b50806180713k6c0e43a1q9b2b109230b252b8@mail.gmail.com> Message-ID: We wouldn't be very true to Ruby if we didn't allow you to "monkey patch" CLR classes and interfaces. And really, this isn't all that different than using extension methods in C#. All classes in IronRuby have a "RubyClass" object associated with them, even if the class is being imported from the CLR. It's this object that defines and manages the Ruby aspects of the class implementation. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Joe Fiorini Sent: Wednesday, June 18, 2008 7:14 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Evil Fun with IronRuby Hey all, I posted the results of some recent experimenting with IronRuby to my blog at: http://faithfulgeek.org/2008/6/17/evil-fun-with-ironruby. My question is, how do these things work under the covers? Do .NET types that have a Ruby equivalent get treated as the Ruby type or is there an extra layer that allows any .NET type to be modified at runtime? It's totally cool that any of this is possible, but I was very surprised that it is. Thanks all! -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From curtismitchell at gmail.com Wed Jun 18 12:38:35 2008 From: curtismitchell at gmail.com (Curtis Mitchell) Date: Wed, 18 Jun 2008 12:38:35 -0400 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <004f01c8d14d$c99d5f00$5cd81d00$@com> Message-ID: <009101c8d161$c186f7e0$4494e7a0$@com> I suppose from the MSFT perspective, the IronX projects are a shot at doing something (mostly) community-driven. In a sense, marketing IronRuby or IronPython is a double-edge sword for MSFT. On one hand, the languages are bringing some great features to the .NET platform as a whole, but on the other hand, learning them will also increase a developer's ability (and possibly likeliness) to jump from .NET to Matz Ruby or CPython. When you consider (my assumption) that Ruby and Python programmers aren't as spirited about becoming .NET programmers, it's easier to justify MSFT's reluctance to market these projects. Aside from that controversial argument I just invented, the success of these projects really depend on us, the community. The Silverlight Machine will bring some adopters, but even those people will read our blogs and forum posts before taking the leap from C#. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Softmind Technology Sent: Wednesday, June 18, 2008 11:10 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives Curtis Mitchell wrote: > 3. IMO, most .NET developers know very little about Ruby and even less > about > IronRuby right now. -------------------------------------------------------- Hi Curtis, I totally agree with you. I have checked with many .Net developers and very few are aware of IronRuby. IronPython 2.0 has reached beta 2.0 stage and yet its not promoted by DLR team. I have observed that Microsoft is in no mood to promote IronRuby at all. There are hardly few blogs seen regarding IronRuby and whatever blogs i have seen are from IronRuby lovers and contributors. Asp.Net team has ignored many requests of starting a section for IronRuby on Asp.Net Forums On one hand they invite experts like Jim and John to work for Ironpython and IronRuby, and on the other hand they ignore/waste their efforts by not promoting it. All i smell is something fishy in the case of DLR languages. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From curth at microsoft.com Wed Jun 18 12:42:30 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Wed, 18 Jun 2008 09:42:30 -0700 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <304dd14dbde92a34790fe5bad9ae55d8@ruby-forum.com> Message-ID: From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Belcher > I've never worked on an IDE before, but the topic of how you > implement Intellisense for Ruby has always interested me. I > imagine it must be 100x harder to do it for Ruby than for C++ > (or maybe just use 100x more processing power). But I'm > thinking that the DLR must make such things much easier. Is > that the case? This is really a language-specific parsing issue and is therefore outside the realm of the DLR. The most basic approach for Intellisense is to extract the information from the ASTs, which I imagine is all that C# or VB have to do. The next is to take the ASTs and transform them by removing the "dangerous" parts. Then, you could actually run the simplified ASTs and introspect on the resulting object. This can be made increasingly "complete" by removing less and less stuff -- at greater and greater risk of creating a program that won't run to completion or will have undesirable side effects. To put this another way, I may need to run "initialize" in order for my object to express the proper methods -- but the code in "initialize" could well overwrite the OS for all I know. Any class that depends on method_missing (in Ruby) or __getattr__ (in Python) for method implementation is going to be problematic for Intellisense. And Rails' ActiveRecord is one of the most pathological cases I can imagine. -- Curt Hagenlocher curth at microsoft.com From curth at microsoft.com Wed Jun 18 12:58:43 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Wed, 18 Jun 2008 09:58:43 -0700 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: <009101c8d161$c186f7e0$4494e7a0$@com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <004f01c8d14d$c99d5f00$5cd81d00$@com> <009101c8d161$c186f7e0$4494e7a0$@com> Message-ID: We think that there's more than enough value on the .NET platform to retain developers. Quite frankly, if you're looking to write Ruby or Python code that doesn't take advantage of .NET features (such as cross-language interoperability, Windows Forms, WPF or Silverlight) then you're probably better off using the original "C" implementation of those languages -- and we have no interest in spending money trying to convince you otherwise. On the other hand, if you want to create a WPF app using Python, or embed a Ruby-based DSL for business rules inside your C# application, or write a rich internet application using either of these languages, then you're the developer that we're working hard to satisfy. And MRI and CPython aren't really alternatives in these scenarios. The success of *any* programming language or environment depends largely on the community that grows up around it. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curtis Mitchell Sent: Wednesday, June 18, 2008 9:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives I suppose from the MSFT perspective, the IronX projects are a shot at doing something (mostly) community-driven. In a sense, marketing IronRuby or IronPython is a double-edge sword for MSFT. On one hand, the languages are bringing some great features to the .NET platform as a whole, but on the other hand, learning them will also increase a developer's ability (and possibly likeliness) to jump from .NET to Matz Ruby or CPython. When you consider (my assumption) that Ruby and Python programmers aren't as spirited about becoming .NET programmers, it's easier to justify MSFT's reluctance to market these projects. Aside from that controversial argument I just invented, the success of these projects really depend on us, the community. The Silverlight Machine will bring some adopters, but even those people will read our blogs and forum posts before taking the leap from C#. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Softmind Technology Sent: Wednesday, June 18, 2008 11:10 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives Curtis Mitchell wrote: > 3. IMO, most .NET developers know very little about Ruby and even less > about > IronRuby right now. -------------------------------------------------------- Hi Curtis, I totally agree with you. I have checked with many .Net developers and very few are aware of IronRuby. IronPython 2.0 has reached beta 2.0 stage and yet its not promoted by DLR team. I have observed that Microsoft is in no mood to promote IronRuby at all. There are hardly few blogs seen regarding IronRuby and whatever blogs i have seen are from IronRuby lovers and contributors. Asp.Net team has ignored many requests of starting a section for IronRuby on Asp.Net Forums On one hand they invite experts like Jim and John to work for Ironpython and IronRuby, and on the other hand they ignore/waste their efforts by not promoting it. All i smell is something fishy in the case of DLR languages. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From blowmage at gmail.com Wed Jun 18 13:22:33 2008 From: blowmage at gmail.com (Mike Moore) Date: Wed, 18 Jun 2008 11:22:33 -0600 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <004f01c8d14d$c99d5f00$5cd81d00$@com> <009101c8d161$c186f7e0$4494e7a0$@com> Message-ID: On Wed, Jun 18, 2008 at 10:58 AM, Curt Hagenlocher wrote: > We think that there's more than enough value on the .NET platform to retain > developers. > > Quite frankly, if you're looking to write Ruby or Python code that doesn't > take advantage of .NET features (such as cross-language interoperability, > Windows Forms, WPF or Silverlight) then you're probably better off using the > original "C" implementation of those languages -- and we have no interest in > spending money trying to convince you otherwise. > > On the other hand, if you want to create a WPF app using Python, or embed a > Ruby-based DSL for business rules inside your C# application, or write a > rich internet application using either of these languages, then you're the > developer that we're working hard to satisfy. And MRI and CPython aren't > really alternatives in these scenarios. > Don't forget the folks who for one reason or another are tied to Windows as a platform. My hope is that IronRuby is Ruby enough to replace MRI, so I don't have to mentally switch back and forth from implementation to implementation when I have a need for .NET interop. Also, I think there are alot of developers who desperately want to be able to easily deploy Django or Rails apps on IIS7. Easily meaning minimal fuss and not having to involve the sysadmin folks. I know this is not a stated goal, but if you could demonstrate easy deployment and show a significant performance improvement you/Microsoft may actually gain new users. The success of *any* programming language or environment depends largely on > the community that grows up around it. > Agreed. I think some on this thread have been too harsh on Microsoft about marketing or promoting IronRuby. I think that it is too early to start that process. I'm surprised how uneasy some are feeling about Microsoft's plans or lack of plans for their DLR-based languages. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Wed Jun 18 13:45:06 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Wed, 18 Jun 2008 10:45:06 -0700 Subject: [Ironruby-core] Understanding Open Source development (WAS: long rambling thread about random stuff) In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <6f39209dd059aa2ec1897632184710fd@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <004f01c8d14d$c99d5f00$5cd81d00$@com> <009101c8d161$c186f7e0$4494e7a0$@com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD394F57B@NA-EXMSG-C115.redmond.corp.microsoft.com> IronRuby is released as an Open Source project today, because we are interested in attracting contributors to help us finish the implementation. We have gotten some awesome contributions from folks in the community, and I thank you all for your continued help and support. IronRuby is not ready for folks to *use*; this is why we haven't released binaries yet. We have a lot of work to do to improve our working set, our startup time, and our throughput. When we have acceptable quality around those numbers, we will begin releasing binaries and marking them as "Alphas", "Betas", "RCs" etc. At that time I'll talk more about plans for the future. There are folks on this list who are interested in becoming users of the language, as opposed to contributors. To you early adopters, I applaud your courage :) You can help us out by answering questions on the forums, filing bug reports, writing FAQs, maintaining the wiki, twittering, blogging etc. But let's turn our attention back to the work at hand - finishing IronRuby. You can all help out in your own way. Before posting, however, ask yourself - is what you're posting helping to move IronRuby forward in a constructive way? Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbazinet at gmail.com Wed Jun 18 13:52:09 2008 From: rbazinet at gmail.com (Robert Bazinet) Date: Wed, 18 Jun 2008 13:52:09 -0400 Subject: [Ironruby-core] Understanding Open Source development (WAS: long rambling thread about random stuff) In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD394F57B@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <004f01c8d14d$c99d5f00$5cd81d00$@com> <009101c8d161$c186f7e0$4494e7a0$@com> <372109E149E8084D8E6C7D9CFD82E0632FD394F57B@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Nice post John. I could not agree more. This is true of IronRuby and any open source project, we should be doing things to move forward not laterally by complaining what is not there or what is not being done for you. This is a great project and we all have the ability to contribute. Microsoft has not opened up to outside contribution until recently and this should be applauded and supported. -Rob Bazinet On Wed, Jun 18, 2008 at 1:45 PM, John Lam (IRONRUBY) wrote: > IronRuby is released as an Open Source project today, because we are > interested in attracting contributors to help us finish the implementation. > We have gotten some awesome contributions from folks in the community, and I > thank you all for your continued help and support. > > > > IronRuby is not ready for folks to **use**; this is why we haven't > released binaries yet. We have a lot of work to do to improve our working > set, our startup time, and our throughput. When we have acceptable quality > around those numbers, we will begin releasing binaries and marking them as > "Alphas", "Betas", "RCs" etc. At that time I'll talk more about plans for > the future. > > > > There are folks on this list who are interested in becoming users of the > language, as opposed to contributors. To you early adopters, I applaud your > courage J You can help us out by answering questions on the forums, filing > bug reports, writing FAQs, maintaining the wiki, twittering, blogging etc. > But let's turn our attention back to the work at hand ? finishing IronRuby. > You can all help out in your own way. > > > > Before posting, however, ask yourself ? is what you're posting helping to > move IronRuby forward in a constructive way? > > > > Thanks, > > -John > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Rob Bazinet InfoQ Ruby and .NET Editor http://www.accidentaltechnologist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Wed Jun 18 13:56:49 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Wed, 18 Jun 2008 13:56:49 -0400 Subject: [Ironruby-core] Understanding Open Source development (WAS: long rambling thread about random stuff) In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD394F57B@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <004f01c8d14d$c99d5f00$5cd81d00$@com> <009101c8d161$c186f7e0$4494e7a0$@com> <372109E149E8084D8E6C7D9CFD82E0632FD394F57B@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: John, Just throwing this out there to get your take.... Do you think it's time to add an IronRuby-users or an IronRuby-talk ? Yes it's not ready for prime time yet, but there are obviously alot of people interested in just using it, perhaps an offical outlet for their thoughts without cluttering up the core mailing list could be insightful... On Wed, Jun 18, 2008 at 1:45 PM, John Lam (IRONRUBY) wrote: > IronRuby is released as an Open Source project today, because we are > interested in attracting contributors to help us finish the implementation. > We have gotten some awesome contributions from folks in the community, and I > thank you all for your continued help and support. > > > > IronRuby is not ready for folks to **use**; this is why we haven't > released binaries yet. We have a lot of work to do to improve our working > set, our startup time, and our throughput. When we have acceptable quality > around those numbers, we will begin releasing binaries and marking them as > "Alphas", "Betas", "RCs" etc. At that time I'll talk more about plans for > the future. > > > > There are folks on this list who are interested in becoming users of the > language, as opposed to contributors. To you early adopters, I applaud your > courage J You can help us out by answering questions on the forums, filing > bug reports, writing FAQs, maintaining the wiki, twittering, blogging etc. > But let's turn our attention back to the work at hand ? finishing IronRuby. > You can all help out in your own way. > > > > Before posting, however, ask yourself ? is what you're posting helping to > move IronRuby forward in a constructive way? > > > > Thanks, > > -John > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Wed Jun 18 16:33:04 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Wed, 18 Jun 2008 16:33:04 -0400 Subject: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives In-Reply-To: References: <49bac34b24a85a263cd876ec85525942@ruby-forum.com> <4858DB34.4020504@voidspace.org.uk> <004f01c8d14d$c99d5f00$5cd81d00$@com> <009101c8d161$c186f7e0$4494e7a0$@com> Message-ID: <73fd69b50806181333i594aec2eyaac178c00e15362d@mail.gmail.com> > > Agreed. I think some on this thread have been too harsh on Microsoft about > marketing or promoting IronRuby. I think that it is too early to start that > process. I'm surprised how uneasy some are feeling about Microsoft's plans > or lack of plans for their DLR-based languages. I completely agree that it's way too early to be marketing IR. However, my comment above came from what I heard from people "in the know" in the Ruby community, who said that Microsoft won't be putting any marketing dollars into IR once it's released. The impetus needs to come from us, the community. Sure, there may be some documentation and samples of how to use it with other MS products, but that's different than marketing. -Joe On Wed, Jun 18, 2008 at 1:22 PM, Mike Moore wrote: > On Wed, Jun 18, 2008 at 10:58 AM, Curt Hagenlocher > wrote: > >> We think that there's more than enough value on the .NET platform to >> retain developers. >> >> Quite frankly, if you're looking to write Ruby or Python code that doesn't >> take advantage of .NET features (such as cross-language interoperability, >> Windows Forms, WPF or Silverlight) then you're probably better off using the >> original "C" implementation of those languages -- and we have no interest in >> spending money trying to convince you otherwise. >> >> On the other hand, if you want to create a WPF app using Python, or embed >> a Ruby-based DSL for business rules inside your C# application, or write a >> rich internet application using either of these languages, then you're the >> developer that we're working hard to satisfy. And MRI and CPython aren't >> really alternatives in these scenarios. >> > > Don't forget the folks who for one reason or another are tied to Windows as > a platform. My hope is that IronRuby is Ruby enough to replace MRI, so I > don't have to mentally switch back and forth from implementation to > implementation when I have a need for .NET interop. > > Also, I think there are alot of developers who desperately want to be able > to easily deploy Django or Rails apps on IIS7. Easily meaning minimal fuss > and not having to involve the sysadmin folks. I know this is not a stated > goal, but if you could demonstrate easy deployment and show a significant > performance improvement you/Microsoft may actually gain new users. > > The success of *any* programming language or environment depends largely on >> the community that grows up around it. >> > > Agreed. I think some on this thread have been too harsh on Microsoft about > marketing or promoting IronRuby. I think that it is too early to start that > process. I'm surprised how uneasy some are feeling about Microsoft's plans > or lack of plans for their DLR-based languages. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Wed Jun 18 17:50:16 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Wed, 18 Jun 2008 14:50:16 -0700 Subject: [Ironruby-core] CLR 2.0 SP1 will be the new baseline requirement to run IronRuby Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD394F7CC@NA-EXMSG-C115.redmond.corp.microsoft.com> The DLR is going to be taking a dependency on CLR 2.0 SP1 in the coming weeks: http://support.microsoft.com/kb/945757. CLR 2.0 SP1 (version 2.0.50727.1433) shipped back in November of 2007, and is available as a standalone download, and is included with .Net Framework 3.5. It includes a number of important bug fixes in it that let us take out some workarounds in our codebase. We'll be putting in runtime checks in our codebase to guard against running in CLR 2.0, since this will cause code to blow up at runtime inside of our dynamic sites. We are also going to be transitioning to C# 3.0 syntax in our sources as well, although there won't be a dependency taken on System.Core, which means that CLR 2.0 SP1 is all that users will need to have installed to run IronRuby. Please let us know if you foresee problems with these changes. Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Wed Jun 18 19:00:31 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Wed, 18 Jun 2008 16:00:31 -0700 Subject: [Ironruby-core] Code Review: ExitFix Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD394F873@NA-EXMSG-C115.redmond.corp.microsoft.com> tfpt review "/shelveset:ExitFix;REDMOND\jflam" Comment : Fix for bug in exit - exit(int) now returns the value of int This is a simple fix for the behavior of exit! and exit. We were not returning non-zero exit codes correctly for calls to exit. -------------- next part -------------- A non-text attachment was scrubbed... Name: ExitFix.diff Type: application/octet-stream Size: 4950 bytes Desc: ExitFix.diff URL: From joe at faithfulgeek.org Wed Jun 18 23:19:14 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Wed, 18 Jun 2008 23:19:14 -0400 Subject: [Ironruby-core] CLR 2.0 SP1 will be the new baseline requirement to run IronRuby In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD394F7CC@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD394F7CC@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <73fd69b50806182019m62c5f224kc920b8691db2d72d@mail.gmail.com> Don't mean to ask a stupid question, but will this affect running on Mono at all? Thanks! Joe On Wed, Jun 18, 2008 at 5:50 PM, John Lam (IRONRUBY) wrote: > The DLR is going to be taking a dependency on CLR 2.0 SP1 in the coming > weeks: http://support.microsoft.com/kb/945757. CLR 2.0 SP1 (version > 2.0.50727.1433) shipped back in November of 2007, and is available as a > standalone download, and is included with .Net Framework 3.5. It includes a > number of important bug fixes in it that let us take out some workarounds in > our codebase. We'll be putting in runtime checks in our codebase to guard > against running in CLR 2.0, since this will cause code to blow up at runtime > inside of our dynamic sites. > > > > We are also going to be transitioning to C# 3.0 syntax in our sources as > well, although there won't be a dependency taken on System.Core, which means > that CLR 2.0 SP1 is all that users will need to have installed to run > IronRuby. > > > > Please let us know if you foresee problems with these changes. > > > > Thanks, > > -John > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From sanxiyn at gmail.com Thu Jun 19 00:20:25 2008 From: sanxiyn at gmail.com (Sanghyeon Seo) Date: Thu, 19 Jun 2008 13:20:25 +0900 Subject: [Ironruby-core] CLR 2.0 SP1 will be the new baseline requirement to run IronRuby In-Reply-To: <73fd69b50806182019m62c5f224kc920b8691db2d72d@mail.gmail.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD394F7CC@NA-EXMSG-C115.redmond.corp.microsoft.com> <73fd69b50806182019m62c5f224kc920b8691db2d72d@mail.gmail.com> Message-ID: <5b0248170806182120o528613fhe46eb9e862619c65@mail.gmail.com> 2008/6/19 Joe Fiorini : > Don't mean to ask a stupid question, but will this affect running on Mono at > all? I don't think so. -- Seo Sanghyeon From jflam at microsoft.com Thu Jun 19 00:56:26 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Wed, 18 Jun 2008 21:56:26 -0700 Subject: [Ironruby-core] CLR 2.0 SP1 will be the new baseline requirement to run IronRuby In-Reply-To: <73fd69b50806182019m62c5f224kc920b8691db2d72d@mail.gmail.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD394F7CC@NA-EXMSG-C115.redmond.corp.microsoft.com> <73fd69b50806182019m62c5f224kc920b8691db2d72d@mail.gmail.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD394F992@NA-EXMSG-C115.redmond.corp.microsoft.com> Joe Fiorini: > Don't mean to ask a stupid question, but will this affect running on > Mono at all? In my experience, Open Source folks tend to be less about 'release N' vs. running off of the latest bits. In the MSFT world, which bits you deploy on are much more important. I would hope that they have those fixes in place, if not we'll break them and they'll fix it in short order :) -John From Tomas.Matousek at microsoft.com Thu Jun 19 14:24:26 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 19 Jun 2008 11:24:26 -0700 Subject: [Ironruby-core] Code Review: ExitFix In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD394F873@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD394F873@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Looks good. Tomas -----Original Message----- From: John Lam (IRONRUBY) Sent: Wednesday, June 18, 2008 4:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: ExitFix tfpt review "/shelveset:ExitFix;REDMOND\jflam" Comment : Fix for bug in exit - exit(int) now returns the value of int This is a simple fix for the behavior of exit! and exit. We were not returning non-zero exit codes correctly for calls to exit. From ivan at flanders.co.nz Thu Jun 19 16:42:10 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 20 Jun 2008 08:42:10 +1200 Subject: [Ironruby-core] Fwd: Alt.NET Podcast: IronRuby In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Ivan Porto Carrero Date: Thu, Jun 19, 2008 at 11:20 PM Subject: Re: Alt.NET Podcast: IronRuby To: Aaron Junod Sure I'm up for it. I'm in New Zealand though. So I would need to know timezone etc to figure out if I can. Cheers Ivam On Thu, Jun 19, 2008 at 11:14 PM, Aaron Junod wrote: > Thanks for the opportunity, I would love to participate in the podcast. > 9:00MDT on a weeknight would be tough for me, I'm usually asleep before > that. I could definitely make an exception, or weekend/earlier would work as > well. > > Thanks > > Aaron > > On Wed, Jun 18, 2008 at 12:34 PM, Mike Moore wrote: > >> I'm thinking sometime next week or the week after. I am mostly available >> at night, ~9:00 MDT. Where are you all at and when are you free? >> >> Most podcast recordings go ~90 minutes, and I've been lucky to pull two 30 >> minute episodes out of that. But I am open to going shorter or longer >> depending on what you guys want to cover and discuss. >> >> >> On Wed, Jun 18, 2008 at 10:24 AM, Michael Letterle < >> michael.letterle at gmail.com> wrote: >> >>> I'm up for it. When were you thinking? >>> >>> >>> On Wed, Jun 18, 2008 at 12:11 PM, Mike Moore wrote: >>> >>>> Hey guys, I run the Alt.NET Podcast and I'd really like to get an >>>> episode or two on what IronRuby is, where it is at, and why it is important. >>>> Do any of you identify with Alt.NET enough to record a podcast on the >>>> subject? >>>> >>>> ~Mike >>>> >>> >>> >>> >>> -- >>> Michael Letterle >>> [Polymath Prokrammer] >>> http://blog.prokrams.com >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh.charles at gmail.com Thu Jun 19 16:49:13 2008 From: josh.charles at gmail.com (Josh Charles) Date: Thu, 19 Jun 2008 15:49:13 -0500 Subject: [Ironruby-core] IIS Deployment Message-ID: Hello All, I have a Ruby on Rails codebase that is only partially completed. Due to circumstances beyond my control, the production server must be IIS, and there is absolutely no way to change this. Deployment is currently due in mid August, basically two months away. My question is this. What are the chances the IronRuby project will be ready to handle something like this at that point in time? Should I basically take what we have and rewrite it in something like ASP.NET MVC? I've spent sometime working and thinking about ways to make this happen. My approach, which is probably terrible, was to take the Web.Routing assembly in a regular ASP.NET application, create a catch-all route and pass all the information to the dispatch.rb file. Granted, I haven't actually got this to work, and this is probably a horrible way to do this. In any case, with deployment two months away, I need to make the decision now to stick with Rails, or make the switch over... Sincerely, Josh From ivan at flanders.co.nz Thu Jun 19 16:55:11 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 20 Jun 2008 08:55:11 +1200 Subject: [Ironruby-core] IIS Deployment In-Reply-To: References: Message-ID: I think august is cutting it a little close. I have no idea how much time you've already spent on it, so dunno if a rewrite in a diff technology is the way to go. And you can deploy RoR to IIS. If you want I can send you a white paper. THe idea is that you forward all the requests to a mongrel. I haven't had much luck with the FastCGI that the IIS team provides. It just doesn't want to do it for me. But using mongrels/thin does work for me. When IronRuby then comes into its own you can always switch to run that app on IronRuby \ my 2c. Cheers Ivan On Fri, Jun 20, 2008 at 8:49 AM, Josh Charles wrote: > Hello All, > > I have a Ruby on Rails codebase that is only partially completed. Due > to circumstances beyond my control, the production server must be IIS, > and there is absolutely no way to change this. Deployment is > currently due in mid August, basically two months away. My question > is this. What are the chances the IronRuby project will be ready to > handle something like this at that point in time? Should I basically > take what we have and rewrite it in something like ASP.NET MVC? > > I've spent sometime working and thinking about ways to make this > happen. My approach, which is probably terrible, was to take the > Web.Routing assembly in a regular ASP.NET application, create a > catch-all route and pass all the information to the dispatch.rb file. > Granted, I haven't actually got this to work, and this is probably a > horrible way to do this. > > In any case, with deployment two months away, I need to make the > decision now to stick with Rails, or make the switch over... > > Sincerely, > Josh > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Thu Jun 19 17:00:08 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Thu, 19 Jun 2008 17:00:08 -0400 Subject: [Ironruby-core] Fwd: Alt.NET Podcast: IronRuby In-Reply-To: References: Message-ID: <73fd69b50806191400k2839f53foa306378623fa1539@mail.gmail.com> I would be interested as well. Maybe it would be a good panel discussion about the uses of IronRuby and what it's going to look like eventually. -Joe On Thu, Jun 19, 2008 at 4:42 PM, Ivan Porto Carrero wrote: > > > ---------- Forwarded message ---------- > From: Ivan Porto Carrero > Date: Thu, Jun 19, 2008 at 11:20 PM > Subject: Re: Alt.NET Podcast: IronRuby > To: Aaron Junod > > > Sure I'm up for it. > I'm in New Zealand though. So I would need to know timezone etc to figure > out if I can. > > Cheers > Ivam > > > On Thu, Jun 19, 2008 at 11:14 PM, Aaron Junod wrote: > >> Thanks for the opportunity, I would love to participate in the podcast. >> 9:00MDT on a weeknight would be tough for me, I'm usually asleep before >> that. I could definitely make an exception, or weekend/earlier would work as >> well. >> >> Thanks >> >> Aaron >> >> On Wed, Jun 18, 2008 at 12:34 PM, Mike Moore wrote: >> >>> I'm thinking sometime next week or the week after. I am mostly available >>> at night, ~9:00 MDT. Where are you all at and when are you free? >>> >>> Most podcast recordings go ~90 minutes, and I've been lucky to pull two >>> 30 minute episodes out of that. But I am open to going shorter or longer >>> depending on what you guys want to cover and discuss. >>> >>> >>> On Wed, Jun 18, 2008 at 10:24 AM, Michael Letterle < >>> michael.letterle at gmail.com> wrote: >>> >>>> I'm up for it. When were you thinking? >>>> >>>> >>>> On Wed, Jun 18, 2008 at 12:11 PM, Mike Moore wrote: >>>> >>>>> Hey guys, I run the Alt.NET Podcast and I'd really like to get an >>>>> episode or two on what IronRuby is, where it is at, and why it is important. >>>>> Do any of you identify with Alt.NET enough to record a podcast on the >>>>> subject? >>>>> >>>>> ~Mike >>>>> >>>> >>>> >>>> >>>> -- >>>> Michael Letterle >>>> [Polymath Prokrammer] >>>> http://blog.prokrams.com >>>> >>>> >>> >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Thu Jun 19 17:02:31 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Thu, 19 Jun 2008 17:02:31 -0400 Subject: [Ironruby-core] Fwd: Alt.NET Podcast: IronRuby In-Reply-To: <73fd69b50806191400k2839f53foa306378623fa1539@mail.gmail.com> References: <73fd69b50806191400k2839f53foa306378623fa1539@mail.gmail.com> Message-ID: <73fd69b50806191402q158d3b2chb961f1c4707c3e5a@mail.gmail.com> Not sure which version of IIS you are running, but Mike Volodarsky, a former IIS Team Member, has a guide to running RoR on IIS on his blog: http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx . HTH! Joe On Thu, Jun 19, 2008 at 5:00 PM, Joe Fiorini wrote: > I would be interested as well. Maybe it would be a good panel discussion > about the uses of IronRuby and what it's going to look like eventually. > -Joe > > On Thu, Jun 19, 2008 at 4:42 PM, Ivan Porto Carrero > wrote: > >> >> >> ---------- Forwarded message ---------- >> From: Ivan Porto Carrero >> Date: Thu, Jun 19, 2008 at 11:20 PM >> Subject: Re: Alt.NET Podcast: IronRuby >> To: Aaron Junod >> >> >> Sure I'm up for it. >> I'm in New Zealand though. So I would need to know timezone etc to figure >> out if I can. >> >> Cheers >> Ivam >> >> >> On Thu, Jun 19, 2008 at 11:14 PM, Aaron Junod wrote: >> >>> Thanks for the opportunity, I would love to participate in the podcast. >>> 9:00MDT on a weeknight would be tough for me, I'm usually asleep before >>> that. I could definitely make an exception, or weekend/earlier would work as >>> well. >>> >>> Thanks >>> >>> Aaron >>> >>> On Wed, Jun 18, 2008 at 12:34 PM, Mike Moore wrote: >>> >>>> I'm thinking sometime next week or the week after. I am mostly available >>>> at night, ~9:00 MDT. Where are you all at and when are you free? >>>> >>>> Most podcast recordings go ~90 minutes, and I've been lucky to pull two >>>> 30 minute episodes out of that. But I am open to going shorter or longer >>>> depending on what you guys want to cover and discuss. >>>> >>>> >>>> On Wed, Jun 18, 2008 at 10:24 AM, Michael Letterle < >>>> michael.letterle at gmail.com> wrote: >>>> >>>>> I'm up for it. When were you thinking? >>>>> >>>>> >>>>> On Wed, Jun 18, 2008 at 12:11 PM, Mike Moore >>>>> wrote: >>>>> >>>>>> Hey guys, I run the Alt.NET Podcast and I'd really like to get an >>>>>> episode or two on what IronRuby is, where it is at, and why it is important. >>>>>> Do any of you identify with Alt.NET enough to record a podcast on the >>>>>> subject? >>>>>> >>>>>> ~Mike >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Michael Letterle >>>>> [Polymath Prokrammer] >>>>> http://blog.prokrams.com >>>>> >>>>> >>>> >>> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > joe fiorini > http://www.faithfulgeek.org > // freelancing & knowledge sharing > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Thu Jun 19 17:02:57 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Thu, 19 Jun 2008 17:02:57 -0400 Subject: [Ironruby-core] Fwd: Alt.NET Podcast: IronRuby In-Reply-To: <73fd69b50806191402q158d3b2chb961f1c4707c3e5a@mail.gmail.com> References: <73fd69b50806191400k2839f53foa306378623fa1539@mail.gmail.com> <73fd69b50806191402q158d3b2chb961f1c4707c3e5a@mail.gmail.com> Message-ID: <73fd69b50806191402r3465fa0ejef32041ad59618d0@mail.gmail.com> Ignore that previous message, that went to the wrong thread. Sorry about that. On Thu, Jun 19, 2008 at 5:02 PM, Joe Fiorini wrote: > Not sure which version of IIS you are running, but Mike Volodarsky, a > former IIS Team Member, has a guide to running RoR on IIS on his blog: > http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx > . > HTH! > Joe > > > On Thu, Jun 19, 2008 at 5:00 PM, Joe Fiorini wrote: > >> I would be interested as well. Maybe it would be a good panel discussion >> about the uses of IronRuby and what it's going to look like eventually. >> -Joe >> >> On Thu, Jun 19, 2008 at 4:42 PM, Ivan Porto Carrero >> wrote: >> >>> >>> >>> ---------- Forwarded message ---------- >>> From: Ivan Porto Carrero >>> Date: Thu, Jun 19, 2008 at 11:20 PM >>> Subject: Re: Alt.NET Podcast: IronRuby >>> To: Aaron Junod >>> >>> >>> Sure I'm up for it. >>> I'm in New Zealand though. So I would need to know timezone etc to figure >>> out if I can. >>> >>> Cheers >>> Ivam >>> >>> >>> On Thu, Jun 19, 2008 at 11:14 PM, Aaron Junod wrote: >>> >>>> Thanks for the opportunity, I would love to participate in the podcast. >>>> 9:00MDT on a weeknight would be tough for me, I'm usually asleep before >>>> that. I could definitely make an exception, or weekend/earlier would work as >>>> well. >>>> >>>> Thanks >>>> >>>> Aaron >>>> >>>> On Wed, Jun 18, 2008 at 12:34 PM, Mike Moore wrote: >>>> >>>>> I'm thinking sometime next week or the week after. I am mostly >>>>> available at night, ~9:00 MDT. Where are you all at and when are you free? >>>>> >>>>> Most podcast recordings go ~90 minutes, and I've been lucky to pull two >>>>> 30 minute episodes out of that. But I am open to going shorter or longer >>>>> depending on what you guys want to cover and discuss. >>>>> >>>>> >>>>> On Wed, Jun 18, 2008 at 10:24 AM, Michael Letterle < >>>>> michael.letterle at gmail.com> wrote: >>>>> >>>>>> I'm up for it. When were you thinking? >>>>>> >>>>>> >>>>>> On Wed, Jun 18, 2008 at 12:11 PM, Mike Moore >>>>>> wrote: >>>>>> >>>>>>> Hey guys, I run the Alt.NET Podcast and I'd really like to get an >>>>>>> episode or two on what IronRuby is, where it is at, and why it is important. >>>>>>> Do any of you identify with Alt.NET enough to record a podcast on the >>>>>>> subject? >>>>>>> >>>>>>> ~Mike >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Michael Letterle >>>>>> [Polymath Prokrammer] >>>>>> http://blog.prokrams.com >>>>>> >>>>>> >>>>> >>>> >>> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> >> -- >> joe fiorini >> http://www.faithfulgeek.org >> // freelancing & knowledge sharing >> > > > > -- > joe fiorini > http://www.faithfulgeek.org > // freelancing & knowledge sharing > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Thu Jun 19 17:03:56 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Thu, 19 Jun 2008 17:03:56 -0400 Subject: [Ironruby-core] IIS Deployment In-Reply-To: References: Message-ID: <73fd69b50806191403g7949939dibb74be74732ae0e0@mail.gmail.com> Not sure which version of IIS you are running, but Mike Volodarsky, a former IIS Team Member, has a guide to running RoR on IIS on his blog: http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx . HTH! Joe On Thu, Jun 19, 2008 at 4:55 PM, Ivan Porto Carrero wrote: > I think august is cutting it a little close. I have no idea how much time > you've already spent on it, so dunno if a rewrite in a diff technology is > the way to go. And you can deploy RoR to IIS. If you want I can send you a > white paper. THe idea is that you forward all the requests to a mongrel. > I haven't had much luck with the FastCGI that the IIS team provides. It > just doesn't want to do it for me. But using mongrels/thin does work for > me. > > When IronRuby then comes into its own you can always switch to run that app > on IronRuby \ > > my 2c. > > Cheers > Ivan > > > On Fri, Jun 20, 2008 at 8:49 AM, Josh Charles > wrote: > >> Hello All, >> >> I have a Ruby on Rails codebase that is only partially completed. Due >> to circumstances beyond my control, the production server must be IIS, >> and there is absolutely no way to change this. Deployment is >> currently due in mid August, basically two months away. My question >> is this. What are the chances the IronRuby project will be ready to >> handle something like this at that point in time? Should I basically >> take what we have and rewrite it in something like ASP.NET MVC? >> >> I've spent sometime working and thinking about ways to make this >> happen. My approach, which is probably terrible, was to take the >> Web.Routing assembly in a regular ASP.NET application, create a >> catch-all route and pass all the information to the dispatch.rb file. >> Granted, I haven't actually got this to work, and this is probably a >> horrible way to do this. >> >> In any case, with deployment two months away, I need to make the >> decision now to stick with Rails, or make the switch over... >> >> Sincerely, >> Josh >> _______________________________________________ >> 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 > > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh.charles at gmail.com Thu Jun 19 17:18:19 2008 From: josh.charles at gmail.com (Josh Charles) Date: Thu, 19 Jun 2008 16:18:19 -0500 Subject: [Ironruby-core] IIS Deployment In-Reply-To: <73fd69b50806191403g7949939dibb74be74732ae0e0@mail.gmail.com> References: <73fd69b50806191403g7949939dibb74be74732ae0e0@mail.gmail.com> Message-ID: Thank you both for your replies. There's only about 40 man-hours in the project so far, so it is possible (though unpreferable) to do a rewrite in MVC. I have looked at the papers on running Rails on IIS using both mongrel and fast-cgi, but unfortunately, both of these are unfeasible. The deployment is going to be a sub-site for a public university. Originally, it didn't seem like it would be a problem to have a linux server setup, but now things are being locked down tight, so basically, all I'm going to have access to is x-copy deployment (and a database script that can be run). So I won't have any access to the server, and the servers guys have absolutely no interest in supporting anything they don't already support. So basically, IIS and SQL Server is what I get. I had already been looking at the IronRuby project, so I thought I would go ahead and ask. Thanks again, Sincerely, Josh On Thu, Jun 19, 2008 at 4:03 PM, Joe Fiorini wrote: > Not sure which version of IIS you are running, but Mike Volodarsky, a former > IIS Team Member, has a guide to running RoR on IIS on his > blog: http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx. > HTH! > Joe > On Thu, Jun 19, 2008 at 4:55 PM, Ivan Porto Carrero > wrote: >> >> I think august is cutting it a little close. I have no idea how much time >> you've already spent on it, so dunno if a rewrite in a diff technology is >> the way to go. And you can deploy RoR to IIS. If you want I can send you a >> white paper. THe idea is that you forward all the requests to a mongrel. >> I haven't had much luck with the FastCGI that the IIS team provides. It >> just doesn't want to do it for me. But using mongrels/thin does work for >> me. >> >> When IronRuby then comes into its own you can always switch to run that >> app on IronRuby \ >> >> my 2c. >> >> Cheers >> Ivan >> >> On Fri, Jun 20, 2008 at 8:49 AM, Josh Charles >> wrote: >>> >>> Hello All, >>> >>> I have a Ruby on Rails codebase that is only partially completed. Due >>> to circumstances beyond my control, the production server must be IIS, >>> and there is absolutely no way to change this. Deployment is >>> currently due in mid August, basically two months away. My question >>> is this. What are the chances the IronRuby project will be ready to >>> handle something like this at that point in time? Should I basically >>> take what we have and rewrite it in something like ASP.NET MVC? >>> >>> I've spent sometime working and thinking about ways to make this >>> happen. My approach, which is probably terrible, was to take the >>> Web.Routing assembly in a regular ASP.NET application, create a >>> catch-all route and pass all the information to the dispatch.rb file. >>> Granted, I haven't actually got this to work, and this is probably a >>> horrible way to do this. >>> >>> In any case, with deployment two months away, I need to make the >>> decision now to stick with Rails, or make the switch over... >>> >>> Sincerely, >>> Josh >>> _______________________________________________ >>> 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 >> > > > > -- > joe fiorini > http://www.faithfulgeek.org > // freelancing & knowledge sharing > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From lists at ruby-forum.com Thu Jun 19 17:45:17 2008 From: lists at ruby-forum.com (Gggg Gggggg) Date: Thu, 19 Jun 2008 23:45:17 +0200 Subject: [Ironruby-core] New blog In-Reply-To: References: Message-ID: nice blog..good luck) --------------------------------------------- support @ greerdesign.net support @ GSDIZ.COM -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Thu Jun 19 18:33:10 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 20 Jun 2008 10:33:10 +1200 Subject: [Ironruby-core] YAML Message-ID: Hi Is yaml supposed to be working atm because when I try it, it definitely does some weird things. When I run the tests there is one test that fails the yamlorg_refcard.yml. And this is my test. >>> require 'yaml' => true >>> $t = {:one => "one val", :two => { :nested_first => "nested val" } } => {:one=>"one val", :two=>{:nested_first=>"nested val"}} >>> $y = YAML::dump $t => "\n--- !ruby/object:Hash\n!ruby/object:Symbol :one: !ruby/object:String one val\n!ruby/object:Symbol :two: !ruby/obje ct:Hash\n !ruby/object:Symbol :nested_first: !ruby/object:String nested val\n" >>> $r = YAML::load $y => # >>> $r == $t => false >>> $r[:one] :0:in `Initialize': undefined local variable or method `[]' for #:Ru by::StandardLibrary::Yaml::PrivateType (NoMethodError) -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at faithfulgeek.org Thu Jun 19 18:37:49 2008 From: joe at faithfulgeek.org (Joe Fiorini) Date: Thu, 19 Jun 2008 18:37:49 -0400 Subject: [Ironruby-core] IIS Deployment In-Reply-To: References: <73fd69b50806191403g7949939dibb74be74732ae0e0@mail.gmail.com> Message-ID: <73fd69b50806191537s230bc88cl836afc48eff4016c@mail.gmail.com> Good luck Josh. If you're going to go with MVC make sure they have ASP.NET3.5 Framework installed. -Joe On Thu, Jun 19, 2008 at 5:18 PM, Josh Charles wrote: > Thank you both for your replies. There's only about 40 man-hours in > the project so far, so it is possible (though unpreferable) to do a > rewrite in MVC. > > I have looked at the papers on running Rails on IIS using both mongrel > and fast-cgi, but unfortunately, both of these are unfeasible. The > deployment is going to be a sub-site for a public university. > Originally, it didn't seem like it would be a problem to have a linux > server setup, but now things are being locked down tight, so > basically, all I'm going to have access to is x-copy deployment (and a > database script that can be run). So I won't have any access to the > server, and the servers guys have absolutely no interest in supporting > anything they don't already support. So basically, IIS and SQL Server > is what I get. > > I had already been looking at the IronRuby project, so I thought I > would go ahead and ask. > > Thanks again, > > Sincerely, > Josh > > On Thu, Jun 19, 2008 at 4:03 PM, Joe Fiorini wrote: > > Not sure which version of IIS you are running, but Mike Volodarsky, a > former > > IIS Team Member, has a guide to running RoR on IIS on his > > blog: > http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx > . > > HTH! > > Joe > > On Thu, Jun 19, 2008 at 4:55 PM, Ivan Porto Carrero > > > wrote: > >> > >> I think august is cutting it a little close. I have no idea how much > time > >> you've already spent on it, so dunno if a rewrite in a diff technology > is > >> the way to go. And you can deploy RoR to IIS. If you want I can send you > a > >> white paper. THe idea is that you forward all the requests to a mongrel. > >> I haven't had much luck with the FastCGI that the IIS team provides. It > >> just doesn't want to do it for me. But using mongrels/thin does work for > >> me. > >> > >> When IronRuby then comes into its own you can always switch to run that > >> app on IronRuby \ > >> > >> my 2c. > >> > >> Cheers > >> Ivan > >> > >> On Fri, Jun 20, 2008 at 8:49 AM, Josh Charles > >> wrote: > >>> > >>> Hello All, > >>> > >>> I have a Ruby on Rails codebase that is only partially completed. Due > >>> to circumstances beyond my control, the production server must be IIS, > >>> and there is absolutely no way to change this. Deployment is > >>> currently due in mid August, basically two months away. My question > >>> is this. What are the chances the IronRuby project will be ready to > >>> handle something like this at that point in time? Should I basically > >>> take what we have and rewrite it in something like ASP.NET MVC? > >>> > >>> I've spent sometime working and thinking about ways to make this > >>> happen. My approach, which is probably terrible, was to take the > >>> Web.Routing assembly in a regular ASP.NET application, create a > >>> catch-all route and pass all the information to the dispatch.rb file. > >>> Granted, I haven't actually got this to work, and this is probably a > >>> horrible way to do this. > >>> > >>> In any case, with deployment two months away, I need to make the > >>> decision now to stick with Rails, or make the switch over... > >>> > >>> Sincerely, > >>> Josh > >>> _______________________________________________ > >>> 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 > >> > > > > > > > > -- > > joe fiorini > > http://www.faithfulgeek.org > > // freelancing & knowledge sharing > > _______________________________________________ > > 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 > -- joe fiorini http://www.faithfulgeek.org // freelancing & knowledge sharing -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Thu Jun 19 18:37:46 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 19 Jun 2008 15:37:46 -0700 Subject: [Ironruby-core] YAML In-Reply-To: References: Message-ID: YAML support currently does what it needs to do in order to run Rails. Beyond that, all bets are off ?. Let the flow of bug reports commence! From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, June 19, 2008 3:33 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] YAML Hi Is yaml supposed to be working atm because when I try it, it definitely does some weird things. When I run the tests there is one test that fails the yamlorg_refcard.yml. And this is my test. >>> require 'yaml' => true >>> $t = {:one => "one val", :two => { :nested_first => "nested val" } } => {:one=>"one val", :two=>{:nested_first=>"nested val"}} >>> $y = YAML::dump $t => "\n--- !ruby/object:Hash\n!ruby/object:Symbol :one: !ruby/object:String one val\n!ruby/object:Symbol :two: !ruby/obje ct:Hash\n !ruby/object:Symbol :nested_first: !ruby/object:String nested val\n" >>> $r = YAML::load $y => # >>> $r == $t => false >>> $r[:one] :0:in `Initialize': undefined local variable or method `[]' for #:Ru by::StandardLibrary::Yaml::PrivateType (NoMethodError) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Jun 19 18:49:04 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 20 Jun 2008 10:49:04 +1200 Subject: [Ironruby-core] YAML In-Reply-To: References: Message-ID: You've asked for it :) I'll be on IronRuby from now until sunday so I'll probably be sending a couple more emails over the next couple of days :) On Fri, Jun 20, 2008 at 10:37 AM, Curt Hagenlocher wrote: > YAML support currently does what it needs to do in order to run Rails. > Beyond that, all bets are off J. > > > > Let the flow of bug reports commence! > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, June 19, 2008 3:33 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] YAML > > > > Hi > > Is yaml supposed to be working atm because when I try it, it definitely > does some weird things. When I run the tests there is one test that fails > the yamlorg_refcard.yml. > > And this is my test. > > >>> require 'yaml' > => true > >>> $t = {:one => "one val", :two => { :nested_first => "nested val" } } > => {:one=>"one val", :two=>{:nested_first=>"nested val"}} > >>> $y = YAML::dump $t > => "\n--- !ruby/object:Hash\n!ruby/object:Symbol :one: !ruby/object:String > one val\n!ruby/object:Symbol :two: !ruby/obje > ct:Hash\n !ruby/object:Symbol :nested_first: !ruby/object:String nested > val\n" > >>> $r = YAML::load $y > => # > >>> $r == $t > => false > >>> $r[:one] > :0:in `Initialize': undefined local variable or method `[]' for > #:Ru > by::StandardLibrary::Yaml::PrivateType (NoMethodError) > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From oleg at tkachenko.com Thu Jun 19 18:58:55 2008 From: oleg at tkachenko.com (oleg) Date: Thu, 19 Jun 2008 15:58:55 -0700 Subject: [Ironruby-core] YAML Message-ID: I'm currently working on improving yaml implementation. It will be better in next build. One problem you can see in your test is that current implementation doesn't support loading symbols. That's because our implementation is a port of early version of JvYAML, which in turn was based on RbYAML, which in turn was based on PyYAML and Python doesn't have symbols. I'm working on a fix.-- Oleg ---------------------------------------- From: "Ivan Porto Carrero" Sent: Thursday, June 19, 2008 10:34 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] YAML Hi Is yaml supposed to be working atm because when I try it, it definitely does some weird things. When I run the tests there is one test that fails the yamlorg_refcard.yml. And this is my test. >>> require 'yaml' => true >>> $t = {:one => "one val", :two => { :nested_first => "nested val" } } => {:one=>"one val", :two=>{:nested_first=>"nested val"}} >>> $y = YAML::dump $t => "\n--- !ruby/object:Hash\n!ruby/object:Symbol :one: !ruby/object:String one val\n!ruby/object:Symbol :two: !ruby/obje ct:Hash\n !ruby/object:Symbol :nested_first: !ruby/object:String nested val\n" >>> $r = YAML::load $y => # >>> $r == $t => false >>> $r[:one] :0:in `Initialize': undefined local variable or method `[]' for #:Ru by::StandardLibrary::Yaml::PrivateType (NoMethodError) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 19 19:14:15 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 19 Jun 2008 16:14:15 -0700 Subject: [Ironruby-core] The new IronRuby wiki Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD394FE40@NA-EXMSG-C115.redmond.corp.microsoft.com> I spent some time today moving content over to a new wiki - hosted on http://wik.is on the awesome DekiWiki engine - which incidentally runs on top of Mono and ASP.NET. I also fixed all of the various busted URLs on our site, so you can get there using the much more fashionable http://ironruby.net URL (http://ironruby.com works too). I wound up updating some stuff, and leaving a lot of other stuff alone when I moved the content over. Can folks give it a once-over to see if there's stuff that I broke while moving it? Also, feel free to start using it. I know that many of you have written samples / tutorials - the Samples and tutorials page could use a bit of love: http://ironruby.net/Samples_and_tutorials :) Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben2004uk at googlemail.com Thu Jun 19 19:56:58 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Fri, 20 Jun 2008 00:56:58 +0100 Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? Message-ID: Hi team, I'm just trying to put together some cool samples for a DLR user group session i'm doing next week. Sadly, I can't do MVC + IronRuby because Preview 4 isn't out, however I was wondering if you could provide some technical insight into how MVC knows about IronRuby? Does the framework host the DLR in order to make this happen? Or is it interacting in some other way? Also, if anyone knows any cool demos around IronRuby (apart from silverlight integration and the actual language) please let me know :) Thanks Ben From curth at microsoft.com Thu Jun 19 20:23:10 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 19 Jun 2008 17:23:10 -0700 Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? In-Reply-To: References: Message-ID: Yes, there's additional C# code involved which uses the DLR hosting interfaces. For the sample that was shown at TechEd, code in Global.asax.cs executed "routes.rb". This set up handlers to point to Ruby-based controllers. A C# RubyController class served both to delegate the request to the Ruby-based controller and to serve as a base class for it. A set of classes fronted by "RubyViewEngine" were used to read an .rhtml file and execute it through IronRuby. All of this except the code in Global.asax.cs was abstracted out into a separate library. The only other app-specific code written in C# for the demo was the database access code. (And this was not because we couldn't create models in Ruby.) Naturally, the sample that's made available with CTP 4 may look totally different :). -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Thursday, June 19, 2008 4:57 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? Hi team, I'm just trying to put together some cool samples for a DLR user group session i'm doing next week. Sadly, I can't do MVC + IronRuby because Preview 4 isn't out, however I was wondering if you could provide some technical insight into how MVC knows about IronRuby? Does the framework host the DLR in order to make this happen? Or is it interacting in some other way? Also, if anyone knows any cool demos around IronRuby (apart from silverlight integration and the actual language) please let me know :) Thanks Ben _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Thu Jun 19 23:20:22 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 20 Jun 2008 15:20:22 +1200 Subject: [Ironruby-core] .NET delegates, asynchronousness and such Message-ID: Hi I want to execute a delegate asynchronously with something like Action.BeginInvoke that doesn't seem to work, also using BackgroundWorker I get no result. bw = System::ComponentModel::BackgroundWorker.new bw.do_work { #do some work here, but never seems to get executed } in C# public delegate void VoidHandler(); in IronRuby: VoidHandler.new{ #do some work her, but never seems to get executed }.begin_invoke(nil, nil) So VoidHandler.new{ File.open('threading.txt', 'w'){ |f| f << "writing from thread" } }.begin_invoke(nil, nil) never creates the file threading.txt But using the ThreadPool myself does work properly and creates a file threading2.txt >>> $cb = WaitCallback.new { File.open("threading2.txt" , 'w'){|f| f << "From Thread" } => # >>> System::Threading::ThreadPool.queue_user_work_item $cb, nil => true Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Johan.Danforth at irm.se Fri Jun 20 09:29:16 2008 From: Johan.Danforth at irm.se (Johan Danforth) Date: Fri, 20 Jun 2008 15:29:16 +0200 Subject: [Ironruby-core] The new IronRuby wiki In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD394FE40@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD394FE40@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <12D498AE0ADB20479A22F41E113B67D302BC6BFC2C@sun.irm.se> Looks ok to me, but there are some link-style highlighted words that look like links but are not. Like the words "Subversion" and "TortoiseSVN" on this page: http://ironruby.net/Frequently_Asked_Questions/How_do_I_get_the_latest_source_code_onto_my_computer%3f About samples - I would love to help out with a few samples or tutorials as I'm not good enough a coder to help out with the source. It depends on what you are looking for - any specific topic or area? There are tons of Ruby tutorials out there, so I guess it should be more related to IronRuby... I'm in love with ASP.NET MVC so I would like to see a samples/tutorial section on that topic eventually :) /Johan ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) [jflam at microsoft.com] Sent: 20 June 2008 01:14 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] The new IronRuby wiki I spent some time today moving content over to a new wiki ? hosted on http://wik.is on the awesome DekiWiki engine ? which incidentally runs on top of Mono and ASP.NET. I also fixed all of the various busted URLs on our site, so you can get there using the much more fashionable http://ironruby.net URL (http://ironruby.com works too). I wound up updating some stuff, and leaving a lot of other stuff alone when I moved the content over. Can folks give it a once-over to see if there's stuff that I broke while moving it? Also, feel free to start using it. I know that many of you have written samples / tutorials ? the Samples and tutorials page could use a bit of love: http://ironruby.net/Samples_and_tutorials :) Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben2004uk at googlemail.com Sat Jun 21 08:34:08 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Sat, 21 Jun 2008 13:34:08 +0100 Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? In-Reply-To: References: Message-ID: Thanks for your reply. Does the additional code for te DLR interfaces live inside the MVC framework? RouteTable.Routes.LoadFromRuby(); <--- This creates a runtime + engine and executes the code (routes.rb) and adds it back to the C# collection. I understand how this works. Looking a bit more at the sample, RubyControllerFactory is part of the MVC framework. This will also creates a runtime\engine for the language and be able to pass execution to HomeController.rb similar to how RubyRouteLoader.cs works. Does this mean there will be a PythonControllerFactory? Why isn't there just a DLRControllerFactory as the actual hosting interface is the same? Once CTP 4 is out, I will be able to find out for myself, but if you could say if I was on the right line that would be good :) Thanks Ben On Fri, Jun 20, 2008 at 1:23 AM, Curt Hagenlocher wrote: > Yes, there's additional C# code involved which uses the DLR hosting interfaces. > > For the sample that was shown at TechEd, code in Global.asax.cs executed "routes.rb". This set up handlers to point to Ruby-based controllers. A C# RubyController class served both to delegate the request to the Ruby-based controller and to serve as a base class for it. A set of classes fronted by "RubyViewEngine" were used to read an .rhtml file and execute it through IronRuby. > > All of this except the code in Global.asax.cs was abstracted out into a separate library. The only other app-specific code written in C# for the demo was the database access code. (And this was not because we couldn't create models in Ruby.) > > Naturally, the sample that's made available with CTP 4 may look totally different :). > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Thursday, June 19, 2008 4:57 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? > > Hi team, > > I'm just trying to put together some cool samples for a DLR user group > session i'm doing next week. Sadly, I can't do MVC + IronRuby because > Preview 4 isn't out, however I was wondering if you could provide some > technical insight into how MVC knows about IronRuby? > > Does the framework host the DLR in order to make this happen? Or is it > interacting in some other way? > > Also, if anyone knows any cool demos around IronRuby (apart from > silverlight integration and the actual language) please let me know :) > > Thanks > > Ben > _______________________________________________ > 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 ben2004uk at googlemail.com Sat Jun 21 08:57:51 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Sat, 21 Jun 2008 13:57:51 +0100 Subject: [Ironruby-core] say['love'] = "*love*" fails Message-ID: Hello, I just wanted to quickly write some Ruby code to see if my hosting worked. Went onto the main ruby site and copied this block of code: # Output "I love Ruby" say = "I love Ruby" puts say # Output "I *LOVE* RUBY" say['love'] = "*love*" puts say.upcase # Output "I *love* Ruby" # five times 5.times { puts say } When I tried this it failed: >>> say['love'] = "*love*" :0:in `Initialize##1': undefined local variable or method `say' for main:Object (NoMethodError) I first thought this might have been because the console doesn't support local variables and have some other problems going on. So I tried this: >>> $say['love'] = "*love*" :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( NoMethodError) Why isn't this working? Thanks Ben From curth at microsoft.com Sat Jun 21 09:22:39 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sat, 21 Jun 2008 06:22:39 -0700 Subject: [Ironruby-core] say['love'] = "*love*" fails In-Reply-To: References: Message-ID: Is this from ir.exe or from your hosting code? It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, $say = "I love Ruby" puts $say $say['love'] = "*LOVE*" ...etc. Also, it looks like we happen to be missing that particular overload of String.[]=, so if that's not already in RubyForge, you should file a bug report. :) -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Saturday, June 21, 2008 5:58 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] say['love'] = "*love*" fails Hello, I just wanted to quickly write some Ruby code to see if my hosting worked. Went onto the main ruby site and copied this block of code: # Output "I love Ruby" say = "I love Ruby" puts say # Output "I *LOVE* RUBY" say['love'] = "*love*" puts say.upcase # Output "I *love* Ruby" # five times 5.times { puts say } When I tried this it failed: >>> say['love'] = "*love*" :0:in `Initialize##1': undefined local variable or method `say' for main:Object (NoMethodError) I first thought this might have been because the console doesn't support local variables and have some other problems going on. So I tried this: >>> $say['love'] = "*love*" :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( NoMethodError) Why isn't this working? Thanks Ben _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ben2004uk at googlemail.com Sat Jun 21 09:27:08 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Sat, 21 Jun 2008 14:27:08 +0100 Subject: [Ironruby-core] say['love'] = "*love*" fails In-Reply-To: References: Message-ID: Hi Curt, The same happens in both ir and my own editor. This is from ir. >>> $say = "I love Ruby" => "I love Ruby" >>> puts $say I love Ruby => nil >>> $say['love'] = "*LOVE*" IronRuby.Libraries:0:in `[]=': can't convert String into Integer (TypeError) from :0:in `Initialize##11' This gives a different error that before - it is just because []= is missing? I'll take a look at RubyForge and fill a bug if required later this afternoon. Thanks Ben On Sat, Jun 21, 2008 at 2:22 PM, Curt Hagenlocher wrote: > Is this from ir.exe or from your hosting code? > > It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, > > $say = "I love Ruby" > puts $say > $say['love'] = "*LOVE*" > ...etc. > > Also, it looks like we happen to be missing that particular overload of String.[]=, so if that's not already in RubyForge, you should file a bug report. :) > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Saturday, June 21, 2008 5:58 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] say['love'] = "*love*" fails > > Hello, > > I just wanted to quickly write some Ruby code to see if my hosting > worked. Went onto the main ruby site and copied this block of code: > > # Output "I love Ruby" > say = "I love Ruby" > puts say > > # Output "I *LOVE* RUBY" > say['love'] = "*love*" > puts say.upcase > > # Output "I *love* Ruby" > # five times > 5.times { puts say } > > When I tried this it failed: >>>> say['love'] = "*love*" > :0:in `Initialize##1': undefined local variable or method `say' for main:Object > (NoMethodError) > > I first thought this might have been because the console doesn't > support local variables and have some other problems going on. So I > tried this: > >>>> $say['love'] = "*love*" > :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( > NoMethodError) > > > Why isn't this working? > > Thanks > > Ben > _______________________________________________ > 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 curth at microsoft.com Sat Jun 21 09:31:21 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sat, 21 Jun 2008 06:31:21 -0700 Subject: [Ironruby-core] say['love'] = "*love*" fails In-Reply-To: References: Message-ID: Yes, you are correct. It tries to match your call to []= with one of the existing overloads. There's no overload for (string, string), so the closest one it finds is (object, object) -- and the implementation of (object, object) is trying to cast the first parameter to an int. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Saturday, June 21, 2008 6:27 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] say['love'] = "*love*" fails Hi Curt, The same happens in both ir and my own editor. This is from ir. >>> $say = "I love Ruby" => "I love Ruby" >>> puts $say I love Ruby => nil >>> $say['love'] = "*LOVE*" IronRuby.Libraries:0:in `[]=': can't convert String into Integer (TypeError) from :0:in `Initialize##11' This gives a different error that before - it is just because []= is missing? I'll take a look at RubyForge and fill a bug if required later this afternoon. Thanks Ben On Sat, Jun 21, 2008 at 2:22 PM, Curt Hagenlocher wrote: > Is this from ir.exe or from your hosting code? > > It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, > > $say = "I love Ruby" > puts $say > $say['love'] = "*LOVE*" > ...etc. > > Also, it looks like we happen to be missing that particular overload of String.[]=, so if that's not already in RubyForge, you should file a bug report. :) > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Saturday, June 21, 2008 5:58 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] say['love'] = "*love*" fails > > Hello, > > I just wanted to quickly write some Ruby code to see if my hosting > worked. Went onto the main ruby site and copied this block of code: > > # Output "I love Ruby" > say = "I love Ruby" > puts say > > # Output "I *LOVE* RUBY" > say['love'] = "*love*" > puts say.upcase > > # Output "I *love* Ruby" > # five times > 5.times { puts say } > > When I tried this it failed: >>>> say['love'] = "*love*" > :0:in `Initialize##1': undefined local variable or method `say' for main:Object > (NoMethodError) > > I first thought this might have been because the console doesn't > support local variables and have some other problems going on. So I > tried this: > >>>> $say['love'] = "*love*" > :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( > NoMethodError) > > > Why isn't this working? > > Thanks > > Ben > _______________________________________________ > 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 ben2004uk at googlemail.com Sat Jun 21 09:33:29 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Sat, 21 Jun 2008 14:33:29 +0100 Subject: [Ironruby-core] say['love'] = "*love*" fails In-Reply-To: References: Message-ID: Ahh!! Thank you! Out of interest, hHow far is the language from being 'done'? Or is that an unknown? Last I heard John mentioned 70% of the specs passing? On Sat, Jun 21, 2008 at 2:31 PM, Curt Hagenlocher wrote: > Yes, you are correct. It tries to match your call to []= with one of the existing overloads. There's no overload for (string, string), so the closest one it finds is (object, object) -- and the implementation of (object, object) is trying to cast the first parameter to an int. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Saturday, June 21, 2008 6:27 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] say['love'] = "*love*" fails > > Hi Curt, > > The same happens in both ir and my own editor. > > This is from ir. > >>>> $say = "I love Ruby" > => "I love Ruby" >>>> puts $say > I love Ruby > => nil >>>> $say['love'] = "*LOVE*" > IronRuby.Libraries:0:in `[]=': can't convert String into Integer (TypeError) > from :0:in `Initialize##11' > > This gives a different error that before - it is just because []= is > missing? I'll take a look at RubyForge and fill a bug if required > later this afternoon. > > Thanks > > Ben > > > > On Sat, Jun 21, 2008 at 2:22 PM, Curt Hagenlocher wrote: >> Is this from ir.exe or from your hosting code? >> >> It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, >> >> $say = "I love Ruby" >> puts $say >> $say['love'] = "*LOVE*" >> ...etc. >> >> Also, it looks like we happen to be missing that particular overload of String.[]=, so if that's not already in RubyForge, you should file a bug report. :) >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall >> Sent: Saturday, June 21, 2008 5:58 AM >> To: ironruby-core at rubyforge.org >> Subject: [Ironruby-core] say['love'] = "*love*" fails >> >> Hello, >> >> I just wanted to quickly write some Ruby code to see if my hosting >> worked. Went onto the main ruby site and copied this block of code: >> >> # Output "I love Ruby" >> say = "I love Ruby" >> puts say >> >> # Output "I *LOVE* RUBY" >> say['love'] = "*love*" >> puts say.upcase >> >> # Output "I *love* Ruby" >> # five times >> 5.times { puts say } >> >> When I tried this it failed: >>>>> say['love'] = "*love*" >> :0:in `Initialize##1': undefined local variable or method `say' for main:Object >> (NoMethodError) >> >> I first thought this might have been because the console doesn't >> support local variables and have some other problems going on. So I >> tried this: >> >>>>> $say['love'] = "*love*" >> :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( >> NoMethodError) >> >> >> Why isn't this working? >> >> Thanks >> >> Ben >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From curth at microsoft.com Sat Jun 21 09:40:11 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sat, 21 Jun 2008 06:40:11 -0700 Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? In-Reply-To: References: Message-ID: None of the DLR-specific stuff is inside the same assembly as the MVC framework. It's all in a separate library. ASP.NET MVC is extremely flexible, so it's possible to extend it in this way without modifying the core sources. This particular version of the sample is extremely Ruby-specific. There are at least two reasons why it was written this way: 1) the DLR doesn't yet expose a "create instance" operation through its public API, so there's no language-independent mechanism for creating an instance object given a class object 2) IronRuby needs some work on how it exposes language features to the DLR I don't know how much that will change for CTP 4, or if we'll have Python support by then. There seems to be considerably more interest in the community for running Ruby in IIS than for running Python, so we're targeting our resources accordingly. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Saturday, June 21, 2008 5:34 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? Thanks for your reply. Does the additional code for te DLR interfaces live inside the MVC framework? RouteTable.Routes.LoadFromRuby(); <--- This creates a runtime + engine and executes the code (routes.rb) and adds it back to the C# collection. I understand how this works. Looking a bit more at the sample, RubyControllerFactory is part of the MVC framework. This will also creates a runtime\engine for the language and be able to pass execution to HomeController.rb similar to how RubyRouteLoader.cs works. Does this mean there will be a PythonControllerFactory? Why isn't there just a DLRControllerFactory as the actual hosting interface is the same? Once CTP 4 is out, I will be able to find out for myself, but if you could say if I was on the right line that would be good :) Thanks Ben On Fri, Jun 20, 2008 at 1:23 AM, Curt Hagenlocher wrote: > Yes, there's additional C# code involved which uses the DLR hosting interfaces. > > For the sample that was shown at TechEd, code in Global.asax.cs executed "routes.rb". This set up handlers to point to Ruby-based controllers. A C# RubyController class served both to delegate the request to the Ruby-based controller and to serve as a base class for it. A set of classes fronted by "RubyViewEngine" were used to read an .rhtml file and execute it through IronRuby. > > All of this except the code in Global.asax.cs was abstracted out into a separate library. The only other app-specific code written in C# for the demo was the database access code. (And this was not because we couldn't create models in Ruby.) > > Naturally, the sample that's made available with CTP 4 may look totally different :). > > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Thursday, June 19, 2008 4:57 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work? > > Hi team, > > I'm just trying to put together some cool samples for a DLR user group > session i'm doing next week. Sadly, I can't do MVC + IronRuby because > Preview 4 isn't out, however I was wondering if you could provide some > technical insight into how MVC knows about IronRuby? > > Does the framework host the DLR in order to make this happen? Or is it > interacting in some other way? > > Also, if anyone knows any cool demos around IronRuby (apart from > silverlight integration and the actual language) please let me know :) > > Thanks > > Ben > _______________________________________________ > 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 curth at microsoft.com Sat Jun 21 09:52:26 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sat, 21 Jun 2008 06:52:26 -0700 Subject: [Ironruby-core] say['love'] = "*love*" fails In-Reply-To: References: Message-ID: I don't mean to be Clintonesque, but it depends on what the meaning of the word "done" is. :) Any number you hear for spec coverage is suspect as a measure of done-ness. The specs are still being added to; they're not themselves "done". At this point, I don't think we expect a "1.0 final" release before the end of the year. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Saturday, June 21, 2008 6:33 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] say['love'] = "*love*" fails Ahh!! Thank you! Out of interest, hHow far is the language from being 'done'? Or is that an unknown? Last I heard John mentioned 70% of the specs passing? On Sat, Jun 21, 2008 at 2:31 PM, Curt Hagenlocher wrote: > Yes, you are correct. It tries to match your call to []= with one of the existing overloads. There's no overload for (string, string), so the closest one it finds is (object, object) -- and the implementation of (object, object) is trying to cast the first parameter to an int. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Saturday, June 21, 2008 6:27 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] say['love'] = "*love*" fails > > Hi Curt, > > The same happens in both ir and my own editor. > > This is from ir. > >>>> $say = "I love Ruby" > => "I love Ruby" >>>> puts $say > I love Ruby > => nil >>>> $say['love'] = "*LOVE*" > IronRuby.Libraries:0:in `[]=': can't convert String into Integer (TypeError) > from :0:in `Initialize##11' > > This gives a different error that before - it is just because []= is > missing? I'll take a look at RubyForge and fill a bug if required > later this afternoon. > > Thanks > > Ben > > > > On Sat, Jun 21, 2008 at 2:22 PM, Curt Hagenlocher wrote: >> Is this from ir.exe or from your hosting code? >> >> It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, >> >> $say = "I love Ruby" >> puts $say >> $say['love'] = "*LOVE*" >> ...etc. >> >> Also, it looks like we happen to be missing that particular overload of String.[]=, so if that's not already in RubyForge, you should file a bug report. :) >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall >> Sent: Saturday, June 21, 2008 5:58 AM >> To: ironruby-core at rubyforge.org >> Subject: [Ironruby-core] say['love'] = "*love*" fails >> >> Hello, >> >> I just wanted to quickly write some Ruby code to see if my hosting >> worked. Went onto the main ruby site and copied this block of code: >> >> # Output "I love Ruby" >> say = "I love Ruby" >> puts say >> >> # Output "I *LOVE* RUBY" >> say['love'] = "*love*" >> puts say.upcase >> >> # Output "I *love* Ruby" >> # five times >> 5.times { puts say } >> >> When I tried this it failed: >>>>> say['love'] = "*love*" >> :0:in `Initialize##1': undefined local variable or method `say' for main:Object >> (NoMethodError) >> >> I first thought this might have been because the console doesn't >> support local variables and have some other problems going on. So I >> tried this: >> >>>>> $say['love'] = "*love*" >> :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( >> NoMethodError) >> >> >> Why isn't this working? >> >> Thanks >> >> Ben >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Sun Jun 22 15:03:00 2008 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 22 Jun 2008 12:03:00 -0700 Subject: [Ironruby-core] say['love'] = "*love*" fails In-Reply-To: References: , Message-ID: I would clarify that by saying the core Ruby portions will probably be done before the 1.0 final. We also have a lot of work to do on defining .NET interop. We're probably passing about 64% of the core spec's right now, which test the builtin libraries, and about 94% of the language specs. The library spec's are so incomplete that the number doesn't mean anything. I'll be working on the coverage runner, so we should be back to daily updates on that again. JD ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher [curth at microsoft.com] Sent: Saturday, June 21, 2008 6:52 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] say['love'] = "*love*" fails I don't mean to be Clintonesque, but it depends on what the meaning of the word "done" is. :) Any number you hear for spec coverage is suspect as a measure of done-ness. The specs are still being added to; they're not themselves "done". At this point, I don't think we expect a "1.0 final" release before the end of the year. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Saturday, June 21, 2008 6:33 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] say['love'] = "*love*" fails Ahh!! Thank you! Out of interest, hHow far is the language from being 'done'? Or is that an unknown? Last I heard John mentioned 70% of the specs passing? On Sat, Jun 21, 2008 at 2:31 PM, Curt Hagenlocher wrote: > Yes, you are correct. It tries to match your call to []= with one of the existing overloads. There's no overload for (string, string), so the closest one it finds is (object, object) -- and the implementation of (object, object) is trying to cast the first parameter to an int. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Saturday, June 21, 2008 6:27 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] say['love'] = "*love*" fails > > Hi Curt, > > The same happens in both ir and my own editor. > > This is from ir. > >>>> $say = "I love Ruby" > => "I love Ruby" >>>> puts $say > I love Ruby > => nil >>>> $say['love'] = "*LOVE*" > IronRuby.Libraries:0:in `[]=': can't convert String into Integer (TypeError) > from :0:in `Initialize##11' > > This gives a different error that before - it is just because []= is > missing? I'll take a look at RubyForge and fill a bug if required > later this afternoon. > > Thanks > > Ben > > > > On Sat, Jun 21, 2008 at 2:22 PM, Curt Hagenlocher wrote: >> Is this from ir.exe or from your hosting code? >> >> It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, >> >> $say = "I love Ruby" >> puts $say >> $say['love'] = "*LOVE*" >> ...etc. >> >> Also, it looks like we happen to be missing that particular overload of String.[]=, so if that's not already in RubyForge, you should file a bug report. :) >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall >> Sent: Saturday, June 21, 2008 5:58 AM >> To: ironruby-core at rubyforge.org >> Subject: [Ironruby-core] say['love'] = "*love*" fails >> >> Hello, >> >> I just wanted to quickly write some Ruby code to see if my hosting >> worked. Went onto the main ruby site and copied this block of code: >> >> # Output "I love Ruby" >> say = "I love Ruby" >> puts say >> >> # Output "I *LOVE* RUBY" >> say['love'] = "*love*" >> puts say.upcase >> >> # Output "I *love* Ruby" >> # five times >> 5.times { puts say } >> >> When I tried this it failed: >>>>> say['love'] = "*love*" >> :0:in `Initialize##1': undefined local variable or method `say' for main:Object >> (NoMethodError) >> >> I first thought this might have been because the console doesn't >> support local variables and have some other problems going on. So I >> tried this: >> >>>>> $say['love'] = "*love*" >> :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( >> NoMethodError) >> >> >> Why isn't this working? >> >> Thanks >> >> Ben >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ben2004uk at googlemail.com Sun Jun 22 16:55:13 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Sun, 22 Jun 2008 21:55:13 +0100 Subject: [Ironruby-core] say['love'] = "*love*" fails In-Reply-To: References: Message-ID: Thanks for the update. What is the command to run the specs on my local box? Tried this: E:\IronRuby\trunk>rake spec (in E:/IronRuby/trunk) 2179 examples, 83 failures rake mspec doesn't work (as reported previously). Is that just not available at the moment publicly? On Sun, Jun 22, 2008 at 8:03 PM, Jim Deville wrote: > I would clarify that by saying the core Ruby portions will probably be done before the 1.0 final. We also have a lot of work to do on defining .NET interop. We're probably passing about 64% of the core spec's right now, which test the builtin libraries, and about 94% of the language specs. The library spec's are so incomplete that the number doesn't mean anything. > > I'll be working on the coverage runner, so we should be back to daily updates on that again. > > JD > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher [curth at microsoft.com] > Sent: Saturday, June 21, 2008 6:52 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] say['love'] = "*love*" fails > > I don't mean to be Clintonesque, but it depends on what the meaning of the word "done" is. :) Any number you hear for spec coverage is suspect as a measure of done-ness. The specs are still being added to; they're not themselves "done". > > At this point, I don't think we expect a "1.0 final" release before the end of the year. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Saturday, June 21, 2008 6:33 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] say['love'] = "*love*" fails > > Ahh!! Thank you! > > Out of interest, hHow far is the language from being 'done'? Or is > that an unknown? Last I heard John mentioned 70% of the specs > passing? > > > > On Sat, Jun 21, 2008 at 2:31 PM, Curt Hagenlocher wrote: >> Yes, you are correct. It tries to match your call to []= with one of the existing overloads. There's no overload for (string, string), so the closest one it finds is (object, object) -- and the implementation of (object, object) is trying to cast the first parameter to an int. >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall >> Sent: Saturday, June 21, 2008 6:27 AM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] say['love'] = "*love*" fails >> >> Hi Curt, >> >> The same happens in both ir and my own editor. >> >> This is from ir. >> >>>>> $say = "I love Ruby" >> => "I love Ruby" >>>>> puts $say >> I love Ruby >> => nil >>>>> $say['love'] = "*LOVE*" >> IronRuby.Libraries:0:in `[]=': can't convert String into Integer (TypeError) >> from :0:in `Initialize##11' >> >> This gives a different error that before - it is just because []= is >> missing? I'll take a look at RubyForge and fill a bug if required >> later this afternoon. >> >> Thanks >> >> Ben >> >> >> >> On Sat, Jun 21, 2008 at 2:22 PM, Curt Hagenlocher wrote: >>> Is this from ir.exe or from your hosting code? >>> >>> It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, >>> >>> $say = "I love Ruby" >>> puts $say >>> $say['love'] = "*LOVE*" >>> ...etc. >>> >>> Also, it looks like we happen to be missing that particular overload of String.[]=, so if that's not already in RubyForge, you should file a bug report. :) >>> >>> -----Original Message----- >>> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall >>> Sent: Saturday, June 21, 2008 5:58 AM >>> To: ironruby-core at rubyforge.org >>> Subject: [Ironruby-core] say['love'] = "*love*" fails >>> >>> Hello, >>> >>> I just wanted to quickly write some Ruby code to see if my hosting >>> worked. Went onto the main ruby site and copied this block of code: >>> >>> # Output "I love Ruby" >>> say = "I love Ruby" >>> puts say >>> >>> # Output "I *LOVE* RUBY" >>> say['love'] = "*love*" >>> puts say.upcase >>> >>> # Output "I *love* Ruby" >>> # five times >>> 5.times { puts say } >>> >>> When I tried this it failed: >>>>>> say['love'] = "*love*" >>> :0:in `Initialize##1': undefined local variable or method `say' for main:Object >>> (NoMethodError) >>> >>> I first thought this might have been because the console doesn't >>> support local variables and have some other problems going on. So I >>> tried this: >>> >>>>>> $say['love'] = "*love*" >>> :0:in `Initialize##11': undefined local variable or method `[]=' for :NilClass ( >>> NoMethodError) >>> >>> >>> Why isn't this working? >>> >>> Thanks >>> >>> Ben >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From ben2004uk at googlemail.com Sun Jun 22 21:43:45 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Mon, 23 Jun 2008 02:43:45 +0100 Subject: [Ironruby-core] Improved error handling if IronRuby.Libraries is not referenced Message-ID: Hi, This might sound like an odd request, but it has just caught me out. Basically, I wanted to host IronRuby within a Console Application (for a demo), however I didn't reference IronRuby.Libraries, as a result I was getting the exception - System.MissingMethodException was unhandled Message="1::+ (the code was "puts 1+1"). This was my thought process: 1) Created a new project. Reference DLR assemblies. 2) Create new Runtime and Engine (using rb). Exception - missing IronRuby reference. Forgot, lets reference that. 3) Execute, method missing exception thrown. 4) Confused. Looked back at my IronEditor code - realised I was missing IronRuby.Librarires. 5) Added reference - everything worked. Maybe it's not required, but is there any way of better error handling in this situation? Thanks Ben From bacondarwin at googlemail.com Mon Jun 23 09:22:04 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Mon, 23 Jun 2008 14:22:04 +0100 Subject: [Ironruby-core] Improved error handling if IronRuby.Libraries is not referenced In-Reply-To: References: Message-ID: <001301c8d534$220dbb00$66293100$@com> I think you'll find that in the future, the IronRuby.Libraries assembly will be merged into the IronRuby language assembly and so will not need to be referenced. By the way, can you get your program to work without referencing the assembly in the project but by just copying the assembly into the folder containing your executable? Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Monday,23 June 23, 2008 02:44 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Improved error handling if IronRuby.Libraries is not referenced Hi, This might sound like an odd request, but it has just caught me out. Basically, I wanted to host IronRuby within a Console Application (for a demo), however I didn't reference IronRuby.Libraries, as a result I was getting the exception - System.MissingMethodException was unhandled Message="1::+ (the code was "puts 1+1"). This was my thought process: 1) Created a new project. Reference DLR assemblies. 2) Create new Runtime and Engine (using rb). Exception - missing IronRuby reference. Forgot, lets reference that. 3) Execute, method missing exception thrown. 4) Confused. Looked back at my IronEditor code - realised I was missing IronRuby.Librarires. 5) Added reference - everything worked. Maybe it's not required, but is there any way of better error handling in this situation? Thanks Ben _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ben2004uk at googlemail.com Mon Jun 23 09:29:47 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Mon, 23 Jun 2008 14:29:47 +0100 Subject: [Ironruby-core] Improved error handling if IronRuby.Libraries is not referenced In-Reply-To: <001301c8d534$220dbb00$66293100$@com> References: <001301c8d534$220dbb00$66293100$@com> Message-ID: In another one of my applications, I am loading the assemblies dynamically (they are not referenced). With IP Beta 3, I changed the way I load assemblies (Using LanguageSetup? Look in the IronPython mailing list for details, it was posted there). Can't remember how I deal with both assemblies (thats what 2am coding gets you), or if they just work because they are in the same directory - which wasn't the case in this example. Happy to provide more details when I have the code in front of me if you want.... On Mon, Jun 23, 2008 at 2:22 PM, Peter Bacon Darwin wrote: > I think you'll find that in the future, the IronRuby.Libraries assembly will > be merged into the IronRuby language assembly and so will not need to be > referenced. > By the way, can you get your program to work without referencing the > assembly in the project but by just copying the assembly into the folder > containing your executable? > Pete > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Monday,23 June 23, 2008 02:44 > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Improved error handling if IronRuby.Libraries is > not referenced > > Hi, > > This might sound like an odd request, but it has just caught me out. > Basically, I wanted to host IronRuby within a Console Application (for > a demo), however I didn't reference IronRuby.Libraries, as a result I > was getting the exception - System.MissingMethodException was > unhandled Message="1::+ (the code was "puts 1+1"). > > This was my thought process: > 1) Created a new project. Reference DLR assemblies. > 2) Create new Runtime and Engine (using rb). Exception - missing > IronRuby reference. Forgot, lets reference that. > 3) Execute, method missing exception thrown. > 4) Confused. Looked back at my IronEditor code - realised I was > missing IronRuby.Librarires. > 5) Added reference - everything worked. > > Maybe it's not required, but is there any way of better error handling > in this situation? > > Thanks > Ben > _______________________________________________ > 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 curth at microsoft.com Mon Jun 23 09:56:48 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Mon, 23 Jun 2008 06:56:48 -0700 Subject: [Ironruby-core] Improved error handling if IronRuby.Libraries is not referenced In-Reply-To: References: Message-ID: Sounds like something that belongs in the bug tracker... :). Someone seems to run into this issue every few weeks for Python as well, so there's definitely a compelling story for making a change. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Sunday, June 22, 2008 6:44 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Improved error handling if IronRuby.Libraries is not referenced Hi, This might sound like an odd request, but it has just caught me out. Basically, I wanted to host IronRuby within a Console Application (for a demo), however I didn't reference IronRuby.Libraries, as a result I was getting the exception - System.MissingMethodException was unhandled Message="1::+ (the code was "puts 1+1"). This was my thought process: 1) Created a new project. Reference DLR assemblies. 2) Create new Runtime and Engine (using rb). Exception - missing IronRuby reference. Forgot, lets reference that. 3) Execute, method missing exception thrown. 4) Confused. Looked back at my IronEditor code - realised I was missing IronRuby.Librarires. 5) Added reference - everything worked. Maybe it's not required, but is there any way of better error handling in this situation? Thanks Ben _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ben2004uk at googlemail.com Mon Jun 23 20:23:26 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Tue, 24 Jun 2008 01:23:26 +0100 Subject: [Ironruby-core] ExecutionContext without references IronRuby Message-ID: Hi, This might be a bit of a strange request, but is it possible to get access to the ExecutionContext without actually referencing the IronRuby assembly? As a quick demo, I wrote the following code: ScriptRuntime runtime = IronRuby.CreateRuntime(); engine = IronRuby.GetEngine(runtime); RubyExecutionContext ctx = IronRuby.GetExecutionContext(engine); list = new List(); ctx.DefineGlobalVariable("customers", list); Ideally, what I wanted to write was something more like but $customers is always nil. scope = engine.CreateScope(); scope.SetVariable("$customers", list); I was hoping this would have had the same affect as the code above. Is this by design, a limitation or a bug? Thanks Ben Blog.BenHall.me.uk From dremy at microsoft.com Mon Jun 23 20:29:43 2008 From: dremy at microsoft.com (Dave Remy) Date: Mon, 23 Jun 2008 17:29:43 -0700 Subject: [Ironruby-core] Code Review: FileStatFix Message-ID: tfpt review "/shelveset:FileStatFix;REDMOND\dremy" Comment : Fixes bug [#20412] File::Stat -------------- next part -------------- A non-text attachment was scrubbed... Name: FileStatFix.diff Type: application/octet-stream Size: 8044 bytes Desc: FileStatFix.diff URL: From Tomas.Matousek at microsoft.com Mon Jun 23 20:50:50 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Jun 2008 17:50:50 -0700 Subject: [Ironruby-core] ExecutionContext without references IronRuby In-Reply-To: References: Message-ID: This is by design. Ruby global variables are Ruby special feature, not all languages have such thing. You can however use the scope and completely avoid statically referencing IronRuby assemblies: var runtime = ScriptRuntime.Create(); var scope = runtime.CreateScope("Ruby"); scope.SetVariable("customers", list); scope.Execute("p customers"); In this example, "customers" is a method call that hits method_missing. The IronRuby's implementation of method_missing looks into the scope if run in a hosted environment. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Monday, June 23, 2008 5:23 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] ExecutionContext without references IronRuby Hi, This might be a bit of a strange request, but is it possible to get access to the ExecutionContext without actually referencing the IronRuby assembly? As a quick demo, I wrote the following code: ScriptRuntime runtime = IronRuby.CreateRuntime(); engine = IronRuby.GetEngine(runtime); RubyExecutionContext ctx = IronRuby.GetExecutionContext(engine); list = new List(); ctx.DefineGlobalVariable("customers", list); Ideally, what I wanted to write was something more like but $customers is always nil. scope = engine.CreateScope(); scope.SetVariable("$customers", list); I was hoping this would have had the same affect as the code above. Is this by design, a limitation or a bug? Thanks Ben Blog.BenHall.me.uk _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Jun 23 20:56:04 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Jun 2008 17:56:04 -0700 Subject: [Ironruby-core] Code Review: FileStatFix In-Reply-To: References: Message-ID: Looks good. -----Original Message----- From: Dave Remy Sent: Monday, June 23, 2008 5:30 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: FileStatFix tfpt review "/shelveset:FileStatFix;REDMOND\dremy" Comment : Fixes bug [#20412] File::Stat From ben2004uk at googlemail.com Mon Jun 23 21:20:47 2008 From: ben2004uk at googlemail.com (Ben Hall) Date: Tue, 24 Jun 2008 02:20:47 +0100 Subject: [Ironruby-core] ExecutionContext without references IronRuby In-Reply-To: References: Message-ID: Thanks for your reply. The fact "customers" calls method_missing is a bit of a problem, as what happens if you call customers within the method_missing block? scope = engine.CreateScope(); scope.SetVariable("customers", list); string startingBlock = @"require 'mscorlib' def customers.method_missing(methodname, *args) puts methodname if(methodname.to_s =~ /Bob/) customers.add(methodname.to_s) else super end end customers.Bob "; scope.Execute(startingBlock); I was working based on Phil Haack's Monkey Patching example and seeing what happened. I put some code which checks to see if the methodname is itself, but then I check exceptions saying add isn't on NilClass, must be doing something wrong in that scenario Code I added to the method was: if( methodname.to_s == 'customers') self Like I said, only playing around to see what happens but I can see people possible wanting to do this. On Tue, Jun 24, 2008 at 1:50 AM, Tomas Matousek wrote: > This is by design. Ruby global variables are Ruby special feature, not all languages have such thing. > You can however use the scope and completely avoid statically referencing IronRuby assemblies: > > var runtime = ScriptRuntime.Create(); > var scope = runtime.CreateScope("Ruby"); > scope.SetVariable("customers", list); > scope.Execute("p customers"); > > In this example, "customers" is a method call that hits method_missing. The IronRuby's implementation of method_missing looks into the scope if run in a hosted environment. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Monday, June 23, 2008 5:23 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] ExecutionContext without references IronRuby > > Hi, > > This might be a bit of a strange request, but is it possible to get > access to the ExecutionContext without actually referencing the > IronRuby assembly? > > As a quick demo, I wrote the following code: > > ScriptRuntime runtime = IronRuby.CreateRuntime(); > engine = IronRuby.GetEngine(runtime); > RubyExecutionContext ctx = IronRuby.GetExecutionContext(engine); > > list = new List(); > ctx.DefineGlobalVariable("customers", list); > > Ideally, what I wanted to write was something more like but $customers > is always nil. > > scope = engine.CreateScope(); > scope.SetVariable("$customers", list); > > I was hoping this would have had the same affect as the code above. > > Is this by design, a limitation or a bug? > > Thanks > > Ben > Blog.BenHall.me.uk > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From Tomas.Matousek at microsoft.com Mon Jun 23 21:34:23 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Jun 2008 18:34:23 -0700 Subject: [Ironruby-core] ExecutionContext without references IronRuby In-Reply-To: References: Message-ID: We might define some library method that will look-up the scope's variables explicitly to enable this scenario. As a workaround, this should work: string startingBlock = @" $scope = self p $scope.customers "; string startingBlock = @"require 'mscorlib' def customers.method_missing(methodname, *args) puts methodname if(methodname.to_s =~ /Bob/) customers.add(methodname.to_s) else super end end customers.Bob "; -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Monday, June 23, 2008 6:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] ExecutionContext without references IronRuby Thanks for your reply. The fact "customers" calls method_missing is a bit of a problem, as what happens if you call customers within the method_missing block? scope = engine.CreateScope(); scope.SetVariable("customers", list); string startingBlock = @"require 'mscorlib' def customers.method_missing(methodname, *args) puts methodname if(methodname.to_s =~ /Bob/) customers.add(methodname.to_s) else super end end customers.Bob "; scope.Execute(startingBlock); I was working based on Phil Haack's Monkey Patching example and seeing what happened. I put some code which checks to see if the methodname is itself, but then I check exceptions saying add isn't on NilClass, must be doing something wrong in that scenario Code I added to the method was: if( methodname.to_s == 'customers') self Like I said, only playing around to see what happens but I can see people possible wanting to do this. On Tue, Jun 24, 2008 at 1:50 AM, Tomas Matousek wrote: > This is by design. Ruby global variables are Ruby special feature, not all languages have such thing. > You can however use the scope and completely avoid statically referencing IronRuby assemblies: > > var runtime = ScriptRuntime.Create(); > var scope = runtime.CreateScope("Ruby"); > scope.SetVariable("customers", list); > scope.Execute("p customers"); > > In this example, "customers" is a method call that hits method_missing. The IronRuby's implementation of method_missing looks into the scope if run in a hosted environment. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Monday, June 23, 2008 5:23 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] ExecutionContext without references IronRuby > > Hi, > > This might be a bit of a strange request, but is it possible to get > access to the ExecutionContext without actually referencing the > IronRuby assembly? > > As a quick demo, I wrote the following code: > > ScriptRuntime runtime = IronRuby.CreateRuntime(); > engine = IronRuby.GetEngine(runtime); > RubyExecutionContext ctx = IronRuby.GetExecutionContext(engine); > > list = new List(); > ctx.DefineGlobalVariable("customers", list); > > Ideally, what I wanted to write was something more like but $customers > is always nil. > > scope = engine.CreateScope(); > scope.SetVariable("$customers", list); > > I was hoping this would have had the same affect as the code above. > > Is this by design, a limitation or a bug? > > Thanks > > Ben > Blog.BenHall.me.uk > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Jun 23 21:37:14 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Jun 2008 18:37:14 -0700 Subject: [Ironruby-core] ExecutionContext without references IronRuby In-Reply-To: References: Message-ID: Sorry, pressed Ctrl+Enter before finished. You can use global $scope.customers in your implementation of method_missing to access customers. Tomas -----Original Message----- We might define some library method that will look-up the scope's variables explicitly to enable this scenario. As a workaround, this should work: string startingBlock = @" $scope = self p $scope.customers "; string startingBlock = @"require 'mscorlib' def customers.method_missing(methodname, *args) puts methodname if(methodname.to_s =~ /Bob/) customers.add(methodname.to_s) else super end end customers.Bob "; -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall Sent: Monday, June 23, 2008 6:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] ExecutionContext without references IronRuby Thanks for your reply. The fact "customers" calls method_missing is a bit of a problem, as what happens if you call customers within the method_missing block? scope = engine.CreateScope(); scope.SetVariable("customers", list); string startingBlock = @"require 'mscorlib' def customers.method_missing(methodname, *args) puts methodname if(methodname.to_s =~ /Bob/) customers.add(methodname.to_s) else super end end customers.Bob "; scope.Execute(startingBlock); I was working based on Phil Haack's Monkey Patching example and seeing what happened. I put some code which checks to see if the methodname is itself, but then I check exceptions saying add isn't on NilClass, must be doing something wrong in that scenario Code I added to the method was: if( methodname.to_s == 'customers') self Like I said, only playing around to see what happens but I can see people possible wanting to do this. On Tue, Jun 24, 2008 at 1:50 AM, Tomas Matousek wrote: > This is by design. Ruby global variables are Ruby special feature, not all languages have such thing. > You can however use the scope and completely avoid statically referencing IronRuby assemblies: > > var runtime = ScriptRuntime.Create(); > var scope = runtime.CreateScope("Ruby"); > scope.SetVariable("customers", list); > scope.Execute("p customers"); > > In this example, "customers" is a method call that hits method_missing. The IronRuby's implementation of method_missing looks into the scope if run in a hosted environment. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ben Hall > Sent: Monday, June 23, 2008 5:23 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] ExecutionContext without references IronRuby > > Hi, > > This might be a bit of a strange request, but is it possible to get > access to the ExecutionContext without actually referencing the > IronRuby assembly? > > As a quick demo, I wrote the following code: > > ScriptRuntime runtime = IronRuby.CreateRuntime(); > engine = IronRuby.GetEngine(runtime); > RubyExecutionContext ctx = IronRuby.GetExecutionContext(engine); > > list = new List(); > ctx.DefineGlobalVariable("customers", list); > > Ideally, what I wanted to write was something more like but $customers > is always nil. > > scope = engine.CreateScope(); > scope.SetVariable("$customers", list); > > I was hoping this would have had the same affect as the code above. > > Is this by design, a limitation or a bug? > > Thanks > > Ben > Blog.BenHall.me.uk > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Jun 23 21:46:59 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Jun 2008 18:46:59 -0700 Subject: [Ironruby-core] Code Review: YamlDump In-Reply-To: References: Message-ID: Looks good. Tomas -----Original Message----- From: Oleg Tkachenko Sent: Friday, June 20, 2008 8:44 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlDump tfpt review "/shelveset:YamlDump;REDMOND\olegtk" Comment : Fixes Object.to_yaml by making it nondynamic call. Improves dump implementation by overriding taguri method on hash, array, string, number and symbol. Fixes dumping to a file (newlines were going nowhere). Fixes emitter so it doesn't emit empty line before first document. Adds more unit tests. -- Oleg From jflam at microsoft.com Tue Jun 24 01:43:43 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 23 Jun 2008 22:43:43 -0700 Subject: [Ironruby-core] RubySpec numbers for IronRuby Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3D43240@NA-EXMSG-C115.redmond.corp.microsoft.com> We've been having a lot of problems around here with getting RubySpecs integrated properly, so again my apologies for delays in getting the latest sources out to y'all. We have an old version of Ruby checked into SNAP (1.8.6 patch level 0), and we're having problems updating it. The current RubySpecs will crash MRI when we try to get some baseline numbers. We also had a bug in IronRuby that caused it to return incorrect exit codes. This meant that regression tests were broken in SNAP for some time. These are fixed now, and it's a matter of getting our specs to pass SNAP in their current form. I manually drove the specs tonight to get a feel for where we are at. These are the raw numbers for the core RubySpecs: Ruby 1.8.6 (September 24 2007 build, patch level 111) 1092 files, 4753 examples, 16793 expectations, 101 failures, 328 errors [43 types] Ruby 1.8.6 (March 13 2007 build patch level 0): 995 files, 3924 examples, 10755 expectations, 101 failures, 312 errors [41 types] ** IronRuby (build from this weekend) 936 files, 3384 examples, 12026 expectations, 440 failures, 450 errors [41 types] * * IronRuby crashes on the thread and threadgroup specs right now ** low number because String specs cause segfault and string has 68 files, 798 examples, 5948 expectations with 6 failures under 1.8.6 patch level 111 Percentages relative to 1.8.6 patch level 111: 85.7% of spec files run 71.2% of examples pass 71.6% of expectations pass A bit of bad news though- we have a memory leak in IronRuby today (we're not invalidating the DLR cache elements correctly, so a cache without a scavenging policy is a memory leak :)). This is just killing our performance for large suites like the RubySpecs, which essentially run all of those 16793 expectations in a single process. We actually run out of memory today in this test under 32 bit Windows(!) We know how to fix the memory leak, but it's going to take some time to do as it's queued up behind some prep work that we need to do first. Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Jun 24 13:30:48 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 24 Jun 2008 10:30:48 -0700 Subject: [Ironruby-core] Code Review: YamlSymbolAndTags In-Reply-To: References: Message-ID: Looks good. -----Original Message----- From: Oleg Tkachenko Sent: Tuesday, June 24, 2008 10:24 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlSymbolAndTags tfpt review "/shelveset:YamlSymbolAndTags;REDMOND\olegtk" Comment : Implements loading symbols - non empty string (len > 1) starting with ':' is loaded as symbol, not as string. Implements YAML::tagged_classes hash, fills it with default tags. Imlements YAML::tag_class method. Closes file when loading yaml document from a file. Fixes YAML::tagurize method. Still not fully compatible with MRI, but at least compatible with JRuby. Adds more unit tests. -- Oleg From Tomas.Matousek at microsoft.com Tue Jun 24 16:03:26 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 24 Jun 2008 13:03:26 -0700 Subject: [Ironruby-core] Code Review: Partial2 Message-ID: tfpt review "/shelveset:Partial2;REDMOND\tomat" Fixes partial trust bugs. MerlinWeb now runs well in Medium trust. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Partial2.diff Type: application/octet-stream Size: 6364 bytes Desc: Partial2.diff URL: From curth at microsoft.com Tue Jun 24 16:38:01 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Tue, 24 Jun 2008 13:38:01 -0700 Subject: [Ironruby-core] How to get to the CLR type In-Reply-To: References: Message-ID: XAML is definitely something that?s on our radar as ?want improved support?, but we don?t have any specific plans yet. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, June 14, 2008 3:38 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type Oh ok. So what's the story going to be for XAML then? I wrote an application in WPF but I have to resort to writing quite some bits and pieces in C# because XAML for example don't want to play ball when you create a value converter in ruby not even when defining the interface. class CharRemainingConverter include IValueConverter def convert(value, target_type, parameter, culture) return Constants::CHARACTER_LIMIT - value end def convert_back(value, target_type, parameter, culture) NotImplementedException.new("The method or operation is not implemented.") end end I have a similar experience when it comes to DependencyProperties. I would like to know what that story is going to around these things. Since this applies to both WPF and Silverlight I think everything will work out fine and I am just too soon for this stuff? Many things come to mind to solve the DependencyProperties or the RoutedEvents like an GlobalEventManagerManager ;) and such but unfortunately some of the building blocks (GlobalEventHandlersStore) are internal so I'm pretty sure I shouldn't mess with it if I don't want my stuff to break in the future. There is also an issue with ResourceDictionaries where you can't index into them from IronRuby defining a method in C# that reads the dictionary works just fine. I'm not ranting or complaining.. just sharing my observations :) Cheers Ivan On Sun, Jun 15, 2008 at 5:36 AM, Tomas Matousek > wrote: Ruby classes have no CLR type. The type you're getting by this is shared across multiple Ruby classes. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Saturday, June 14, 2008 7:07 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type >>> System::Type.get_type_from_handle System::Type.get_type_handle(Test) => # On Sat, Jun 14, 2008 at 4:11 AM, Ivan Porto Carrero > wrote: Oh I see.. When I call .to_clr_type on a type that has only been defined in Ruby it returns nil >>> class Testing; end; => nil >>> Testing.to_clr_type => nil >>> Testing.new.get_type => # >>> On Sat, Jun 14, 2008 at 7:42 PM, Ivan Porto Carrero > wrote: I'm sure i tried that, but then again I tried many things. and I'm sure I've used that before too when I was playing with LightSpeed... Thanks On Sat, Jun 14, 2008 at 7:20 PM, Tomas Matousek > wrote: >>> require 'mscorlib' => true >>> System::String.to_clr_type => # Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, June 13, 2008 11:13 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] How to get to the CLR type I hit send to quickly there is more If I do pass it the correct types (which I got from creating instances) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler.new{}.get_type, LoginControl.new.get_type) then I get a new error RoutedEvent Name 'login' for OwnerType 'Ruby.Classes.UserControl3$3' already used. Which leads me to believe that either I'm doing it wrong or that that's not supposed to happen/supported yet and I have to file a bug report :) Cheers Ivan On Sat, Jun 14, 2008 at 5:57 PM, Ivan Porto Carrero > wrote: How do I get to the CLR type definition of a class? I assumed that the code below would just work or at least not fail where it did :) @@login_event = EventManager.register_routed_event("login", RoutingStrategy.bubble, RoutedEventHandler, LoginControl) That has IronRuby complaining about the wrong type of arguments and so on. And I figure it's because the register_routed_event method expects a CLR type instead of a DLR one. The only way I know to get to the same information as typeof(RoutedEventHandler) is to create an instance and then calling get_type on it. Is there anoter way for that? Cheers Ivan _______________________________________________ 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 -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From debrown at microsoft.com Wed Jun 25 16:27:02 2008 From: debrown at microsoft.com (DeVaris Brown) Date: Wed, 25 Jun 2008 13:27:02 -0700 Subject: [Ironruby-core] Installation Probs Message-ID: <5B434DC97B7AF54FA0762995390C39B41CD0011CBC@NA-EXMSG-C115.redmond.corp.microsoft.com> Hi All: I'm trying to build IronRuby from source in VS 2008 and get the following error: Error 17 Unable to create directory "..\..\..\..\..\..\Merlin\Main\Bin\Debug\". Access to the path '..\..\..\..\..\..\Merlin\Main\Bin\Debug\' is denied. Microsoft.Scripting.Core Any suggestions? devaris brown | academic developer evangelist / heartland region | microsoft corporation | office 248.233.2653 | mobile 248.345.9843 | 1000 town center drive suite 2000 southfield, mi 48075 | email debrown at microsoft.com | blog http://blogs.msdn.com/thefuriousone/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From dremy at microsoft.com Wed Jun 25 18:55:36 2008 From: dremy at microsoft.com (Dave Remy) Date: Wed, 25 Jun 2008 15:55:36 -0700 Subject: [Ironruby-core] Code Review: MutableStringSqueeze Message-ID: tfpt review "/shelveset:MutableStringSqueeze;REDMOND\dremy" Comment : Implement String.squeeze and String.squeeze! Passes RubySpec tests. Passes Unit tests. -------------- next part -------------- A non-text attachment was scrubbed... Name: MutableStringSqueeze.diff Type: application/octet-stream Size: 5458 bytes Desc: MutableStringSqueeze.diff URL: From jflam at microsoft.com Thu Jun 26 09:30:17 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 26 Jun 2008 06:30:17 -0700 Subject: [Ironruby-core] Installation Probs In-Reply-To: <5B434DC97B7AF54FA0762995390C39B41CD0011CBC@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <5B434DC97B7AF54FA0762995390C39B41CD0011CBC@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E60111@NA-EXMSG-C115.redmond.corp.microsoft.com> Can you give us more details? 1) what dir did you check out the sources into 2) I'm assuming this is the latest (114 build) 3) You're using the IronRuby.sln file? Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of DeVaris Brown Sent: Wednesday, June 25, 2008 1:27 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Installation Probs Hi All: I'm trying to build IronRuby from source in VS 2008 and get the following error: Error 17 Unable to create directory "..\..\..\..\..\..\Merlin\Main\Bin\Debug\". Access to the path '..\..\..\..\..\..\Merlin\Main\Bin\Debug\' is denied. Microsoft.Scripting.Core Any suggestions? devaris brown | academic developer evangelist / heartland region | microsoft corporation | office 248.233.2653 | mobile 248.345.9843 | 1000 town center drive suite 2000 southfield, mi 48075 | email debrown at microsoft.com | blog http://blogs.msdn.com/thefuriousone/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 26 12:09:33 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Jun 2008 09:09:33 -0700 Subject: [Ironruby-core] Code Review: partial1 Message-ID: tfpt review "/shelveset:partial1;REDMOND\jdeville" Comment : Run IronRuby.test.exe under regular and partial trust in snap. From debrown at microsoft.com Thu Jun 26 12:40:58 2008 From: debrown at microsoft.com (DeVaris Brown) Date: Thu, 26 Jun 2008 09:40:58 -0700 Subject: [Ironruby-core] Installation Problems Message-ID: <5B434DC97B7AF54FA0762995390C39B41CD01143E2@NA-EXMSG-C115.redmond.corp.microsoft.com> Message: 3 Date: Thu, 26 Jun 2008 06:30:17 -0700 From: "John Lam (IRONRUBY)" Subject: Re: [Ironruby-core] Installation Probs To: "ironruby-core at rubyforge.org" Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E60111 at NA-EXMSG-C115.redmond.corp.microsoft.com> Content-Type: text/plain; charset="us-ascii" Can you give us more details? 1) what dir did you check out the sources into 2) I'm assuming this is the latest (114 build) 3) You're using the IronRuby.sln file? Thanks, -John 1) C:\Ironruby 2) Yes 3) Yes devaris brown | academic developer evangelist / heartland region | microsoft corporation | office 248.233.2653 | mobile 248.345.9843 | 1000 town center drive suite 2000 southfield, mi 48075 | email debrown at microsoft.com | blog http://blogs.msdn.com/thefuriousone/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Thu Jun 26 13:25:31 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 26 Jun 2008 10:25:31 -0700 Subject: [Ironruby-core] Installation Problems In-Reply-To: <5B434DC97B7AF54FA0762995390C39B41CD01143E2@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <5B434DC97B7AF54FA0762995390C39B41CD01143E2@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E602A0@NA-EXMSG-C115.redmond.corp.microsoft.com> Curt and I talked about this over breakfast this AM - do you have admin rights to create directories in c:\? If not, perhaps moving it down one more level to c:\foo\IronRuby would fix this problem? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of DeVaris Brown Sent: Thursday, June 26, 2008 9:41 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Installation Problems Message: 3 Date: Thu, 26 Jun 2008 06:30:17 -0700 From: "John Lam (IRONRUBY)" Subject: Re: [Ironruby-core] Installation Probs To: "ironruby-core at rubyforge.org" Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E60111 at NA-EXMSG-C115.redmond.corp.microsoft.com> Content-Type: text/plain; charset="us-ascii" Can you give us more details? 1) what dir did you check out the sources into 2) I'm assuming this is the latest (114 build) 3) You're using the IronRuby.sln file? Thanks, -John 1) C:\Ironruby 2) Yes 3) Yes devaris brown | academic developer evangelist / heartland region | microsoft corporation | office 248.233.2653 | mobile 248.345.9843 | 1000 town center drive suite 2000 southfield, mi 48075 | email debrown at microsoft.com | blog http://blogs.msdn.com/thefuriousone/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From srivatsn at microsoft.com Thu Jun 26 13:41:04 2008 From: srivatsn at microsoft.com (Srivatsn Narayanan) Date: Thu, 26 Jun 2008 10:41:04 -0700 Subject: [Ironruby-core] Code Review: partial1 In-Reply-To: References: Message-ID: Did you forget to include irtest.bat? I don't see it already checked in. Also RowanTest.* files don't have any changes. You can undo them. -----Original Message----- From: Jim Deville Sent: Thursday, June 26, 2008 9:10 AM To: IronRuby External Code Reviewers; Srivatsn Narayanan Cc: ironruby-core at rubyforge.org Subject: Code Review: partial1 tfpt review "/shelveset:partial1;REDMOND\jdeville" Comment : Run IronRuby.test.exe under regular and partial trust in snap. From Tomas.Matousek at microsoft.com Thu Jun 26 13:51:25 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 26 Jun 2008 10:51:25 -0700 Subject: [Ironruby-core] Code Review: YamlParse In-Reply-To: References: Message-ID: parse_documents needs to call block.BlockJumped after the block invocation. Also the result of the block invocation should be returned from the function if the block jumped (try parse_documents ... { break 'foo' } and parse_documents ... { 'bar' }). YAMLNumericOps.TagUri: it is better to define overloads for float, double, decimal, [NotNull]BigInteger and object than switching over the types by hand. Other than that looks good. Tomas -----Original Message----- From: Oleg Tkachenko Sent: Wednesday, June 25, 2008 9:16 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlParse tfpt review "/shelveset:YamlParse;REDMOND\olegtk" Comment : Implements Bignum support. Refactores constructors hierarchy by decoupling constructors (those building Ruby objects from Nodes) and composers (those building Nodes from Yaml source) and introducing NodeProvider to be used by contructors. Adds preliminary support for YamlNode and Implements YamlNode.transform. Implements YAML::parse, YAML::parse_documents and YAML::parse_file methods. Removes YamlDocument class - duplicate functionality. -- Oleg From jdeville at microsoft.com Thu Jun 26 13:57:16 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Jun 2008 10:57:16 -0700 Subject: [Ironruby-core] Code Review: partial1 Message-ID: Fixed. Try again. JD > -----Original Message----- > From: Srivatsn Narayanan > Sent: Thursday, June 26, 2008 10:41 AM > To: Jim Deville; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: Code Review: partial1 > > Did you forget to include irtest.bat? I don't see it already checked > in. Also RowanTest.* files don't have any changes. You can undo them. > > -----Original Message----- > From: Jim Deville > Sent: Thursday, June 26, 2008 9:10 AM > To: IronRuby External Code Reviewers; Srivatsn Narayanan > Cc: ironruby-core at rubyforge.org > Subject: Code Review: partial1 > > tfpt review "/shelveset:partial1;REDMOND\jdeville" > Comment : > Run IronRuby.test.exe under regular and partial trust in snap. > -------------- next part -------------- A non-text attachment was scrubbed... Name: partial1.diff Type: application/octet-stream Size: 953 bytes Desc: partial1.diff URL: From Tomas.Matousek at microsoft.com Thu Jun 26 14:05:23 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 26 Jun 2008 11:05:23 -0700 Subject: [Ironruby-core] Code Review: MutableStringSqueeze In-Reply-To: References: Message-ID: Looks good. Tomas -----Original Message----- From: Dave Remy Sent: Wednesday, June 25, 2008 3:56 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: MutableStringSqueeze tfpt review "/shelveset:MutableStringSqueeze;REDMOND\dremy" Comment : Implement String.squeeze and String.squeeze! Passes RubySpec tests. Passes Unit tests. From srivatsn at microsoft.com Thu Jun 26 14:11:14 2008 From: srivatsn at microsoft.com (Srivatsn Narayanan) Date: Thu, 26 Jun 2008 11:11:14 -0700 Subject: [Ironruby-core] Code Review: partial1 In-Reply-To: References: Message-ID: Looks good. Make sure that the generic test won't timeout since the running time has effectively doubled. Also, in the batch file, you could use pushd %ROWAN_BIN% and then popd instead of storing CURRENT. -----Original Message----- From: Jim Deville Sent: Thursday, June 26, 2008 10:57 AM To: Srivatsn Narayanan; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: partial1 Fixed. Try again. JD > -----Original Message----- > From: Srivatsn Narayanan > Sent: Thursday, June 26, 2008 10:41 AM > To: Jim Deville; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: Code Review: partial1 > > Did you forget to include irtest.bat? I don't see it already checked > in. Also RowanTest.* files don't have any changes. You can undo them. > > -----Original Message----- > From: Jim Deville > Sent: Thursday, June 26, 2008 9:10 AM > To: IronRuby External Code Reviewers; Srivatsn Narayanan > Cc: ironruby-core at rubyforge.org > Subject: Code Review: partial1 > > tfpt review "/shelveset:partial1;REDMOND\jdeville" > Comment : > Run IronRuby.test.exe under regular and partial trust in snap. > From robert.horvick at gmail.com Thu Jun 26 14:15:13 2008 From: robert.horvick at gmail.com (Robert Horvick) Date: Thu, 26 Jun 2008 14:15:13 -0400 Subject: [Ironruby-core] Code Review: MutableStringSqueeze In-Reply-To: References: Message-ID: Should the comment: "putters putt balls".squeeze("mz") => "puters put balls" be "putters putt balls".squeeze("m-z") => "puters put balls" Robert. On Wed, Jun 25, 2008 at 6:55 PM, Dave Remy wrote: > tfpt review "/shelveset:MutableStringSqueeze;REDMOND\dremy" > Comment : > Implement String.squeeze and String.squeeze! > Passes RubySpec tests. Passes Unit tests. > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dremy at microsoft.com Thu Jun 26 16:15:38 2008 From: dremy at microsoft.com (Dave Remy) Date: Thu, 26 Jun 2008 13:15:38 -0700 Subject: [Ironruby-core] Code Review: MutableStringSqueeze In-Reply-To: References: Message-ID: Yes! Thanks! From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Horvick Sent: Thursday, June 26, 2008 11:15 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Code Review: MutableStringSqueeze Should the comment: "putters putt balls".squeeze("mz") => "puters put balls" be "putters putt balls".squeeze("m-z") => "puters put balls" Robert. On Wed, Jun 25, 2008 at 6:55 PM, Dave Remy > wrote: tfpt review "/shelveset:MutableStringSqueeze;REDMOND\dremy" Comment : Implement String.squeeze and String.squeeze! Passes RubySpec tests. Passes Unit tests. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Thu Jun 26 16:22:47 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Jun 2008 13:22:47 -0700 Subject: [Ironruby-core] Code Review: partial1 In-Reply-To: References: Message-ID: What's the timeout for generic tests? Is it the one in the test? Or does Snap have a limit? JD > -----Original Message----- > From: Srivatsn Narayanan > Sent: Thursday, June 26, 2008 11:11 AM > To: Jim Deville; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: RE: Code Review: partial1 > > Looks good. Make sure that the generic test won't timeout since the > running time has effectively doubled. Also, in the batch file, you > could use pushd %ROWAN_BIN% and then popd instead of storing CURRENT. > > -----Original Message----- > From: Jim Deville > Sent: Thursday, June 26, 2008 10:57 AM > To: Srivatsn Narayanan; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: Code Review: partial1 > > Fixed. Try again. > > > JD > > > > -----Original Message----- > > From: Srivatsn Narayanan > > Sent: Thursday, June 26, 2008 10:41 AM > > To: Jim Deville; IronRuby External Code Reviewers > > Cc: ironruby-core at rubyforge.org > > Subject: RE: Code Review: partial1 > > > > Did you forget to include irtest.bat? I don't see it already checked > > in. Also RowanTest.* files don't have any changes. You can undo them. > > > > -----Original Message----- > > From: Jim Deville > > Sent: Thursday, June 26, 2008 9:10 AM > > To: IronRuby External Code Reviewers; Srivatsn Narayanan > > Cc: ironruby-core at rubyforge.org > > Subject: Code Review: partial1 > > > > tfpt review "/shelveset:partial1;REDMOND\jdeville" > > Comment : > > Run IronRuby.test.exe under regular and partial trust in snap. > > From srivatsn at microsoft.com Thu Jun 26 16:26:24 2008 From: srivatsn at microsoft.com (Srivatsn Narayanan) Date: Thu, 26 Jun 2008 13:26:24 -0700 Subject: [Ironruby-core] Code Review: partial1 In-Reply-To: References: Message-ID: It's the one in the test. There is a snap timeout as well but that is the for the entire task. That shouldn't have to change. -----Original Message----- From: Jim Deville Sent: Thursday, June 26, 2008 1:23 PM To: Srivatsn Narayanan; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: RE: Code Review: partial1 What's the timeout for generic tests? Is it the one in the test? Or does Snap have a limit? JD > -----Original Message----- > From: Srivatsn Narayanan > Sent: Thursday, June 26, 2008 11:11 AM > To: Jim Deville; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: RE: Code Review: partial1 > > Looks good. Make sure that the generic test won't timeout since the > running time has effectively doubled. Also, in the batch file, you > could use pushd %ROWAN_BIN% and then popd instead of storing CURRENT. > > -----Original Message----- > From: Jim Deville > Sent: Thursday, June 26, 2008 10:57 AM > To: Srivatsn Narayanan; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: Code Review: partial1 > > Fixed. Try again. > > > JD > > > > -----Original Message----- > > From: Srivatsn Narayanan > > Sent: Thursday, June 26, 2008 10:41 AM > > To: Jim Deville; IronRuby External Code Reviewers > > Cc: ironruby-core at rubyforge.org > > Subject: RE: Code Review: partial1 > > > > Did you forget to include irtest.bat? I don't see it already checked > > in. Also RowanTest.* files don't have any changes. You can undo them. > > > > -----Original Message----- > > From: Jim Deville > > Sent: Thursday, June 26, 2008 9:10 AM > > To: IronRuby External Code Reviewers; Srivatsn Narayanan > > Cc: ironruby-core at rubyforge.org > > Subject: Code Review: partial1 > > > > tfpt review "/shelveset:partial1;REDMOND\jdeville" > > Comment : > > Run IronRuby.test.exe under regular and partial trust in snap. > > From jflam at microsoft.com Thu Jun 26 16:26:56 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 26 Jun 2008 13:26:56 -0700 Subject: [Ironruby-core] Code Review: YamlParse In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E6040C@NA-EXMSG-C115.redmond.corp.microsoft.com> [NotNull] is used to force the binder to never pass a null value to that overload. You typically use this when you have another overload that accepts a generic object parameter and you want to redirect all cases where the caller passes nil to that overload. Thanks, -John -----Original Message----- From: Oleg Tkachenko Sent: Thursday, June 26, 2008 1:22 PM To: Tomas Matousek; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlParse Can you please explain [NotNull]BigInteger part? I mean why [NotNull]? -- Oleg -----Original Message----- From: Tomas Matousek Sent: Thursday, June 26, 2008 10:51 AM To: Oleg Tkachenko; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlParse parse_documents needs to call block.BlockJumped after the block invocation. Also the result of the block invocation should be returned from the function if the block jumped (try parse_documents ... { break 'foo' } and parse_documents ... { 'bar' }). YAMLNumericOps.TagUri: it is better to define overloads for float, double, decimal, [NotNull]BigInteger and object than switching over the types by hand. Other than that looks good. Tomas -----Original Message----- From: Oleg Tkachenko Sent: Wednesday, June 25, 2008 9:16 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlParse tfpt review "/shelveset:YamlParse;REDMOND\olegtk" Comment : Implements Bignum support. Refactores constructors hierarchy by decoupling constructors (those building Ruby objects from Nodes) and composers (those building Nodes from Yaml source) and introducing NodeProvider to be used by contructors. Adds preliminary support for YamlNode and Implements YamlNode.transform. Implements YAML::parse, YAML::parse_documents and YAML::parse_file methods. Removes YamlDocument class - duplicate functionality. -- Oleg From olegtk at microsoft.com Thu Jun 26 16:21:59 2008 From: olegtk at microsoft.com (Oleg Tkachenko) Date: Thu, 26 Jun 2008 13:21:59 -0700 Subject: [Ironruby-core] Code Review: YamlParse In-Reply-To: References: Message-ID: Can you please explain [NotNull]BigInteger part? I mean why [NotNull]? -- Oleg -----Original Message----- From: Tomas Matousek Sent: Thursday, June 26, 2008 10:51 AM To: Oleg Tkachenko; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlParse parse_documents needs to call block.BlockJumped after the block invocation. Also the result of the block invocation should be returned from the function if the block jumped (try parse_documents ... { break 'foo' } and parse_documents ... { 'bar' }). YAMLNumericOps.TagUri: it is better to define overloads for float, double, decimal, [NotNull]BigInteger and object than switching over the types by hand. Other than that looks good. Tomas -----Original Message----- From: Oleg Tkachenko Sent: Wednesday, June 25, 2008 9:16 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlParse tfpt review "/shelveset:YamlParse;REDMOND\olegtk" Comment : Implements Bignum support. Refactores constructors hierarchy by decoupling constructors (those building Ruby objects from Nodes) and composers (those building Nodes from Yaml source) and introducing NodeProvider to be used by contructors. Adds preliminary support for YamlNode and Implements YamlNode.transform. Implements YAML::parse, YAML::parse_documents and YAML::parse_file methods. Removes YamlDocument class - duplicate functionality. -- Oleg From curth at microsoft.com Thu Jun 26 16:28:23 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 26 Jun 2008 13:28:23 -0700 Subject: [Ironruby-core] Code Review: YamlParse In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3E6040C@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3E6040C@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: ...and all those other overloads are value types, so they can't be null. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Thursday, June 26, 2008 1:27 PM To: Oleg Tkachenko; Tomas Matousek; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Code Review: YamlParse [NotNull] is used to force the binder to never pass a null value to that overload. You typically use this when you have another overload that accepts a generic object parameter and you want to redirect all cases where the caller passes nil to that overload. Thanks, -John -----Original Message----- From: Oleg Tkachenko Sent: Thursday, June 26, 2008 1:22 PM To: Tomas Matousek; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlParse Can you please explain [NotNull]BigInteger part? I mean why [NotNull]? -- Oleg -----Original Message----- From: Tomas Matousek Sent: Thursday, June 26, 2008 10:51 AM To: Oleg Tkachenko; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlParse parse_documents needs to call block.BlockJumped after the block invocation. Also the result of the block invocation should be returned from the function if the block jumped (try parse_documents ... { break 'foo' } and parse_documents ... { 'bar' }). YAMLNumericOps.TagUri: it is better to define overloads for float, double, decimal, [NotNull]BigInteger and object than switching over the types by hand. Other than that looks good. Tomas -----Original Message----- From: Oleg Tkachenko Sent: Wednesday, June 25, 2008 9:16 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlParse tfpt review "/shelveset:YamlParse;REDMOND\olegtk" Comment : Implements Bignum support. Refactores constructors hierarchy by decoupling constructors (those building Ruby objects from Nodes) and composers (those building Nodes from Yaml source) and introducing NodeProvider to be used by contructors. Adds preliminary support for YamlNode and Implements YamlNode.transform. Implements YAML::parse, YAML::parse_documents and YAML::parse_file methods. Removes YamlDocument class - duplicate functionality. -- Oleg _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From olegtk at microsoft.com Thu Jun 26 16:59:19 2008 From: olegtk at microsoft.com (Oleg Tkachenko) Date: Thu, 26 Jun 2008 13:59:19 -0700 Subject: [Ironruby-core] Code Review: YamlParse2 Message-ID: Thanks for your comments, Tomas. Here is another try. tfpt review "/shelveset:YamlParse2;REDMOND\olegtk" Comment : Implements Bignum support. Refactores constructors hierarchy by decoupling constructors (those building Ruby objects from Nodes) and composers (those building Nodes from Yaml source) and introducing NodeProvider to be used by contructors. Adds preliminary support for YamlNode and Implements YamlNode.transform. Implements YAML::parse, YAML::parse_documents and YAML::parse_file methods. Removes YamlDocument class - duplicate functionality. Fixes circular referenced objects to_yaml serialization. -- Oleg -------------- next part -------------- A non-text attachment was scrubbed... Name: YamlParse2.diff Type: application/octet-stream Size: 40203 bytes Desc: YamlParse2.diff URL: From jflam at microsoft.com Thu Jun 26 18:53:35 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 26 Jun 2008 15:53:35 -0700 Subject: [Ironruby-core] Code Review: mspec-12 Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> tfpt review "/shelveset:mspec-12;REDMOND\jflam" Fixes to enable RubySpecs running in SNAP - Implementation of Kernel#exec - Fixes bugs in Kernel#exit! - calling incorrect overload - Implementation of Kernel#printf - Fixes bug in setting visibility of methods defined through attr_* methods (now public) - Adds overloads for File#open to handle name, modenum case and fixes a big in how IO#open was delegating to File constructors - Defines a FileTestOps class (does nothing right now) - Adds a Process#euid method that always returns 0 (need to understand whether detecting admin under windows is possible / realistic using this method) - Adds a RUBY_PATCHLEVEL constant and sets it to 0 - Fixes bug in exit n where we were failing to return n as exit code - Added a new RubyTestKey.snk which just contains our public key - in preparation for removing transform for SIGNED in to_svn rake task - A few baseline exclusion changes for existing specs -------------- next part -------------- A non-text attachment was scrubbed... Name: mspec-12.diff Type: application/octet-stream Size: 50999 bytes Desc: mspec-12.diff URL: From jdeville at microsoft.com Thu Jun 26 19:29:44 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Jun 2008 16:29:44 -0700 Subject: [Ironruby-core] Code Review: mspec-12 In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Test issues: * Instead of testing for ENV["HOME"] with unless ENV["HOME"].nil? why not use if ENV["HOME"] it's a little more idiomatic. * All of the _spec.rb.txt files have been renamed to _tags.txt. You'll need to fix your changeset for that. * The new rakefile doesn't allow testing methods directly. Any reason? Also, I'd prefer to keep the test tasks namespaced for organization sake. Can you at least move them into the mspec namespace with the rest of the mspec tasks? I'll remove redundant tasks later. JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) > Sent: Thursday, June 26, 2008 3:54 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Code Review: mspec-12 > > tfpt review "/shelveset:mspec-12;REDMOND\jflam" > > Fixes to enable RubySpecs running in SNAP > > - Implementation of Kernel#exec > - Fixes bugs in Kernel#exit! - calling incorrect overload > - Implementation of Kernel#printf > - Fixes bug in setting visibility of methods defined through attr_* > methods (now public) > - Adds overloads for File#open to handle name, modenum case and fixes > a big in how IO#open was delegating to File constructors > - Defines a FileTestOps class (does nothing right now) > - Adds a Process#euid method that always returns 0 (need to > understand whether detecting admin under windows is possible / > realistic using this method) > - Adds a RUBY_PATCHLEVEL constant and sets it to 0 > - Fixes bug in exit n where we were failing to return n as exit code > - Added a new RubyTestKey.snk which just contains our public key - in > preparation for removing transform for SIGNED in to_svn rake task > - A few baseline exclusion changes for existing specs > From Tomas.Matousek at microsoft.com Thu Jun 26 19:47:15 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 26 Jun 2008 16:47:15 -0700 Subject: [Ironruby-core] Code Review: mspec-12 In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: 1) There is some garbage in IronRuby.Tests.csproj. 2) Kernel#printf: It shouldn't look-up $stdin variable by name. Instead, RbExecContext.StandardOutput should be used. Also "write" should be invoked dynamically. $a = [] class << $stdout def write *args $a << args end end alias $stdout $foo printf("%d %d", 1, 2) class << STDOUT remove_method :write end p $a 3) class Foo attr_accessor :initialize end p Foo.private_instance_methods(false) p Foo.public_instance_methods(false) ["initialize"] ["initialize="] Attribute setter is not private. 4) Yaml initializers shouldn't be empty. Tomas -----Original Message----- From: John Lam (IRONRUBY) Sent: Thursday, June 26, 2008 3:54 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: mspec-12 tfpt review "/shelveset:mspec-12;REDMOND\jflam" Fixes to enable RubySpecs running in SNAP - Implementation of Kernel#exec - Fixes bugs in Kernel#exit! - calling incorrect overload - Implementation of Kernel#printf - Fixes bug in setting visibility of methods defined through attr_* methods (now public) - Adds overloads for File#open to handle name, modenum case and fixes a big in how IO#open was delegating to File constructors - Defines a FileTestOps class (does nothing right now) - Adds a Process#euid method that always returns 0 (need to understand whether detecting admin under windows is possible / realistic using this method) - Adds a RUBY_PATCHLEVEL constant and sets it to 0 - Fixes bug in exit n where we were failing to return n as exit code - Added a new RubyTestKey.snk which just contains our public key - in preparation for removing transform for SIGNED in to_svn rake task - A few baseline exclusion changes for existing specs From ivan at flanders.co.nz Thu Jun 26 20:22:25 2008 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 27 Jun 2008 12:22:25 +1200 Subject: [Ironruby-core] Sylvester the IronRuby twitter client Message-ID: Hi all, I rewrote witty or at least I re-used witty's xaml to write an IronRuby twitter client. However I have a fair bit of workarounds in C#. I was wondering if I could get somebody from the list to take a look and maybe give me some ways to do things better or in in the IronRuby language. The specs don't run they are based on an older version of mspec and I decided to put those in later on when rspec and flexmock are working on IR. If you want to check it out you can email me off list and I'll let you in to the svn repo. Cheers Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Thu Jun 26 21:11:29 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 26 Jun 2008 18:11:29 -0700 Subject: [Ironruby-core] Code Review: Interpret1 Message-ID: tfpt review "/shelveset:Interpret1;REDMOND\tomat" Microsoft.Scripting: Fixes variable lookup and evaluation of OrExpression in interpreter. Reduces amount of generated code during interpretation by using generic methods for delegate targets in LambdaInvoker. New methods are generated only if a signature that doesn't match any of the generic methods is needed. Adds InterpretedScriptCode that derives from ScriptCode and runs interpreter instead of compiler. Ruby: Uses InterpretedScriptCode. Modifies test runner to run interpreted mode and also to measure time. Removes calls to obsolete Ast.RuntimeConstant. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: Interpret1.diff Type: application/octet-stream Size: 18880 bytes Desc: Interpret1.diff URL: From jflam at microsoft.com Thu Jun 26 23:13:28 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 26 Jun 2008 20:13:28 -0700 Subject: [Ironruby-core] Code Review: mspec-12 In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E60636@NA-EXMSG-C115.redmond.corp.microsoft.com> Thanks for the catches. I'm leaving initialize= as public. I think that it's likely a bug that attr_accessor :initialize actually runs (Charlie actually agrees with this). I'll leave this as is for the time being and open a bug for us to resolve down the road. Yaml.Initializers is empty -- strange. I reverted the change, but there's currently a bug in how ClassInitGenerator generates the code for Yaml.Initializers. I believe Oleg manually edited to fix the change? I've also updated the Rakefile to generate the initializers for YAML. I have no idea where the crap that's in IronRuby.Tests.csproj came from - I've reverted that change too. Thanks, -John > -----Original Message----- > From: Tomas Matousek > Sent: Thursday, June 26, 2008 4:47 PM > To: John Lam (IRONRUBY); IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: Code Review: mspec-12 > > 1) There is some garbage in IronRuby.Tests.csproj. > > 2) Kernel#printf: > It shouldn't look-up $stdin variable by name. Instead, > RbExecContext.StandardOutput should be used. Also "write" should be > invoked dynamically. > > $a = [] > class << $stdout > def write *args > $a << args > end > end > > alias $stdout $foo > printf("%d %d", 1, 2) > > class << STDOUT > remove_method :write > end > > p $a > > 3) > class Foo > attr_accessor :initialize > end > > p Foo.private_instance_methods(false) > p Foo.public_instance_methods(false) > > ["initialize"] > ["initialize="] > > Attribute setter is not private. > > 4) Yaml initializers shouldn't be empty. > > Tomas > > > -----Original Message----- > From: John Lam (IRONRUBY) > Sent: Thursday, June 26, 2008 3:54 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: Code Review: mspec-12 > > tfpt review "/shelveset:mspec-12;REDMOND\jflam" > > Fixes to enable RubySpecs running in SNAP > > - Implementation of Kernel#exec > - Fixes bugs in Kernel#exit! - calling incorrect overload > - Implementation of Kernel#printf > - Fixes bug in setting visibility of methods defined through attr_* > methods (now public) > - Adds overloads for File#open to handle name, modenum case and fixes > a big in how IO#open was delegating to File constructors > - Defines a FileTestOps class (does nothing right now) > - Adds a Process#euid method that always returns 0 (need to > understand whether detecting admin under windows is possible / > realistic using this method) > - Adds a RUBY_PATCHLEVEL constant and sets it to 0 > - Fixes bug in exit n where we were failing to return n as exit code > - Added a new RubyTestKey.snk which just contains our public key - in > preparation for removing transform for SIGNED in to_svn rake task > - A few baseline exclusion changes for existing specs > From jflam at microsoft.com Thu Jun 26 23:15:44 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Thu, 26 Jun 2008 20:15:44 -0700 Subject: [Ironruby-core] Code Review: mspec-12 In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E60638@NA-EXMSG-C115.redmond.corp.microsoft.com> Jim Deville: > Test issues: > * Instead of testing for ENV["HOME"] with > unless ENV["HOME"].nil? > why not use > if ENV["HOME"] > it's a little more idiomatic. Done. > * All of the _spec.rb.txt files have been renamed to _tags.txt. You'll > need to fix your changeset for that. Done. > * The new rakefile doesn't allow testing methods directly. Any reason? > Also, I'd prefer to keep the test tasks namespaced for organization > sake. Can you at least move them into the mspec namespace with the rest > of the mspec tasks? I'll remove redundant tasks later. It's done to keep typing to a minimum. I don't like having to type more than I have to (and rake regression is already quite long). I replaced rake test to keep things short as well. I realize that folks can define aliases for these, but I'd rather the out of box experience be better than that. Thanks, -John From jdeville at microsoft.com Fri Jun 27 02:32:00 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Jun 2008 23:32:00 -0700 Subject: [Ironruby-core] Code Review: mspec-12 In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3E60638@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3E60552@NA-EXMSG-C115.redmond.corp.microsoft.com> , <372109E149E8084D8E6C7D9CFD82E0632FD3E60638@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Understood. We do need to watch for a littered namespace though if we are going to keep stuff top level. That's part of why Rails moved to namespaces. What's your thought on splitting the Rakefile into a compile.rake and a test.rake, for easier maintenance? JD ________________________________________ From: John Lam (IRONRUBY) Sent: Thursday, June 26, 2008 8:15 PM To: Jim Deville; ironruby-core at rubyforge.org; IronRuby External Code Reviewers Subject: RE: Code Review: mspec-12 Jim Deville: > Test issues: > * Instead of testing for ENV["HOME"] with > unless ENV["HOME"].nil? > why not use > if ENV["HOME"] > it's a little more idiomatic. Done. > * All of the _spec.rb.txt files have been renamed to _tags.txt. You'll > need to fix your changeset for that. Done. > * The new rakefile doesn't allow testing methods directly. Any reason? > Also, I'd prefer to keep the test tasks namespaced for organization > sake. Can you at least move them into the mspec namespace with the rest > of the mspec tasks? I'll remove redundant tasks later. It's done to keep typing to a minimum. I don't like having to type more than I have to (and rake regression is already quite long). I replaced rake test to keep things short as well. I realize that folks can define aliases for these, but I'd rather the out of box experience be better than that. Thanks, -John From jdeville at microsoft.com Fri Jun 27 02:37:07 2008 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Jun 2008 23:37:07 -0700 Subject: [Ironruby-core] Code Review: Interpret1 In-Reply-To: References: Message-ID: I need to double check tomorrow, but I believe the SNAP runs -fast and -checkin from run.rb (common.rb is used by run.rb), so your current changes might break SNAP. ________________________________________ From: Tomas Matousek Sent: Thursday, June 26, 2008 6:11 PM To: IronRuby External Code Reviewers; Rowan Code Reviewers; DLR Code Reviews Cc: ironruby-core at rubyforge.org Subject: Code Review: Interpret1 tfpt review "/shelveset:Interpret1;REDMOND\tomat" Microsoft.Scripting: Fixes variable lookup and evaluation of OrExpression in interpreter. Reduces amount of generated code during interpretation by using generic methods for delegate targets in LambdaInvoker. New methods are generated only if a signature that doesn?t match any of the generic methods is needed. Adds InterpretedScriptCode that derives from ScriptCode and runs interpreter instead of compiler. Ruby: Uses InterpretedScriptCode. Modifies test runner to run interpreted mode and also to measure time. Removes calls to obsolete Ast.RuntimeConstant. Tomas From jdeville at microsoft.com Fri Jun 27 16:37:04 2008 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 27 Jun 2008 13:37:04 -0700 Subject: [Ironruby-core] Code Review: Interpret1 In-Reply-To: References: Message-ID: I was right. We are running -fast and -checkin in SNAP. Tomas, could you undo the test changes, and I'll get them running under all three modes? JD -----Original Message----- From: Jim Deville Sent: Thursday, June 26, 2008 11:37 PM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers; DLR Code Reviews Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: Interpret1 I need to double check tomorrow, but I believe the SNAP runs -fast and -checkin from run.rb (common.rb is used by run.rb), so your current changes might break SNAP. ________________________________________ From: Tomas Matousek Sent: Thursday, June 26, 2008 6:11 PM To: IronRuby External Code Reviewers; Rowan Code Reviewers; DLR Code Reviews Cc: ironruby-core at rubyforge.org Subject: Code Review: Interpret1 tfpt review "/shelveset:Interpret1;REDMOND\tomat" Microsoft.Scripting: Fixes variable lookup and evaluation of OrExpression in interpreter. Reduces amount of generated code during interpretation by using generic methods for delegate targets in LambdaInvoker. New methods are generated only if a signature that doesn't match any of the generic methods is needed. Adds InterpretedScriptCode that derives from ScriptCode and runs interpreter instead of compiler. Ruby: Uses InterpretedScriptCode. Modifies test runner to run interpreted mode and also to measure time. Removes calls to obsolete Ast.RuntimeConstant. Tomas From jflam at microsoft.com Fri Jun 27 19:40:04 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Fri, 27 Jun 2008 16:40:04 -0700 Subject: [Ironruby-core] r115 to SVN - foundational work for RubySpec integration is done Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3E60B14@NA-EXMSG-C115.redmond.corp.microsoft.com> These updates sync the SVN tree up to our internal repository as of today. My apologies for the delay in getting these new bits out to y'all - we've had challenges in integrating the new Ruby specs among other things. The external builds are now all delay signed using a test key - RubyTestKey.snk. This means that you *must* run the RunFirst.cmd file to enable skip verification of the public key that we used in the delay signing. Hopefully this resolves the various signing issues that folks outside have seen. The IronRuby.sln file and its related .csproj files have also been updated to not create random phantom directories (there's one left bin/FxCop gets generated, but I haven't been able to track down the culprit). But this should fix the problem that DeVaris ran into earlier. The Rakefile has been extensively updated as well - the foundations are in place to run the official RubySpec specs from their GIT repo. You'll need to get GIT installed and a few other things, but it should work. More on how to do this next week when that integration is done. Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From olegtk at microsoft.com Fri Jun 27 20:00:36 2008 From: olegtk at microsoft.com (Oleg Tkachenko) Date: Fri, 27 Jun 2008 17:00:36 -0700 Subject: [Ironruby-core] Code Review: YamlRange Message-ID: tfpt review "/shelveset:YamlRange;REDMOND\olegtk" Comment : Fixes Range support: implements taguri() and loading Range object from yaml. Changes constructors to hold a reference to a code context instead of EqualityComparer (Range constructors wants it). -- Oleg -------------- next part -------------- A non-text attachment was scrubbed... Name: YamlRange.diff Type: application/octet-stream Size: 12731 bytes Desc: YamlRange.diff URL: From jdeville at microsoft.com Fri Jun 27 21:10:25 2008 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 27 Jun 2008 18:10:25 -0700 Subject: [Ironruby-core] r115 to SVN - foundational work for RubySpec integration is done Message-ID: Clarification: we've had the means to run RubySpec for a while, and with the exception of coverage numbers, things were fine. We ran into a problem where IronRuby wouldn't respect the exit code you told it to, and that has made us re-evaluate where the specs should be. We are moving them to a git repo like John said. In addition to cleaning out our repo, it will make merging changes to and from RubySpec easier down the road. Once these changes are finished, we'll update the wiki to show how to setup for development and run the tests. JD -----Original Message----- From: "John Lam (IRONRUBY)" To: "ironruby-core at rubyforge.org" Sent: 6/27/08 4:40 PM Subject: [Ironruby-core] r115 to SVN - foundational work for RubySpec integration is done These updates sync the SVN tree up to our internal repository as of today. My apologies for the delay in getting these new bits out to y'all ? we've had challenges in integrating the new Ruby specs among other things. The external builds are now all delay signed using a test key ? RubyTestKey.snk. This means that you *must* run the RunFirst.cmd file to enable skip verification of the public key that we used in the delay signing. Hopefully this resolves the various signing issues that folks outside have seen. The IronRuby.sln file and its related .csproj files have also been updated to not create random phantom directories (there's one left bin/FxCop gets generated, but I haven't been able to track down the culprit). But this should fix the problem that DeVaris ran into earlier. The Rakefile has been extensively updated as well ? the foundations are in place to run the official RubySpec specs from their GIT repo. You'll need to get GIT installed and a few other things, but it should work. More on how to do this next week when that integration is done. Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Jun 27 21:31:32 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 27 Jun 2008 18:31:32 -0700 Subject: [Ironruby-core] Code Review: YamlRange In-Reply-To: References: Message-ID: Why not to add Range constructor w/o CodeContext instead? The context is used only to compare bounds. Does YAML actually invoke <=> method when constructing range? Tomas -----Original Message----- From: Oleg Tkachenko Sent: Friday, June 27, 2008 5:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlRange tfpt review "/shelveset:YamlRange;REDMOND\olegtk" Comment : Fixes Range support: implements taguri() and loading Range object from yaml. Changes constructors to hold a reference to a code context instead of EqualityComparer (Range constructors wants it). -- Oleg From olegtk at microsoft.com Sat Jun 28 03:06:50 2008 From: olegtk at microsoft.com (Oleg Tkachenko) Date: Sat, 28 Jun 2008 00:06:50 -0700 Subject: [Ironruby-core] Code Review: YamlRange In-Reply-To: References: , Message-ID: Awesome catch! -- Oleg ________________________________________ From: Tomas Matousek Sent: Friday, June 27, 2008 6:31 PM To: Oleg Tkachenko; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlRange Why not to add Range constructor w/o CodeContext instead? The context is used only to compare bounds. Does YAML actually invoke <=> method when constructing range? Tomas -----Original Message----- From: Oleg Tkachenko Sent: Friday, June 27, 2008 5:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlRange tfpt review "/shelveset:YamlRange;REDMOND\olegtk" Comment : Fixes Range support: implements taguri() and loading Range object from yaml. Changes constructors to hold a reference to a code context instead of EqualityComparer (Range constructors wants it). -- Oleg From dremy at microsoft.com Sat Jun 28 17:20:37 2008 From: dremy at microsoft.com (Dave Remy) Date: Sat, 28 Jun 2008 14:20:37 -0700 Subject: [Ironruby-core] Code Review: MutableStringCenter Message-ID: tfpt review "/shelveset:MutableStringCenter;REDMOND\dremy" Comment : Made changes for MutableString.center to pass specs. Included flowing taint correctly, subclassing, changing signature to use object and then doing manual conversion. -------------- next part -------------- A non-text attachment was scrubbed... Name: MutableStringCenter.diff Type: application/octet-stream Size: 6585 bytes Desc: MutableStringCenter.diff URL: From bacondarwin at googlemail.com Sun Jun 29 07:34:58 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Sun, 29 Jun 2008 12:34:58 +0100 Subject: [Ironruby-core] HOME env variable required Message-ID: <000c01c8d9dc$2a83c390$7f8b4ab0$@com> I checked out r116 from SVN into a new clean folder. This is what I got: D:\dev\ruby\ironruby\head>rake compile (in D:/dev/ruby/ironruby/head) rake aborted! private method `gsub' called for nil:NilClass D:/dev/ruby/ironruby/head/rakefile:15 (See full trace by running task with --trace) Taking a look at the rakefile, SPEC_HOME = ENV['HOME'].gsub('\\', '/') + '/dev' So the problem is that I don't have a HOME variable set. Am I unusual in this respect? Do most people have this set on their Windows machines by default? Cheers, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From dotnetguy at gmail.com Sun Jun 29 11:57:32 2008 From: dotnetguy at gmail.com (Brad Wilson) Date: Sun, 29 Jun 2008 08:57:32 -0700 Subject: [Ironruby-core] HOME env variable required In-Reply-To: <000c01c8d9dc$2a83c390$7f8b4ab0$@com> References: <000c01c8d9dc$2a83c390$7f8b4ab0$@com> Message-ID: <6bbcce480806290857n219203d4v7f146da52477dd89@mail.gmail.com> %HOME% is not reliably set. Some OSes will make it a combination of %HOMEDRIVE%%HOMEPATH%, but many don't (it's not set on my Vista x64 box, for example). A much more reliable environment variable seems to be %USERPROFILE%. On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote: > I checked out r116 from SVN into a new clean folder. This is what I got: > > > > D:\dev\ruby\ironruby\head>rake compile > > (in D:/dev/ruby/ironruby/head) > > rake aborted! > > private method `gsub' called for nil:NilClass > > D:/dev/ruby/ironruby/head/rakefile:15 > > (See full trace by running task with --trace) > > > > Taking a look at the rakefile, > > > > SPEC_HOME = ENV['HOME'].gsub('\\', '/') + '/dev' > > > > So the problem is that I don't have a HOME variable set. Am I unusual in > this respect? Do most people have this set on their Windows machines by > default? > > Cheers, > > Pete > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- http://bradwilson.typepad.com/ http://social.zune.net/member/AgilistBrad http://www.flickr.com/photos/dotnetguy/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Sun Jun 29 13:22:03 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Sun, 29 Jun 2008 10:22:03 -0700 Subject: [Ironruby-core] HOME env variable required Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> Thanks for the idea. I'll look for HOME first followed by USERPROFILE before failing with a better message than that :) - John Sent from my phone ________________________________ From: Brad Wilson Sent: Sunday, June 29, 2008 8:57 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required %HOME% is not reliably set. Some OSes will make it a combination of %HOMEDRIVE%%HOMEPATH%, but many don't (it's not set on my Vista x64 box, for example). A much more reliable environment variable seems to be %USERPROFILE%. On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin > wrote: I checked out r116 from SVN into a new clean folder. This is what I got: D:\dev\ruby\ironruby\head>rake compile (in D:/dev/ruby/ironruby/head) rake aborted! private method `gsub' called for nil:NilClass D:/dev/ruby/ironruby/head/rakefile:15 (See full trace by running task with --trace) Taking a look at the rakefile, SPEC_HOME = ENV['HOME'].gsub('\\', '/') + '/dev' So the problem is that I don't have a HOME variable set. Am I unusual in this respect? Do most people have this set on their Windows machines by default? Cheers, Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- http://bradwilson.typepad.com/ http://social.zune.net/member/AgilistBrad http://www.flickr.com/photos/dotnetguy/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Sun Jun 29 13:23:40 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Sun, 29 Jun 2008 18:23:40 +0100 Subject: [Ironruby-core] Ruby.StandardLibrary.Yaml.YamlLibraryInitializer Message-ID: <002001c8da0c$e085ffc0$a191ff40$@com> In r116, if you run rake gen to recreate the initializers, the Yaml one is corrupt and will not compile: trunk\src\yaml\initializer.generated.cs (line 22): Ruby.Builtins.RubyClass Context.ObjectClass = ExtendClass(typeof(System.Object), new System.Action(LoadSystem__Object_Instance), null, Ruby.Builtins.RubyModule.EmptyArray, null); There is something decidedly fishy about that Context.ObjectClass variable name. Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Sun Jun 29 14:48:02 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Sun, 29 Jun 2008 11:48:02 -0700 Subject: [Ironruby-core] Ruby.StandardLibrary.Yaml.YamlLibraryInitializer Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F53@NA-EXMSG-C115.redmond.corp.microsoft.com> Sorry about that. If you delete the type, var, and assignment operator everything should work. It is fixed already here. - John Sent from my phone ________________________________ From: Peter Bacon Darwin Sent: Sunday, June 29, 2008 10:23 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Ruby.StandardLibrary.Yaml.YamlLibraryInitializer In r116, if you run rake gen to recreate the initializers, the Yaml one is corrupt and will not compile: trunk\src\yaml\initializer.generated.cs (line 22): Ruby.Builtins.RubyClass Context.ObjectClass = ExtendClass(typeof(System.Object), new System.Action(LoadSystem__Object_Instance), null, Ruby.Builtins.RubyModule.EmptyArray, null); There is something decidedly fishy about that Context.ObjectClass variable name. Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From dremy at microsoft.com Sun Jun 29 18:58:15 2008 From: dremy at microsoft.com (Dave Remy) Date: Sun, 29 Jun 2008 15:58:15 -0700 Subject: [Ironruby-core] MutableString.each Message-ID: I am working on one of the specs for string.each which is failing. This is the spec that is failing. it "raises a RuntimeError if the string is modified while substituting" do str = "hello\nworld" should_raise(RuntimeError) { str.send(cmd) { str[0] = 'x' } } end The idea is that the string that is being iterated over shouldn't be changed during the iteration. It is easy enough to freeze the string in the first line of MutableString.EachLine using: RubyUtils.GetExecutionContext(context).FreezeObject(self); Which appropriately throws an error when the string gets modified, however this approach throws a "TypeError" and the spec wants a "RuntimeError" (message: String#each raises a RuntimeError if the string is modified while substituting FAILED, Expected RuntimeError, got TypeError (can't modify frozen object)). I considered wrapping the code in EachLine that invokes the each block with a try catch and then rethrowing a caught type error exception to a runtime exception however I don't see a runtime exception type in RubyExceptions. Any suggestions on how best to approach this? Thx! rem -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Sun Jun 29 19:15:50 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sun, 29 Jun 2008 16:15:50 -0700 Subject: [Ironruby-core] MutableString.each In-Reply-To: References: Message-ID: RuntimeException is defined in IronRuby.Libraries\Builtins\Exceptions.cs. Is MRI really that inconsistent about which type of error is thrown when you try to modify a frozen object? (Not that this would surprise me :(.) If so, it might be cleaner if the call to FreezeObject could record or otherwise influence the type of exception that we expect to throw. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Sunday, June 29, 2008 3:58 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] MutableString.each I am working on one of the specs for string.each which is failing. This is the spec that is failing. it "raises a RuntimeError if the string is modified while substituting" do str = "hello\nworld" should_raise(RuntimeError) { str.send(cmd) { str[0] = 'x' } } end The idea is that the string that is being iterated over shouldn't be changed during the iteration. It is easy enough to freeze the string in the first line of MutableString.EachLine using: RubyUtils.GetExecutionContext(context).FreezeObject(self); Which appropriately throws an error when the string gets modified, however this approach throws a "TypeError" and the spec wants a "RuntimeError" (message: String#each raises a RuntimeError if the string is modified while substituting FAILED, Expected RuntimeError, got TypeError (can't modify frozen object)). I considered wrapping the code in EachLine that invokes the each block with a try catch and then rethrowing a caught type error exception to a runtime exception however I don't see a runtime exception type in RubyExceptions. Any suggestions on how best to approach this? Thx! rem -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Sun Jun 29 19:21:22 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sun, 29 Jun 2008 16:21:22 -0700 Subject: [Ironruby-core] HOME env variable required In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: I would bet that some of the specs themselves assume that HOME is defined as well. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Sunday, June 29, 2008 10:22 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Thanks for the idea. I'll look for HOME first followed by USERPROFILE before failing with a better message than that :) - John Sent from my phone ________________________________ From: Brad Wilson Sent: Sunday, June 29, 2008 8:57 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required %HOME% is not reliably set. Some OSes will make it a combination of %HOMEDRIVE%%HOMEPATH%, but many don't (it's not set on my Vista x64 box, for example). A much more reliable environment variable seems to be %USERPROFILE%. On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin > wrote: I checked out r116 from SVN into a new clean folder. This is what I got: D:\dev\ruby\ironruby\head>rake compile (in D:/dev/ruby/ironruby/head) rake aborted! private method `gsub' called for nil:NilClass D:/dev/ruby/ironruby/head/rakefile:15 (See full trace by running task with --trace) Taking a look at the rakefile, SPEC_HOME = ENV['HOME'].gsub('\\', '/') + '/dev' So the problem is that I don't have a HOME variable set. Am I unusual in this respect? Do most people have this set on their Windows machines by default? Cheers, Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- http://bradwilson.typepad.com/ http://social.zune.net/member/AgilistBrad http://www.flickr.com/photos/dotnetguy/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Sun Jun 29 19:31:05 2008 From: curth at microsoft.com (Curt Hagenlocher) Date: Sun, 29 Jun 2008 16:31:05 -0700 Subject: [Ironruby-core] Code Review: MutableStringCenter In-Reply-To: References: Message-ID: I know that at some point, we were always defining multiple overloads in cases like this. For center, I would have probably included both the old signature and the new one: Center(CodeContext, MutableString, int len, [Optional]MutableString padding); Center(CodeContext, MutableString, object len, [Optional]object pad); ...and simply had the more general version do it's protocol-based conversions and then call the more specific implementation. But I don't know if that's still the convention we're following for the libraries. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Saturday, June 28, 2008 2:21 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: [Ironruby-core] Code Review: MutableStringCenter tfpt review "/shelveset:MutableStringCenter;REDMOND\dremy" Comment : Made changes for MutableString.center to pass specs. Included flowing taint correctly, subclassing, changing signature to use object and then doing manual conversion. From jdeville at microsoft.com Sun Jun 29 19:33:57 2008 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 29 Jun 2008 16:33:57 -0700 Subject: [Ironruby-core] HOME env variable required In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com>, Message-ID: I have already hacked a couple of them to make them look for the HOME then USERPROFILE. That's a relic of the spec's being developed mostly on *nix. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher [curth at microsoft.com] Sent: Sunday, June 29, 2008 4:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required I would bet that some of the specs themselves assume that HOME is defined as well. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Sunday, June 29, 2008 10:22 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Thanks for the idea. I'll look for HOME first followed by USERPROFILE before failing with a better message than that :) - John Sent from my phone ________________________________ From: Brad Wilson Sent: Sunday, June 29, 2008 8:57 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required %HOME% is not reliably set. Some OSes will make it a combination of %HOMEDRIVE%%HOMEPATH%, but many don't (it's not set on my Vista x64 box, for example). A much more reliable environment variable seems to be %USERPROFILE%. On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin > wrote: I checked out r116 from SVN into a new clean folder. This is what I got: D:\dev\ruby\ironruby\head>rake compile (in D:/dev/ruby/ironruby/head) rake aborted! private method `gsub' called for nil:NilClass D:/dev/ruby/ironruby/head/rakefile:15 (See full trace by running task with --trace) Taking a look at the rakefile, SPEC_HOME = ENV['HOME'].gsub('\\', '/') + '/dev' So the problem is that I don't have a HOME variable set. Am I unusual in this respect? Do most people have this set on their Windows machines by default? Cheers, Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- http://bradwilson.typepad.com/ http://social.zune.net/member/AgilistBrad http://www.flickr.com/photos/dotnetguy/ From bacondarwin at googlemail.com Mon Jun 30 02:52:12 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Mon, 30 Jun 2008 07:52:12 +0100 Subject: [Ironruby-core] HOME env variable required In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com>, Message-ID: <001201c8da7d$d451d8c0$7cf58a40$@com> How conventional in the Ruby World in general is it to expect the HOME variable to exist? Wouldn't it be easier to have a check at the start of the RakeFile and spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) if it is nil? Then you don't need to go and hack the specs themselves. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday,30 June 30, 2008 00:34 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required I have already hacked a couple of them to make them look for the HOME then USERPROFILE. That's a relic of the spec's being developed mostly on *nix. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher [curth at microsoft.com] Sent: Sunday, June 29, 2008 4:21 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required I would bet that some of the specs themselves assume that HOME is defined as well. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Sunday, June 29, 2008 10:22 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Thanks for the idea. I'll look for HOME first followed by USERPROFILE before failing with a better message than that :) - John Sent from my phone ________________________________ From: Brad Wilson Sent: Sunday, June 29, 2008 8:57 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required %HOME% is not reliably set. Some OSes will make it a combination of %HOMEDRIVE%%HOMEPATH%, but many don't (it's not set on my Vista x64 box, for example). A much more reliable environment variable seems to be %USERPROFILE%. On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin > wrote: I checked out r116 from SVN into a new clean folder. This is what I got: D:\dev\ruby\ironruby\head>rake compile (in D:/dev/ruby/ironruby/head) rake aborted! private method `gsub' called for nil:NilClass D:/dev/ruby/ironruby/head/rakefile:15 (See full trace by running task with --trace) Taking a look at the rakefile, SPEC_HOME = ENV['HOME'].gsub('\\', '/') + '/dev' So the problem is that I don't have a HOME variable set. Am I unusual in this respect? Do most people have this set on their Windows machines by default? Cheers, Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- http://bradwilson.typepad.com/ http://social.zune.net/member/AgilistBrad http://www.flickr.com/photos/dotnetguy/ _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Mon Jun 30 04:56:17 2008 From: lists at ruby-forum.com (Todd Bb) Date: Mon, 30 Jun 2008 10:56:17 +0200 Subject: [Ironruby-core] using gems Message-ID: I hope this post is in the appropriate forum. I am wanting to use the rspec gem (in the context of an existing asp.net application so that I can test part of it BDD style). From what I can see there is no way to "require 'rspec'" and get access to the gem. Can anyone please confirm this? or at least put me straight :-) Thanks Todd -- Posted via http://www.ruby-forum.com/. From jflam at microsoft.com Mon Jun 30 10:22:57 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 30 Jun 2008 07:22:57 -0700 Subject: [Ironruby-core] MutableString.each In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3F402C3@NA-EXMSG-C115.redmond.corp.microsoft.com> You should catch and rethrow the correct exception if you want to use the frozen detection stuff. But you should check to see if it's actually frozen while iterating - ie is this an observable side-effect of using each? Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Sunday, June 29, 2008 4:16 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each RuntimeException is defined in IronRuby.Libraries\Builtins\Exceptions.cs. Is MRI really that inconsistent about which type of error is thrown when you try to modify a frozen object? (Not that this would surprise me :(.) If so, it might be cleaner if the call to FreezeObject could record or otherwise influence the type of exception that we expect to throw. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Sunday, June 29, 2008 3:58 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] MutableString.each I am working on one of the specs for string.each which is failing. This is the spec that is failing. it "raises a RuntimeError if the string is modified while substituting" do str = "hello\nworld" should_raise(RuntimeError) { str.send(cmd) { str[0] = 'x' } } end The idea is that the string that is being iterated over shouldn't be changed during the iteration. It is easy enough to freeze the string in the first line of MutableString.EachLine using: RubyUtils.GetExecutionContext(context).FreezeObject(self); Which appropriately throws an error when the string gets modified, however this approach throws a "TypeError" and the spec wants a "RuntimeError" (message: String#each raises a RuntimeError if the string is modified while substituting FAILED, Expected RuntimeError, got TypeError (can't modify frozen object)). I considered wrapping the code in EachLine that invokes the each block with a try catch and then rethrowing a caught type error exception to a runtime exception however I don't see a runtime exception type in RubyExceptions. Any suggestions on how best to approach this? Thx! rem -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Mon Jun 30 10:31:11 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 30 Jun 2008 07:31:11 -0700 Subject: [Ironruby-core] HOME env variable required In-Reply-To: <001201c8da7d$d451d8c0$7cf58a40$@com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com>, <001201c8da7d$d451d8c0$7cf58a40$@com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3F402C9@NA-EXMSG-C115.redmond.corp.microsoft.com> Peter Bacon Darwin: > How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn't it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don't need to go and hack the specs themselves. In the new world, we'll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John From jflam at microsoft.com Mon Jun 30 10:33:03 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 30 Jun 2008 07:33:03 -0700 Subject: [Ironruby-core] Ruby.StandardLibrary.Yaml.YamlLibraryInitializer In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F53@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F53@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3F402CC@NA-EXMSG-C115.redmond.corp.microsoft.com> Fixed in r117, which I just pushed to SVN. Thanks, -John > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) > Sent: Sunday, June 29, 2008 11:48 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] > Ruby.StandardLibrary.Yaml.YamlLibraryInitializer > > Sorry about that. If you delete the type, var, and assignment operator > everything should work. It is fixed already here. > > - John > Sent from my phone > > > ________________________________ > > From: Peter Bacon Darwin > Sent: Sunday, June 29, 2008 10:23 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] > Ruby.StandardLibrary.Yaml.YamlLibraryInitializer > > > > In r116, if you run rake gen to recreate the initializers, the Yaml > one is corrupt and will not compile: > > > > trunk\src\yaml\initializer.generated.cs (line 22): > > Ruby.Builtins.RubyClass Context.ObjectClass = > ExtendClass(typeof(System.Object), new > System.Action(LoadSystem__Object_Instance), > null, Ruby.Builtins.RubyModule.EmptyArray, null); > > > > There is something decidedly fishy about that Context.ObjectClass > variable name. > > Pete From jflam at microsoft.com Mon Jun 30 10:34:08 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 30 Jun 2008 07:34:08 -0700 Subject: [Ironruby-core] using gems In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3F402CE@NA-EXMSG-C115.redmond.corp.microsoft.com> Todd Bb: > I hope this post is in the appropriate forum. I am wanting to use the > rspec gem (in the context of an existing asp.net application so that I > can test part of it BDD style). From what I can see there is no way to > "require 'rspec'" and get access to the gem. Can anyone please confirm > this? or at least put me straight :-) I'd hold off on running rspec now. It does run, but we have to fix our startup issues before it's actually *useful* :) Thanks, -John From jflam at microsoft.com Mon Jun 30 10:39:02 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 30 Jun 2008 07:39:02 -0700 Subject: [Ironruby-core] Code Review: MutableStringCenter In-Reply-To: References: Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3F402D2@NA-EXMSG-C115.redmond.corp.microsoft.com> There's an overload for FlowTaint() that will accept two from args. If either self *or* padding is tainted the result is tainted, and that's what that form of FlowTaint() will do. Thanks, -John > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Curt Hagenlocher > Sent: Sunday, June 29, 2008 4:31 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Code Review: MutableStringCenter > > I know that at some point, we were always defining multiple overloads > in cases like this. For center, I would have probably included both > the old signature and the new one: > > Center(CodeContext, MutableString, int len, [Optional]MutableString > padding); Center(CodeContext, MutableString, object len, > [Optional]object pad); > > ...and simply had the more general version do it's protocol-based > conversions and then call the more specific implementation. But I > don't know if that's still the convention we're following for the > libraries. > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Dave Remy > Sent: Saturday, June 28, 2008 2:21 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Code Review: MutableStringCenter > > tfpt review "/shelveset:MutableStringCenter;REDMOND\dremy" > Comment : > Made changes for MutableString.center to pass specs. Included > flowing taint correctly, subclassing, changing signature to use object > and then doing manual conversion. > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From michael.letterle at gmail.com Mon Jun 30 11:03:56 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Mon, 30 Jun 2008 11:03:56 -0400 Subject: [Ironruby-core] HOME env variable required In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3F402C9@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> <001201c8da7d$d451d8c0$7cf58a40$@com> <372109E149E8084D8E6C7D9CFD82E0632FD3F402C9@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) wrote: > Peter Bacon Darwin: > > > How conventional in the Ruby World in general is it to expect the HOME > > variable to exist? > > Wouldn't it be easier to have a check at the start of the RakeFile and > > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > > if it is nil? Then you don't need to go and hack the specs themselves. > > In the new world, we'll likely have to modify the mspec spec runner and > contribute the changes back to the mspec project. specrunner.rb and friends > are effectively deprecated today. > > Thanks, > -John > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Mon Jun 30 11:16:25 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Mon, 30 Jun 2008 16:16:25 +0100 Subject: [Ironruby-core] HOME env variable required In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> <001201c8da7d$d451d8c0$7cf58a40$@com> <372109E149E8084D8E6C7D9CFD82E0632FD3F402C9@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: <005c01c8dac4$446b7f80$cd427e80$@com> That only works for IronRuby but not for running the Rakefile under CRuby. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:04 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) wrote: Peter Bacon Darwin: > How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn't it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don't need to go and hack the specs themselves. In the new world, we'll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.letterle at gmail.com Mon Jun 30 11:20:35 2008 From: michael.letterle at gmail.com (Michael Letterle) Date: Mon, 30 Jun 2008 11:20:35 -0400 Subject: [Ironruby-core] HOME env variable required In-Reply-To: <005c01c8dac4$446b7f80$cd427e80$@com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> <001201c8da7d$d451d8c0$7cf58a40$@com> <372109E149E8084D8E6C7D9CFD82E0632FD3F402C9@NA-EXMSG-C115.redmond.corp.microsoft.com> <005c01c8dac4$446b7f80$cd427e80$@com> Message-ID: It seems like it should be a separate environmental thing though. I would have the rakefile itself define HOME based on USERPROFILE if it doesn't exist then. I'd rather not see something like that put into the specs themselves. On Mon, Jun 30, 2008 at 11:16 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote: > That only works for IronRuby but not for running the Rakefile under > CRuby. > > Pete > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Michael Letterle > *Sent:* Monday,30 June 30, 2008 16:04 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] HOME env variable required > > > > Or add the HOME logic to irvars.bat > > On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) > wrote: > > Peter Bacon Darwin: > > > > How conventional in the Ruby World in general is it to expect the HOME > > variable to exist? > > Wouldn't it be easier to have a check at the start of the RakeFile and > > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > > if it is nil? Then you don't need to go and hack the specs themselves. > > In the new world, we'll likely have to modify the mspec spec runner and > contribute the changes back to the mspec project. specrunner.rb and friends > are effectively deprecated today. > > Thanks, > -John > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bacondarwin at googlemail.com Mon Jun 30 11:34:14 2008 From: bacondarwin at googlemail.com (Peter Bacon Darwin) Date: Mon, 30 Jun 2008 16:34:14 +0100 Subject: [Ironruby-core] HOME env variable required In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> <001201c8da7d$d451d8c0$7cf58a40$@com> <372109E149E8084D8E6C7D9CFD82E0632FD3F402C9@NA-EXMSG-C115.redmond.corp.microsoft.com> <005c01c8dac4$446b7f80$cd427e80$@com> Message-ID: <006701c8dac6$c14232e0$43c698a0$@com> Yep that was my point. Do the same thing in the spec_runner.rb or whatever file replaces it in the New World. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required It seems like it should be a separate environmental thing though. I would have the rakefile itself define HOME based on USERPROFILE if it doesn't exist then. I'd rather not see something like that put into the specs themselves. On Mon, Jun 30, 2008 at 11:16 AM, Peter Bacon Darwin wrote: That only works for IronRuby but not for running the Rakefile under CRuby. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:04 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) wrote: Peter Bacon Darwin: > How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn't it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don't need to go and hack the specs themselves. In the new world, we'll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dremy at microsoft.com Mon Jun 30 12:46:57 2008 From: dremy at microsoft.com (Dave Remy) Date: Mon, 30 Jun 2008 09:46:57 -0700 Subject: [Ironruby-core] MutableString.each In-Reply-To: <372109E149E8084D8E6C7D9CFD82E0632FD3F402C3@NA-EXMSG-C115.redmond.corp.microsoft.com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3F402C3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Translation: I need to check to assure that mri actually uses freeze to make the string immutable while iterating. I should be able to test the string for frozen. I just ran a test script, and nope, the string being iterated is not frozen: s = "aaa" s.each { puts s.frozen? } => false So I need to implement some other mechanism for making the iterated string immutable during the iteration rather than freezing it. I wonder whether other types of mutable objects that iterate have this same behavior ... I'll do some more research. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Monday, June 30, 2008 7:23 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each You should catch and rethrow the correct exception if you want to use the frozen detection stuff. But you should check to see if it's actually frozen while iterating - ie is this an observable side-effect of using each? Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Sunday, June 29, 2008 4:16 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each RuntimeException is defined in IronRuby.Libraries\Builtins\Exceptions.cs. Is MRI really that inconsistent about which type of error is thrown when you try to modify a frozen object? (Not that this would surprise me :(.) If so, it might be cleaner if the call to FreezeObject could record or otherwise influence the type of exception that we expect to throw. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Sunday, June 29, 2008 3:58 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] MutableString.each I am working on one of the specs for string.each which is failing. This is the spec that is failing. it "raises a RuntimeError if the string is modified while substituting" do str = "hello\nworld" should_raise(RuntimeError) { str.send(cmd) { str[0] = 'x' } } end The idea is that the string that is being iterated over shouldn't be changed during the iteration. It is easy enough to freeze the string in the first line of MutableString.EachLine using: RubyUtils.GetExecutionContext(context).FreezeObject(self); Which appropriately throws an error when the string gets modified, however this approach throws a "TypeError" and the spec wants a "RuntimeError" (message: String#each raises a RuntimeError if the string is modified while substituting FAILED, Expected RuntimeError, got TypeError (can't modify frozen object)). I considered wrapping the code in EachLine that invokes the each block with a try catch and then rethrowing a caught type error exception to a runtime exception however I don't see a runtime exception type in RubyExceptions. Any suggestions on how best to approach this? Thx! rem -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jun 30 12:48:29 2008 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 30 Jun 2008 09:48:29 -0700 Subject: [Ironruby-core] HOME env variable required In-Reply-To: <006701c8dac6$c14232e0$43c698a0$@com> References: <372109E149E8084D8E6C7D9CFD82E0632FD3B47F51@NA-EXMSG-C115.redmond.corp.microsoft.com> <001201c8da7d$d451d8c0$7cf58a40$@com> <372109E149E8084D8E6C7D9CFD82E0632FD3F402C9@NA-EXMSG-C115.redmond.corp.microsoft.com> <005c01c8dac4$446b7f80$cd427e80$@com> <006701c8dac6$c14232e0$43c698a0$@com> Message-ID: Actually, a better place in either case is spec_helper.rb. That way it doesn't depend on the runner, and once we are able to run files directly, they will get the var too. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Monday, June 30, 2008 8:34 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Yep that was my point. Do the same thing in the spec_runner.rb or whatever file replaces it in the New World. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required It seems like it should be a separate environmental thing though. I would have the rakefile itself define HOME based on USERPROFILE if it doesn't exist then. I'd rather not see something like that put into the specs themselves. On Mon, Jun 30, 2008 at 11:16 AM, Peter Bacon Darwin > wrote: That only works for IronRuby but not for running the Rakefile under CRuby. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:04 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) > wrote: Peter Bacon Darwin: > How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn't it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don't need to go and hack the specs themselves. In the new world, we'll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From olegtk at microsoft.com Mon Jun 30 14:01:34 2008 From: olegtk at microsoft.com (Oleg Tkachenko) Date: Mon, 30 Jun 2008 11:01:34 -0700 Subject: [Ironruby-core] Code Review: YamlRange In-Reply-To: References: Message-ID: Currently YAML just deserializes bound values (as objects) and passes then to the Range constructor. Do you mean that YAML can check bounds itself before constructing range? -- Oleg -----Original Message----- From: Tomas Matousek Sent: Friday, June 27, 2008 6:32 PM To: Oleg Tkachenko; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlRange Why not to add Range constructor w/o CodeContext instead? The context is used only to compare bounds. Does YAML actually invoke <=> method when constructing range? Tomas -----Original Message----- From: Oleg Tkachenko Sent: Friday, June 27, 2008 5:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlRange tfpt review "/shelveset:YamlRange;REDMOND\olegtk" Comment : Fixes Range support: implements taguri() and loading Range object from yaml. Changes constructors to hold a reference to a code context instead of EqualityComparer (Range constructors wants it). -- Oleg From olegtk at microsoft.com Mon Jun 30 14:13:58 2008 From: olegtk at microsoft.com (Oleg Tkachenko) Date: Mon, 30 Jun 2008 11:13:58 -0700 Subject: [Ironruby-core] Code Review: YamlRange In-Reply-To: References: Message-ID: After F2F check with Tomas we figured out the CodeContext is still needed here. -- Oleg -----Original Message----- From: Tomas Matousek Sent: Friday, June 27, 2008 6:32 PM To: Oleg Tkachenko; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: YamlRange Why not to add Range constructor w/o CodeContext instead? The context is used only to compare bounds. Does YAML actually invoke <=> method when constructing range? Tomas -----Original Message----- From: Oleg Tkachenko Sent: Friday, June 27, 2008 5:01 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: YamlRange tfpt review "/shelveset:YamlRange;REDMOND\olegtk" Comment : Fixes Range support: implements taguri() and loading Range object from yaml. Changes constructors to hold a reference to a code context instead of EqualityComparer (Range constructors wants it). -- Oleg From dremy at microsoft.com Mon Jun 30 16:06:04 2008 From: dremy at microsoft.com (Dave Remy) Date: Mon, 30 Jun 2008 13:06:04 -0700 Subject: [Ironruby-core] MutableString.each In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3F402C3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: After trying out various use cases string.each (synonym for .each_line) is very weird. Here are some cases .... # This one does not throw exception s = "aaa" s.each { s[0] = "b"} => "baa" # This one does (it has a newline) (and matches the rubyspec test case) s = "aaa\naaa" s.each { s[0] = "b"} => Runtime Error: string modified # Ok, if that is not weird enough (but maybe not completely whacked if you consider each_line won't really iterate until there is a newline) s = "aaa\naaa" # modify s before iterating s[0] = "a" s.each { s[0] = "b"} => "baa\naaa" This looks like MRI is relying on copy on write semantics to determine whether a string was modified? Jim, says this is not the behavior for 1.9. This seems like a good candidate for IR diverging on ... rem From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Monday, June 30, 2008 9:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each Translation: I need to check to assure that mri actually uses freeze to make the string immutable while iterating. I should be able to test the string for frozen. I just ran a test script, and nope, the string being iterated is not frozen: s = "aaa" s.each { puts s.frozen? } => false So I need to implement some other mechanism for making the iterated string immutable during the iteration rather than freezing it. I wonder whether other types of mutable objects that iterate have this same behavior ... I'll do some more research. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Monday, June 30, 2008 7:23 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each You should catch and rethrow the correct exception if you want to use the frozen detection stuff. But you should check to see if it's actually frozen while iterating - ie is this an observable side-effect of using each? Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Sunday, June 29, 2008 4:16 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each RuntimeException is defined in IronRuby.Libraries\Builtins\Exceptions.cs. Is MRI really that inconsistent about which type of error is thrown when you try to modify a frozen object? (Not that this would surprise me :(.) If so, it might be cleaner if the call to FreezeObject could record or otherwise influence the type of exception that we expect to throw. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Sunday, June 29, 2008 3:58 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] MutableString.each I am working on one of the specs for string.each which is failing. This is the spec that is failing. it "raises a RuntimeError if the string is modified while substituting" do str = "hello\nworld" should_raise(RuntimeError) { str.send(cmd) { str[0] = 'x' } } end The idea is that the string that is being iterated over shouldn't be changed during the iteration. It is easy enough to freeze the string in the first line of MutableString.EachLine using: RubyUtils.GetExecutionContext(context).FreezeObject(self); Which appropriately throws an error when the string gets modified, however this approach throws a "TypeError" and the spec wants a "RuntimeError" (message: String#each raises a RuntimeError if the string is modified while substituting FAILED, Expected RuntimeError, got TypeError (can't modify frozen object)). I considered wrapping the code in EachLine that invokes the each block with a try catch and then rethrowing a caught type error exception to a runtime exception however I don't see a runtime exception type in RubyExceptions. Any suggestions on how best to approach this? Thx! rem -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Jun 30 16:12:34 2008 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 30 Jun 2008 13:12:34 -0700 Subject: [Ironruby-core] MutableString.each In-Reply-To: References: <372109E149E8084D8E6C7D9CFD82E0632FD3F402C3@NA-EXMSG-C115.redmond.corp.microsoft.com> Message-ID: Note that on 1.9 you have to use each_line since each (and enumerable) have been removed from the String class. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Monday, June 30, 2008 1:06 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each After trying out various use cases string.each (synonym for .each_line) is very weird. Here are some cases .... # This one does not throw exception s = "aaa" s.each { s[0] = "b"} => "baa" # This one does (it has a newline) (and matches the rubyspec test case) s = "aaa\naaa" s.each { s[0] = "b"} => Runtime Error: string modified # Ok, if that is not weird enough (but maybe not completely whacked if you consider each_line won't really iterate until there is a newline) s = "aaa\naaa" # modify s before iterating s[0] = "a" s.each { s[0] = "b"} => "baa\naaa" This looks like MRI is relying on copy on write semantics to determine whether a string was modified? Jim, says this is not the behavior for 1.9. This seems like a good candidate for IR diverging on ... rem From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Monday, June 30, 2008 9:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each Translation: I need to check to assure that mri actually uses freeze to make the string immutable while iterating. I should be able to test the string for frozen. I just ran a test script, and nope, the string being iterated is not frozen: s = "aaa" s.each { puts s.frozen? } => false So I need to implement some other mechanism for making the iterated string immutable during the iteration rather than freezing it. I wonder whether other types of mutable objects that iterate have this same behavior ... I'll do some more research. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (IRONRUBY) Sent: Monday, June 30, 2008 7:23 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each You should catch and rethrow the correct exception if you want to use the frozen detection stuff. But you should check to see if it's actually frozen while iterating - ie is this an observable side-effect of using each? Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Sunday, June 29, 2008 4:16 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] MutableString.each RuntimeException is defined in IronRuby.Libraries\Builtins\Exceptions.cs. Is MRI really that inconsistent about which type of error is thrown when you try to modify a frozen object? (Not that this would surprise me :(.) If so, it might be cleaner if the call to FreezeObject could record or otherwise influence the type of exception that we expect to throw. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Dave Remy Sent: Sunday, June 29, 2008 3:58 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] MutableString.each I am working on one of the specs for string.each which is failing. This is the spec that is failing. it "raises a RuntimeError if the string is modified while substituting" do str = "hello\nworld" should_raise(RuntimeError) { str.send(cmd) { str[0] = 'x' } } end The idea is that the string that is being iterated over shouldn't be changed during the iteration. It is easy enough to freeze the string in the first line of MutableString.EachLine using: RubyUtils.GetExecutionContext(context).FreezeObject(self); Which appropriately throws an error when the string gets modified, however this approach throws a "TypeError" and the spec wants a "RuntimeError" (message: String#each raises a RuntimeError if the string is modified while substituting FAILED, Expected RuntimeError, got TypeError (can't modify frozen object)). I considered wrapping the code in EachLine that invokes the each block with a try catch and then rethrowing a caught type error exception to a runtime exception however I don't see a runtime exception type in RubyExceptions. Any suggestions on how best to approach this? Thx! rem -------------- next part -------------- An HTML attachment was scrubbed... URL: From dremy at microsoft.com Mon Jun 30 17:39:29 2008 From: dremy at microsoft.com (Dave Remy) Date: Mon, 30 Jun 2008 14:39:29 -0700 Subject: [Ironruby-core] Code Review: StringCenterDeleteEach Message-ID: tfpt review "/shelveset:StringCenterDeleteEach;REDMOND\dremy" Comment : Changes for string.center (adjustements for code review comments), string.delete, and string.each/each_line to pass specs. Also, forgot to update excludes for squeeze/squeeze! implementation in last checkin. -------------- next part -------------- A non-text attachment was scrubbed... Name: StringCenterDeleteEach.diff Type: application/octet-stream Size: 12782 bytes Desc: StringCenterDeleteEach.diff URL: From Tomas.Matousek at microsoft.com Mon Jun 30 17:42:54 2008 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 30 Jun 2008 14:42:54 -0700 Subject: [Ironruby-core] Code Review: StringCenterDeleteEach In-Reply-To: References: Message-ID: Looks good. -----Original Message----- From: Dave Remy Sent: Monday, June 30, 2008 2:39 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: StringCenterDeleteEach tfpt review "/shelveset:StringCenterDeleteEach;REDMOND\dremy" Comment : Changes for string.center (adjustements for code review comments), string.delete, and string.each/each_line to pass specs. Also, forgot to update excludes for squeeze/squeeze! implementation in last checkin. From leebellul at gmail.com Mon Jun 30 17:54:24 2008 From: leebellul at gmail.com (Gerard Mulot) Date: Mon, 30 Jun 2008 23:54:24 +0200 Subject: [Ironruby-core] LeeBeLLuL speak now with IronRuby Message-ID: A simple demo is available to download at http://www.leebellul.com showing How to use infopath forms in the hosting browser How to use xsl and xml to generate dynamic menus How to interact between Javascript and IronRuby How to interact between IronRuby and Javascript How to interact with the CLR To send email To launch command batch file to publish file via the command dos FTP To use dialog forms To use the system.data.oleDb to intercat with access mdb How to interact with the DLR and multiple ScriptScope The same demo is also available in IronPython. The translation between IronPyton and IronRuby was easy. No attempt has been done to optimize the coding Regards LeeBeLLuL -------------- next part -------------- An HTML attachment was scrubbed... URL: From jflam at microsoft.com Mon Jun 30 19:58:56 2008 From: jflam at microsoft.com (John Lam (IRONRUBY)) Date: Mon, 30 Jun 2008 16:58:56 -0700 Subject: [Ironruby-core] SVN r118 and RubySpec integration Message-ID: <372109E149E8084D8E6C7D9CFD82E0632FD3F40782@NA-EXMSG-C115.redmond.corp.microsoft.com> I just pushed SVN r118 out which contains RubySpec integration. There are a few things that you'll need to do: 1. (Optional) get a GitHub account (http://github.com) 2. (Optional) install GIT: a. Goto the msysgit project and download the .exe based installer: http://code.google.com/p/msysgit/ b. Make sure in the GIT setup that you click on the radio button labeled "Run Git from the Windows Command Prompt" c. Restart your command prompt 3. Navigate to my page: http://github.com/jflam to see the three GIT projects that you'll need to clone: ironruby-tags, mspec, and rubyspec. mspec and rubyspec are forks of the main projects so that we can add IronRuby specific tests and potential changes to mspec. The RubySpec committers can pull from these repositories to incorporate our changes. ironruby-tags is a project that contains the list of rubyspec specs that we currently exclude to get a clean regression baseline. 4. If you have GIT installed, create a directory to hold these projects. I use %USERPROFILE%\dev: a. in ~\dev\ironruby-tags run: git clone git://github.com/jflam/ironruby-tags.git b. in ~\dev\mspec run: git clone git://github.com/jflam/mspec.git c. in ~\dev\rubyspec run: git clone git://github.com/jflam/rubyspec.git 5. If you don't have GIT installed (and why don't you??? :)) you can download the tarball using the download button in each project. Once you have those projects in place, you'll need to grab r118 from RubyForge. There's a file in \trunk called runfirst.cmd. This will enable skip verification for projects signed with our public key, and it will create a default configuration file at %USERPROFILE%\.irconfig.rb. If you followed my instructions and created %USERPROFILE%\dev\[ironruby-tags,mspec,rubyspec] you're good to go. If you didn't, you'll need to edit the paths in .irconfig.rb You can test your setup by running the new regression test baseline rake task: rake regression This should report 0 failures and 0 errors. This is the first test of this stuff outside of my machine, so please kick the tires! Thanks, -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From dremy at microsoft.com Mon Jun 30 21:30:49 2008 From: dremy at microsoft.com (Dave Remy) Date: Mon, 30 Jun 2008 18:30:49 -0700 Subject: [Ironruby-core] Code Review: StringElementReferenceAndSlice Message-ID: tfpt review "/shelveset:StringElementReferenceAndSlice;REDMOND\dremy" Comment : Changes for [] (alias: slice) to run clean. One small fix to not flow taint. Also, fix a small bug that was using a deprecated implicit conversion between string and MutableString. -------------- next part -------------- A non-text attachment was scrubbed... Name: StringElementReferenceAndSlice.diff Type: application/octet-stream Size: 3015 bytes Desc: StringElementReferenceAndSlice.diff URL: From lists at ruby-forum.com Mon Jun 30 23:51:22 2008 From: lists at ruby-forum.com (Softmind Technology) Date: Tue, 1 Jul 2008 05:51:22 +0200 Subject: [Ironruby-core] LeeBeLLuL speak now with IronRuby In-Reply-To: References: Message-ID: Gerard Mulot wrote: > A simple demo is available to download at http://www.leebellul.com > showing ------------ Hi, Any chances of reading few important things in English. I do not understand anything from the site. BTW... which language are you using instead of English for your web site...? Is it spanish or French...? Does the download contain material in english or other language...? Thanks -- Posted via http://www.ruby-forum.com/.