From enrico.sada at gmail.com Mon Aug 1 09:17:48 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 1 Aug 2011 15:17:48 +0200 Subject: [Ironruby-core] Workitem #6244 - request for code review Message-ID: Hi, i fixed workitem #6244 ( https://github.com/enricosada/IronLanguages/commit/c9d8339441e21a90216b9b51cffd23f5225d0174), i added '%N' option to time.strftime. I added also the test to strftime mspec. I dont think i need to change ironruby-tags-19, because the new test should pass now. This is my first commit to ironruby, wiki say i need to ask to ml for code review before pull request. There is other i need to do? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jschementi at gmail.com Mon Aug 1 11:00:44 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Mon, 1 Aug 2011 11:00:44 -0400 Subject: [Ironruby-core] Workitem #6244 - request for code review In-Reply-To: References: Message-ID: Thanks! Looks good. Submit a pull request and I'll merge it in. You can submit a pull request along with sending it to the mailing list for code review; it's a good way to keep track of open reviews. ~js On Aug 1, 2011, at 9:17 AM, Enrico Sada wrote: > Hi, i fixed workitem #6244 (https://github.com/enricosada/IronLanguages/commit/c9d8339441e21a90216b9b51cffd23f5225d0174), i added '%N' option to time.strftime. > > I added also the test to strftime mspec. I dont think i need to change ironruby-tags-19, because the new test should pass now. > > This is my first commit to ironruby, wiki say i need to ask to ml for code review before pull request. There is other i need to do? > > _______________________________________________ > 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 jschementi at gmail.com Mon Aug 1 11:13:40 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Mon, 1 Aug 2011 11:13:40 -0400 Subject: [Ironruby-core] Workitem #6244 - request for code review In-Reply-To: References: Message-ID: <590E8C31-6583-4BF0-B705-A3930A4DA316@gmail.com> On a related note, we should come up with a better way to keep our copy of RubySpec in sync with the "truth": https://github.com/rubyspec/rubyspec/. Volunteers welcome. On Aug 1, 2011, at 11:00 AM, Jimmy Schementi wrote: > Thanks! Looks good. Submit a pull request and I'll merge it in. > > You can submit a pull request along with sending it to the mailing list for code review; it's a good way to keep track of open reviews. > > ~js > > On Aug 1, 2011, at 9:17 AM, Enrico Sada wrote: >> Hi, i fixed workitem #6244 (https://github.com/enricosada/IronLanguages/commit/c9d8339441e21a90216b9b51cffd23f5225d0174), i added '%N' option to time.strftime. >> >> I added also the test to strftime mspec. I dont think i need to change ironruby-tags-19, because the new test should pass now. >> >> This is my first commit to ironruby, wiki say i need to ask to ml for code review before pull request. There is other i need to do? >> >> _______________________________________________ >> 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 antonfir at gmail.com Tue Aug 2 11:53:25 2011 From: antonfir at gmail.com (Anton Firsov) Date: Tue, 2 Aug 2011 17:53:25 +0200 Subject: [Ironruby-core] CompiledCode execution + using scope + local variables in a loop => NullReferenceException Message-ID: Hi, I have reported a bug on codeplex: http://ironruby.codeplex.com/workitem/6353 Will it be fixed in next release? Thank you, Anton -------------- next part -------------- An HTML attachment was scrubbed... URL: From enrico.sada at gmail.com Tue Aug 2 12:44:53 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Tue, 2 Aug 2011 18:44:53 +0200 Subject: [Ironruby-core] Code Review - Time#strftime ignore invalid directives on format string Message-ID: i asked a pull request ( https://github.com/IronLanguages/main/pull/28 ) for fix Time#strftime behaviour on invalid directives on format string, ex: ruby 1.8: Time.now.strftime '%$' => '$' ruby 1.9: Time.now.strftime '%$' => '%$' this make green a mspec test on core/time/strftime_spec.rb I have some question: 1) i added a check for ruby compatibility >= ruby 1.9, is needed? 2) i removed 'fails:' from ironruby-tags-19/core/time/strftime_tags.txt is correct? 3) usually code review is in mailing list or github pull request? (so i dont need to write two times the same questions) From jschementi at gmail.com Tue Aug 2 13:20:30 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Tue, 2 Aug 2011 13:20:30 -0400 Subject: [Ironruby-core] Code Review - Time#strftime ignore invalid directives on format string In-Reply-To: References: Message-ID: On Tue, Aug 2, 2011 at 12:44 PM, Enrico Sada wrote: > i asked a pull request ( https://github.com/IronLanguages/main/pull/28 > ) for fix Time#strftime behaviour on invalid directives on format > string, ex: > > ruby 1.8: > Time.now.strftime '%$' => '$' > ruby 1.9: > Time.now.strftime '%$' => '%$' > > this make green a mspec test on core/time/strftime_spec.rb > Looks good. Did the test fail before ths change? > I have some question: > 1) i added a check for ruby compatibility >= ruby 1.9, is needed? > Not really as we have explicitly decided that IronRuby 1.x targets MRI 1.9, and doesn't support 1.8.x anymore. However, we didn't remove any of those checks for 1.8. It doesn't hurt, but isn't required. > 2) i removed 'fails:' from > ironruby-tags-19/core/time/strftime_tags.txt is correct? > Yup, you fixed that test so no need for the guard anymore. > 3) usually code review is in mailing list or github pull request? (so > i dont need to write two times the same questions) > It doesn't matter where you actually write the text, but the pull request is needed as well as notifying the mailing list. I say put everything in the pull request, and then send the link to the pull request to the mailing list. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Aug 2 13:43:42 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 2 Aug 2011 17:43:42 +0000 Subject: [Ironruby-core] Code Review - Time#strftime ignore invalid directives on format string In-Reply-To: References: Message-ID: <9597F4A19BFDB342B6E90963100C330829C9F103@CH1PRD0302MB132.namprd03.prod.outlook.com> You can remove compatibility check (including the one that's there). IronRuby only supports MRI 1.9. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Enrico Sada Sent: Tuesday, August 02, 2011 9:45 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Code Review - Time#strftime ignore invalid directives on format string i asked a pull request ( https://github.com/IronLanguages/main/pull/28 ) for fix Time#strftime behaviour on invalid directives on format string, ex: ruby 1.8: Time.now.strftime '%$' => '$' ruby 1.9: Time.now.strftime '%$' => '%$' this make green a mspec test on core/time/strftime_spec.rb I have some question: 1) i added a check for ruby compatibility >= ruby 1.9, is needed? 2) i removed 'fails:' from ironruby-tags-19/core/time/strftime_tags.txt is correct? 3) usually code review is in mailing list or github pull request? (so i dont need to write two times the same questions) _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From enrico.sada at gmail.com Tue Aug 2 14:27:44 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Tue, 2 Aug 2011 20:27:44 +0200 Subject: [Ironruby-core] Code Review - Time#strftime ignore invalid directives on format string In-Reply-To: References: Message-ID: yes the test was red before. i will remove the checks for 1.9 (are useless) and update the pull request. On Tue, Aug 2, 2011 at 7:20 PM, Jimmy Schementi wrote: > On Tue, Aug 2, 2011 at 12:44 PM, Enrico Sada wrote: >> >> i asked a pull request ( https://github.com/IronLanguages/main/pull/28 >> ) for fix Time#strftime behaviour on invalid directives on format >> string, ex: >> >> ruby 1.8: >> Time.now.strftime '%$' => '$' >> ruby 1.9: >> Time.now.strftime '%$' => '%$' >> >> this make green a mspec test on core/time/strftime_spec.rb > > Looks good. Did the test fail before ths change? > >> >> I have some question: >> 1) i added a check for ruby compatibility >= ruby 1.9, is needed? > > Not really as we have explicitly decided that IronRuby 1.x targets MRI 1.9, > and doesn't support 1.8.x anymore. However, we didn't remove any of those > checks for 1.8. It doesn't hurt, but isn't required. > >> >> 2) i removed 'fails:' from >> ironruby-tags-19/core/time/strftime_tags.txt is correct? > > Yup, you fixed that test so no need for the guard anymore. > >> >> 3) usually code review is in mailing list or github pull request? (so >> i dont need to write two times the same questions) > > It doesn't matter where you actually write the text, but the pull request is > needed as well as notifying the mailing list. I say put everything in the > pull request, and then send the link to the pull request to the mailing > list. > >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.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 llin at polypaths.com Tue Aug 2 15:15:42 2011 From: llin at polypaths.com (Lewis Lin) Date: Tue, 02 Aug 2011 15:15:42 -0400 Subject: [Ironruby-core] Access Top Level methods In-Reply-To: <4E26EADC.5050500@polypaths.com> References: <4E0CD56A.5010203@polypaths.com> <4E26EADC.5050500@polypaths.com> Message-ID: <4E384CDE.1060408@polypaths.com> Hi, I am doing this to implement a DSL. I want to allow user to define some function and be used by the DSL. Without this, I don't know how to get it working. I am sure there is a rational explanation for what I see. Could someone help me please? Thanks, Lewis On 7/20/2011 10:49 AM, Lewis Lin wrote: > Hi, > > Thanks for the reply. My main development version is on 1.1 for .NET > 3.5. However, I did try it on 1.1.3 on .NET 4.0.30319.225 and still > are able to reproduce the issue. I am running Windows XP 32bit > environment. Is there any environment variables I should look into? > Here is the screen copy I just did. > > As far as I understand, the global environment is actually a 'main' > Object. The function defined in the global scope should be translated > to private method of Object class which is what it shows in iirb.bat. > Not sure why ir.exe as well as the ScriptEngine behaves differently. > > Thanks for your time! > Lewis > > c:\Program Files\IronRuby 1.1\bin>ir > IronRuby 1.1.3.0 on .NET 4.0.30319.225 > Copyright (c) Microsoft Corporation. All rights reserved. > > >>> def global_hi > ... puts 'hi' > ... end > => nil > >>> class A > ... def hi > ... global_hi > ... end > ... end > => nil > >>> A.new.hi > (ir):3:in `hi': undefined method `global_hi' for # > (NoMethodError) > from (ir):1 > > >>> self.method(:global_hi) > => #>)#global_hi> > >>> exit > > --------------------------------------------------------------------- > > c:\Program Files\IronRuby 1.1\bin>iirb > irb(main):001:0> def global_hi > irb(main):002:1> puts 'hi' > irb(main):003:1> end > => nil > irb(main):004:0> class A > irb(main):005:1> def hi > irb(main):006:2> global_hi > irb(main):007:2> end > irb(main):008:1> end > => nil > irb(main):009:0> A.new.hi > hi > => nil > irb(main):010:0> self.method(:global_hi) > => # > irb(main):011:0> > > > > > On 7/20/2011 8:37 AM, Sickboy wrote: >> I cannot reproduce this issue with IronRuby 1.1.3.0 on .NET 4.0.30319.235 >> It works as expected: ir.exe result is same as irb result. >> Regards >> *From:* Lewis Lin >> *Sent:* Thursday, June 30, 2011 9:58 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* [Ironruby-core] Access Top Level methods >> Hi, >> >> I am trying to access top level method from the class definition in >> IronRuby scripts. Example: >> >> def global_hi >> end >> >> class A >> def hi >> global_hi >> end >> end >> >> A.new.hi >> >> The script executed in ScriptEngine throws a NoSuchMethodError. >> I tried to ran the same code in iirb.exe It seems to behave the way I >> expected. But when I tried it in ir.exe, it throws the exception as well. >> I investigate a little more and found out >> >> irb(main):021:0> self.method(:global_hi) >> => # >> and >> in ir.exe as well as script engine >> >>> self.method(:xx) >> => #>)#xx> >> >> Is there anyway to make the script behave like the one in iirb.exe? >> >> Thanks, >> Lewis >> >> ------------------------------------------------------------------------ >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.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 enrico.sada at gmail.com Fri Aug 5 11:42:50 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Fri, 5 Aug 2011 17:42:50 +0200 Subject: [Ironruby-core] Code Review - Time#strftime ignore invalid directives on format string In-Reply-To: References: Message-ID: updated removing checks, now is ready to pull On Tue, Aug 2, 2011 at 8:27 PM, Enrico Sada wrote: > yes the test was red before. > > i will remove the checks for 1.9 (are useless) and update the pull request. > > On Tue, Aug 2, 2011 at 7:20 PM, Jimmy Schementi wrote: >> On Tue, Aug 2, 2011 at 12:44 PM, Enrico Sada wrote: >>> >>> i asked a pull request ( https://github.com/IronLanguages/main/pull/28 >>> ) for fix Time#strftime behaviour on invalid directives on format >>> string, ex: >>> >>> ruby 1.8: >>> Time.now.strftime '%$' => '$' >>> ruby 1.9: >>> Time.now.strftime '%$' => '%$' >>> >>> this make green a mspec test on core/time/strftime_spec.rb >> >> Looks good. Did the test fail before ths change? >> >>> >>> I have some question: >>> 1) i added a check for ruby compatibility >= ruby 1.9, is needed? >> >> Not really as we have explicitly decided that IronRuby 1.x targets MRI 1.9, >> and doesn't support 1.8.x anymore. However, we didn't remove any of those >> checks for 1.8. It doesn't hurt, but isn't required. >> >>> >>> 2) i removed 'fails:' from >>> ironruby-tags-19/core/time/strftime_tags.txt is correct? >> >> Yup, you fixed that test so no need for the guard anymore. >> >>> >>> 3) usually code review is in mailing list or github pull request? (so >>> i dont need to write two times the same questions) >> >> It doesn't matter where you actually write the text, but the pull request is >> needed as well as notifying the mailing list. I say put everything in the >> pull request, and then send the link to the pull request to the mailing >> list. >> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.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 enrico.sada at gmail.com Fri Aug 5 12:43:19 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Fri, 5 Aug 2011 18:43:19 +0200 Subject: [Ironruby-core] Pull Request #29 - Sync with rubyspec/mspec Message-ID: I am implementing IO#binread for workitem 6345 (http://ironruby.codeplex.com/workitem/6345). The rubyspec for IO#binread is missing, so i added it with pull request to rubyspec/rubyspec ( these are my first contributions so i want to have feedback about how to write rubyspec ). Now rubyspec and mspec are added to ironruby repo, so someone need mantain it and send the changes to rubyspec/rubyspec. I think we can use submodules for that, one for rubyspec and one for mspec. The submodules are in the old rubyspec and mspec directories, so nothing change. There are some advantage: - we can directly commit to rubyspec/rubyspec and let rubyspec authors manage changes - easy to update and test new rubyspec versions (stable or head) Using an IronLanguages/rubyspec clone as submodule we have the same workflow we have now (ironruby contrib send rubyspec change to IronLanguages/rubyspec and after ironruby send these to rubyspec/rubyspec ) My pull request link submodules to my personal rubyspec clone (enricosada/rubyspec) From enrico.sada at gmail.com Sun Aug 7 18:46:50 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 8 Aug 2011 00:46:50 +0200 Subject: [Ironruby-core] Pull request #31 - fix workitem 6345, implemented IO#binread Message-ID: The pull request #31 ( https://github.com/IronLanguages/main/pull/31 ) is for resolve workitem 6345 ( http://ironruby.codeplex.com/workitem/6345 ). Implemented IO#binread with rubyspec (sent also to rubyspec/rubyspec). This anyway is not enough for fix rdoc, needed for gem install. C:\repo\IronLanguages>igem install rake Successfully installed rake-0.9.2 1 gem installed Installing ri documentation for rake-0.9.2... C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb:12:in `expan d_tabs': parsing "^(.{8}*?)([\x00-?-[\\t\\r\\n]]{0,7})\\t" - Nested quantifier * . (SyntaxError) from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :9:in `lines' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :9:in `expand_tabs' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :60:in `normalize_comment' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/code_ob ject.rb:97:in `comment=' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/rdoc.rb :278:in `parse_file' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/rdoc.rb :322:in `parse_files' i think the problem is .{8}*? , (like http://stackoverflow.com/questions/210206/what-is-a-nested-quantifier-and-why-is-it-causing-my-regex-to-fail ) i will check it later, probably an rdoc modify is needed, dont know how to fix it ironruby side. From enrico.sada at gmail.com Sun Aug 7 19:51:30 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 8 Aug 2011 01:51:30 +0200 Subject: [Ironruby-core] Pull request #32 - fix workitem 4266, YAML.load with % inside given string Message-ID: The pull request #32 ( https://github.com/IronLanguages/main/pull/32 ) fix the workitem #4266 ( http://ironruby.codeplex.com/workitem/4266 ). I added the test to Languages\Ruby\Test\Libraries\Yaml From Tomas.Matousek at microsoft.com Mon Aug 8 00:33:23 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 8 Aug 2011 04:33:23 +0000 Subject: [Ironruby-core] Pull request #31 - fix workitem 6345, implemented IO#binread In-Reply-To: References: Message-ID: <9597F4A19BFDB342B6E90963100C330829CB900B@CH1PRD0302MB132.namprd03.prod.outlook.com> I can take a look at fixing the regex issue perhaps next weekend. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Enrico Sada Sent: Sunday, August 07, 2011 3:47 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Pull request #31 - fix workitem 6345, implemented IO#binread The pull request #31 ( https://github.com/IronLanguages/main/pull/31 ) is for resolve workitem 6345 ( http://ironruby.codeplex.com/workitem/6345 ). Implemented IO#binread with rubyspec (sent also to rubyspec/rubyspec). This anyway is not enough for fix rdoc, needed for gem install. C:\repo\IronLanguages>igem install rake Successfully installed rake-0.9.2 1 gem installed Installing ri documentation for rake-0.9.2... C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb:12:in `expan d_tabs': parsing "^(.{8}*?)([\x00-?-[\\t\\r\\n]]{0,7})\\t" - Nested quantifier * . (SyntaxError) from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :9:in `lines' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :9:in `expand_tabs' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :60:in `normalize_comment' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/code_ob ject.rb:97:in `comment=' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/rdoc.rb :278:in `parse_file' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/rdoc.rb :322:in `parse_files' i think the problem is .{8}*? , (like http://stackoverflow.com/questions/210206/what-is-a-nested-quantifier-and-why-is-it-causing-my-regex-to-fail ) i will check it later, probably an rdoc modify is needed, dont know how to fix it ironruby side. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From enrico.sada at gmail.com Mon Aug 8 13:56:32 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 8 Aug 2011 19:56:32 +0200 Subject: [Ironruby-core] Pull request #33 - fix wi 6195, implemented Enumerable#group_by Message-ID: i pulled request #33 ( https://github.com/IronLanguages/main/pull/33 ) for fix wi 6195. I added implementation of Enumerable#group_by From enrico.sada at gmail.com Tue Aug 9 17:13:49 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Tue, 9 Aug 2011 23:13:49 +0200 Subject: [Ironruby-core] Sync rubyspec Message-ID: I started to update rubyspec to latest version (pull requests: https://github.com/IronLanguages/main/pull/35 https://github.com/IronLanguages/main/pull/36 ), the dir 'core/array', 'core/b*' are done. The rubyspec/rubyspec commit i use as reference is the latest ( https://github.com/rubyspec/rubyspec/commit/ea0ae038fd0e3ab995c44657dbb3f22ef7fa450d ) At first i tried to branch from a commit 1 year old of rubyspec/rubyspec, replace branch contents with ironruby's rubyspec and try to merge to master, but got too much merge conflicts and merged files not was ok. So i am merging files in various steps, slower but better quality. after that i think we can clone rubyspec/rubyspec, branch from commit ea00ae038 and replace branch contents with ironruby's rubyspec. We get a clean fork, so more easy to contribute back changes to rubyspec/rubyspec. From Orion.Edwards at gallagher.co Tue Aug 9 17:37:17 2011 From: Orion.Edwards at gallagher.co (Orion Edwards) Date: Wed, 10 Aug 2011 09:37:17 +1200 Subject: [Ironruby-core] Sync rubyspec In-Reply-To: References: Message-ID: Thank you! From: Enrico Sada To: ironruby-core at rubyforge.org Date: 10/08/2011 09:34 a.m. Subject: [Ironruby-core] Sync rubyspec Sent by: ironruby-core-bounces at rubyforge.org I started to update rubyspec to latest version (pull requests: https://github.com/IronLanguages/main/pull/35 https://github.com/IronLanguages/main/pull/36 ), the dir 'core/array', 'core/b*' are done. The rubyspec/rubyspec commit i use as reference is the latest ( https://github.com/rubyspec/rubyspec/commit/ea0ae038fd0e3ab995c44657dbb3f22ef7fa450d ) At first i tried to branch from a commit 1 year old of rubyspec/rubyspec, replace branch contents with ironruby's rubyspec and try to merge to master, but got too much merge conflicts and merged files not was ok. So i am merging files in various steps, slower but better quality. after that i think we can clone rubyspec/rubyspec, branch from commit ea00ae038 and replace branch contents with ironruby's rubyspec. We get a clean fork, so more easy to contribute back changes to rubyspec/rubyspec. _______________________________________________ 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 dgarner at dgarner.com Tue Aug 9 20:32:26 2011 From: dgarner at dgarner.com (David Garner) Date: Tue, 9 Aug 2011 19:32:26 -0500 Subject: [Ironruby-core] IronRuby IDE with MRI? Message-ID: <002001cc56f4$fbb5daf0$f32190d0$@dgarner.com> Hi. I've been trying to learn to program Ruby and I've been wondering if it's possible to use the Visual Studio IDE with MRI. It seems to have some nice features, but I don't find much documentation about it anywhere. I'm excited about the prospects of IronRuby, but it does not seem to be up to some of the stuff I need to do, yet. Just wondering if I could get my head around the IDE while using all the gems and other benefits that are available in a more standard or mature programming environment. I'm hoping that IronRuby will eventually support and surpass Matz's version. Thanks. David Garner -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Aug 9 21:18:54 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 10 Aug 2011 01:18:54 +0000 Subject: [Ironruby-core] IronRuby IDE with MRI? In-Reply-To: <002001cc56f4$fbb5daf0$f32190d0$@dgarner.com> References: <002001cc56f4$fbb5daf0$f32190d0$@dgarner.com> Message-ID: <9597F4A19BFDB342B6E90963100C330829CBA6D1@CH1PRD0302MB132.namprd03.prod.outlook.com> Have you tried http://www.sapphiresteel.com/? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of David Garner Sent: Tuesday, August 09, 2011 5:32 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IronRuby IDE with MRI? Hi. I've been trying to learn to program Ruby and I've been wondering if it's possible to use the Visual Studio IDE with MRI. It seems to have some nice features, but I don't find much documentation about it anywhere. I'm excited about the prospects of IronRuby, but it does not seem to be up to some of the stuff I need to do, yet. Just wondering if I could get my head around the IDE while using all the gems and other benefits that are available in a more standard or mature programming environment. I'm hoping that IronRuby will eventually support and surpass Matz's version. Thanks. David Garner -------------- next part -------------- An HTML attachment was scrubbed... URL: From iulian.fecioru at napa.fi Wed Aug 10 01:50:45 2011 From: iulian.fecioru at napa.fi (Iulian Fecioru) Date: Wed, 10 Aug 2011 08:50:45 +0300 Subject: [Ironruby-core] ObjectSpace module Message-ID: Hello, I've wrote on http://ironruby.codeplex.com/workitem/6028 that the ObjectSpace module is not complete Comments from the issues above: " wrote Thu at 11:57 PM File.realpath is a Ruby 1.9 method we haven't gotten to. We're unable to implement those methods of ObjectSpace as we can't track them ourselves as we don't know when the CLR will garbage collect a specific object, and we don't have access to a list of reachable objects. Renaming this issue to track File.realpath iulianfecioru wrote Fri at 8:27 AM >From the previous comment I understand that methods from ObjectSpace (_id2ref, count_objects.) will not be supported. Is this true?! PS: I've added _id2ref method to the ObjectSpace, so I think it is posible but is just my opinion ;) jimmysch wrote Fri at 4:50 PM How did you implement _id2ref in IronRuby? I'm 100% sure we can't implement it without slowing down the entire runtime. ObjectSpace is a thin wrapper around MRI's memory manager, while on the CLR we don't have access to it. Therefore, it's more MRI's implementation detail than a general Ruby feature. And Ruby library writers already know not to use it if they want to run on all Ruby implementations. That being said, we could implement it poorly and require the user to turn it on if they want to use it (like JRuby does: http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_Object Space), but I don't see that as a priority feature. That being said, patches are welcome. If you want to discuss this further, let's move this discussion to the mailing list (ironruby-core at rubyforge.org) or open a new feature request ( http://ironruby.codeplex.com/WorkItem/Create). " I think jimmysch is right about the performance issues, but in my case I need to have the ObjectSpace.id2ref because we need to send the object IDs to native languages and retrieve the objects using this object IDs in IronRuby. I think that the JRuby solution ( http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_Object Space) should be in IronRuby. I've attached my own trick (I think it is a big performance issue). Maybe this could be done in a more better way and directly in IronRuby source code. Thank you! PS: I would like to become a developer in this project. With who should I talk?! Regards, ________________________________ Iulian Fecioru NAPA Romania SRL Lead Software Developer Brailei, 165b, 1 800310, Galati, Romania Mobile: +40-722-664027 Phone: +40-336-802182 Fax: +40-336-802185 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: object_space.rb Type: application/octet-stream Size: 1839 bytes Desc: object_space.rb URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: object.rb Type: application/octet-stream Size: 87 bytes Desc: object.rb URL: From Tomas.Matousek at microsoft.com Wed Aug 10 12:19:52 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 10 Aug 2011 16:19:52 +0000 Subject: [Ironruby-core] ObjectSpace module In-Reply-To: References: Message-ID: <9597F4A19BFDB342B6E90963100C330829CBABCA@CH1PRD0302MB132.namprd03.prod.outlook.com> Your implementation of _id2ref might be a good enough approximation. (It isn't 100% equivalent to MRI though since in MRI I can enumerate integers and ask if there is an object with that id. So I can get to objects for which object_id wasn't called before.) You "become" a developer by submitting a patch on github. No need to talk to anybody :). Of course, it is better to let folks in this list know what you're working on so that we don't dup efforts. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Iulian Fecioru Sent: Tuesday, August 09, 2011 10:51 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] ObjectSpace module Hello, I've wrote on http://ironruby.codeplex.com/workitem/6028 that the ObjectSpace module is not complete Comments from the issues above: " wrote Thu at 11:57 PM File.realpath is a Ruby 1.9 method we haven't gotten to. We're unable to implement those methods of ObjectSpace as we can't track them ourselves as we don't know when the CLR will garbage collect a specific object, and we don't have access to a list of reachable objects. Renaming this issue to track File.realpath iulianfecioru wrote Fri at 8:27 AM >From the previous comment I understand that methods from ObjectSpace (_id2ref, count_objects.) will not be supported. Is this true?! PS: I've added _id2ref method to the ObjectSpace, so I think it is posible but is just my opinion ;) jimmysch wrote Fri at 4:50 PM How did you implement _id2ref in IronRuby? I'm 100% sure we can't implement it without slowing down the entire runtime. ObjectSpace is a thin wrapper around MRI's memory manager, while on the CLR we don't have access to it. Therefore, it's more MRI's implementation detail than a general Ruby feature. And Ruby library writers already know not to use it if they want to run on all Ruby implementations. That being said, we could implement it poorly and require the user to turn it on if they want to use it (like JRuby does: http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_ObjectSpace), but I don't see that as a priority feature. That being said, patches are welcome. If you want to discuss this further, let's move this discussion to the mailing list (ironruby-core at rubyforge.org) or open a new feature request (http://ironruby.codeplex.com/WorkItem/Create). " I think jimmysch is right about the performance issues, but in my case I need to have the ObjectSpace.id2ref because we need to send the object IDs to native languages and retrieve the objects using this object IDs in IronRuby. I think that the JRuby solution (http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_ObjectSpace) should be in IronRuby. I've attached my own trick (I think it is a big performance issue). Maybe this could be done in a more better way and directly in IronRuby source code. Thank you! PS: I would like to become a developer in this project. With who should I talk?! Regards, ________________________________ Iulian Fecioru NAPA Romania SRL Lead Software Developer Brailei, 165b, 1 800310, Galati, Romania Mobile: +40-722-664027 Phone: +40-336-802182 Fax: +40-336-802185 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Sun Aug 14 16:16:01 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 14 Aug 2011 20:16:01 +0000 Subject: [Ironruby-core] Pull request #31 - fix workitem 6345, implemented IO#binread In-Reply-To: <9597F4A19BFDB342B6E90963100C330829CB900B@CH1PRD0302MB132.namprd03.prod.outlook.com> References: <9597F4A19BFDB342B6E90963100C330829CB900B@CH1PRD0302MB132.namprd03.prod.outlook.com> Message-ID: <9597F4A19BFDB342B6E90963100C330829CD029F@CH1PRD0302MB132.namprd03.prod.outlook.com> Regex should be fixed now. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Sunday, August 07, 2011 9:33 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Pull request #31 - fix workitem 6345, implemented IO#binread I can take a look at fixing the regex issue perhaps next weekend. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Enrico Sada Sent: Sunday, August 07, 2011 3:47 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Pull request #31 - fix workitem 6345, implemented IO#binread The pull request #31 ( https://github.com/IronLanguages/main/pull/31 ) is for resolve workitem 6345 ( http://ironruby.codeplex.com/workitem/6345 ). Implemented IO#binread with rubyspec (sent also to rubyspec/rubyspec). This anyway is not enough for fix rdoc, needed for gem install. C:\repo\IronLanguages>igem install rake Successfully installed rake-0.9.2 1 gem installed Installing ri documentation for rake-0.9.2... C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb:12:in `expan d_tabs': parsing "^(.{8}*?)([\x00-?-[\\t\\r\\n]]{0,7})\\t" - Nested quantifier * . (SyntaxError) from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :9:in `lines' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :9:in `expand_tabs' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/text.rb :60:in `normalize_comment' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/code_ob ject.rb:97:in `comment=' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/rdoc.rb :278:in `parse_file' from C:/repo/IronLanguages/Languages/Ruby/StdLib/ruby/1.9.1/rdoc/rdoc.rb :322:in `parse_files' i think the problem is .{8}*? , (like http://stackoverflow.com/questions/210206/what-is-a-nested-quantifier-and-why-is-it-causing-my-regex-to-fail ) i will check it later, probably an rdoc modify is needed, dont know how to fix it ironruby side. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.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 Sun Aug 14 16:19:35 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 14 Aug 2011 20:19:35 +0000 Subject: [Ironruby-core] Sync rubyspec In-Reply-To: References: Message-ID: <9597F4A19BFDB342B6E90963100C330829CD0305@CH1PRD0302MB132.namprd03.prod.outlook.com> Merged into main. I've updated some as well. The following specs are up to date: \core array b* \language * \library net zlib Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Enrico Sada Sent: Tuesday, August 09, 2011 2:14 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Sync rubyspec I started to update rubyspec to latest version (pull requests: https://github.com/IronLanguages/main/pull/35 https://github.com/IronLanguages/main/pull/36 ), the dir 'core/array', 'core/b*' are done. The rubyspec/rubyspec commit i use as reference is the latest ( https://github.com/rubyspec/rubyspec/commit/ea0ae038fd0e3ab995c44657dbb3f22ef7fa450d ) At first i tried to branch from a commit 1 year old of rubyspec/rubyspec, replace branch contents with ironruby's rubyspec and try to merge to master, but got too much merge conflicts and merged files not was ok. So i am merging files in various steps, slower but better quality. after that i think we can clone rubyspec/rubyspec, branch from commit ea00ae038 and replace branch contents with ironruby's rubyspec. We get a clean fork, so more easy to contribute back changes to rubyspec/rubyspec. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Sun Aug 14 16:46:39 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 14 Aug 2011 20:46:39 +0000 Subject: [Ironruby-core] Sync rubyspec In-Reply-To: <9597F4A19BFDB342B6E90963100C330829CD0305@CH1PRD0302MB132.namprd03.prod.outlook.com> References: <9597F4A19BFDB342B6E90963100C330829CD0305@CH1PRD0302MB132.namprd03.prod.outlook.com> Message-ID: <9597F4A19BFDB342B6E90963100C330829CD0320@CH1PRD0302MB132.namprd03.prod.outlook.com> And bigdecimal :) \core array b* \language * \library bigdecimal net zlib -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Sunday, August 14, 2011 1:20 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Sync rubyspec Merged into main. I've updated some as well. The following specs are up to date: \core array b* \language * \library net zlib Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Enrico Sada Sent: Tuesday, August 09, 2011 2:14 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Sync rubyspec I started to update rubyspec to latest version (pull requests: https://github.com/IronLanguages/main/pull/35 https://github.com/IronLanguages/main/pull/36 ), the dir 'core/array', 'core/b*' are done. The rubyspec/rubyspec commit i use as reference is the latest ( https://github.com/rubyspec/rubyspec/commit/ea0ae038fd0e3ab995c44657dbb3f22ef7fa450d ) At first i tried to branch from a commit 1 year old of rubyspec/rubyspec, replace branch contents with ironruby's rubyspec and try to merge to master, but got too much merge conflicts and merged files not was ok. So i am merging files in various steps, slower but better quality. after that i think we can clone rubyspec/rubyspec, branch from commit ea00ae038 and replace branch contents with ironruby's rubyspec. We get a clean fork, so more easy to contribute back changes to rubyspec/rubyspec. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.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 enrico.sada at gmail.com Sun Aug 14 18:41:14 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 15 Aug 2011 00:41:14 +0200 Subject: [Ironruby-core] Sync rubyspec In-Reply-To: <9597F4A19BFDB342B6E90963100C330829CD0320@CH1PRD0302MB132.namprd03.prod.outlook.com> References: <9597F4A19BFDB342B6E90963100C330829CD0305@CH1PRD0302MB132.namprd03.prod.outlook.com> <9597F4A19BFDB342B6E90963100C330829CD0320@CH1PRD0302MB132.namprd03.prod.outlook.com> Message-ID: and core/range \core ? ? ? ?array ? ? ? ?b* range \language ? ? ? ?* \library ? ? ? ?bigdecimal ? ? ? ?net ? ? ? ?zlib On Sun, Aug 14, 2011 at 10:46 PM, Tomas Matousek wrote: > And bigdecimal :) > > \core > ? ? ? ?array > ? ? ? ?b* > > \language > ? ? ? ?* > > \library > ? ? ? ?bigdecimal > ? ? ? ?net > ? ? ? ?zlib > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek > Sent: Sunday, August 14, 2011 1:20 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Sync rubyspec > > Merged into main. > > I've updated some as well. The following specs are up to date: > > \core > ? ? ? ?array > ? ? ? ?b* > > \language > ? ? ? ?* > > \library > ? ? ? ?net > ? ? ? ?zlib > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Enrico Sada > Sent: Tuesday, August 09, 2011 2:14 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Sync rubyspec > > I started to update rubyspec to latest version ?(pull requests: > https://github.com/IronLanguages/main/pull/35 > https://github.com/IronLanguages/main/pull/36 ), the dir 'core/array', 'core/b*' are done. > > The rubyspec/rubyspec commit i use as reference is the latest ( https://github.com/rubyspec/rubyspec/commit/ea0ae038fd0e3ab995c44657dbb3f22ef7fa450d > ) > > At first i tried to branch from a commit 1 year old of rubyspec/rubyspec, replace branch contents with ironruby's rubyspec and try to merge to master, but got too much merge conflicts and merged files not was ok. > > So i am merging files in various steps, slower but better quality. > > after that i think we can clone rubyspec/rubyspec, branch from commit > ea00ae038 and replace branch contents with ironruby's rubyspec. We get a clean fork, so more easy to contribute back changes to rubyspec/rubyspec. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.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 enrico.sada at gmail.com Sun Aug 14 19:23:19 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 15 Aug 2011 01:23:19 +0200 Subject: [Ironruby-core] Pull request #39 - Range :cover?, :max, :min and updated rubyspec 'core/range' Message-ID: Updated rubyspec 'core/range' to latest version Implemented: - Range#cover? - Range#min - Range#max refactored Range#each and Range#step for share same code for iterate range values. Code style should be ok now. Anyway Range#step with Float argument and integer range, ex (1..5).step(1.4).to_a MRI => [1.0, 2.4, 3.8] ironruby => [1, 2, 3, 4, 5] (coerced to int) Also (1..2).step(0.4) is not working: MRI => [1.0, 1.4, 1.8] ironruby => exception argument can't be zero I added a pull request for rubyspec/rubyspec, so next time :D Also, is ok if a add a Resharper 5.1 a code style sharing file? is shared per solution (Solution/Ruby.sln) so will be easier to everyone check (and reformat code) ironruby code style. From enrico.sada at gmail.com Mon Aug 15 07:01:48 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 15 Aug 2011 13:01:48 +0200 Subject: [Ironruby-core] Sync rubyspec In-Reply-To: References: <9597F4A19BFDB342B6E90963100C330829CD0305@CH1PRD0302MB132.namprd03.prod.outlook.com> <9597F4A19BFDB342B6E90963100C330829CD0320@CH1PRD0302MB132.namprd03.prod.outlook.com> Message-ID: and library/t* and core/hash ( https://github.com/IronLanguages/main/pull/40 ) copy/replace list is boring, i added the sync status list as public gist: https://gist.github.com/1146037 , so we can track wip and dont dupe work On Mon, Aug 15, 2011 at 12:41 AM, Enrico Sada wrote: > and core/range > > ?\core > ?? ? ? ?array > ?? ? ? ?b* > ? ? ? ?range > > ?\language > ?? ? ? ?* > > ?\library > ?? ? ? ?bigdecimal > ?? ? ? ?net > ?? ? ? ?zlib > > > On Sun, Aug 14, 2011 at 10:46 PM, Tomas Matousek > wrote: >> And bigdecimal :) >> >> \core >> ? ? ? ?array >> ? ? ? ?b* >> >> \language >> ? ? ? ?* >> >> \library >> ? ? ? ?bigdecimal >> ? ? ? ?net >> ? ? ? ?zlib >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek >> Sent: Sunday, August 14, 2011 1:20 PM >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Sync rubyspec >> >> Merged into main. >> >> I've updated some as well. The following specs are up to date: >> >> \core >> ? ? ? ?array >> ? ? ? ?b* >> >> \language >> ? ? ? ?* >> >> \library >> ? ? ? ?net >> ? ? ? ?zlib >> >> Tomas >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Enrico Sada >> Sent: Tuesday, August 09, 2011 2:14 PM >> To: ironruby-core at rubyforge.org >> Subject: [Ironruby-core] Sync rubyspec >> >> I started to update rubyspec to latest version ?(pull requests: >> https://github.com/IronLanguages/main/pull/35 >> https://github.com/IronLanguages/main/pull/36 ), the dir 'core/array', 'core/b*' are done. >> >> The rubyspec/rubyspec commit i use as reference is the latest ( https://github.com/rubyspec/rubyspec/commit/ea0ae038fd0e3ab995c44657dbb3f22ef7fa450d >> ) >> >> At first i tried to branch from a commit 1 year old of rubyspec/rubyspec, replace branch contents with ironruby's rubyspec and try to merge to master, but got too much merge conflicts and merged files not was ok. >> >> So i am merging files in various steps, slower but better quality. >> >> after that i think we can clone rubyspec/rubyspec, branch from commit >> ea00ae038 and replace branch contents with ironruby's rubyspec. We get a clean fork, so more easy to contribute back changes to rubyspec/rubyspec. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.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 iulian.fecioru at napa.fi Tue Aug 16 01:35:08 2011 From: iulian.fecioru at napa.fi (Iulian Fecioru) Date: Tue, 16 Aug 2011 08:35:08 +0300 Subject: [Ironruby-core] ObjectSpace module Message-ID: Hello, Thank you for your response. My implementation was a trick to make something working. I think I can do this more correctly and complete in the IronRuby core. I'll try to implement this in IronRuby core, if nobody is against this. (Something like JRuby has implemented). Regards, Iulian Fecioru From: Tomas Matousek [mailto:Tomas.Matousek at microsoft.com] Sent: Wednesday, August 10, 2011 7:20 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] ObjectSpace module Your implementation of _id2ref might be a good enough approximation. (It isn't 100% equivalent to MRI though since in MRI I can enumerate integers and ask if there is an object with that id. So I can get to objects for which object_id wasn't called before.) You "become" a developer by submitting a patch on github. No need to talk to anybody J. Of course, it is better to let folks in this list know what you're working on so that we don't dup efforts. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Iulian Fecioru Sent: Tuesday, August 09, 2011 10:51 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] ObjectSpace module Hello, I've wrote on http://ironruby.codeplex.com/workitem/6028 that the ObjectSpace module is not complete Comments from the issues above: " wrote Thu at 11:57 PM File.realpath is a Ruby 1.9 method we haven't gotten to. We're unable to implement those methods of ObjectSpace as we can't track them ourselves as we don't know when the CLR will garbage collect a specific object, and we don't have access to a list of reachable objects. Renaming this issue to track File.realpath iulianfecioru wrote Fri at 8:27 AM >From the previous comment I understand that methods from ObjectSpace (_id2ref, count_objects.) will not be supported. Is this true?! PS: I've added _id2ref method to the ObjectSpace, so I think it is posible but is just my opinion ;) jimmysch wrote Fri at 4:50 PM How did you implement _id2ref in IronRuby? I'm 100% sure we can't implement it without slowing down the entire runtime. ObjectSpace is a thin wrapper around MRI's memory manager, while on the CLR we don't have access to it. Therefore, it's more MRI's implementation detail than a general Ruby feature. And Ruby library writers already know not to use it if they want to run on all Ruby implementations. That being said, we could implement it poorly and require the user to turn it on if they want to use it (like JRuby does: http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_Object Space), but I don't see that as a priority feature. That being said, patches are welcome. If you want to discuss this further, let's move this discussion to the mailing list (ironruby-core at rubyforge.org) or open a new feature request (http://ironruby.codeplex.com/WorkItem/Create). " I think jimmysch is right about the performance issues, but in my case I need to have the ObjectSpace.id2ref because we need to send the object IDs to native languages and retrieve the objects using this object IDs in IronRuby. I think that the JRuby solution (http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_Objec tSpace) should be in IronRuby. I've attached my own trick (I think it is a big performance issue). Maybe this could be done in a more better way and directly in IronRuby source code. Thank you! PS: I would like to become a developer in this project. With who should I talk?! Regards, ________________________________ Iulian Fecioru NAPA Romania SRL Lead Software Developer Brailei, 165b, 1 800310, Galati, Romania Mobile: +40-722-664027 Phone: +40-336-802182 Fax: +40-336-802185 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Aug 16 02:41:29 2011 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 16 Aug 2011 06:41:29 +0000 Subject: [Ironruby-core] ObjectSpace module In-Reply-To: References: Message-ID: <9597F4A19BFDB342B6E90963100C330829CD0EC7@CH1PRD0302MB132.namprd03.prod.outlook.com> This is actually pretty good solution - it's not harming perf of apps that don't need the feature. Is there any real-world scenario that this doesn't address? Some app translating random integers to objects? Until there is I'm not sure if it makes sense to go any further. What about implementing your approach directly in the libraries? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Iulian Fecioru Sent: Monday, August 15, 2011 10:35 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] ObjectSpace module Hello, Thank you for your response. My implementation was a trick to make something working. I think I can do this more correctly and complete in the IronRuby core. I'll try to implement this in IronRuby core, if nobody is against this. (Something like JRuby has implemented). Regards, Iulian Fecioru From: Tomas Matousek [mailto:Tomas.Matousek at microsoft.com] Sent: Wednesday, August 10, 2011 7:20 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] ObjectSpace module Your implementation of _id2ref might be a good enough approximation. (It isn't 100% equivalent to MRI though since in MRI I can enumerate integers and ask if there is an object with that id. So I can get to objects for which object_id wasn't called before.) You "become" a developer by submitting a patch on github. No need to talk to anybody :). Of course, it is better to let folks in this list know what you're working on so that we don't dup efforts. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Iulian Fecioru Sent: Tuesday, August 09, 2011 10:51 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] ObjectSpace module Hello, I've wrote on http://ironruby.codeplex.com/workitem/6028 that the ObjectSpace module is not complete Comments from the issues above: " wrote Thu at 11:57 PM File.realpath is a Ruby 1.9 method we haven't gotten to. We're unable to implement those methods of ObjectSpace as we can't track them ourselves as we don't know when the CLR will garbage collect a specific object, and we don't have access to a list of reachable objects. Renaming this issue to track File.realpath iulianfecioru wrote Fri at 8:27 AM >From the previous comment I understand that methods from ObjectSpace (_id2ref, count_objects.) will not be supported. Is this true?! PS: I've added _id2ref method to the ObjectSpace, so I think it is posible but is just my opinion ;) jimmysch wrote Fri at 4:50 PM How did you implement _id2ref in IronRuby? I'm 100% sure we can't implement it without slowing down the entire runtime. ObjectSpace is a thin wrapper around MRI's memory manager, while on the CLR we don't have access to it. Therefore, it's more MRI's implementation detail than a general Ruby feature. And Ruby library writers already know not to use it if they want to run on all Ruby implementations. That being said, we could implement it poorly and require the user to turn it on if they want to use it (like JRuby does: http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_ObjectSpace), but I don't see that as a priority feature. That being said, patches are welcome. If you want to discuss this further, let's move this discussion to the mailing list (ironruby-core at rubyforge.org) or open a new feature request (http://ironruby.codeplex.com/WorkItem/Create). " I think jimmysch is right about the performance issues, but in my case I need to have the ObjectSpace.id2ref because we need to send the object IDs to native languages and retrieve the objects using this object IDs in IronRuby. I think that the JRuby solution (http://kenai.com/projects/jruby/pages/PerformanceTuning#Disabling_ObjectSpace) should be in IronRuby. I've attached my own trick (I think it is a big performance issue). Maybe this could be done in a more better way and directly in IronRuby source code. Thank you! PS: I would like to become a developer in this project. With who should I talk?! Regards, ________________________________ Iulian Fecioru NAPA Romania SRL Lead Software Developer Brailei, 165b, 1 800310, Galati, Romania Mobile: +40-722-664027 Phone: +40-336-802182 Fax: +40-336-802185 -------------- next part -------------- An HTML attachment was scrubbed... URL: From enrico.sada at gmail.com Sun Aug 21 09:12:41 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Sun, 21 Aug 2011 15:12:41 +0200 Subject: [Ironruby-core] Pull request #41 - fix workitem 4047, added load options from RUBYOPT environment variable Message-ID: updated rubyspec 'command_line' to latest version added load options from RUBYOPT environment variable i want to add an unit test (NUnit?) for class RubyOptEnvParser, where i can add it? From enrico.sada at gmail.com Mon Aug 22 14:27:36 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 22 Aug 2011 20:27:36 +0200 Subject: [Ironruby-core] Rvm install Message-ID: i am fixing 'rvm install ironruby-head' , not much left to do. If someone can upload to rubyforge files ( http://rubyforge.org/frs/?group_id=4359 ) ironruby-1.1.3.zip i can also fix 'rvm install ironruby-1.1.3' From jschementi at gmail.com Mon Aug 22 14:39:57 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Mon, 22 Aug 2011 14:39:57 -0400 Subject: [Ironruby-core] Rvm install In-Reply-To: References: Message-ID: <40AF07E4-8834-464E-AB45-B20E633E7784@gmail.com> On Aug 22, 2011, at 2:27 PM, Enrico Sada wrote: > i am fixing 'rvm install ironruby-head' , not much left to do. Great! > If someone can upload to rubyforge files ( > http://rubyforge.org/frs/?group_id=4359 ) ironruby-1.1.3.zip i can > also fix 'rvm install ironruby-1.1.3' Will do. Going forward we'll probably just put releases on GitHub, but I'll let you know when that happens... > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From enrico.sada at gmail.com Mon Aug 22 15:54:47 2011 From: enrico.sada at gmail.com (Enrico Sada) Date: Mon, 22 Aug 2011 21:54:47 +0200 Subject: [Ironruby-core] Rvm install In-Reply-To: <40AF07E4-8834-464E-AB45-B20E633E7784@gmail.com> References: <40AF07E4-8834-464E-AB45-B20E633E7784@gmail.com> Message-ID: On Mon, Aug 22, 2011 at 8:39 PM, Jimmy Schementi wrote: > > On Aug 22, 2011, at 2:27 PM, Enrico Sada wrote: > >> i am fixing 'rvm install ironruby-head' , not much left to do. > > Great! > >> If someone can upload to rubyforge files ( >> http://rubyforge.org/frs/?group_id=4359 ) ironruby-1.1.3.zip i can >> also fix 'rvm install ironruby-1.1.3' > > Will do. Going forward we'll probably just put releases on GitHub, but I'll let you know when that happens... Anyway 'rvm install ironruby-1.1.3' require an url (ftp or http) like '/ironruby-1.1.3.zip' , because on config can only be specified , like: ironruby_1.0_url=http://rubyforge.org/frs/download.php/70179 > >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >