[#86843] Marshal.load EOF on loading subclass of Array (1.8.1) — Brian Marick <marick@...>
I think I have found a bug in marshaling in version "ruby 1.8.1
[#86844] Usage message in optparse.. summarize method? — "Jeff Dickens" <dickens@...>
I tried your script, and -h doesn't output anything. I'm using ruby 1.8.0.
[#86899] how do I create a TestSuite — Rasputin <rasputin@...>
This code used to work under 1.6.8 with Test::Unit 0.1.8:
[#86905] RSS aggregators with web interface? — Hugh Sasse Staff Elec Eng <hgs@...>
I think this may already exist, hence my question:
[#86926] Rite, Block locals and Autovivification — John Carter <john.carter@...>
Perl has what may be an evil solution block locals.
Hi --
[#86969] Fwd: Re: Ruby2 RCR (was Re: Constants, class variables and the cbase field) — "T. Onoma" <transami@...>
Hi all,
Hi --
On Tuesday 02 December 2003 03:38 pm, David A. Black wrote:
Hi --
On Tuesday 02 December 2003 04:54 pm, David A. Black wrote:
Hi,
[#86984] Attempted roadmap of future instance variables.... — "David A. Black" <dblack@...>
Hi --
So what is the relationship between @_ vars and @vars that are defined in a
Hi --
Maybe I am being dense, so bear with me...
Steve Tuckner wrote:
OK so the jist of it is that @_var variables are stored with the class of
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
ts wrote:
>>>>> "C" == Christoph <chr_mail@gmx.net> writes:
ts wrote:
Hi --
On Fri, 5 Dec 2003 22:56:41 +0900, David A. Black wrote:
Austin Ziegler wrote:
On Sat, 6 Dec 2003 01:40:42 +0900, Christoph wrote:
On Friday 05 December 2003 06:41 pm, Austin Ziegler wrote:
On Sat, 6 Dec 2003 02:50:19 +0900, T. Onoma wrote:
On Friday 05 December 2003 07:02 pm, Austin Ziegler wrote:
Can anyone take a look at this and tell me what the hek is happening with
>>>>> "T" == T Onoma <transami@runbox.com> writes:
Take a look at this:
On Friday 05 December 2003 05:40 pm, Christoph wrote:
Hi,
Yukihiro Matsumoto wrote:
On Dec 5, 2003, at 12:15, Yukihiro Matsumoto wrote:
Nathaniel Talbott wrote:
On Friday 05 December 2003 07:40 pm, Nathaniel Talbott wrote:
On Dec 5, 2003, at 14:47, T. Onoma wrote:
On Friday 05 December 2003 09:05 pm, Nathaniel Talbott wrote:
[#86989] require bug?? (1.8.0) — Andrew Walrond <andrew@...>
Require is supposed to include each file only once, but if the same physical
[#87000] protocol.rb (1.6) doesn't like VERP style addressing — culley harrelson <culley@...>
I am using NET::SMPT to send messages with VERP style addressing:
[#87031] ruby 1.8 in the freebsd ports tree — culley harrelson <culley@...>
Does anyone have ruby 1.8 + libraries working from the freebsd ports
culley harrelson (culley@fastmail.fm) wrote:
[#87050] Please recommend a regular expression excluding return character. .. — Kurt Euler <keuler@...>
All-
[#87066] What's the best way to create methods dealing with an object of a certain class? — Leif K-Brooks <eurleif@...>
I want to add a method to be run on Strings. Currently, I'm just adding
Leif K-Brooks wrote:
I'm looking for a very indepth book on Ruby. Any suggestions?
[#87067] YAML Question: Using YAML::YamlNode#transform Method to get float values? — RubyQuestions@... (RubyQuestions)
I'm trying to use the transform method in YAML to grab the values from
[#87083] Some Regexp — orlovdn@... (Dmitry N Orlov)
I want to get array from file like this:
On Wed, 3 Dec 2003, Robert Klemme wrote:
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
On Wed, 3 Dec 2003, ts wrote:
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
[#87084] mixin vs. multiple inheritence — "T. Onoma" <transami@...>
In ruby-talk:72013, matz wrote:
T. Onoma wrote:
[#87085] each_with_what_index? — "T. Onoma" <transami@...>
Can you see the bug'a'boo in the following snippet?
On Wednesday, December 3, 2003, 10:01:38 PM, T. wrote:
On Wednesday 03 December 2003 12:23 pm, Gavin Sinclair wrote:
On Wed, 3 Dec 2003, T. Onoma wrote:
[#87155] Re: Linux protocol.rb and smtp.rb problem — George Girton <ggirton@...>
I'm looking forward to the answer to this question, I had the
George Girton (ggirton@mac.com) wrote:
[#87156] c extension troubles on windows — Michael Hale <michael@...>
Hi ruby extension geeks, and thanks in advance for your help.
"Michael Hale" wrote:
Unfortunately I don't have the source for the windows version of the
I recently resurrected my code to try to get it working again. So far
[#87159] Using Modules as Decorators — elbows@... (Nathan Weston)
Someone recently mentioned the idea of using Modules to implement the
[#87165] Ruby not exiting when developing extension — Derek Lewis <lewisd@...00f.net>
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
[#87166] _VERY_ basic Here Doc Question — "dhtapp" <dhtapp@...>
Hi,
[#87183] Swatch's internet time in Ruby [Code Inside] — Pablo Lorenzzoni <spectra@...>
Hello ALL!
[#87192] debugging [BUG] messages/c ext woes — "Ara.T.Howard" <ahoward@...>
[#87203] sorting — vanjac12@... (Van Jacques)
I'm not sure where to post about this problem, so
[snip]
On Thu, Dec 04, 2003 at 07:24:28PM +0900, Peter wrote:
On Sunday 07 December 2003 12:43, nainar wrote:
On Sun, Dec 07, 2003 at 03:14:28PM +0900, Dmitry V. Sabanin wrote:
On Sunday 07 December 2003 10:41 am, nainar wrote:
[#87209] Libxml XML::Document.find("/doc") # [BUG ] Segmentation fault — ujwalic@... (Ujwal)
This is my first message
[#87221] Problems with TestUnit — "Dmitry V. Sabanin" <sdmitry@...>
Hello,
On Dec 4, 2003, at 12:23, Dmitry V. Sabanin wrote:
[#87233] Generalized break? — Hal Fulton <hal9000@...>
I hate to bring up possible language changes, since there is
On Fri, 5 Dec 2003, Hal Fulton wrote:
[#87241] TCL/TK 8.4 for Windows — Ian Hobson <NewGroups@...>
Hi,
[#87247] how to navigate in a file ? — "Boris \"BXS\" Schulz" <bxs@...>
Hi,
[#87251] propagating errno from c extensions — "Ara.T.Howard" <ahoward@...>
[#87255] WeakRef and Object#hash — Samuel Tesla <samuel@...>
I'm trying to implement a weak key hash to use for generic objects.
Is there an assignment version of Hash#values_at, so I can assign
On Fri, 5 Dec 2003 12:42:05 +0900, Mark J. Reed wrote:
On Fri, Dec 05, 2003 at 01:45:36PM +0900, Austin Ziegler wrote:
[#87301] Re: Dumb question to which I ought to know the answer by now — Michael Campbell <michael_s_campbell@...>
Mark J. Reed wrote:
[#87333] Re: Attempted roadmap of future instance variables.... — "Weirich, James" <James.Weirich@...>
From: David A. Black [mailto:dblack@wobblini.net]
Hi,
Hi --
David A. Black <dblack@wobblini.net>:
[#87364] Dir.mkdir fails — "Jesper Olsen" <Jesper@...>
From a mod_ruby cgi_script I try to use
[#87382] Idea: Linux PIM in Ruby — Hal Fulton <hal9000@...>
On my wishlist of top 20 things I'd like to do: A PIM for Linux.
On Saturday, December 6, 2003, 4:34:01 PM, Hal wrote:
Hal Fulton wrote:
Lyle Johnson wrote:
Hal Fulton wrote:
Lyle Johnson wrote:
[#87387] Tk Help needed with grid — Ian Hobson <NewGroups@...>
Hi All,
[#87409] rbbr-0.5.0 — Masao Mutoh <mutoh@...>
Hi,
[#87430] Ideas for replacing $0==__FILE__ — Hal Fulton <hal9000@...>
I've accepted now that my "generalized break" was a bad idea. In
On Saturday 06 December 2003 07:59 pm, Hal Fulton wrote:
Hal Fulton (hal9000@hypermetrics.com) wrote:
Eric Hodel wrote:
Hal Fulton (hal9000@hypermetrics.com) wrote:
On Thu, 11 Dec 2003 06:21:37 +0900, Eric Hodel wrote:
[#87431] Running Ruby from a CD — ptkwt@... (Phil Tomson)
I'm looking into a contract to develop a license manager/installation tool
[#87459] Trying to create a Ruby daemon — Samuel Kvarnbrink <samuel.kvarnbrink@...>
Hi,
[#87492] subclassing Errno::XXX — Joel VanderWerf <vjoel@...>
[#87498] handling large data sets — Martin Pirker <nospam@...>
Hi...
[#87506] Surprising(?) behaviour of the comma operator — Frank Schmitt <invalid@...>
[#87519] Ruby blocks... forever — Nathaniel Talbott <nathaniel@...>
Ruby 1.8.1preview2, running on Debian Linux. Server is WEBrick based,
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 08:52, ts wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 09:36, ts wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 10:03, ts wrote:
[#87545] ruby-gdkpixbuf — Rasputin <rasputin@...>
[#87553] format money — saggmannen@... (saggmannen)
Hello, is there a way to format "Money"-style floats in ruby. E.g:
On Mon, Dec 08, 2003 at 07:06:32PM +0000, saggmannen wrote:
> Yes, there is. I'm sure that there's a module in the RAA for this,
Received: Tue, 9 Dec 2003 04:37:54 +0900
On Tuesday, December 9, 2003, 6:07:02 AM, saggmannen wrote:
On Tue, Dec 09, 2003 at 05:55:07AM +0900, Gavin Sinclair wrote:
On Tuesday, December 9, 2003, 8:42:02 AM, Mark wrote:
On Tue, Dec 09, 2003 at 06:53:42AM +0900, Gavin Sinclair wrote:
> On Tue, Dec 09, 2003 at 06:53:42AM +0900, Gavin Sinclair wrote:
Hi!
On Tue, 2003-12-09 at 19:03, Josef 'Jupp' SCHUGT wrote:
Tom Copeland wrote:
il Thu, 11 Dec 2003 03:14:43 +0900, Tom Copeland <tom@infoether.com>
[#87567] drb on windows not connecting — Joel VanderWerf <vjoel@...>
[#87586] RCR - 'struct flock*' wrapper for rb_io_fcntl — "Ara.T.Howard" <ahoward@...>
Hi,
[#87587] Adjusting the Scope of Blocks — Mark Cox <mark_cox@...>
Hi,
Hi --
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
[#87622] Segfault in 1.8.1p3 — Nathaniel Talbott <nathaniel@...>
Unfortunately, I don't have much information at this point, but here's
On Dec 9, 2003, at 08:24, Nathaniel Talbott wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 10, 2003, at 05:33, ts wrote:
On Dec 10, 2003, at 11:10, Nathaniel Talbott wrote:
[#87626] ANN: REXML 2.7.2 — ser@... (Sean Russell)
Hi,
--rexml--
[#87628] passing a func to a ruby func — elathan@...
Hello!
[#87632] Multiline Regexps — Ceri Storey <cez@...>
Either this is a bug, or I'm missing something:
[#87638] Inheriting variables, super, and "not super"? — Hugh Sasse Staff Elec Eng <hgs@...>
Is there a way in a method to say
[#87671] expect, rexpect and others — Ben Giddings <bg-rubytalk@...>
I know that now Ruby includes "expect", and that's great, however I noticed
Ben Giddings wrote:
On Thu, 11 Dec 2003, Ben Giddings wrote:
[#87691] Request for comments (longish) — "Luke A. Kanies" <luke@...>
Hi all,
[#87701] ruby 1.8.0: Error on "%02d" % "08" or "%02d" % "09" — Thomas Link <samul@...>
Hi,
[#87706] Docs for Socket, OpenSSL, etc — "James F. Hranicky" <jfh@...>
Are there any plans to add docs for modules like Socket and OpenSSL, etc to
On Thursday, December 11, 2003, 1:20:21 AM, James wrote:
On Wed, 10 Dec 2003 23:20:21 +0900, James F. Hranicky wrote:
On Thu, 11 Dec 2003 20:57:00 +0900
On Fri, 12 Dec 2003 00:07:28 +0900
On Fri, 12 Dec 2003 02:14:43 +0900
On Friday, December 12, 2003, 4:50:15 AM, James wrote:
[#87737] Fast loading of BIG data structures — Steven Lumos <slumos@...>
[#87775] prog for g.c.d. of 2 integers — vanjac12@... (Van Jacques)
Topics from mathematics make good practice programs, IMO.
[#87783] problems with racc: $end token — "Luke A. Kanies" <luke@...>
Hello,
On Friday, 12 December 2003 at 0:42:30 +0900, Luke A. Kanies wrote:
On Fri, 12 Dec 2003, Jim Freeze wrote:
On Friday, 12 December 2003 at 1:28:57 +0900, Luke A. Kanies wrote:
On Fri, 12 Dec 2003, Jim Freeze wrote:
On Friday, 12 December 2003 at 2:16:53 +0900, Luke A. Kanies wrote:
[#87787] FastCGI ? — "T. Onoma" <transami@...>
Quote from the fastcgi website:
[#87819] Ruby-Talk Subject Matters — "T. Onoma" <transami@...>
Out of curiosity, how do others feel about "suggestive" threads? Do you feel
T. Onoma wrote:
[#87856] Simple issue giving problems — Brad <coish@...>
Hello all,
[#87857] Appending to an array — Thomas Adam <thomas_adam16@...>
Hi All,
[#87867] YAML treatment of '#' character in middle of a string — "David A. Black" <dblack@...>
Hi --
[#87876] Fwd: Can't define +@ for Symbol (plus ruby install problem) — "T. Onoma" <transami@...>
Oops, my bad, wrong mailing list. Please see fowared message:
[#87889] History of programming languages — Daniel Carrera <dcarrera@...>
Here is a diagram with a "family tree" showing the history of programming
[#87890] getting a method from a block in C — elathan@...
[#87892] regexp for $(text) — Szymon Drejewicz <drejewic@...>
I have string
[#87903] threads and io — "JB" <temuphaey0@...>
I have soe problems whitn treads and I/O.
[#87924] types? casting and bools — KONTRA Gergely <kgergely@...>
Hi!
On Sat, 13 Dec 2003 01:56:18 +0900, KONTRA Gergely wrote:
[#87926] non-blocking io — "Ara.T.Howard" <ahoward@...>
>>>>> "A" == Ara T Howard <ahoward@ngdc.noaa.gov> writes:
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
[#87947] Object ID Lookup? — "Jim Moy" <web@...>
Hi all, a Ruby Nuby here with a question.
[#87950] Re: Zeus Programmers Editor V3.92 — "Berger, Daniel" <djberge@...>
> -----Original Message-----
[#87957] Can xemacs do syntax highlighting for ruby — Nigel Wilkinson <nigel@...>
Hi folks
On Sat, 13 Dec 2003 09:25:54 +0900
[#87964] Mirror for FreeRIDE? — Jonathan Edwards <edwards@...>
I'd like to check out FreeRIDE, but it is offline. rubyide.org has been
[#87965] Q: introspection — Mike Hall <mghallNO@...>
Is there a way to find out the methods that a given class/modules provides,
[#87975] installing extmath on MAC OS X — vanjac12@... (Van Jacques)
MAC OS X comes with ruby installed (v.1.6.7), which is nice.
[#87981] strange rb_gc_mark error — Elias Athanasopoulos <elathan@...>
Hello!
Hi,
On Sat, Dec 13, 2003 at 10:11:12PM +0900, Yukihiro Matsumoto wrote:
[#87993] additional methods for Array — David Garamond <lists@...6.isreserved.com>
I'm wondering what other people's thoughts are about adding these
[#87996] fox-toolkit.org down? — Carl Youngblood <carl@...>
Anybody know what's wrong with the Fox web site?
[#88031] inplace assignment — "T. Onoma" <transami@...>
is there anyway, anyway at all, ugly hacks accepted, of doing inplace
T. Onoma wrote:
On Sunday 14 December 2003 05:51 am, Hal Fulton wrote:
Hi,
T. Onoma wrote:
On Sunday 14 December 2003 07:49 am, Hal Fulton wrote:
On Sun, 14 Dec 2003, T. Onoma wrote:
On Sunday 14 December 2003 03:59 pm, David A. Black wrote:
On Mon, 15 Dec 2003, T. Onoma wrote:
Alright, a number of things related to Duck Tpying have been popping up and I
> -----Original Message-----
On Mon, 15 Dec 2003, David Naseby wrote:
On Sunday 14 December 2003 10:06 pm, John Carter wrote:
You could invoke any method on any object of any class.
[#88042] append_features(mod) -- mod.kind_of? makes absolutely no sense — "T. Onoma" <transami@...>
First of all, if class Class inherits class Module then why isn't
Hi,
[#88050] dbi install failed — thomas eric <sanniso@...>
Hi,
[#88104] Q: How to convert hashed parameters to local variables? — Dennis Misener <dm@...>
In my efforts to write yet another template language {I know, I
Hi --
[#88147] extremely strange segfault — "Luke A. Kanies" <luke@...>
Hi all,
Hi,
[#88150] UnboundMethods Useless? — "T. Onoma" <transami@...>
Urrrr.....
On Tue, Dec 16, 2003 at 05:09:00AM +0900, T. Onoma wrote:
You can do stuff like this:
On Tuesday 16 December 2003 08:54 pm, Dan Doel wrote:
On Wed, 17 Dec 2003, T. Onoma wrote:
>>>>> "C" == Chad Fowler <chad@chadfowler.com> writes:
On Wednesday 17 December 2003 01:21 pm, ts wrote:
>>>>> "T" == T Onoma <transami@runbox.com> writes:
On Wednesday 17 December 2003 01:59 pm, ts wrote:
On Wed, 17 Dec 2003, T. Onoma wrote:
> I don't know what you mean by (ir)reversible, but the point is that
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
> a module is not a class
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
> No, I'm saying that only method in *some* class can work in another class.
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
[#88159] Re: Extracting multiple lines from a file — "Berger, Daniel" <djberge@...>
> -----Original Message-----
On Tue, Dec 16, 2003 at 07:16:23AM +0900, Ron Coutts wrote:
On Tue, 16 Dec 2003, Mark J. Reed wrote:
Dave Thomas <dave@pragprog.com> wrote in message news:<4F6A14B4-2FEA-11D8-BFF4-000A95676A62@pragprog.com>...
Dave Thomas wrote:
[#88172] Copying methods from one class to another — "T. Onoma" <transami@...>
Is there any way to copy a method from one class to another?
T. Onoma wrote:
On Tuesday 16 December 2003 05:23 am, Jamis Buck wrote:
On Tue, 16 Dec 2003, T. Onoma wrote:
On Tuesday 16 December 2003 02:51 pm, David A. Black wrote:
Sorry to step into the middle of a conversation, but what does this mean:
On Tuesday 16 December 2003 04:33 pm, Hacksaw wrote:
> On Tuesday 16 December 2003 04:33 pm, Hacksaw wrote:
On Tuesday 16 December 2003 10:51 pm, Hacksaw wrote:
> So, the short notation of
> Well, okay, you can do this. It strikes me that this is the equivalent
Hi --
[#88179] redirect stdout for Kernel.system()? — Neil Spring <nspring@...>
I'd like to be able to say:
[#88188] rescue block doesn't get run — Hacksaw <hacksaw@...>
This code snippet processes the options correctly, but if I leave off a
[#88197] Open Source Convention 2004 - Call for Papers — "Berger, Daniel" <djberge@...>
All,
[#88211] Newbie questions — jfrapper@... (Jim Frapper)
I was wondering what the equivalent tools were to perldoc(ri is not)
Daniel Carrera wrote:
On Wed, 17 Dec 2003, Jim Frapper wrote:
On Wednesday, December 17, 2003, 8:10:19 AM, Chad wrote:
>
On Wed, 17 Dec 2003, Daniel Carrera wrote:
On Wed, Dec 17, 2003 at 07:07:45AM +0900, Luke A. Kanies wrote:
On Wed, 17 Dec 2003, Daniel Carrera wrote:
Derek Lewis wrote:
On Thu, 18 Dec 2003, Jamis Buck wrote:
--- Derek Lewis <lewisd@f00f.net> wrote:
Daniel Carrera wrote:
[#88220] Re: Newbie questions — "Berger, Daniel" <djberge@...>
> -----Original Message-----
> Good documentation is part of what makes a language great. Not just the
Berger, Daniel wrote:
--- Hal Fulton <hal9000@hypermetrics.com> wrote:
Thomas Adam wrote:
> >>Personally I'd call it "rman" or some such.
Daniel Carrera wrote:
[#88234] substituting apostrphe's — Daniel Bretoi <lists@...>
Hi,
[#88286] Re: Secure Ruby ? — Brett S Hallett <dragoncity@...>
Thanks Clifford,
[#88289] Very odd IO problem — Brad <coish@...>
All:
[#88299] non-english characters — Daniel Bretoi <lists@...>
how do I match non-english alphabetical characters? Such as the german
Hi,
[#88303] Re: Newbie questions — "Weirich, James" <James.Weirich@...>
From: Randy W. Sims [mailto:RandyS@ThePierianSpring.org]
On 12/17/2003 12:30 AM, Weirich, James wrote:
On Thu, 18 Dec 2003, Randy W. Sims wrote:
[#88342] Re: Copying methods from one class to another — Michael Campbell <michael_s_campbell@...>
T. Onoma wrote:
On Wednesday 17 December 2003 03:43 pm, Michael Campbell wrote:
On Thu, 18 Dec 2003, T. Onoma wrote:
[#88357] 42.type and TypeError or 42.class and ClassError — "Ara.T.Howard" <ahoward@...>
[#88389] Binary-safe file IO — Carl Youngblood <carl@...>
Hi, I'm trying to embed a binary file inside a ruby script but I'm
[#88398] Secure Ruby - second challenge ! — Brett S Hallett <dragoncity@...>
Further to the excellent 'attacks' on my 'rubyrun' tool, I have revised
[#88414] Yukihiro - Please ensure backwards compatibility — jobeicus@... (Joseph Benik)
having recently migrated one of my machines from a 1.6 flavor to the
On Thu, 18 Dec 2003 11:01:56 +0900, Joseph Benik wrote:
On Thu, Dec 18, 2003 at 12:39:53PM +0900, Austin Ziegler wrote:
Elias Athanasopoulos <elathan@phys.uoa.gr> wrote:
[#88419] Configuration Files — "John W. Long" <ws@...>
A while back someone submitted some code to this list for evaluating
[#88432] setting $0 — Joel VanderWerf <vjoel@...>
[#88444] question about I/O and pipes — Jean-Baptiste <temuphaey0@...>
There is a (very) little programm (count.rb) which count lines:
[#88462] Re: Configuration Files — Gennady <gfb@...>
> Subject: Re: Configuration Files
[#88474] FreeRIDE project moved to RubyForge — Laurent Julliard <laurent@...>
To all FreeRIDE fellows,
[#88478] WxRuby? — Daniel Carrera <dcarrera@...>
The FreeRide annoucement just reminded me... what's up with wxRuby?
[#88484] What happened to File.copy? — "Ron Coutts" <rcoutts@...>
Did File.copy and File.cp disappear sometime between Ruby 1.6 and 1.8?
[#88494] How to return more than one result from a method? — Tim Hunter <cyclists@...>
I'm trying to code a method that has two result values. The values are
Hi --
Hi --
On Fri, Dec 19, 2003 at 10:28:49PM +0900, David A. Black wrote:
[#88509] amrita question — Carl Youngblood <carl@...>
I am trying to nest one amrita template inside another. The problem I'm
On Fri, 19 Dec 2003, Carl Youngblood wrote:
[#88524] string to UTF — Jean-Baptiste <temuphaey0@...>
How to convert a single string into UTF format.
On Fri, Dec 19, 2003 at 04:59:53PM +0100, Jean-Baptiste wrote:
Mark J. Reed wrote:
[#88544] Lexically scoped variables — Eric Sunshine <sunshine@...>
Hello,
Received: Sat, 20 Dec 2003 06:47:53 +0900
[#88547] O'Reilly Network Article: "Ruby's Present and Future" — Lyle Johnson <lyle@...>
Haven't seen this mentioned here yet, but they are running a nice
[#88549] 2003 OSDir.com Editor's Choice Awards in Open Source — Lyle Johnson <lyle@...>
Also, also, a friend just pointed out this story:
[#88552] Could I have an example of using Continuations as 'co-routines'? — Asfand Yar Qazi <im_not_giving_it_here@..._hate_spam.com>
Hi,
[#88560] tk file dialog and directories — "Ara.T.Howard" <ahoward@...>
rtk'rs-
[#88572] Problem with bdb — Andreas Schwarz <usenet@...>
I have compiled bdb on Debian Woody, but when I try to use it I get the
[#88581] replacing two EOL chars by one — xah@... (Xah Lee)
i have a bunch of java files that has spaced-out formatting that i
"Xah Lee" <xah@xahlee.org> wrote in message
[#88594] Hex editor and FXRuby ? — Noel Cuillandre <noel.cuillandre@...>
Anyone know to make a hex editor in FXRuby ?
[#88618] Ruby for Windows, Compiler (like DJGPP) — "Legion" <Legion@...>
I'm a beginner in the C++ world, and have been using DJGPP compiler program.
[#88643] Ruby 1.8.1 preview4 — matz@... (Yukihiro Matsumoto)
Hi,
[#88663] win32ole, outlook, ruby 1.8 — "Greg Brondo" <greg@...>
I'm using ruby 1.8 on Windows via rubyinstaller accessing outlook with
[#88664] md5 — KONTRA Gergely <kgergely@...>
Hi!
[#88666] Ruby for AIX 5.2? — don_feliciano@... (Don)
Latest stable ruby, as well as 1.8.1 preview 4, does not build on AIX
On Tue, 23 Dec 2003, Don wrote:
Hi,
On Tue, 23 Dec 2003, Yukihiro Matsumoto wrote:
[#88674] creating an object of a specific type — Elias Athanasopoulos <elathan@...>
Hello!
[#88686] Question about Ruby2 and Rite.... — jfrapper@... (Jim Frapper)
I have been familiarizing myself with ruby over recent weeks. This
il 22 Dec 2003 15:20:48 -0800, jfrapper@lycos.com (Jim Frapper) ha
[#88692] Does String cache its 'hash' return value? — Asfand Yar Qazi <im_not_giving_it_here@..._hate_spam.com>
What I mean is, if I repeatedly call a String's hash method (i.e. like
[#88698] Using DRbObservable — "Andre Nathan" <andre@...>
Hi
[#88707] bug: threads and win32 — hatespyware@... (anon luker)
Hi. I use Arton X's Activeruby package (ruby 1.8.0 (2003-08-04)
[#88731] RubyGems and dependencies — sera@... (Francis Hwang)
Two RubyGems questions about dependencies:
On Wed, 24 Dec 2003, Francis Hwang wrote:
In article <Pine.LNX.4.44.0312231138440.27882-100000@www.pocketdeveloper.com>,
Phil Tomson wrote:
[#88746] binary data — Alwin Blok <alwinblok@...>
Hello!
[#88747] Property files — "Ron Coutts" <rcoutts@...>
Is there a library class for handling common property files that have
[#88752] ruby 1.8 on MAC OS X — vanjac12@... (Van Jacques)
Has anyone posted an installer package for ruby 1.8 for MAC OS X (10.2.8
[#88765] getaddrinfo :: ? — Chris Morris <chrismo@...>
I'm tinkering around with Borges on my XP box and one of the first
[#88781] TkText freezes — quillion <me@...>
Hello all,
>>>>> "q" == quillion <me@privacy.net> writes:
Hi,
>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:
Hi,
[#88814] ruby 1.8.1 — matz@... (Yukihiro Matsumoto)
Merry Christmas,
[#88836] Happy Holidays — "jbritt@..." <jbritt@...>
Here's hoping everyone finds peace and happiness in the new year.
[#88872] dbdbd installation help please — "Joseph Paish" <jpaish@...>
has anyone successfully installed dbdbd? this program has just the right level of simplicity and
[#88876] ruby-mode font-lock trouble on Gnu Emacs 21.3.1 — Samuel Tesla <samuel@...>
I've been using ruby-mode along with a number of different Emacsen over the
[#88877] newbie question on how to subtract two dates. — Ruby Ruby <ruby4lover@...>
[#88904] The great ri conversion... :) — Dave Thomas <dave@...>
We're in the middle of integrating RDoc/ri-style comments into the main
On Sam, 2003-12-27 at 07:30, Dave Thomas wrote:
[#88930] Defining/Deleting variables — GGarramuno@... (GGarramuno)
Okay, I am trying to clarify the use of nil in Ruby.
On Sun, 28 Dec 2003 18:51:50 +0900, GGarramuno wrote:
[#88936] Inconsistent value of uninitialized variable — Gavin Sinclair <gsinclair@...>
The following statement, free of all context, generates an error:
Nathaniel Talbott <nathaniel@talbott.ws> wrote:
[#88940] system() — "Jesper Olsen" <Jesper@...>
I want to call a shell command from a mod_ruby cgi-script, eg.:
[#88954] An addition to Array (or Enumerable)? — Harry Ohlsen <harryo@...>
Yesterday, I wanted to get the output from "ls -l some_file" and pull out just the file size and the file name. As I start writing this, I realise, of course, that I'd have been better off just using the File#size method, but I still think the issue I hit is interesting.
[#88965] Re: Anyone has IniFile? — "Andre Nathan" <andre@...>
Albert Chou said:
[#88966] RDOC generation broken in 1.8.1 — "Chris White" <xxx@...>
I'm very new to Ruby, but I have successfully built and installed Ruby 1.8.1
[#88996] Question about Ruby implementation — Jamis Buck <jgb3@...>
I've been poking around the Ruby internals, trying to understand the
[#88998] Having trouble with ruby-mysql — Martin Larsson <martin.morgoth@...>
Hi list
[#89015] ruby-dev summary 22273-22434 — "Takaaki Tateishi" <ttate@...>
Hello,
On Wed, 31 Dec 2003 00:45:11 +0900, Takaaki Tateishi wrote:
In article <bstlfp$1a1cm$1@ID-194283.news.uni-berlin.de>,
On Wed, 31 Dec 2003 16:21:48 +0900, Phil Tomson wrote:
On Wed, 31 Dec 2003 17:10:52 +0900, Austin Ziegler wrote:
[#89025] ruby-opengl, ruby-glut — Alwin Blok <alwinblok@...>
Hello!
[#89054] rdoc: how to generate rdoc & ri documentation of standard library? — Andreas Schwarz <usenet@...>
Hi,
[#89058] Overriding to_s — Brad <BCoish@...>
All:
[#89070] Denying access to methods on DRb — "Andre Nathan" <andre@...>
Hi
Andre Nathan wrote:
Joel VanderWerf said:
On Thu, 1 Jan 2004 08:23:14 +0900, Andre Nathan wrote:
[#89071] Array #== and #=== — "John W. Long" <ws@...>
Now I'm really confused:
Re: Underpinnings of Method Wrapping
> Some people...I tell you. Hey, I know! How about I put in an RCR for 'alias e
> end'
>
> class X
> def whatever
> if something
> # ...
> e e e
>
> Now that's progress! :))
:O)
I'll start changing all my "rescue SomeException => e" statements right
away!
> Oh, nice. And actually it can be easily done. We already have the ability to
> define a named layer of singleton via #extend. This actually creates a mixin
> on the singleton class. So the extending module remains a seperate entity
> from the singleton itself, and having a descernable name shoudl be fairly
> easy to manipulate/remove/replace. Good thinking, Peter! I like it.
It's a better idea than what was originally in the back of my head: if
wraps have the same indicator, they belong to one layer, and you can
remove/redefine them based on indicator... But the new idea makes layers
more explicit, that's good!
> Definitely wouldn't want to scarfice optimization. A singleton layer only
> needs to be separate when it is explictly told to be so (i.e. extend) or when
> antoher method of the same name already exists in the default singleton, at
> which point it bumps up to a next layer, and thus acts as a wrap upon a wrap.
Of course. But it would still bother me when there's one method that is a
very popular wrappee. Then you get a picture like this:
w | | | |
r-m1-|--|--|--
a | | | |
p-m2-m2-m2-m2-
p | | | |
e-m3-|--|--|--
e | | | |
So the wrappee has three methods m1, m2 and m3, and m2 is wrapped and each
time there is a new singleton layer. When calling m2, we need to go over
all the layers anyhow. But for m1 and m2 we wouldn't. Ideally we would
have this picture:
w |
r----------m1-
a |
p-m2-m2-m2-m2-
p |
e----------m3-
e |
So rather a chain of methods than a chain of layers. Unless of course you
would indicate shortcuts:
w | | | |
r-m1----------
a | | | |
p-m2-m2-m2-m2-
p | | | |
e-m3----------
e | | | |
Don't know if those pictures make sense.
> Ah, I think I see what you're saying: If I just use def without a super, how
> is the interpretor to know that this amounts to a redef and therefore should
> drop the old wraps? So either we have to use redef on all occassions of
> redefinition, or have some sort of wrap gc. Such a gc could work by
> eliminating wraps that fail to execute after the execution of their
> corresponding method, but such gc adds additional overhead, which I don't
> like. Yet this also plays heavy into the fact of when and when not to
> eliminate wraps. Consider what happens if we use a separate keyword like
> def:wrap for defining wraps. If I first define a wrap and then add a second
> wrap, but this time with no super, we have the same difficulty, but also we
> now have something specifically called a wrap posing as the actual method!
> Moreover (and this applies to my notation as well) what if there is a way to
> redefine the outer most wrap layer, or even eliminate it. Would those "free
> floating" wraps now come back into play?
Actually such a gc wouldn't make things much better. Wraps can
conditionally call super. Suppose a wrap does a security check and
decides you shouldn't call the method it wraps and raises an exception
instead.
As for your way vs. the explicit wrap/redef way, I think either way there
is some ambiguity. But the latter allows the programmer to specify his
intention, and the Ruby interpreter can act accordingly. The programmer
can specify it wrongly, but Ruby shouldn't worry about that.
> It's funny that this comes up, b/c I have started to think, in the back of my
> mind, that inner wraps --and by that I specifically means wraps that are
> flushed with the redefinition of the core method, are really of less use than
> I had orginally thought.
Sorry, that's me putting subliminal messages in my mails...
> Certainly a tangle to unravel here. I pray you can shed some clarity on this.
Hey, you finally spelled clarity correctly :-)
Anyway, I was thinking about the relation wrapping-subclassing. When we
make a subclass, and define a method that already exists, then there are
two cases: we call super in the new method or not. The same thing applies
to wrapping. So why is there no problem in the case of subclassing, and is
there a problem in the case of wrapping? Maybe it is because subclassing
explicitly adds a layer over the superclass, while wrapping currently does
not. So what if we look at wrapping as sneaking layers into the class
hierarchy? Such a layer would use the same syntax as subclassing. So if we
add a layer L to class C, that would be the same as adding a subclass L to
C, but everywhere where C is used, really L is used behind the scene. It
combines well with the new idea of layers.
> Hmm... Not sure if I completely understand yet, but as far as I can at this
> point imagine, I can only really see data private to the aspect as module
> varaibles (or local instance variables when we get those), psuedo code:
>
> module MyAspect
> wrap somemethod
> @@myaspect_private_info = :testmode
> end
> end
>
> @@myaspect_private_info could have no effect on the class that this aspect is
> applied to even if it oddly had a class variable of the same name --at least
> I think it could work like that. Actually I'm not sure. Other wise I don't
> know how to go about it.
OK, but recall my example of a bidirectional link. We could have an aspect
do all the dirty work of maintaining the link and keeping it consistent.
We can't use module variables for this, because we need to keep the links
for a bunch of classes. Well, actually we can, but we'd need to keep
hashes that map objects onto their linked counterparts. But it's more
logical to store the links between two objects in those objects
themselves. But to understand that this is AOP, you'd need to let go of
the fact that AOP isn't all wrapping. Even AspectJ is not all about
wrapping. In AspectJ, it would look like this (don't count on my syntax
being correct though, I easily mix up syntax):
class A {}
class B {}
aspect BiDirLinkAB {
private A B.linkToA = null;
// a link to B in class A, but class A can't see 'linkToA'
private B A.linkToB = null;
// a link to A in class B, but class B can't see 'linkToB'
public void A.linkTo(B obj) {
if (linkToB) linkToB.linkToA = null;
// Note that although this method goes into class A, it can access
// linkToA in class B
linkToB = obj;
if (obj.linkToA) obj.linkToA.linkToB = null;
obj.linkToA = this;
}
public void B.linkTo(A obj) {
// analogous
}
public B A.getLinkToB() {
return linkToB;
}
public A B.getLinkToA() {
return linkToA;
}
}
There's no wrapping, but it's cross-cutting since you have one entity (the
aspect) containing the code for maintaining data in two separate classes.
> Already started-in on it. Give me a day or two. I am facing one problem
> though. Our use of the words inner and outer, up til now, have been a bit
> loose, either meaning tightly-linked and loosely-linked, or meaning
> non-persistent and persistent upon redef, respectively. So I'm not sure in
> which manner I should to give them a specific definition.
I remember we had terms for both tightly/loosely linked and
(non-)persistence, but they never caught on. But if it really makes a
difference, we should try to consistently use different terms.
> Oh, that's interesting. How do you do AOP without wraps? I do see what you
> mean though. Certainly wraps can be used as merely a generic/implict means of
> subclassing. Something we can already in part do using singletons. I wonder
> how one defines AOP exactly then. Are you thinking that if a wrap becomes
> intrinsic that it is no longer AOP? Or does an advice have to cross-cut over
> more than a single method to be AOP? What if it does the former intrinsic
> behavior, but in fact cross-cuts across different methods and classes.
> Perhaps tricky but certainly possible. How does one draw the line? What the
> heck is this thing AOP we keep talking about anyway!? ;)
Well, the example above of the bidirectional link is an example that
doesn't involve wrapping. It's a bit like a mixin, but one that is
partially mixed into one class and partially mixed into another class.
Anyway, your last question is a research question, I can't answer those
off the top of my head.
> Wow. Can you tell me more about how that works? That's sounds quite
> interseting. What level of granularity do you mean? How does it work?
I'll try, it's been a long time and Google can't find the website anymore
(I remember then it was the first hit I got, weird). But if you think
about it, optimizations are program transformations, and so is adding
wraps. The latter is less obvious in a language like Ruby, but one way to
look at AspectJ is that you describe the classes and the different
aspects, and they are really woven together to produce the complete,
full-fledged application. So that's the general idea of AOP: describe the
different aspects and how a code weaver can weave them together. Using
wraps is really just the tip of the iceberg, but the fact that AspectJ
uses that concept means that it is probably well understood at this
moment.
But about optimizations... The example I remember is that of merging
loops. Suppose you have code like this:
data.each do |d|
# process d, produce some data2
end
# use data 2
data.each do |d|
# process d, produce some data3
end
# use data 3
So given some 'data', we use it in two subsequent calculations. We're
running over the data twice, but if we merge the loop, we do it just once:
data.each do |d|
# process d, produce some data2
# process d, produce some data3
end
# use data 2
# use data 3
However the two separate calculations are not entangled. For this simple
case, that may be less of a problem, but for realistic examples it can
turn out bad. What we then want to do is write the program as in the first
version, but indicate that the loops should be merged and write an aspect
that shows how to do it.
data.each:merge do |d|
# process d, produce some data2
end
# use data 2
data.each:merge do |d|
# process d, produce some data3
end
# use data 3
I used indicators by lack of something better :-) Showing how to merge the
loops is then done by giving a template:
data.each:merge do |<it>|
<code1>
end
data.each:merge do |<it>|
<code2>
end
produces
data.each:merge do |<it>|
<code1>
<code2>
end
This is just a rough idea, but what I read was such a rough idea. But also
this is a research area still. As for different in granularity; the above
is statement based, while wrapping is method based.
> Great. Although I'm not sure I understood what the misunderstanding is/was.
> But just the same, I certainly think we have come along way toward common
> understanding.
/me thinks so too.
Peter