[#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:
Steve Tuckner wrote:
OK so the jist of it is that @_var variables are stored with the class of
Hi,
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 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:
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:
[#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:
[#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:
On Fri, 5 Dec 2003 13:57:04 +0900, Mark J. Reed 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:
[#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
[#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-----
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
[#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
On Fri, 19 Dec 2003, Tim Hunter wrote:
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,
Hi, all,
[#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
Sorry, about the delay. Been working on sandboxing program compiling/
installing -- quite hard to do well.
On Friday 12 December 2003 04:40 am, Peter wrote:
> I know. In a compiled language, the overhead of searching for the class or
> superclass with the appropriate method is at compile-time, while in Ruby
> you need to do the search at run-time because of its dynamism. I don't
> know how much the Ruby interpreter optimizes or can omtimize. Only it
> seemed to get worse when wraps were done by adding singleton classes, but
> that depends on how popular wraps will be. And whether the 90-10 rule
> applies to wraps as well.
True, true. And I really have no idea. I suppose it really depends on just how
much of a speed hit occurs as to whether it will require special attention.
> > Clearly I have ;-) But please, no cracks on the spelling. I dispise it.
> > And if I had my way, id prbly typ lk ths.
>
> No cracks, promised. They were just congrats :-)
Well. Thank you. :)
> > Exactly! That's exactly what I've been trying to convey. And is also
> > exactly what tuned me on to my def syntax. (Guess I don't explain myself
> > very well. Oh well.) Nonetheless, I'm glad you have envisoned this way of
> > looking at it. It really made wraps make sense to me. And I see what
> > you're saying about super. So, like subclasses, wrap should be
> > perisistent, and it takes an explict undef to flush them, as they can
> > always be cricumvented by not using super, but the may be gained back.
>
> OK, but my impression was that you wanted those singletons to be
> "implicit", that the singleton classes would make up the implementation
> and wouldn't show up explicitly.
"Duh!" [tom's smacks his forehead] I thought you must have already been aware
of this, and thus must have meant something more specific, but I did not see
what it was, so i just assumed perhaps it "clicked" for you or something
instead. Sorry, I see what you're getting at now.
> class Test
> def m1
> ...
> end
> def m2
> ...
> end
> end
>
> wrapper TestWrap
> def m1
> ...
> super
> ...
> end
> def m2
> ... # no super
> end
> end
>
> class Test
> wrap TestWrap
> end
>
> If we have a situation like this, a wrap is always defined in a wrapper
> class. Redefining a wrap happens in the wrapper class. The wrapper is
> explicitly like a subclass (explicit to the programmer that is), and so we
> really can use the same syntax as we've always done in Ruby. Redefining
> the primary method happens in Test, redefining a wrap happens in TestWrap.
> So to the programmer it is no different from using subclassing, except
> that anyone using Test unknowingly also uses TestWrap. That's what I
> meant. Doesn't that kinda solve the syntax problem? A wrapper could still
> refrain from calling super, but that is its constitutional right (we
> should create a constitution for wraps).
Think they call that an RCR these days :)
> But everything is explicit (since
> subclassing is explicit, and redefining methods is), and it is consistent
> with current Ruby. That's what I was hoping to tell you.
And "duh!" again [tom's smacks his forehead again] I've actually been holding
on to my notation tighter then I thought! Indeed I was thinking implict,
actually I was thinking of both ways, implicit and explict. But in all my
examples I defaulted to implicit and so never really considered the
significance of their difference -- implict wraps aren't nearly as useful,
especailly when defining wraps in a class definable way.
So let me just say this is actually brilliant Peter.
> Oh, and we could give a wrapper (say it gets Wrapper as class, like a
> class has Class as class and a module has Module as class) a callback
> method "wrappee_changed" that is called when the class (or wrapper) that
> is wrapped changes such that it can take the right decision. We can give
> Wrapper a private method set_flush(boolean) that sets default behavior of
> "wrappee_changed", but you can redefine it and choose your own behavior.
> That is possible if the layers are explicitly offered to the programmer.
Nice touch!
> But I get the impression that I had the wrong impression and that you
> already thought of all of this...
No. Not to this extent, anyway. For explict I was thinking more along the
lines of another keyword like "preclude" (I know, bad use of the word) akin
to include.
module MyAspect
...
emd
class MyClass
preclude MyAspect
end
Or having a module split into sections, one that does normal mixin including
and one that does the singleton mixins, but this is weak.
I think you've hit the ultimate notation! :)
> And to go a bit further, I think with inner wraps (as in the ones that get
> flushed when the primary methods is redefined) the "unknowingly" aspect is
> less useful. There's the primary method, then the inner wraps, and then
> the outer wraps, and I get the feeling that the outermost inner wrap is
> what is seen on the outside, and the outer wraps are invisible. And then
> inner wraps is much like subclassing since the collection of inner wraps
> and primary method really make up the whole of the method.
Well put. That's very much the case. In fact if you think about how wraps are
approached now, they are down by aliasing. So for example:
alias _meth_ meth
def meth
# pre code
_meth_
# post code
end
Obviously this is a bit of hack approach, since to generalize you have to get
really tricky (as I did with my GUI), but the point is that the interface
that is then seen is the new method, not the old, as with the outer most
inner wrap.
In fact, I was thinking about this today, and realized clearly that this is
the other way in which wraps can implemented. I wonder if Matz is thinking
along these lines rather then our subclassing line? It's not a far shot to
imagine that his notation:
def meth:wrap
# pre code
super
# post code
end
actually translates under the hood into something like:
alias_method 'meth:wrap'.intern :meth
def meth
# pre code
send('meth:wrap')
# post code
end
which is certainly doable, and probably faster in execution, but nowhere near
as clean and flexible as our approach. Something to think about though in
comparision.
> And besides this distinction between inner and outer wraps, there is also
> the kind of wrap that is used for chaining hooks, like method_missing,
> inherited, method_added, ... but that feels like a different kind of
> application of wraps altogether. It feels more method based and making a
> complete layer for it seems overkill.
I agree. That kind of wrapping really needs to be left to the interpretor
itself to expose.
> I suck at AspectJ lingo too. Java should still be doable. I just used
> AspectJ lingo (or my version of it) because that is existing syntax, in
> Ruby it would be speculative. But I don't really know what you mean with
> the hash. My first idea would be to say that it is like a hash indexed by
> the objects that are linked.
>
> Wait, let me put it this way. Without aspects, a bidirectional link would
> look like this:
>
> class A
> def link2B=(objB)
> @link2B = objB
> # and other stuff to keep the links consistent
> end
> end
>
> class B
> def link2A=(objA)
> @link2A = objA
> # and other stuff to keep the links consistent
> end
> end
>
> Maintaining those links (i.e., if object1 points to object2, then object2
> should also point to object1) is a cross-cutting concern (it involves data
> in two classes), we would like to make it an aspect. Then the aspect could
> declare @link2B and @link2A to be private to the aspect, such that both
> link2B= and @link2A can access them because they belong to the aspect, but
> other methods in class A and B can't. The only way to move @link2B and
> @link2A to the module containing the aspect methods, would be by
> introducing two hashes @@link2A and @@link2B that respectively map object
> of class B to objects of class B and vice versa.
I've decided I must be totally missing something here, because I'm just not
fully following. I see that you want instance variables private to an Aspect,
unseen to the classes the aspect effects, but thats all I can really gather.
For instance, "and other stuff to keep the links consistent", just dosen't
mean anything to me. Sorry if I'm being dense, sometimes I can't see what's
staring me right in the face. I'm going to go back and look at your
bidirectional example. Maybe that will help it click for me.
Anyway, don't think I'm against this idea or anything, I'm just not yet
understanding it.
> > I think its b/c persistence is a sticking point at the moment. Perhaps we
> > should give some focus to this matter once again, starting with a review
> > of what we've figured out about it thus far. Think I'll add some
> > subsection note pages to the wiki page, this issue will be the first.
> > Work for you?
>
> OK. But first I'd want your opinion on what I mentioned above about
> introducing wrappers next to modules and classes. Wrappers would inherit
> from modules just like classes BTW.
umm... "super duper superb". Will that do?
Further, I have some ideas to elaborate on this too, but I'm a too tired to go
into iit right now. I'll put it in another post.
> PS: I wanted to do something like this today, to provide for the future
> addition of indicators, but it didn't work:
>
> class Test
>
> def test
> instance_methods(true).each do |m, i = ''|
> if i =~ /silly_indicator/
> ...
> end
> end
> end
>
> end
>
> Apparently blocks can't have default values for arguments...
Very foward thinking!
--
T.