[#84651] The new allocation scheme and extensions — Shu-yu Guo <shu@...>
In 1.6, when writing an extension which required Data_Wrap_Struct, the
Hi,
On Sun, Nov 02, 2003 at 06:43:14AM +0900, Shu-yu Guo wrote:
Hello All,
Thomas Adam (thomas_adam16@yahoo.com) wrote:
[#84654] How can I marshall File::Stat, and do file tests? — Sam Roberts <sroberts@...>
Basically, I'm building a Hash of paths to their File::Stat, and
Seems to be a long-standing oddity, discussed in ruby-talk #74175 and
Does nobody really care that this doesn't work? Is it that its fixed in
[#84655] Ruby language reference — Afan Shah <afan_shah@...>
> I have just started using Ruby but I am still unfamiliar with the
The Ruby User's Guide is also helpful:
David D'Andrea wrote:
[#84664] CGI uses file size to distinguish between regular values and files — David Heinemeier Hansson <david@...>
I've been having a ton of problems handling file uploads with CGI.rb
Hi David,
On Mon, Nov 03, 2003 at 02:29:08PM +0900, Simon Kitching wrote:
On Mon, 3 Nov 2003 20:12:06 +0900, Dmitry Borodaenko wrote:
On Mon, Nov 03, 2003 at 11:40:48PM +0900, Austin Ziegler wrote:
On Tue, 4 Nov 2003 04:37:19 +0900, Dmitry Borodaenko wrote:
On Tue, 2003-11-04 at 10:29, Austin Ziegler wrote:
On Tue, 4 Nov 2003 06:51:43 +0900, Simon Kitching wrote:
Hi,
In article <1067898096.626601.19785.nullmailer@picachu.netlab.jp>,
Hi,
[#84679] 64-bit Ruby on Solaris - solved — "Berger, Daniel" <djberge@...>
All,
[#84681] Re: CGI uses file size to distinguish between regular values and files — "Jesper Olsen" <Jesper@...>
I'm using the CGI module for file upload - I think it works,
On Tue, 4 Nov 2003 00:43:49 +0900, Jesper Olsen wrote:
On Tue, Nov 04, 2003 at 01:25:31AM +0900, Austin Ziegler wrote:
On Tue, 4 Nov 2003 04:44:50 +0900, Dmitry Borodaenko wrote:
[#84686] Ruby bindings — Elias Athanasopoulos <elathan@...>
Hello!
[#84695] Opening Net::HTTP from mod_ruby script — Dmitry Borodaenko <d.borodaenko@...>
Did anyone try that? While implementing Pingback client[1], I've stuck
Hi,
On Tue, Nov 04, 2003 at 05:30:31PM +0900, Minero Aoki wrote:
[#84705] exceptions — Simon Kitching <simon@...>
Hi,
[#84735] Managing metadata about attribute types — Simon Kitching <simon@...>
Hi,
On Wed, 5 Nov 2003 09:38:16 +0900, Simon Kitching wrote:
On Wed, 2003-11-05 at 17:09, Austin Ziegler wrote:
On Wed, 5 Nov 2003 13:27:05 +0900, Simon Kitching wrote:
On Wed, 5 Nov 2003 16:13:37 +0900
What a vigorous discussion I seem to have triggered :-)
Hi --
On Thu, 6 Nov 2003 12:45:39 +0900
Ryan,
On Sat, 8 Nov 2003 09:45:24 +0900
Ryan Pavlik wrote:
On Sun, 9 Nov 2003 08:11:26 +0900
Ryan Pavlik <rpav@mephle.com> wrote in message news:<20031107184353.002a2059.rpav@mephle.com>...
[#84788] Re: Updating path in windows — "Berger, Daniel" <djberge@...>
> -----Original Message-----
Berger, Daniel wrote:
[#84824] rlex and ryacc — "Luke A. Kanies" <luke@...>
Hi all,
[#84835] Trying to RDoc Ruby 1.8.0 — Jonas Lindstr <jonas.li@...>
Hi all,
Version 0.6.0 of FreeRIDE has been released and is available for download!
[#84845] Power of Interpreted Languages — "T. Onoma" <transami@...>
Some general questiosn concerning interpreted lanaguages (and their JIT couterparts).
[#84847] Long-running daemon acquiring giant memory footprint — Jason DiCioccio <jd@...>
I have written a long-running daemon in ruby to handle dynamic DNS updates.
On Sat, 8 Nov 2003, Jason DiCioccio wrote:
Jason DiCioccio wrote:
[#84854] Segfault in Ruby/ODBC — "Nathaniel Talbott" <nathaniel@...>
My program is causing a segfault under load, and while I'm going to dig in
[#84855] process .wav file? — mike re-v <mrmrmr50@...>
I would like to play a very short sound effect( .wav
[#84900] Antwort: Re: Power of Interpreted Languages — Robert.Koepferl@...
> But, would you implement a game with ruby?
Received: Tue, 11 Nov 2003 01:21:15 +0900
On Monday 10 November 2003 09:28 am, Gregory Millam wrote:
Hi,
Hi,
If you'll forgive another newbie question:
I think that is a good question!!
I'm having bind problems with TkRoot. I want to detect a window resize. Here
It's late I think I am thinking off base at the moment. Thanks for your help
Things aren't going so well with Ruby's 1.8.1 source and VisualStudio6. Once
Hi,
Ok, I moved over to Borland( because it's free ) and I can't get the
[#84901] Power of Interpreted Languages — "T. Onoma" <transami@...>
> But, would you implement a game with ruby?
[#84904] compiling ruby 1.8.1 (mingw) — KONTRA Gergely <kgergely@...>
Hi!
[#84912] Gateway News-ML is still broken — "Christoph" <chr_news@...>
Hi,
[#84918] debugging ruby extensions — Elias Athanasopoulos <elathan@...>
Hello!
[#84925] IO.readlines bug? (1.6.8 vs 1.8.1) — Daniel Berger <djberge@...>
Hi all,
[#84926] Humorous link — Hal Fulton <hal9000@...>
Why isn't Matz here? :)
[#84932] macros — "T. Onoma" <transami@...>
has anyone given any thought to having macros in ruby?
* Tim Hunter; Tue, 11 Nov 2003 23:00:39 GMT
On Mon, Nov 17, 2003 at 10:27:53AM +0900, Josef 'Jupp' Schugt wrote:
[#84943] Patch for lib/test/unit/ui/gtk/testrunner.rb — Michael Neumann <mneumann@...>
Hi,
Michael Neumann [mailto:mneumann@ntecs.de] wrote:
On Tue, Nov 11, 2003 at 11:58:50PM +0900, Nathaniel Talbott wrote:
[#84973] Array#slice oddity... — Matthew Berg <galt@...>
It appears that if you use slice or slice! with a length argument, it
Matthew Berg wrote:
[#84979] Backslash substitution question — "Ron Coutts" <rcoutts@...>
I'm having trouble with backslashes and I don't know what is wrong. I
[#84994] Ruby/OpenSSL bug? — "Nathaniel Talbott" <nathaniel@...>
The following program hangs indefinitely, blocking the whole script. I would
[#85009] problems with rb_str_split() — Ian Macdonald <ian@...>
>>>>> "I" == Ian Macdonald <ian@caliban.org> writes:
On Wed 12 Nov 2003 at 20:02:33 +0900, ts wrote:
>>>>> "I" == Ian Macdonald <ian@caliban.org> writes:
On Thu 13 Nov 2003 at 18:17:27 +0900, ts wrote:
[#85017] There's a RubyForge IRC channel now... — Tom Copeland <tom@...>
...thanks to Harry Vangberg for the suggestion. It's on
On Thursday, November 13, 2003, 3:16:56 AM, Tom wrote:
[#85045] ruby-lang web site & ie — "Christoph" <chr_news@...>
Hi,
So you are suggesting that we put up a link to the Mozilla website?
Daniel Carrera wrote:
[#85068] Re: Need some addition in Ruby/Tk — Ferenc Engard <ferenc@...>
Hello,
[#85082] Singletons and Marshalling — Charles Hixson <charleshixsn@...>
Does anyone know how singleton's and marshalling interact?
[#85097] substring: to the end of the string — KONTRA Gergely <kgergely@...>
Hi!
[#85104] Microsoft's C/C++ compiler freely available — "Nathaniel Talbott" <nathaniel@...>
Thought this might be interesting to those stuck on win32...
Question:
Daniel Carrera [mailto:dcarrera@math.umd.edu] wrote:
[#85111] def — "T. Onoma" <transami@...>
what is this def?
[#85113] array -> list — Wybo Dekker <wybo@...>
Is there a way to convert an array to a (parameter-)list?
[#85121] Re: def — "T. Onoma" <transami@...>
i ask b/c i was thinking it would be good if def actually returned a value, i.e. the symbol of the method being defined.
[#85129] eRuby and URL rewriting — "Orion Hunter" <orion2480@...>
I am in the process of doing some web page authoring using eRuby.
[#85146] Local Variable Scope in Ruby2 — "Gavri Savio Fernandez" <Gavri_F@...>
Hi,
On Mon, Nov 17, 2003 at 03:08:26AM +0900, Gavri Savio Fernandez wrote:
[#85148] Ruby Extension/DLL Help — "Andy Pelzer" <Andy.Pelzer@...>
Hi,
[#85170] multi line comments in ruby — Artur Merke <merke@...>
Hi,
[#85195] Old style assignment — Michael Thomas <mthomas1234@...>
I got the following warning. Can anyone tell me what the new style is?
[#85205] to_i — Artur Merke <merke@...>
Hi,
[#85218] Access ftp-server through proxy — Kristian Sensen <ks@...>
[#85283] newbie: cgi,read URI — "Robby Jansch" <r.jansch@...>
Hello Newsgroup,
[#85307] Reason #642 to use Ruby instead of C++ -Carpal Tunnel Syndrome — ptkwt@... (Phil Tomson)
Hi!
[#85330] Yet Another Rite Thought: method combination — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>
I just looked at matz' slides and I don't have a clear understanding
>>>>> "R" == Robert Klemme <bob.news@gmx.net> writes:
ts wrote:
>>>>> "C" == Christoph <chr_mail@gmx.net> writes:
[#85341] Michael Granger's RDoc template — Gavin Sinclair <gsinclair@...>
Hi -talk,
Gavin Sinclair wrote:
On Monday, November 17, 2003, 11:24:25 PM, Peter wrote:
Hi!
* Josef 'Jupp' SCHUGT <jupp@gmx.de> [Nov, 17 2003 22:50]:
Hi!
[#85344] Fileutils.cp bug? — Chad Fowler <chad@...>
I'm experiencing the following behavior in the latest CVS copy of ruby on
Hi,
[#85410] Re: Strong Typing (Re: Managing metadata about attribute types) <Pine.LNX.4.44.0311171402340.1133-100000@ool-4355dfae.dyn.optonline.net> — Thien Vuong <tvuong@...>
[#85421] Again, Rite explanation needed (keyword args and new hash syntax) — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>
Hi gurus and nubys,
[#85423] Anyone runs tdiary 1.5.6? — Gour <gour@...>
Hi!
[#85434] testing argument type and duck typing, newbie question — Raphael Bauduin <raphael.bauduin@...>
Hi,
[#85465] File#rewind, File#syswrite, File#pos on Cygwin build — Alan Davies <NOSPAMcs96and@...>
On the cygwin build of ruby v1.8.0, I have encountered a strange bug
[#85488] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) )<Pine.LNX.4.44.0311171402340.1133-100000@ool-435 5dfae.dyn.optonline.net> — "Weirich, James" <James.Weirich@...>
David Black (dblack@wobblini.net) wrote:
On Wed, 2003-11-19 at 10:30, Weirich, James wrote:
On Tuesday 18 November 2003 02:06 pm, Simon Kitching wrote:
On Wed, 19 Nov 2003 08:08:25 +0900, Sean O'Dell wrote:
On Tuesday 18 November 2003 10:30 pm, Austin Ziegler wrote:
On Thu, 20 Nov 2003 02:43:31 +0900, Sean O'Dell wrote:
On Wednesday 19 November 2003 12:04 pm, Austin Ziegler wrote:
On Thu, 20 Nov 2003 05:48:37 +0900, Sean O'Dell wrote:
On Wednesday 19 November 2003 03:00 pm, Austin Ziegler wrote:
On Thu, 20 Nov 2003 08:19:08 +0900, Sean O'Dell wrote:
On Thu, 2003-11-20 at 14:06, Austin Ziegler wrote:
On Thu, 20 Nov 2003 14:52:17 +0900, Thien Vuong wrote:
On Wednesday 19 November 2003 10:47 pm, Austin Ziegler wrote:
On Fri, 21 Nov 2003 02:20:04 +0900, Sean O'Dell wrote:
On Thursday 20 November 2003 10:54 am, Austin Ziegler wrote:
Hi --
Hi,
On Thursday 20 November 2003 02:04 pm, Yukihiro Matsumoto wrote:
On Fri, 21 Nov 2003, Yukihiro Matsumoto wrote:
On Thursday 20 November 2003 02:40 pm, Chad Fowler wrote:
On Fri, 21 Nov 2003, Sean O'Dell wrote:
Hi Sean,
On Thursday 20 November 2003 05:51 pm, Peter wrote:
> I am not sure exactly how Haskell works, but it sounds like perhaps
On Friday 21 November 2003 02:28 am, Peter wrote:
Hi,
On Thursday 20 November 2003 06:47 pm, Yukihiro Matsumoto wrote:
Hi,
On Thursday 20 November 2003 07:58 pm, Yukihiro Matsumoto wrote:
Hi,
On Friday 21 November 2003 11:20 am, Yukihiro Matsumoto wrote:
My own views on interface crystallization:
On Friday 21 November 2003 02:20 am, Yukihiro Matsumoto wrote:
Hi,
On Saturday, November 22, 2003, 10:53:39 AM, Yukihiro wrote:
>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:
On Saturday, November 22, 2003, 11:47:50 PM, ts wrote:
>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:
ts wrote:
>>>>> "C" == Christoph <chr_mail@gmx.net> writes:
ts wrote:
ts wrote:
On Sat, Nov 22, 2003 at 11:15:04PM +0900, Christoph wrote:
On Sunday, November 23, 2003, 1:15:04 AM, Christoph wrote:
>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:
On Sunday, November 23, 2003, 1:56:57 AM, ts wrote:
>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:
Hi --
On Wednesday 19 November 2003 10:33 am, David A. Black wrote:
Hi,
On Wednesday 19 November 2003 11:14 am, Yukihiro Matsumoto wrote:
On Thu, 20 Nov 2003 04:45:56 +0900, Sean O'Dell wrote:
On Wednesday 19 November 2003 12:29 pm, Austin Ziegler wrote:
On Thu, 20 Nov 2003 06:02:05 +0900, Sean O'Dell wrote:
On Wednesday 19 November 2003 01:45 pm, Austin Ziegler wrote:
On Wed, Nov 19, 2003 at 07:06:24AM +0900, Simon Kitching wrote:
[#85503] String startswith/endswith in Ruby? — Dave Benjamin <ramen@...>
Hi all,
il Wed, 19 Nov 2003 09:03:54 +0900, Harry Ohlsen
[#85518] Multi-dimensioned sparse array ? — Charles Hixson <charleshixsn@...>
Does anyone have an implementation of a multi-dimensioned sparse array?
On Wed, 19 Nov 2003 14:21:19 +0900, Charles Hixson wrote:
[#85526] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) )<Pine.LNX.4.44.0311171402340.1133-100000@ool-4355dfae.dyn.optonline.net> <Pine.LNX.4.44.0311181524130.2236-100000@ool-4355dfae.dyn.optonline.net> — Thien Vuong <tvuong@...>
[Apologies to anyone whose threading is getting messed up by the
On Wednesday 19 November 2003 03:55 am, dblack@wobblini.net wrote:
Hi --
On Wednesday 19 November 2003 10:27 am, David A. Black wrote:
Hi,
On Wednesday 19 November 2003 11:05 am, Yukihiro Matsumoto wrote:
On Thu, 20 Nov 2003, Sean O'Dell wrote:
On Wednesday 19 November 2003 11:46 am, Chad Fowler wrote:
Sean O'Dell wrote:
On Wednesday 19 November 2003 12:42 pm, Maik Schmidt wrote:
On Thu, 20 Nov 2003 06:08:30 +0900, Sean O'Dell wrote:
"Sean O'Dell" <sean@celsoft.com> writes:
On Thu, 20 Nov 2003, Sean O'Dell wrote:
On Wednesday 19 November 2003 01:01 pm, Chad Fowler wrote:
Hi,
On Wednesday 19 November 2003 12:47 pm, Yukihiro Matsumoto wrote:
On Thu, 20 Nov 2003 03:52:30 +0900, Sean O'Dell wrote:
On Wednesday 19 November 2003 01:03 pm, Austin Ziegler wrote:
On Thu, 20 Nov 2003 06:29:12 +0900, Sean O'Dell wrote:
On Wednesday 19 November 2003 03:48 pm, Austin Ziegler wrote:
On Thu, 20 Nov 2003 08:53:21 +0900, Sean O'Dell wrote:
qyyOn Thu, 20 Nov 2003, Sean O'Dell wrote:
On Thursday 20 November 2003 08:58 am, Chad Fowler wrote:
On Fri, 21 Nov 2003 02:35:05 +0900, Sean O'Dell wrote:
On Thursday 20 November 2003 11:15 am, Austin Ziegler wrote:
On Thu, 20 Nov 2003 02:51:02 +0900, Sean O'Dell wrote:
[#85536] Encoding in ruby/tk internals — Nikolay Ponomarenko <ts@...>
Hello ruby-talk peoples,
[#85543] Re: $& write-protected? — ts <decoux@...>
>>>>> "S" == Simon Strandgaard <none> writes:
On Wed, 19 Nov 2003 13:49:27 +0100, ts wrote:
[#85547] x.f! RCR — Greg McIntyre <greg@...>
It bugs me that some methods have a ! on the end and some don't. It
Maik Schmidt <contact@maik-schmidt.de> wrote:
Greg McIntyre wrote:
[#85570] break in yield/block — mhm26@... (matt)
Is there any reason that break acts differently in a block passed to a
[#85574] Ruby and RRDTool — "David Douthitt" <DDouthitt@...>
Does anyone have a ruby library or whatever that makes it easy to use RRDTool?
[#85575] Re: Duck Type System? ( was: stereotyping...er...way too long :) — "David Douthitt" <DDouthitt@...>
Speaking of funny.....
[#85606] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) — "Weirich, James" <James.Weirich@...>
> But again, that flexibility is LOST when you have to pass an
On Wednesday 19 November 2003 11:47 am, Weirich, James wrote:
On Thu, 20 Nov 2003 05:17:10 +0900, Sean O'Dell wrote:
On Wednesday 19 November 2003 01:25 pm, Austin Ziegler wrote:
[#85616] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) ) — "Weirich, James" <James.Weirich@...>
From: Austin Ziegler [mailto:austin@halostatue.ca]
On Wednesday 19 November 2003 12:37 pm, Weirich, James wrote:
On Thu, 20 Nov 2003 06:05:21 +0900, Sean O'Dell wrote:
[#85698] Re: "stereotyping" — Michael Campbell <michael_s_campbell@...>
Sean O'Dell wrote:
On Wednesday 19 November 2003 07:01 pm, Michael Campbell wrote:
Sean O'Dell wrote:
Michael campbell wrote:
Clifford Heath wrote:
Julian Fitzell wrote:
Clifford Heath wrote:
Julian Fitzell wrote:
On Fri, 21 Nov 2003 10:33:39 +0900, Clifford Heath wrote:
Austin Ziegler wrote:
On Fri, 21 Nov 2003 17:13:36 +0900, Clifford Heath wrote:
[#85710] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) — "T. Onoma" <transami@...>
Simon:
[#85713] Re: [ANN] win32-clipboard 0.1.0 — Daniel Berger <djberg96@...>
Oops - forgot the link:
You know what I would use this for? If I ever got around to it? :)
Hal Fulton wrote:
Harry Ohlsen wrote:
> Well, why don't we knock it out, then? What's your GUI of choice?
Harry Ohlsen wrote:
[#85719] "stereotyping" thread — Wesley J Landaker <wjl@...>
Why not just use empty modules for all this type-checking? This isn't=20
Hi --
[#85766] learning the "Ruby way" — mark.wirdnam@... (Mark Wirdnam)
**Hobby-programmer alarm**
On Thu, 20 Nov 2003, Mark Wirdnam wrote:
"Zachary P. Landau" <kapheine@hypa.net> wrote:
[#85785] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) ) — "T. Onoma" <transami@...>
Guy:
>>>>> "T" == T Onoma <transami@runbox.com> writes:
[#85794] Re: retry does not work — "T. Onoma" <transami@...>
matz:
[#85803] behaviour change of String#gsub(pattern) {|m| ... } for ruby 1.9/ruby2? — David Garamond <lists@...6.isreserved.com>
String#gsub(pattern) {|m| ... }
Hi,
On Thu, 20 Nov 2003 20:57:58 +0900, Yukihiro Matsumoto wrote:
[#85807] — "Jesper Olsen" <jolsen@...2world.com>
I am currently using ruby's mysql extention.
[#85821] iterator 0.1 — Simon Strandgaard <qj5nd7l02@...>
homepage:
[#85870] Re: "stereotyping" — Michael Campbell <michael_s_campbell@...>
Sean O'Dell wrote:
On Thursday 20 November 2003 11:07 am, Michael Campbell wrote:
* Sean O'Dell <sean@celsoft.com> [1144 19:44]:
On Friday 21 November 2003 12:48 pm, Rasputin wrote:
[#85886] Partial Euphoric Type Checking — "T. Onoma" <transami@...>
Greetings all Type Checkers!
quack! quack! I added duck typing capability to my euphoric type checking
Now some for some rally crazy cross thought. First a complete interface
for some cross rally some thought crazy. ( read: i need a type system for my
> you see we have a problem here. it doesn't matter what methods are
> > you see we have a problem here. it doesn't matter what methods are
On Fri, 21 Nov 2003 23:53:49 +0900, Peter wrote:
[#85888] New Type Checking System Idea — "Sean O'Dell" <sean@...>
Taking comments into consideration, a totally new approach strikes me
I like your idea, Sean, but it's too much effort! If it is onerous then
On Thursday 20 November 2003 04:37 pm, Greg McIntyre wrote:
[#85910] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) ) — "Weirich, James" <James.Weirich@...>
> In sean's case, class and/or module were sufficient to define
[#85947] RubyConf 2003 Presentations Posted — Ryan Davis <ryand-ruby@...>
In absolute record time (5 days compared to 3 months), rubyconf 2003
[#85989] Ripper (Ruby Language Parser) to be imported in the standard library? — surrender_it@... (gabriele renzi @ google)
Hi gurus and nubys,
Hi,
[#86007] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) ) — "Weirich, James" <James.Weirich@...>
> This is a wonderful idea. Let me restate it to make sure I
[#86011] Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) ) — "Weirich, James" <James.Weirich@...>
> It seems that you could only pre-assert that objects going in
[#86072] Thread issues with ruby 1.8.0 on OpenBSD 3.3 — Rick Nooner <rick@...>
I'm seeing problems with threading using ruby 1.8.0 on OpenBSD 3.3.
>>>>> "R" == Rick Nooner <rick@nooner.net> writes:
[#86088] Invoking method with a block in C extension — "Dmitry V. Sabanin" <sdmitry@...>
Hi.
[#86119] HTML Generation (Next Generation CGI) — "John W. Long" <ng@...>
Hi,
[#86127] Ruby classes for MP3 de-/encoding — Dennis Oelkers <dennis@...>
Hello folks,
On Sat, 2003-11-22 at 13:07, Dennis Oelkers wrote:
In article <20031122191549.GB3071@tachyon.bsdgeek.net>,
On Sun, Nov 23, 2003 at 06:22:16AM +0900, Phil Tomson wrote:
[#86128] 'with' proposal — Elias Athanasopoulos <elathan@...>
Hello!
[#86147] Standard Library Docs online at ruby-doc.org — "jbritt@..." <jbritt@...>
The HTML output from the RDoc comments from Gavin Sinclair's stdlib-doc
[#86162] 64bit timestamp library — David Garamond <lists@...6.isreserved.com>
I'm looking for a 64bit timestamp definition/standard with suitable
[#86169] Re: Using Vruby instead of VB ? — "Berger, Daniel" <djberge@...>
> -----Original Message-----
[#86183] "wrong argument type nil (expected String)" from Dir.chdir — Tim Kynerd <vxbrw58s02@...>
I'm running Ruby 1.6.8.
[#86189] Time#succ ? — Hal Fulton <hal9000@...>
Should this be added? It would enable the creation
[#86202] Message "Insecure world writable dir ..." — Harry Ohlsen <harryo@...>
When File.popen() is passed an executable whose path contains a world writable directory, it produces a warning message.
Hi,
Yukihiro Matsumoto wrote:
> Hi Matz,
On Nov 24, 2003, at 17:18, Harry Ohlsen wrote:
Thien Vuong wrote:
[#86215] Library path relative to current .rb file — zoranlazarevic@... (Zoran Lazarevic)
One of the most irritating (missing) features of Ruby is inability to
On Monday, November 24, 2003, 8:02:12 PM, Zoran wrote:
On Tuesday, November 25, 2003, 8:09:36 AM, Andrew wrote:
On Tuesday 25 Nov 2003 9:21 am, Gavin Sinclair wrote:
On Wednesday, November 26, 2003, 5:59:45 AM, Andrew wrote:
On Tuesday 25 Nov 2003 8:53 pm, Gavin Sinclair wrote:
[#86222] redirect stdout — "T. Onoma" <transami@...>
I need to temporarily redirect standard output to nowhere. Not sure how to do.
T. Onoma (transami@runbox.com) wrote:
[#86227] using variables in regular expressions — Damphyr <damphyr@...>
Being lazy, forgetful and generally very bad with regular expressions
[#86237] YAML self reference issue — Steve Tuckner <STUCKNER@...>
I wonder if anyone has an explanation for the behavior of my yamltest.rb
On Monday 24 November 2003 05:40 pm, Steve Tuckner wrote:
[#86259] Exit status on cmd executed via popen() — Garance A Drosihn <drosih@...>
Sometimes I write ruby scripts to filter the output of some
[#86265] raise unless RUBY_VERSION[%r/^\s*\d+\.\d+/o].to_f >= 1.8 — "Ara.T.Howard" <ahoward@...>
Moin!
On Tue, 25 Nov 2003, Florian Gross wrote:
On Tue, Nov 25, 2003 at 08:32:14AM +0900, Ara.T.Howard wrote:
On Thu, 27 Nov 2003, Paul Brannan wrote:
[#86309] ThreadError w/WEBrick — "Nathaniel Talbott" <nathaniel@...>
I have a WEBrick server that runs fine for over three days, and then starts
[#86310] Range does not take an Range object. — Tomoyuki Kosimizu <greentea@...2.so-net.ne.jp>
Range#include? does not take a Range object. It is strange for me.
[#86320] For science fiction fans... — Hal Fulton <hal9000@...>
For those who care about such things, I have a short story
[#86326] exceptions in tk after procs? — Ferenc Engard <ferenc@...>
Hello,
[#86343] Backtrace without skips needed — Tobias Peters <tpeters@...>
Is there a way to tell ruby that it must never skip levels in the
[#86344] Re: Controlled block variables — "T. Onoma" <transami@...>
On Wednesday 26 November 2003 09:10 am, Guy Decoux wrote:
>>>>> "T" == T Onoma <transami@runbox.com> writes:
On Wednesday 26 November 2003 09:56 am, ts wrote:
Hi T,
On Wednesday 26 November 2003 12:05 pm, Pit Capitain wrote:
From T. Onama:
Hi T.
On Friday 28 November 2003 11:49 pm, Pit Capitain wrote:
On Wednesday 26 November 2003 09:56 am, ts wrote:
>>>>> "T" == T Onoma <transami@runbox.com> writes:
On Wednesday 26 November 2003 04:11 pm, ts wrote:
I actually have wondered in the past why there isn't an #eval that takes
On Wednesday 26 November 2003 03:57 pm, Dan Doel wrote:
T. Onoma wrote:
On Wednesday 26 November 2003 10:24 pm, Dan Doel wrote:
From T. Onama:
On Friday 28 November 2003 02:40 am, Gavin Sinclair wrote:
From T. Onama:
On Friday 28 November 2003 04:59 am, Gavin Sinclair wrote:
[#86360] turning a string into array of ASCII bytes — David Garamond <lists@...6.isreserved.com>
What is the shortest, most straightforward way (without temporary
On 2003-11-26 14:39:45, David Garamond wrote:
On Wed, Nov 26, 2003 at 04:14:43PM +0100, Stefan Scholl wrote:
[#86391] Method wrapping — Hal Fulton <hal9000@...>
I've come late into the thread on this, and I haven't read all
>>>>> "H" == Hal Fulton <hal9000@hypermetrics.com> writes:
ts wrote:
I've got a class called Email and right now i have:
Hi,
> |2. If they do stack, is it possible to redefine a method as we
Yukihiro Matsumoto wrote:
Hi,
On Thursday 27 November 2003 07:07 am, Yukihiro Matsumoto wrote:
On Thursday, November 27, 2003, 5:56:13 PM, T. wrote:
On Thursday 27 November 2003 08:22 am, Gavin Sinclair wrote:
Hi,
On Thursday 27 November 2003 10:22 am, Yukihiro Matsumoto wrote:
Yukihiro Matsumoto wrote:
> I have asked the same this question as well and I really wish
From: Peter wrote:
> This sound all good and well however this does not change the
Peter wrote:
> You realize that you on are speculative grounds claiming that
Peter wrote:
[#86395] TCP/IP in Ruby — BCoish@... (Brad)
All:
[#86431] Ruby advertisement article [Computerwoche] — Armin Roehrl <armin@...>
Hi all,
Hi,
[#86497] Re: Access MS SQL Server 2000? — Lennie DeVilliers <Lennie@...>
Hello,
[#86534] Installing Docs (Was Re: Library directory structure on windows) — Gavin Sinclair <gsinclair@...>
On Friday, November 28, 2003, 2:11:34 AM, Gavri wrote:
[#86550] pre/post question/idea — "David A. Black" <dblack@...>
Hello --
> which to me has a bit of a "spliced onto the language" feel (which
On Friday 28 November 2003 10:32 am, Robert Klemme wrote:
On Friday 28 November 2003 03:32 am, David A. Black wrote:
[#86552] Re: pre/post question/idea — David Naseby <david.naseby@...>
>-----Original Message-----
[#86555] State of JRuby? — Daniel Carrera <dcarrera@...>
Does anyone know the current state of JRuby? From the web page it seems
On 11/27/2003 10:13 PM, Daniel Carrera wrote:
Joey Gibson wrote:
[#86574] Baker — "T. Onoma" <transami@...>
I would like to tell you about a project I started called Baker:
[#86577] bug in ruby/tk in ruby 1.8.0 ? — "Alexander Neundorf" <a.neundorf-work@...>
Hi,
[#86601] gtk/testrunner.rb:375: undefined superclass `ListItem' ??? — Lucian Suciu <Lucian.Suciu@...>
Hi All,
[#86610] gtk2/testrunner.rb:231:in `test_progress_bar': undefined method `[]' — Lucian Suciu <Lucian.Suciu@...>
>
[#86616] Need library for parsing configuration files — "Gavri Savio Fernandez" <Gavri_F@...>
hi,
On Friday 28 November 2003 06:48 pm, Gavri Savio Fernandez wrote:
[#86625] ruby-dev summary: 21928-22011 — Masayoshi Takahashi <maki@...>
Hello all,
[#86634] selfassignment and close — Simon Strandgaard <neoneye@...>
I would like to overload the '+=' operator. But it doesn't seems to be
[#86646] Underpinnings of Method Wrapping — "T. Onoma" <transami@...>
Its important that we clearly seperate the issue of "surface" syntax from the
> Thoughts?
On Saturday 29 November 2003 12:44 am, Peter wrote:
> I originally had a small paragraph touching on this, but I took it out b/c I
On Saturday 29 November 2003 04:26 pm, Peter wrote:
> The join-points are the only thing required to facilitate all of this. So I
On Sunday 30 November 2003 01:01 am, Peter wrote:
On Sun, Nov 30, 2003 at 11:53:25AM +0900, T. Onoma wrote:
On Sunday 30 November 2003 10:38 am, Mauricio Fern疣dez wrote:
> How would they know? ;-)
On Sunday 30 November 2003 03:57 pm, Peter wrote:
> > I like the proper separation, but why pre and post for extrinsic and def
On Sunday 30 November 2003 09:39 pm, Peter wrote:
> You're absolutely right. Hmm...Granted this is acting in accordance to an
On Monday 01 December 2003 12:25 am, Peter wrote:
> I was thinking about the terms. To really distinguish these two types of wraps
On Monday 01 December 2003 06:58 pm, Peter wrote:
> OK as in so-so, or OK as in yes? If just so-so we'll find something better. I
Peter:
[snip]
On Wednesday 03 December 2003 03:21 am, Peter wrote:
Here is an intereseting problem that I'm currently facing and which is related
> As always, I may be over looking the obvious. But if anyone has a current
On Sunday 07 December 2003 08:02 pm, Peter wrote:
Hi Tom,
On Tuesday 09 December 2003 01:05 am, Peter wrote:
> QUICK SIDE NOTE: might be nice to have something for all those dang ends. How
On Wednesday 10 December 2003 05:16 am, Peter wrote:
> Mine too! But I was joking :) Well, half way. It would be nice to have a good
On Wednesday 10 December 2003 05:55 pm, Peter wrote:
> Well, I thought of using the underscores to allow one to indent as needed to
On Thursday 11 December 2003 04:04 am, Peter wrote:
> Some people...I tell you. Hey, I know! How about I put in an RCR for 'alias e
On Thursday 11 December 2003 06:43 pm, Peter wrote:
> They do make sense, very good sense. And you make a good point. The problem is
Sorry, about the delay. Been working on sandboxing program compiling/
[#86651] re-raising an exception with the original backtrace — Joel VanderWerf <vjoel@...>
[#86655] anything disappearing from Ruby for 2.0? — "David A. Black" <dblack@...>
Hi --
Hi,
Hi!
Yukihiro Matsumoto wrote:
Hi,
Yukihiro Matsumoto wrote:
> |Ack, no more:
Hi,
Yukihiro Matsumoto wrote:
On Sunday 30 November 2003 03:34 am, Florian Gross wrote:
> Candidates are:
Hi!
[#86661] rdoc included in standard distribution? — Chad Fowler <chad@...>
I've seen various plans for this dating back more than a year. Is it
Hi,
Hi,
On Sunday, November 30, 2003, 9:51:38 PM, Yukihiro wrote:
[#86669] Class-level readers and writers — Carl Youngblood <carl@...>
I've been working with the class attribute shortcuts that Hal introduced
Hi --
> (Just as a footnote, you can also use "normal" accessor shortcuts at
Hi --
David A. Black wrote:
On Sunday, November 30, 2003, 8:59:15 AM, Christoph wrote:
Hi --
On Saturday 29 November 2003 10:59 pm, Christoph wrote:
Hello --
On Sunday 30 November 2003 12:11 pm, David A. Black wrote:
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
Hi --
David A. Black wrote:
On Mon, 1 Dec 2003, Christoph wrote:
David A. Black wrote:
Hi --
David A. Black wrote:
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
Hi --
[#86673] New to ruby--trouble with initializing arrays — vanjac12@... (Van Jacques)
I am writing a practice program; the Game of Life. Naturally I am having troubles.
[#86674] Where should people who are new to ruby go for help? — vanjac12@... (Van Jacques)
Is this the place for people who are new to ruby to post for help?
[#86676] regexp splitting problem — Brett S Hallett <dragoncity@...>
Hi,
[#86683] ruby game of life program — vanjac12@... (Van Jacques)
Finally its right. It seems so obvious now. I thought I could
[#86685] rake task library — Martin DeMello <martindemello@...>
Is there any effort underway to compile a rake task library, the way ant
[#86717] Ruby vs Python (IMHO) — Daniel Carrera <dcarrera@...>
Hi all,
In article <20031129184817.GA1426@math.umd.edu>,
DC = Daniel Carrera
[#86731] TCPSocket -> Wrong error on Windows? — Stephan K舂per <Stephan.Kaemper@...>
Hi all,
[#86751] class << x — Greg McIntyre <greg@...>
[ruby-talk:86745] reminded me of something I was going to ask.
I didn't ask what it does. I understand perfectly what "class << x" does
[#86775] File::Stat and file flags — Manfred Lotz <manfred.lotz@...>
In the UFS file system of FreeBSD a file can have special flags.
Hi,
[#86784] Re: anything disappearing from Ruby for 2.0? — "Gavri Savio Fernandez" <Gavri_F@...>
> From: Chris Uppal [mailto:chris.uppal@metagnostic.REMOVE-THIS.org]
Gavri Savio Fernandez wrote:
Chris Uppal wrote:
[#86802] Working with Ring/Rinda — "Shashank Date" <sdate@...>
I need some help in understanding the Ring API (even if it is "unstable" per
Re: Managing metadata about attribute types
What a vigorous discussion I seem to have triggered :-)
It's really nice to see so many people interested in the topic - thanks
to all who replied.
Rather than reply individually to the several emails which raise
interesting points, I'll try to gather all the different bits here.
I really am interested in the points raised, and am definitely still in
the learning phase with Ruby. So all of the statements below should
really be prefaced with "I think", "It seems to me", "Do you think that
... is right?". However that would double the size of this email. Please
assume all below is tentative, and that comments/corrections are
welcome.
And I hope those people who "really wanted to stay out..." don't stay
out and chip in. I'm interested at the very least!
====
Re "xml-config" module, raised by Austin: there are significant
differences between the "xml-config" and "xmldigester" approaches.
Which is "better" will depend on circumstances and developer taste. The
most significant differences are:
(a)
Xml-config first builds a complete representation of the input xml in
memory, then starts extracting data. For large xml files this is not a
good idea. Xmldigester is "event-based", so the input xml does not have
to be completely loaded into memory.
(b)
I *believe* that the xmldigester rules-based approach will take less
client code, and will bind the "parsing" program less tightly to the API
of the objects being built than the xml-config approach.
(c)
If building inter-object relationships that are more complex than simple
parent/child references, the xml-config approach may prove easier. There
are some tricks that can be played with xmldigester (eg a common
"registry" object used to resolve relations), but having the entire xml
document available (DOM-style) can allow things that an event-style
approach cannot.
(d)
The xmldigester event-based approach is likely to be faster.
Of course the best test of all the above opinions is actually to create
the code, then compare the two. Once I have xmldigester knocked into
reasonable shape, I might port the xmldigester examples to xml-config
(and vice-versa) to see if any of the above is true!
Regardless of the results, I think that both approaches have their
place.
====
Regarding whether the target class should be responsible for accepting a
string and doing the conversion...
I think it is definitely *not* the receiving classes' responsibility to
do the conversion.
Here's my original class, with the initial implicit assumptions spelled
out more clearly as comments.
# Ruby
class StockItem
# contract with user: any value assigned to name must
# act like a string
attr_accessor :name
# contract with user: any value assigned to cost must act
# like a float object.
attr_accessor :cost
end
Isn't this a valid API for a class to provide? As far as the author of
StockItem is concerned, cost is a float.
I don't see why the author of StockItem should even consider the
possibility that a string could be assigned to cost; that would violate
the contract of the class, so any program that does so can damn well
take the consequences :-). The StrictTyping module can enforce this, but
perhaps does so over-eagerly, as it doesn't allow "duck-typing" ie
objects which aren't Float objects but do behave like them.
Now I happen to want to configure this object based on some string-typed
information. But that's my problem, not the problem of the author of the
StockItem class. And if I wanted to use ASN.1 format input to initialise
an instance of StockItem, then it is still my responsibility to convert
the ASN.1 representation to an appropriate type before assigning to
cost, not the StockItem class' responsibility to understand ASN.1 format
input.
Ok, with Ruby's "open" classes, I can alias the original cost= method
and insert some wrapper code. But I will have to restore the original
method after parsing is complete, otherwise during the real "running"
part of the program, the StockItem's cost= method won't behave like
other classes expect it to.
Not to mention that writing those "conversion" methods by hand is ugly.
>You're right, they shouldn't. But if your warehouse management
>classes don't do what they can to ensure their data integrity, then
>there's a problem with the classes -- not with the XML library. I'm
>not trying to be difficult here; just pointing out that I think
>you're trying to fix the problem from the wrong end.
The StockItem's contract clearly states that it only accepts Float types
for the cost attribute. It doesn't actually need to enforce its data
integrity - it is the calling code's responsibility to use StockItem
correctly.
> attr_accessor proc { |x| x.to_i }, :item_id
That's some very cool code. I can feel my brain expanding just by
looking at it! However I don't feel it does what I want, because this
code actually changes the API of the target class, breaking all other
code that accesses that same attribute thereafter.
The data conversion clearly has to be done somewhere, but I would like
it to be done separately from the target class so as not to muck around
with its API.
Here's the "conversion" code extracted out into a helper class:
def StockItemHelper
def StockItemHelper.cost=(stock_item, str)
stock_item.cost = str.to_f
end
end
In fact, why not use the Java convention and call it StockItemBeanInfo?
Applying a modified version of your attr_accessor code, this could be
written more succinctly as the following, generating effectively the
same code as shown above:
def StockItemBeanInfo
attr_from_str :name, String
attr_from_str :cost, Float
end
However I can also use something like Ryan's MetaTag syntax to write
this. I'm not sure which syntax is more convenient.
desc = <<-END
!class StockItem
!name String
!cost Float
END
# parse the string and dynamically create a wrapper class
beanInfo = createBeanInfoClass(desc)
# because cost was declared as a Float in the MetaTag string,
# the beanInfo class knows to convert the second (string) param
# to a float.
beanInfo.set_cost(stock_item, '3.50')
As you can see, I'm not interested in "type strictness" at all.
What I need is simply "what type of object should I generate in order to
be able to validly assign to cost without violating the API contract of
the StockItem class"...
Changing the StockItem class contract is one solution, but that screws
up all other code that really depended on the original contract being
valid.
Oh, and what if the target attribute is a "Date" class, and I want to
globally control the way string->date mapping works? If it is
distributed across every class that has a Date attribute that is much
trickier to handle than if I somehow know that classes X, Y and Z have
date attributes and the xmldigester code does the string->date
conversions before the assignment.
====
>From Ryan:
> Using #to_* methods are the ruby equivalent of type casting. The
> point in this case is not to _convert_ types, it's to provide the
> right type in the first place. Instead of giving the attribute a
> string and expecting it to be parsed, we want to create the desired
> type and hand that off.
>
> It has nothing to do with the #attr= function. Strict type checking
> at that point is merely a convenience. It's all about getting the
> input into a useful format without writing n^2 functions (for n
> classes). This is the primary reason I wrote StrongTyping in fact;
> the strict checking has merely helped with debugging a whole lot.
>
Yep, that's exactly how I see it.
However I don't want the "type enforcement at runtime" feature of
StrongTyping, and I want to avoid changing the target class' behaviour
in any significant way. Is it possible to get the "type info" part of
StrongTyping without the "type enforcement"?
====
The thread about namespaces still has me pondering a little.
I'm not sure it's relevant to my issue, though, is it?
I need to *instantiate* an object in order to assign it to an attribute
on a target object. So I do need to know the name of a concrete class to
instantiate. There's no "duck typing" there, is there?
====
Thanks Ryan, Chad, Austin, Richard, James, David, Christoph (phew!)
As said in the intro, all comments/corrections welcome!
Regards,
Simon