[#37132] OT: Cool Open Source request — Dave Thomas <Dave@...>
Dave Thomas <Dave@pragmaticprogrammer.com> wrote:
On Tue, Apr 02, 2002 at 06:50:45AM +0900, Todd Gillespie wrote:
[#37143] re-extending object — Ed Sinjiashvili <edsin@...>
Hello,
[#37146] Trying to build eRuby under windows with GCC — "Philip Mateescu" <philip@...>
Hi,
[#37174] Re: String#begins?(s) — <mengx@...>
I implemented and have been using
[#37182] Sun Microsystems Buys Rights to Ruby — <james@...>
I'm surprised nobody in the list has mentioned this. I read in a ZDNet
[#37198] Larry Wall proclaims Ruby to be Perl 6 — ptkwt@...1.aracnet.com (Phil Tomson)
As reported in the Ruby Weekly News:
[#37228] remacs — Yohanes Santoso <ysantoso@...>
Hi,
[#37231] Announcing New Ruby Book Under Development! — <robert.calco@...>
Everybody:
On Tue, 2 Apr 2002 robert.calco@verizon.net wrote:
Have you checked out?
Hi,
On Tue, 2002-04-02 at 20:16, nobu.nokada@softhome.net wrote:
[#37232] seeking to understand... — Mark Probert <probertm@...>
In article <87d6xhaoif.fsf@jenny-gnome.dyndns.org>,
In article <3813.198.133.202.18.1017778936.squirrel@12.27.88.122>,
Kent Dahl wrote:
On Wed, Apr 03, 2002 at 05:33:49AM +0900, Dr. David Mertz wrote:
[#37253] Mixins vs. Multiple Inheritance — "Jason Voegele" <jason@...>
Given that including a module M into a class C
Hi,
[#37265] a note on the . and .. discussion — patrick-may@... (Patrick May)
I just realized that unix commands do not recognize the "." and ".."
[#37281] Is eval a code/design smell? — "Chris Morris" <home@...>
I seem to have an inherent distaste for eval, but I don't know why. I've
On Wed, 03 Apr 2002 00:15:10 GMT, "Chris Morris" <home@clabs.org> wrote:
On Wed 03 Apr 2002 at 20:35:30 +0900, you wrote:
On Thu, 2002-04-11 at 01:40, Ian Macdonald wrote:
On Thu 11 Apr 2002 at 22:07:03 +0900, you wrote:
On Thu, 2002-04-11 at 12:06, Ian Macdonald wrote:
>>>>> "S" == Sean Middleditch <elanthis@awesomeplay.com> writes:
On Thu, 2002-04-11 at 12:25, ts wrote:
>>>>> "S" == Sean Middleditch <elanthis@awesomeplay.com> writes:
On Thu, 2002-04-11 at 12:42, ts wrote:
>>>>> "S" == Sean Middleditch <elanthis@awesomeplay.com> writes:
On Thu, 2002-04-11 at 12:59, ts wrote:
>>>>> "S" == Sean Middleditch <elanthis@awesomeplay.com> writes:
On Fri, Apr 12, 2002 at 02:05:09AM +0900, Sean Middleditch wrote:
On Fri, Apr 12, 2002 at 02:34:29AM +0900, Alan Chen wrote:
> I never use eval. However, I use module_eval all the time. That is,
Sean Middleditch <elanthis@awesomeplay.com> wrote in message news:<1017933822.1548.12.camel@smiddle>...
On Thu, 2002-04-04 at 17:32, Avi Bryant wrote:
> I know I would. To me, that is indeed a language flaw. There should be
On Thu, 2002-04-04 at 20:33, Harry Ohlsen wrote:
[#37296] Request for Advice -- Undefined Symbol — Dennis Newbold <dennisn@...>
Unless you've tried doing something like this, you may not be
[#37301] statement separator — Yohanes Santoso <ysantoso@...>
Hi,
[#37308] TCPSocket::new in ruby 1.7 — "Nikolay Elkov" <nick@...>
When I execute the following
[#37320] Newbie Questions — ghost <ghost_djNOSP@...>
Apologies if there is a FAQ I missed or this is out of line here, but I
[#37342] regular expression question — "Firestone, Mark - Technical Support" <mark.firestone@...>
Thanks for the help with the tread questions guys... I have one about (gasp)
Hello --
[#37385] TextPad replacement for Linux? — Tobias Reif <tobiasreif@...>
TIA,
Gerhard H舐ing wrote:
[#37397] Really new-new-newbie question :) — "Philip Mateescu" <philip@...>
Hi,
[#37428] Re: mkmf.rb — Tobias DiPasquale <anany@...>
On Wed, 03 Apr 2002 13:44:13 -0500, nobu.nokada wrote:
[#37454] ModRUBY question — George Moschovitis <gmosx@...>
Hi everybody,
George Moschovitis <gmosx@image.ece.ntua.gr> wrote:
yeas i think too that mod_ruby uses more than one interpreter. :(
> yeas i think too that mod_ruby uses more than one interpreter. :(
[#37462] Help: Ruby<->C++ callbacks — Luigi Ballabio <ballabio@...>
[#37464] SOAP query — Holden Glova <dsafari@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#37470] Test the result of an initialization ? — jayce@... (Jayce Piel)
[#37482] Some ActiveRuby/RubyScript questions — Liorean <Liorean@...>
Greetings!
[#37494] REXML queries — "Nat Pryce" <nat.pryce@...13media.com>
Hi. A couple of queries about the wonderful REXML library.
[#37522] Ruby on the Sharp Zaurus? — "Stefan Matthias Aust" <sma@3plus4.de>
Hi!
[#37534] -- Starting a Background Process — Dennis Newbold <dennisn@...>
If I'm submitting this suggestion / request in the wrong form or place,
モヤチヤリナ <Pine.GSO.3.96.1020404133737.22806A-100000@shell2> Dennis Newbold ホチミノモチフ(チ):
Greetings,
>>>>> "A" == Arno Erpenbeck <aerpenbe@uni-osnabrueck.de> writes:
[#37540] Fibonacci Number Generators — jzakiya@... (Jabari Zakiya)
Hi, I'm a newbie, coming to Ruby from a
[#37549] OO/Ruby Terminology — <james@...>
I added a wiki page for Ruby book development ...
-----BEGIN PGP SIGNED MESSAGE-----
> From: bbense+comp.lang.ruby.Apr.07.02@telemark.stanford.edu
In article <PGEPJIFLPEPOHCKEEEIKIEFADCAA.james@rubyxml.com>,
> From: Chris [mailto:chris@cmb-enterprises.com]
Hi --
[#37591] Webrick session ? — "Stephan J. Schmidt" <stephan.schmidt@...>
Hello,
[#37616] Additions to math.c (more math functions) — Mike Hall <mghall@...>
Since 1.7 added the hyperbolic trig functions,
[#37617] Addition to file.c (File.extension) — Mike Hall <mghall@...>
Hi,
In message <20020408145239.67568.qmail@web12407.mail.yahoo.com>
[#37635] ruby speed? — Tyler Spivey <tspivey8@...>
i don't know if this has been issued before,
[#37653] Switching from PHP to Ruby - Comments Please — Jim Freeze <jim@...>
Hi:
> Well, I'm about ready to make the switch to a Ruby based website. My
On Sun, Apr 07, 2002 at 03:44:58AM +0900, Sean Chittenden wrote:
On Mon, Apr 08, 2002 at 12:12:52PM +0900, james@rubyxml.com wrote:
Since I am planning on using MySQL (may switch to PostgreSQL,
> Since I am planning on using MySQL (may switch to PostgreSQL, but
[#37679] Socket API — Tom Gilbert <tom@...>
Could someone tell me how to create a "struct sockaddr stored in a
In article <20020407021324.GE6112@killik.co.uk>, Tom Gilbert wrote:
Hi,
Hi,
[#37700] IRB — Carl Parrish <cparrish@...>
I can't seem to get irb to work I can find the irb.rb file. but if I
[#37710] Exception instances... — Sean Chittenden <sean@...>
I don't understand where the following warning is coming from:
On Mon, Apr 08, 2002 at 10:33:27AM +0900, Sean Chittenden wrote:
[#37746] ruby-dev summary 16501-16750 — TAKAHASHI Masayoshi <maki@...>
Hi all,
>>>>> "M" == Michael Campbell <michael_s_campbell@yahoo.com> writes:
>
>>>>> "M" == Michael Campbell <michael_s_campbell@yahoo.com> writes:
> From: TAKAHASHI Masayoshi
Hi,
[#37759] Threads — "Kontra, Gergely" <kgergely@...>
Hi!
[#37767] Re: [patch] update to (X)Emacs modes — Ville Skytt<ville.skytta@...>
>> attached is a patch with some trivial changes to ruby-mode.el and
[#37778] ruby language capabilities — Soso Chs <sosoruby@...>
hi,
[#37781] capital method names — Paul Brannan <paul@...>
When I write:
Paul Brannan wrote:
[#37788] Little interface improvement request for embedding Ruby — "Christian Boos" <cboos@...>
Hi,
Hi,
[#37795] ruby + Creating and extending XML documents — Oliver Beddows <oliver@...>
Hi,
> I`m pretty new to Object Orientation, so am I being naive?
[#37797] Source code for _The Ruby Way_ — "Hal E. Fulton" <hal9000@...>
After much delay, I have delivered the
[#37807] RE: Source code for _The Ruby Way_ — "Pe, Botp" <botp@...>
Yes, pls.
[#37833] Ruby as replacement for VB? — "Robb Shecter" <rs@...>
Hi,
> Hi,
[#37835] crypting ruby source — Ludo <coquelle@...>
Hi,
Ludo <coquelle@enib.fr> wrote in message news:<3CB31298.13A44B26@enib.fr>...
> The reasons for doing this are obvious, $$. You want to distribute
On Sun, 14 Apr 2002 13:55:45 GMT,
> > not trying to sound smartassy here, but the lack of native support for that
[#37838] Easy character comparisons — "Sean O'Dell" <sean@...>
Today I spent a little time debugging something I "didn't expect." I
[#37839] mix-in dependancy — Yohanes Santoso <ysantoso@...>
I'm playing around with the idea of attaching modules to some class
[#37887] why do the methods from my mixed-in module disappear? — Ian Macdonald <ian@...>
Have a look at this piece of code:
[#37898] SOAP4R/1.4.3 — "NAKAMURA, Hiroshi" <nahi@...>
Hi all,
Hi all,
Hi all,
[#37925] regex: how to negate sequences? — Tobias Reif <tobiasreif@...>
Hi,
[#37929] delete a sequence of chars — Tobias Reif <tobiasreif@...>
Hi,
[#37962] Is Carbon ruby dead? — mattmsykes@... (Matt M Sykes)
The only info I've found is
[#37970] ruby and finance — Patrik Sundberg <ps@...>
Hi,
[#37991] OT: OO terminology — "Hal E. Fulton" <hal9000@...>
The terminology thread reminded me of something
[#37998] Anyone attending SD Expo on April 24? — matz@... (Yukihiro Matsumoto)
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
[#38002] Am I going mad? Works in IRB not in a file! — "Ralph Mason" <ralph.mason@...>
This must be something I am doing wrong. In a file the output from this
[#38008] RegExp for "AND" search pattern... — patrick-may@... (Patrick May)
How could a regexp be constructed for an "AND" search pattern?
[#38044] RFC - class_added callback — Michal Rokos <m.rokos@...>
Hello,
[#38046] GetoptLong question — djberg96@... (Daniel Berger)
Hi all,
On 11 Apr 2002, at 22:16, Daniel Berger wrote:
[#38055] Thread safety of Queue.push — Mathew Johnston <mjohnston@...>
I was wondering if it was safe to have multiple threads all pushing onto
[#38085] Array#pack: byte order for unsigned types — "Jason Voegele" <jason@...>
I've been using Array#pack heavily lately, and noticed that there is no way
HI,
[#38097] exceptions that are not Exceptions — Paul Brannan <pbrannan@...>
If someone (not me) does this in an extension:
Hi,
[#38101] How to Make a Method Ineffective Efficiently? — William Djaja Tjokroaminata <billtj@...>
Hi,
Hello,
Thanks for all the responses. I just want to add the final
[#38103] Is this behavior correct? — David Corbin <dcorbin@...>
--cut--
[#38106] Process controlls — johnwyp@... (JohnW)
OK, here's what I'm trying to do (keep in mind I'm a Ruby Nuby)...
[#38126] Ruby/Google — Ian Macdonald <ian@...>
Hi,
[#38136] Idea for a new shorthand — "Hal E. Fulton" <hal9000@...>
OK, maybe this is an idea no one will like. Or
On Fri, Apr 12, 2002 at 03:59:51PM +0900, Hal E. Fulton wrote:
[#38138] Ruby and MSVC++ — "Anton V.Kondakov" <anton@...>
Hello
[#38167] Why Object#class Is Inconsistent in "==" and "case"? — William Djaja Tjokroaminata <billtj@...>
Hi,
[#38199] not vs !, and vs && — <james@...>
I'm confused about the behavior of 'not'. The Pickaxe and Ruby21Days books
james@rubyxml.com wrote:
>
james@rubyxml.com wrote:
[#38234] Stop Using SOAP, Before It's Too Late — Tobias DiPasquale <anany@...>
Hi all,
I would like to suggest to have a look at REST instead if you are looking for a
[#38238] Barnes & Noble putting on the squeeze — David Alan Black <dblack@...>
Hello --
On Sun, 14 Apr 2002, David Alan Black wrote:
In article <Pine.LNX.4.30.0204131135510.13223-100000@bigfun.whirlycott.com>,
[#38239] Freshmeat article about Ruby — Tobias DiPasquale <anany@...>
Hi all,
Tobias DiPasquale wrote:
Hi --
David Alan Black <dblack@candle.superlink.net> writes:
On Fri, Apr 19, 2002 at 01:07:22AM +0900, Mark Hulme Jones wrote:
On Fri, 19 Apr 2002, Paul Brannan wrote:
On 4/18/02 9:30 AM, "Pat Eyler" <pate@eylerfamily.org> wrote:
Jack Herrington wrote:
Hello --
> I highly recommend including the following disclaimer in every
[#38253] ring the alarm — Tobias Reif <tobiasreif@...>
Hi,
[#38270] Silence warning — David Corbin <dcorbin@...>
/home/dcorbin/projects/homenet/tools/testall.rb:41: warning: already
[#38272] statements & expressions( was RE: not vs !, and vs && ) — <james@...>
> From: Guy N. Hurst [mailto:gnhurst@hurstlinks.com]
[#38287] RCR: key value mapping for sprintf/% — "Guy N. Hurst" <gnhurst@...>
I was on irc at irc.openprojects.net in #ruby-lang
[#38331] mime type — Tobias Reif <tobiasreif@...>
Hi all,
[#38338] Compiling Ruby on Mac OS X — Alwyn <alwyn@...>
I've downloaded the latest Stable Snapshot and tried building it. It
In <20020415091534.A89552@freeze.org> Jim Freeze <jim@freeze.org> wrote:
On 4/15/02 6:41 AM, "Alwyn" <alwyn@alwyn.demon.co.uk> wrote:
[#38365] RE: Pascal to Ruby — "Firestone, Mark - Technical Support" <mark.firestone@...>
Well, ya... I have a bunch of text, in (in pascal terms) an array of string.
[#38373] need help on using Ruby to replace some SED expressions — kackson@... (kackson)
I tried sed. But it is getting really tough when I keep realizing I've
[#38385] Ruby/Google 0.2.0 — Ian Macdonald <ian@...>
Hi all,
[#38389] Fw: Problem with the PDF of Programming Ruby — "Philip Mateescu" <philip@...>
Hi.
[#38432] - Cleanups — Michal Rokos <m.rokos@...>
Hello,
[#38449] Help wanted for statvfs extension — djberg96@... (Daniel Berger)
Hi all,
On Wed, 17 Apr 2002 05:04:06 +0900
Hi,
On Wed, 17 Apr 2002 13:45:02 +0900
Hi,
On Wed, 17 Apr 2002 21:59:00 +0900
Hi,
On Wed, 17 Apr 2002 22:35:09 +0900
Hi,
Mike Hall <mghall@enteract.com> wrote in message
[#38461] Redefining module methods — "Sean O'Dell" <sean@...>
In two Ruby script files I have two methods of the same name within a single
[#38483] visual c, ruby, and fastcall hassle — Lorien Dunn <loriend@...>
Hello all,
Hi,
[#38525] resolv.rb Bug — "Roy J. Milican" <roy@...>
Greetings,
In article <28544001472.20020417142749@milican.com>,
Hi,
In article <200204180556.g3I5uTM16177@sharui.nakada.kanuma.tochigi.jp>,
Hi,
Greetings,
Hi,
-----BEGIN PGP SIGNED MESSAGE-----
[#38535] RFC: article about testers using Ruby. — Brian Marick <marick@...>
I've written a first draft of an article with several ulterior motives. One
[#38547] Tk under Ruby [newbie to ruby] — "Kontra, Gergely" <kgergely@...>
Hello!
"Kontra, Gergely" wrote:
>"Kontra, Gergely" wrote:
[#38555] ruby/postgres problem — "Steve Cranford" <stevecranford@...>
I'm trying to determine if a resultset is empty. if it is, I want to
[#38571] recursive require warning... — ptkwt@...1.aracnet.com (Phil Tomson)
I ran into a problem with a Ruby script on Windows due to the fact that
[#38574] Object#send with $SAFE >= 1 — "Jason Voegele" <jason@...>
I'm writing a web application for which I need to call methods dynamically
On Fri, Apr 19, 2002 at 04:10:42AM +0900, Jason Voegele wrote:
[#38585] Ruby-Poll-0.01 — Michael Granger <ged@...>
Michael Granger wrote:
[#38587] Experimental language jtpl — Jakub Travnik <j.travnik@...>
Hello,
[#38592] GC problem in C++ extension — Paul Brannan <pbrannan@...>
I have a test program that looks like this:
[#38627] Imlib2-Ruby 0.4.0 — Paul Duncan <pabs@...>
I just posted Imlib2-Ruby version 0.4.0, my Ruby bindings for Imlib2
Paul Duncan wrote:
Paul:
[#38633] Replacing groups of methods: How would *you* do this? — "Hal E. Fulton" <hal9000@...>
Question for you.
[#38635] Threads creating threads creating threads... — Tobias Peters <tpeters@...>
I have already asked this question in [ruby-talk:19661], but I will ask it
My previous posting was not clear enough, I'll try to enhance it.
Tobias Peters <tpeters@uni-oldenburg.de> writes:
Hello,
On Sun, 21 Apr 2002, Jean-Hugues ROBERT wrote:
[#38654] String to method name — "R.Seymour" <switch@...>
I feel like I have a learning disability asking this, but what I am
[#38694] Ruby on .NET? — Ron Jeffries <ronjeffries@...>
I scanned the .net threads here and didn't see whether there is, or is not, an
recently found:
Sean Middleditch wrote:
From: ";" <bbense+comp.lang.ruby.Apr.22.02@telemark.stanford.edu>
<bbense+comp.lang.ruby.Apr.22.02@telemark.stanford.edu> ; wrote:
On Tue, Apr 23, 2002 at 03:33:43AM +0900, Avi Bryant wrote:
[#38704] Cardinal project page on Savannah — ptkwt@...1.aracnet.com (Phil Tomson)
I started a Cardinal project page at Savannah. Those who are interested
[#38727] Q: Possible Palm OS port? — "Hal E. Fulton" <hal9000@...>
Hello all,
[#38732] a newbie about local variables — Ferenc Engard <engard@...>
Hi there,
[#38739] problem with alias — "Guy N. Hurst" <gnhurst@...>
I just discovered a problem with how alias works while
[#38740] A few ideas/suggestions — Michael Brailsford <brailsmt@...>
I have had a few ideas about some new features. Before I submit an RCR
[#38766] Novice: Each and p — Thorsten Haude <ruby@...>
Hi,
[#38770] newbie embedding — "Jamie Knight" <bigjim16@...>
I only recently found out about ruby and I'm interested in embedding the
[#38772] MACROs cleanup 3 — Michal Rokos <m.rokos@...>
Hi,
Hello,
[#38782] Compiling stable-snapshot on linux — Martin Stannard <martin@...>
Hi,
[#38832] ruby-dev summary 16851-16960 — TAKAHASHI Masayoshi <maki@...>
Hi all,
[#38839] building extensions-- new vs initialize — "Norman Makoto Su" <normsu@...>
Hi, I'm trying to build a ruby extension in C. While looking at the pickaxe CD
Hi,
Hi Norman,
[#38874] Is there a better way to convert between arrays and strings? — Bob Hutchison <hutch@...>
Hi,
[#38908] Minor Tk bug on Windows? — "Hal E. Fulton" <hal9000@...>
Hello...
----- Original Message -----
[#38910] Numberic#prev — Sean Chittenden <sean@...>
I do a lot of incrementing and decrementing of values: it'd be nice if
Hi,
----- Original Message -----
Marko Schulz <in6x059@public.uni-hamburg.de> wrote:
[#38926] My First Time — Thorsten Haude <ruby@...>
Hi,
モヤチヤリナ <200204240855.g3O8tRu21875@sharui.nakada.kanuma.tochigi.jp> Nobuyoshi Nakada ホチミノモチフ(チ):
[#38929] Require vs. C++ include — werasmus@... (Werner)
Hi all,
[#38931] ZODB equivalent for ruby — "George Moschovitis" <gmosx@...>
Hi there,
[#38974] Xmms-Ruby 0.1.0 — Paul Duncan <pabs@...>
Hi,
[#38975] question about extending in C — "Richard P. Groenewegen" <rpg@...2all.net>
Hi,
[#38982] Glade???? — Carl Parrish <cparrish@...>
[#38983] appending methods to class inside module — Ian Macdonald <ian@...>
Hi,
Ian Macdonald <ian@caliban.org> writes:
[#38987] Problem? USENET NEWS split — Michal Rokos <m.rokos@...>
Hi,
[#38993] Re: [Patch] Macros #4 — Michal Rokos <m.rokos@...>
Hi,
Hi,
Hi everyone, I am an experienced Smalltalk/Java developer, and bought the
On 26 Apr 2002, David wrote (more or less):
[#39001] $_ if no |var| — "Kontra, Gergely" <kgergely@...>
Hello!
On Thu, 25 Apr 2002, Kontra, Gergely wrote:
At 22:59 25/04/2002 +0900, Lars Christensen wrote:
[#39015] a small ruby for embedded applications — mattmsykes@... (Matt M Sykes)
Hi,
[#39025] require 'aDir' — patrick-may@... (Patrick May)
Has this been discussed in the past?
[#39047] A Wild Idea: What do you think? — Jim Freeze <jim@...>
Hi:
On Fri, 26 Apr 2002, Jim Freeze wrote:
----- Original Message -----
On Sat, 27 Apr 2002, Hal E. Fulton wrote:
[#39069] Parsing Repeating Regexp Matches — Curt Sampson <cjs@...>
[#39073] newbie: embedding ruby and garbage collection — "Baptiste Lepilleur" <gaiacrtn@...>
Hi everyone,
[#39087] RE: expand_path and overlap — "Morris, Chris" <chris.morris@...>
> I find this an interesting puzzle. Question: what would this return:
[#39094] RFC: File.join removing redundant /'s — mrp@...
[#39122] RE: A Wild Idea: What do you think? — "Morris, Chris" <chris.morris@...>
> > OK, then let's have it in Texas. How about August? Oh, what do you
On Sat, Apr 27, 2002 at 03:15:21AM +0900, Morris, Chris wrote:
On Sat, 27 Apr 2002, Jim Freeze wrote:
On Sun, Apr 28, 2002 at 01:14:28AM +0900, Pat Eyler wrote:
Hi --
On Sun, 28 Apr 2002, David Alan Black wrote:
[#39141] RE: Small patch for ruby,vim syntax highlighting file — "Gray, Jeff" <jeff.gray@...>
> From: Michael Brailsford [mailto:brailsmt@yahoo.com]
> ":foo" will not highlight correctly unless you separate the colon
> > ":foo" will not highlight correctly unless you separate the colon
[#39142] TCL interpreter in Ruby? — Craig Files <craig_files@...>
Hi,
[#39169] mod_ruby for Windows? — "Rod Schmidt" <rschmidt@...>
Anyone got a mod_ruby binary for Windows yet?
> Anyone got a mod_ruby binary for Windows yet?
[#39171] cygwin1.dll missing or corrupt — slayer@... (Slayer)
I can't remember who was looking for it, but I found the following
[#39198] Anyway to un-include a module? — ptkwt@...1.aracnet.com (Phil Tomson)
[#39214] Q: string to class? — Mike Hall <mghall@...>
I've got a string, and I'd like to get a class reference.
[#39228] RubyConf.new(2002) - ideas for agenda — "Daniel Berger" <djberg96@...>
Ok - so I'm probably jumping the gun here, but hey, what the heck.
Hi --
David Alan Black [mailto:dblack@candle.superlink.net] wrote:
----- Original Message -----
[#39261] CGI API Rant — Thomas Hurst <tom.hurst@...>
Is it just me, and do I just need to use it more to see how great it is,
[#39304] alias_method problem — Stefan Mueller <flcl@...>
Hello
[#39323] Ranges - enable (10..-10) — Michal Rokos <m.rokos@...>
Hello,
Hello --
[#39327] Embeding Ruby — web2ed@... (Edward Wilson)
I would like to use Ruby as an embeded tool for a large scale mission
[#39338] An example of the beauty of Ruby... — "Hal E. Fulton" <hal9000@...>
Who was it who said something like, "In Ruby,
[#39366] Override "initialize" — Stefan Mueller <flcl@...>
Hello
[#39376] Sockets problem — Matthew PATTISON <mfp@...>
Hi,
[#39391] some questions about rb_newobj() — Paul Brannan <pbrannan@...>
In gc.c, I see:
Hi,
On Wed, 1 May 2002, Yukihiro Matsumoto wrote:
[#39394] ncurses, mingw32 — tony summerfelt <snowzone5@...>
i've been away from ruby for awhile, it was time to dust off the pickaxe book
Re: About efficiency
On Tue, 2002-04-02 at 20:16, nobu.nokada@softhome.net wrote: > Hi, > > At Wed, 3 Apr 2002 08:51:31 +0900, > Jean-Hugues ROBERT wrote: > > I have been enjoying Ruby for 2 weeks now. I am very impressed. It is > > my understanding that currently the interpreter directly executes the > > parse tree versus going thru some bytecode generation phase (the later > > is what I did for some interpreter I wrote years ago, while at the > > same time a friend of mine was going the ruby way, hence we had > > opportunities to compare). > > Ruby VM is planned. VM's make things a *lot* faster. I'm experimenting with Scriptix, and taking it from the Ruby-ish nodes to a byte-code language improved the speed by 1.5-3 times, depending on the test (I'm no profressional benchmark writer, mind you). > > Perhaps, for backward compatibility, and maybe to deal with Regexp. > > > 2) "xxx" versus 'xxx', which is more efficient ? > > Equivalent according to Matz's recent comment. Well... I guess that when xxx does not include any special > > construction, one of the two *has* to be faster than the other one, either at compile time (parse tree constuction > > time I mean) or at runtime, right ? Which one ? I am used to using "xxx" but if 'xxx' is more efficient, I can use it > > instead (when both are semantically equivalent). > > 'xxx' is faster a bit at parse, just an int comparison per > byte. It's not significant. Well, it could make a difference if you are re-parsing a script over and over many times (i.e., CGI script or somesuch that's under very heavy load). Timing it, with a good amount of strings, can shave off a nice number of milliseconds (hey people, there's only a thousand of those per second! ~,^) > > > 3) closure > > I suspect that holding a closure means at least that the stack frame where the closure was created is referenced (and > > not garbage collected until the closure disappears) (I hope that the caller stack frames aren't referenced, are they > > ?). This may have big memory impacts, specially if the stack frame also holds references to large object. For sure it > > does not hurt to do some xxx=nil when xxx is not usefull anymore. > > Proc doesn't hold each stack, Thread does. About an orphan > Proc from dead Thread, the stack may be discardable. > > > 3) type induction > > One day the "dynamic typing" versus "static typing" language war will be over. That day, you will have the ability to > > switch smoothly from dynamic to static, during the optimization phase of your project. No need for C++ style templates > > then. All you will have to do is give hints to the compiler/interpreter about the domain/type/range of variables so > > that the compiler/interpreter can take advantage of that knowledge to optimize the code. I have seen that being > > applied years ago in Turbo Prolog to some extend, with incredible results. Any plan for Ruby about that ? > > It's been discussed some times, but not implemented yet. Hmm, how would that work with loadable modules? Either you'd have to store a lot of meta information, or modules that try to access a variable in the wrong way from another module would cause a crash or some other bad side-effect. > > > 4) String > > For a String intensive language like Ruby, there is an optimization that could be worth implementing. It is an > > optimization where a String is actually made of a reference to some potentially shared string representation, + > > an_offset, + a_size. That means that many operations then do not need to copy the string anymore (you update > > 'an_offset' and/or 'a_size' instead, still referencing the same 'string_representation'). Has such an optimization > > been evaluated (it has almost no impacts on the external interface) ? I think this is a type of "Copy On Write" > > optimization. > > Shugo Maeda had made a patch, but it's left yet due to the > impact on the external interface mainly. Wow, that's a nice one. Will have to try that in Scriptix and see what kind of performance and memory gain I can get (I'm more interested in performance - less memory allocations is nice for that.) > > > 5) Cache. > > Reading the books about the implementation of Smalltalk gives some hints on how much efficient such caches can > > be. Candidates are: caching (a_class,a_method_name)=>a_method. This cache alone doubled the speed of the smalltalk > > interpreter ! > > Method cache is implemented already. You know, one cache I found useful in Scriptix (dunno if Ruby uses it) is a name cache. I.e., if you have a small loop that references the same small number of variables/members/etc., the code has a string to find the name against. Well, comparing pointers is faster than comparing a whole string. So, the compiler caches the last 20 (or whatever number) names is encountered, so the byte-code (or node tree) can just have multiple copies of the same string in memory. This reduces memory usage for variable name lookups, plus makes the lookups faster by reducing the complexity of the name comparisons. This optimization had a nice effect in Scriptix, so if Ruby doesn't use it now, it might make a big difference if it did. > > > Another one is for (a_class,an_instance_variable_name)=>an_index. Assuming an object has a value (i.e. has some set of > > instance variables) and if accessing that set directly is an option (with an index, i.e. versus sequentially or some > > other less efficient method) then again this can speed things up a lot (in the most common cases, where objects have > > instance variables layed out in the same order). > > You can add instance variables on the fly, the last assumption > may not be correct. I considered it too, but had no good idea. Hmm. if you stored them all in a dynamically allocated array, that might make it work (only appending entries). The problem I see is getting the interpreter to know what to cache when. Doing it at run time would just add over-head to the current member search, wouldn't it? (Maybe I'm just not seeing how this optimization works.) > > > A less trivial cache is for inlining small methods. This is specially efficient for accessors. I think it is described > > too in the books about the implementation of Smalltalk 80. > > Maybe, but it may prohibit/restrict forward reference, or gain > compile time cost much. That's something I've been toying with. A powerful optimizer can make the runtime code a *lot* faster, but significantly slow down the compiler. If you load a script once and let it run for a very long time (i.e., a full-scale application, or large mathematical computations), or if you run a small script repeatedly (using scripts as callbacks in triggers in an embedding application), then the greatly increased compile time could well be worth it. I've not looked much at the Ruby compiler, but perhaps two separate compilers would be possible? A simpler, lighter one that compiles quickly and runs at moderate speed, and a complex one that may take many seconds to compile a smaller app/script, but run at lightning speeds? Also, a more complex compiler may be useful if Ruby let you save to some form of bytecode (hell, even an binary or XML representation of the current node tree scheme), then load that back in. You could do like you would with C - spend a lot of time compiling, but get applications much much faster than a fully interpreted language. > > -- > Nobu Nakada