From brixen at gmail.com Fri Dec 8 18:18:28 2006 From: brixen at gmail.com (brian ford) Date: Fri, 8 Dec 2006 15:18:28 -0800 Subject: [Rubinius-devel] Wikipedia knows about Rubinius Message-ID: <8b80ba590612081518y72352a6dn4c374d0a5eb8e85a@mail.gmail.com> Hi all, I created a wikipedia article with some content from the README: http://en.wikipedia.org/wiki/Rubinius Hopefully we can put some polish on it. Cheers, Brian From brixen at gmail.com Mon Dec 11 14:31:05 2006 From: brixen at gmail.com (brian ford) Date: Mon, 11 Dec 2006 11:31:05 -0800 Subject: [Rubinius-devel] Learning about VMs: syllabus Message-ID: <8b80ba590612111131s20c6284bx4420bdd7b95eddc3@mail.gmail.com> I came across this on the StrongTalk list: http://groups.google.com/group/strongtalk-general/browse_frm/thread/83bda45b670b5a5b (see also http://groups.google.com/group/strongtalk-general). I thought I'd post it here for other folks like me who are (super) excited about Rubinius, but not VM experts (yet). ;) Anyone else have some links to good sources? From laurent at moldus.org Thu Dec 28 04:05:54 2006 From: laurent at moldus.org (Laurent Julliard) Date: Thu, 28 Dec 2006 10:05:54 +0100 Subject: [Rubinius-devel] [Q] Adding more methods to String? Message-ID: <459388F2.6070206@moldus.org> Evan, I have just downlaoded and succesfully compiled rubinius and I'm starting to play with it. As you can imagine I started to compile a number of Ruby code snippet and run them with shotgun. in the process I found a number of methods missing from the String class. I thought it would be a good exercise to contribute a couple of them. Just to make sure I understand where to contribute I have added the reverse method to the file kernel/string.rb as follows: def reverse str = [] i = @bytes - 1 while i >= 0 str << self[i] i -= 1 end return str.join("") end Before I go any further I have a couple of questions to ask: a) is this the kind of implementation you would have written yourself for the reverse mathod? I mean is there a more low level way of doing it (e.g. using the fetch_byte method for instance b) generally speaking, how much Ruby are we supposed to use in this kernel classes written in Ruby? Are those supposed to be rewritten when cuby is available ? If so is it worth contributing more of those methods in the base classes. c) is there a place where to write test code for this new reverse method? or are there other hot topics where you need help. Thanks for your help. Laurent From drbrain at segment7.net Thu Dec 28 15:26:38 2006 From: drbrain at segment7.net (Eric Hodel) Date: Thu, 28 Dec 2006 12:26:38 -0800 Subject: [Rubinius-devel] [Q] Adding more methods to String? In-Reply-To: References: <459388F2.6070206@moldus.org> Message-ID: <4B249C87-E17E-4B5E-910C-157E617D3B38@segment7.net> On Dec 28, 2006, at 12:09, Eric Hodel wrote: > On Dec 28, 2006, at 01:05, Laurent Julliard wrote: >> I have just downlaoded and succesfully compiled rubinius and I'm >> starting to play with it. As you can imagine I started to compile a >> number of Ruby code snippet and run them with shotgun. in the >> process I >> found a number of methods missing from the String class. I thought it >> would be a good exercise to contribute a couple of them. > > Most of String is implemented in Metaruby. You should check to see > what can be adapted. The source should be showing up in the > metaruby project RSN, or you can get it from p4: > > http://www.zenspider.com/ZSS/Process/Perforce.html Ok, p4 is now mirrored to the metaruby project on rubyforge. svn checkout svn://rubyforge.org/var/svn/metaruby -- Eric Hodel - drbrain at segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE! From drbrain at segment7.net Thu Dec 28 15:09:54 2006 From: drbrain at segment7.net (Eric Hodel) Date: Thu, 28 Dec 2006 12:09:54 -0800 Subject: [Rubinius-devel] [Q] Adding more methods to String? In-Reply-To: <459388F2.6070206@moldus.org> References: <459388F2.6070206@moldus.org> Message-ID: On Dec 28, 2006, at 01:05, Laurent Julliard wrote: > I have just downlaoded and succesfully compiled rubinius and I'm > starting to play with it. As you can imagine I started to compile a > number of Ruby code snippet and run them with shotgun. in the > process I > found a number of methods missing from the String class. I thought it > would be a good exercise to contribute a couple of them. Most of String is implemented in Metaruby. You should check to see what can be adapted. The source should be showing up in the metaruby project RSN, or you can get it from p4: http://www.zenspider.com/ZSS/Process/Perforce.html -- Eric Hodel - drbrain at segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE!