[#41531] Re: possible bug: stack dump with <<-String, #{...} and large loops — "Christoph" <chr_news@...>
From: ts decoux@moulon.inra.fr
[#41532] Ruby-GNOME 0.28 is out! — Masao Mutoh <mutoh@...>
Hi, folks.
[#41546] \G in regexps not documented? — "Marcin 'Qrczak' Kowalczyk" <qrczak@...>
Where is an *up to date* documentation of Ruby regexps?
[#41547] Reading binary files (or strings) — Han Holl <han.holl@...>
[#41581] Ruby 1.6.7 dieing of segfault — Dossy <dossy@...>
I've got something that's fairly reproducible in 1.6.7. Is
Hi,
On 2002.06.02, Nobuyoshi Nakada <nobu.nokada@softhome.net> wrote:
On 2002.06.02, Dossy <dossy@panoptic.com> wrote:
Hi,
On 2002.06.02, Nobuyoshi Nakada <nobu.nokada@softhome.net> wrote:
[#41627] $a = 5; $b = 'a'; print $$b — Philip Mak <pmak@...>
Hello,
[#41637] Does assert() exist? — Philip Mak <pmak@...>
I saw a bunch of Ruby examples on the web that involve the assert()
On Sunday 02 June 2002 06:54 pm, Philip Mak wrote:
[#41647] Question: Recommended Postgresql interface? — Jeremy Henty <jeremy@...>
What is the recommended way to interface Ruby to Postgresql? I have
[#41660] dynamic attr_accessor?? — Markus Jais <mjais@...>
hello
[#41677] ruby equivalent for perl multi-index sort? — Rick Bradley <rick@...>
Coming from a perl background I have a lot of programs which do
[#41693] ruby-dev summary #17208-17251 — TAKAHASHI Masayoshi <maki@...>
Hello,
[#41704] Word for Windows Ruby Trick — <james@...>
This may be of limited value to many folks here, but I thought it kinda
[#41712] Annoucement: Interactive Learning Environment + Ocelot Servlet Engine — "Brad Cox, Ph.D." <bcox@...>
Interactive Learning Environment (ILE) Announcement
* Brad Cox, Ph.D. (bcox@virtualschool.edu) wrote:
[#41742] class inheritance tree — Matthias Veit <matthias_veit@...>
[#41746] Rexml / OpenSSL on Windows — "Stephan J. Schmidt" <stephan.schmidt@...>
Someone I know has a Ruby problem:
[#41755] HTML Parser suggestions wanted — Ned Konz <ned@...>
I've written an HTML parser that builds trees from HTML source. After
[#41763] When should actually freeze work ? — "Philip Mateescu" <philip@...>
Hi,
[#41793] Calling a (any) superclass method when already have one by that name — "Philip Mateescu" <philip@...>
Sorry if I did change the thread, but I seem to have at least clarified the
[#41809] eval and local variable — "Park Heesob" <phasis@...>
[#41819] mod_ruby and module space — "Sean O'Dell" <sean@...>
It seems that if I execute a script using mod_ruby, I cannot call
[#41842] How might "Apocalypse 5" affect Ruby? — Todd Holloway <todd@...>
[#41867] Pascal-like 'with' statement? — Philip Mak <pmak@...>
Is there something like Pascal's with statement? I'd like to turn this
Philip Mak wrote:
[#41883] DRb, Rinda and Jini — Aidan <ahumphreys@...>
I've been experimenting with DRb and Rinda recently - a beautifully
[#41899] unsubscribe — Bhagavatheeswaran Mahadevan <BMahadevan@...>
unsubscribe
[#41900] Array.foldr (Array.reduce) — "Kontra, Gergely" <kgergely@...>
Hi!
[#41907] Hashes sensitive to simularity — Thomas Hurst <tom.hurst@...>
I'm after something like nilsimsa[1]; a hashing algorithm that allow you to
[#41919] 1-second events — Paul Brannan <pbrannan@...>
I need to create an event that occurs exactly once per second.
Hi,
On 2002.06.07, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
Hi,
On Fri, Jun 07, 2002 at 09:25:48AM +0900, Nobuyoshi Nakada wrote:
[#41928] Getting a reference to the object which called a method — Mathew Johnston <mjohnston@...>
Is it possible to get the same effect as the following, but without
On Fri, Jun 07, 2002 at 03:44:19AM +0900, Mathew Johnston wrote:
On Thu, 2002-06-06 at 14:25, Paul Brannan wrote:
[#41935] Returning an instance from a different class from new — jos@... (Jos Backus)
[For some reason I am no longer subscribed to ruby-talk and I don't get any
[#41943] InternetSeer Alert — InternetSeer <ndsub.7g7j5YxDpdLv76OyKAWPKWD7671EP.e3@...>
[#41967] ANNOUNCE: PageTemplate 0.3.1 — Brian Wisti <brian@...>
Hi All,
Brian Wisti wrote:
[#41969] subclassing SWIG generated c++ class — Martin Man <Martin.Man@...>
hi all,
[#42004] SWIG & the New Allocation Framework (Ruby 1.7) — Lyle Johnson <lyle@...>
All,
[#42018] precedence of =, and, or — "Volkmann, Mark" <Mark.Volkmann@...>
I'm fairly new to Ruby.
[#42040] GTK w/ ruby — Cameron Matheson <cmatheson3@...>
Hey,
[#42051] RE: Need a ruby book — "Victor Manuel Reyes Viloria" <vmreyes@...>
[#42073] Hash#===() — Han Holl <han@...>
[#42086] ANN: REXML 2.3.5 && 2.2.3 — Sean Russell <ser@...>
<posted & mailed>
Sean Russell wrote:
>
james@rubyxml.com wrote:
<posted & mailed>
> Well, XMLSchema may be troublesome to interpret, but it isn't
james@rubyxml.com wrote:
> My big question is: do I invest the time and effort in providing XML
james@rubyxml.com wrote:
> Hmm. Ok. What I meant was that I sort of feel obligated to provide a
[#42093] RE: Park and Sean....Possible memory bug in Ruby? I'm stumped! — Kurt Euler <keuler@...>
Thanks a lot, Park and Sean.
On Sunday 09 June 2002 02:07 pm, Kurt Euler wrote:
[#42112] Getting method! for free from method — Philip Mak <pmak@...>
Let's say I have:
[#42131] RubyCOM, ActiveScriptRuby, etc. — "Hal E. Fulton" <hal9000@...>
I ask this periodically in hopes that
[#42147] multiple instances of Ruby interpreter in my C++ code? — Thorsten Scheuermann <TScheuermann@...>
Hi,
[#42152] RE: multiple instances of Ruby interpreter in my C++ code? — Thorsten Scheuermann <TScheuermann@...>
Well, the threading in the app is cooperative, not preemptive. So if there
To be honest, I've never really seen the point of cooperative
[#42170] def += — "Kontra, Gergely" <kgergely@...>
Hi!
[#42192] ruby-dev summary 17252-17356 — Minero Aoki <aamine@...>
Hi all,
Minero Aoki wrote:
----- Original Message -----
"Hal E. Fulton" <hal9000@hypermetrics.com> writes:
> a = 1
Hi,
"Hal E. Fulton" wrote:
----- Original Message -----
Hi,
On Tue, 11 Jun 2002 13:20:03 +0900
----- Original Message -----
Not wanting to flog a dead horse, but I just wonder what the final word
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
Hi,
matz@ruby-lang.org (Yukihiro Matsumoto) wrote in message news:<1023845919.929356.32025.nullmailer@picachu.netlab.jp>...
[#42202] ruby-qt3 proposal (c++ based extensions) — Martin Man <Martin.Man@...>
hi all,
[#42207] rubycookbook — Bil Kleb <W.L.Kleb@...>
Any news on http://www.rubycookbook.org/ availability?
[#42227] pack()ing Bignums — Dan Debertin <airboss@...>
I have a 128-bit Bignum that I need to pack into a binary string in
[#42241] Modules and version determination — "Mr. Sunblade" <djberge@...>
Hi all,
On 2002.06.12, Mr. Sunblade <djberge@qwest.com> wrote:
On Wed, Jun 12, 2002 at 04:45:37AM +0900, Dossy wrote:
[#42252] How to reset a variable to the value in another variable? — Kurt Euler <keuler@...>
All-
[#42261] Ruby for jMax — Mathieu Bouchard <matju@...>
On Tue, 11 Jun 2002, Mathieu Bouchard wrote:
Mathieu Bouchard wrote:
[#42269] threads question (newbie) — "Shashank Date" <ADATE@...>
This is using Ruby 1.6.7 on Windows (mswin32).
[#42329] eruby — Manfred Hansen <manfred@...>
Hello
[#42347] procs and blocks — Evan Martin <martine@...>
When a need to use a callback function, it seem there are two ways to go
[#42386] ANN: Cellular Automata — Peter Hickman <peter@...>
Just released a little class / application to play with 1D cellular
[#42402] RE: Modules and version determination — "Berger, Daniel" <djberge@...>
> -----Original Message-----
On 2002.06.13, Berger, Daniel <djberge@qwest.com> wrote:
On Thu, Jun 13, 2002 at 10:53:16PM +0900, Dossy wrote:
[#42410] Relational operators redux (returning RHS) — Austin Ziegler <austin@...>
I have only recently started looking over the Ruby language, being
On Thu, Jun 13, 2002 at 11:13:03PM +0900, Austin Ziegler wrote:
[#42422] RE: Modules and version determination — "Berger, Daniel" <djberge@...>
[#42440] UNIX pipes — "David Douthitt" <DDouthitt@...>
I thought I could do:
[#42455] Application server & web developement enviroment — "Radu M. Obad磚 <whizkid@...>
Howdy,
On Fri, 14 Jun 2002 15:55:31 +0900, Radu M. Obadwrote:
Oops! Tobias Reif <tobiasreif@pinkjuice.com> was seen spray-painting on a wall:
On Fri, 14 Jun 2002 23:53:28 +0900, Christopher Browne wrote:
On Sat, Jun 15, 2002 at 12:46:58AM +0900, Austin Ziegler wrote:
[#42472] ANN: Programmierung in Ruby — "Juergen Katins" <katins.juergen@...>
Programmierung in Ruby Online gibt es jetzt mit ausfrlichem
[#42504] Are Unix tools just slow? — Chris Gehlker <gehlker@...>
Awhile back I was asking for help with a unixy way to search the mounted
On Sat, 15 Jun 2002 07:14:38 +0900
On Sat, Jun 15, 2002 at 01:26:11PM +0900, Daniel P. Zepeda wrote:
On 6/16/02 11:22 AM, "Kyle Rawlins" <rawlins@cs.umass.edu> wrote:
Chris Gehlker <gehlker@fastq.com> writes:
On 6/17/02 11:35 AM, "Josh Huber" <huber@alum.wpi.edu> wrote:
* Chris Gehlker (gehlker@fastq.com) [020614 17:18]:
On 6/14/02 3:34 PM, "Rick Bradley" <rick@rickbradley.com> wrote:
unix newby failing miserably here:
In <EDF421EF-8011-11D6-BEEF-000393722276@bigpond.com> ccos wrote:
yeah it is darwin, and the compiler is cc,
ok i still get errors, see below.
On Saturday 15 June 2002 12:18 am, ccos wrote:
hey there,
Rick Bradley wrote:
Centuries ago, Nostradamus foresaw when "Daniel P. Zepeda" <daniel@zepeda-zone.net> would write:
On 6/17/02 11:36 AM, "Christopher Browne" <cbbrowne@acm.org> wrote:
In an attempt to throw the authorities off his trail, Chris Gehlker <gehlker@fastq.com> transmitted:
[#42507] mpg123 — Tobias Reif <tobiasreif@...>
Hi,
Thomas A. Reilly wrote:
[#42529] Q: mod_ruby for Apache2.0 — kwatch@... (kwatch)
Hi,
[#42546] File.new('foo', 0600 , 'wb') — Tobias Reif <tobiasreif@...>
Hi,
Dossy wrote:
[#42561] system & changes to ENV on Windows — Johan Holmberg <holmberg@...>
Hello,
[#42591] Kernel#select questions — Wilkes Joiner <boognish23@...>
I'm trying to track down a bug where Kernel#select is returning [[],[],[]] as
Hi,
> I don't know. Maybe a bug. Show me more information, please.
Hi,
On 2002.06.17, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
> I think I was wrong in [ruby-talk:40015] -- although, I can't
[#42596] Q: n-times matching — kwatch@... (kwatch)
Hi,
[#42617] eRuby on Mac OS X — Jim Menard <jimm@...>
I've searched ruby-talk for this topic, and the only messages I found show
[moving to modruby list]
On 6/18/02 11:03 PM, "Sean Chittenden" <sean@ruby-lang.org> wrote:
[#42635] problem with inner classes — Francis Hwang <sera@...>
I'm having a problem defining inner classes. The outer class is a
[#42651] Debug.rb and exceptions — Han Holl <han@...>
[#42671] Currently in rpkg repository — Massimiliano Mirra <list@...>
cliff - Command Line Interface Fast Framework
On Tue, Jun 18, 2002 at 07:05:48PM +0900, Massimiliano Mirra wrote:
On Tue, Jun 18, 2002 at 08:12:04PM +0900, patrik wrote:
On Tue, Jun 18, 2002 at 08:37:00PM +0900, Massimiliano Mirra wrote:
[#42674] REXML in C — "Radu M. Obad磚 <whizkid@...>
Hi,
[#42700] in-place editing — Ian Macdonald <ian@...>
I'm trying to figure out why the following code chunk fails to edit my
Hi,
[#42713] Japanese Ruby books — Jack Herrington <jack_d_herrington@...>
I've bought all of the English language Ruby books in print at the moment.
[#42760] releasing system? — Evan Martin <martine@...>
I think I'm ready for an initial release of Ruby/Evas.
[#42771] Why is I/O slow? — Clifford Heath <cjh_nospam@...>
Ok, folk, time to try again. It's nothing to do with SHA-1.
Yohanes Santoso wrote:
Yukihiro Matsumoto wrote:
> With respect, this doesn't sound like a smart idea. The glibc folk have
On Thursday 20 June 2002 10:10 pm, Mike Campbell wrote:
On Fri, 21 Jun 2002 12:16:24 +0900, Albert Wagner wrote:
On Fri 21 Jun 2002 at 12:31:30 +0900, Austin Ziegler wrote:
On Fri, 21 Jun 2002 14:49:01 +0900, Ian Macdonald wrote:
On Fri, Jun 21, 2002 at 10:15:22PM +0900, Austin Ziegler wrote:
On Sat, Jun 22, 2002 at 02:33:16AM +0900, Massimiliano Mirra muttered...
On Thursday 20 June 2002 10:31 pm, Austin Ziegler wrote:
Ian Macdonald wrote:
> Ian Macdonald wrote:
james@rubyxml.com schrieb:
Hi,
On Fri 21 Jun 2002 at 17:13:40 +0900, Yukihiro Matsumoto wrote:
[#42772] can super call a method multiple classes higher in the hierarchy? — Ian Macdonald <ian@...>
Hi,
[#42812] Re: Are Unix tools just slow? — "David Douthitt" <DDouthitt@...>
RE: sudo find / > /dev/null takes 61 seconds...
[#42816] ANNOUNCE: FXRuby-1.0.11 Now Available — "Lyle Johnson" <jlj@...>
I am pleased to announce the latest release of FXRuby, the Ruby language
[#42822] about Ruby/Tk documents — Maggie Xiao <mxiao@...>
Hi,
[#42842] THIS IS REAL — "DR. KAYODE" <dr_kayode@...>
FROM THE DESK OF: KAYODE A.ADEFUWORA
[#42877] OT: Linux zealotry etc. — "Hal E. Fulton" <hal9000@...>
Guys, this is the nearest thing I've seen
[#42884] parser for LISP — mxiao <mxiao@...>
I am new to ruby, and now I will write a parser for LISP-like language in
[#42893] Mixin using append_features and class<<self do not work together — Philipp Meier <meier@...>
Hello to all,
[#42904] a Perl script's interaction with Ruby's system call — Bil Kleb <W.L.Kleb@...>
I'm trying to invoke a perl script (epstopdf) with Ruby's system command
[#42912] Looking for the Ruby way for the following — Bil Kleb <W.L.Kleb@...>
Currently I am using the following rather ugly bit of Ruby code
[#42928] GOOD DEAL — "DR. ISA BELLO" <dr_isa@...>
FROM:DR ISA BELLO
Dossy wrote:
On 2002.06.23, yet another bill smith <bigbill.smith@verizon.net> wrote:
[#42932] What do you think of this idiom? — "Hal E. Fulton" <hal9000@...>
I was writing a little script which prompted
[#42933] Vim syntax file maintenance — Doug Kearns <djkea2@...>
Hello all,
[#42944] RE: detecting a socket dropping in multi-threaded app — "Firestone, Mark - Technical Support" <mark.firestone@...>
How about this? My @who data structure is shared with a mutex between the
[#42963] Vim syntax file - new location — Doug Kearns <djkea2@...>
Hello all,
[#42968] rapt update failure — Urban Hafner <ruby-lists@...>
Hello,
[#42982] No exceptions from String#to_i — "Hal E. Fulton" <hal9000@...>
I've been bitten by this before... maybe
>>>>> "H" == Hal E Fulton <hal9000@hypermetrics.com> writes:
>>>>> "N" == Nikodemus Siivola <tsiivola@cc.hut.fi> writes:
Hi,
On Tue, Jun 25, 2002 at 12:27:03AM +0900, Yukihiro Matsumoto wrote:
[#43032] rm -rf — Bil Kleb <W.L.Kleb@...>
How do I do the equivalent of a Unix `rm -rf directory` command?
[#43047] Andy Roonie meets Perl vs. Ruby... (I couldn't resist) — Sean Chittenden <sean@...>
> > If you're not _really_ object oriented programming, perl's OO
[#43054] RDE0.9.6.0 released — sakazuki <QZS01353@...>
Hi.
[#43070] []<< — Tom Sawyer <transami@...>
here's something i thought was interesting:
[#43074] Andy Roonie is perhaps excessively optimistic — Benjamin Peterson <bjsp123@...>
[#43085] Ruby books -- Which one for a true beginner? — Michael Vondung <mvondung@...>
It's been about ten years since I spent any time programming, and even
[#43099] Gvim interface to the ruby debugger? — "Gray, Jeff" <jeff.gray@...>
I've been contemplating hacking together some sort of Gvim-based interface
> I've been contemplating hacking together some sort of Gvim-based interface
[#43122] Re: help (ruby-talk ML) — Benjamin Peterson <bjsp123@...>
Benjamin Peterson <bjsp123@yahoo.com> writes:
Yes, I would gladly volunteer considerable effort to this end. I have
[#43147] Ruby on Mac OS X — Tobias Reif <tobiasreif@...>
Hi,
Tobias Reif <tobiasreif@pinkjuice.com> writes:
A friend of mine has started building his own blogging software, called
On 6/28/02 12:41 AM, "Tobias Reif" <tobiasreif@pinkjuice.com> wrote:
[#43156] Negation of regular expression — Yasuo Saito <y_saito@...10.freecom.ne.jp>
Hi.
[#43174] eruby SAFE question — Dylan Northrup <docx@...>
I'm trying to implement a replacement for the standard apache file listings
Dave Thomas wrote:
Tobias Reif <tobiasreif@pinkjuice.com> writes:
>
Tobias Reif wrote
On Mon, 1 Jul 2002, Juergen Katins wrote:
> From: David Alan Black [mailto:dblack@candle.superlink.net]
Hi --
Hi all,
[#43188] xmlrpc problems — jonas.b@... (Jonas Bengtsson)
Hi!
On Sat, Jun 29, 2002 at 08:47:16AM +0900, Jonas Bengtsson wrote:
Hello Michael,
[#43205] protocol.rb error — Tobias Reif <tobiasreif@...>
Hi,
On Saturday 29 June 2002 09:17 am, Tobias Reif wrote:
[#43216] select loop question — Joseph McDonald <joe@...>
[#43242] method objects? — Tyler Spivey <tspivey8@...>
is it possible to write a function liike:
Transparent asynchronous execution
Hello all !
I've read some interesting parts of the E language description
(http://www.skyhunter.com/marcs/ewalnut.html), and while the language itself
seems to solve problems I don't have, the idea of Promises seems to be
useful to me, as it would allow an easy way to introduce parallelism into
programs where it is affordable / possible.
What I want is simple - I want a class that is used like this :
foo = Promise(1,2,3) { |a,b,c|
r1 = some_function_that_takes_long_to_compute( a,b,c )
r2 = some_other_function_that_takes_even_longer( r1 )
r2
} # => runs in background thread, foreground thread will block on access to
foo
bar = a_third_function_that_takes_long_to_compute( 1,2,3 )
print calculate_statistics( bar, foo )
That is, the evaluation of foo is done in a second thread in the background,
and the foreground thread blocks if the result of the calculation is not yet
available. In principle, this is not different from the following code :
t = Thread.new( 1,2,3 ) { |a,b,c|
r1 = some_function_that_takes_long_to_compute( a,b,c )
r2 = some_other_function_that_takes_even_longer( r1 )
r2
};
bar = a_third_function_that_takes_long_to_compute( 1,2,3 )
print calculate_statistics(bar, t.join())
except that I find this cumbersome - I would have to sprinkle Thread.new()
and t.join() everywhere, when all I (as the front-end user) care about is
the result and not how I get the result, and I have to keep the Thread
object around even after the result became available. Switching from this
implementation to a non-parallel implementation is also not nice, since I
have to remove the threading stuff from everywhere, instead of just
overwriting the Promise class with a plain serial Promise class that
directly evaluates the given block and stores the result.
For the implementation, almost everything seems to go smoothly except for
the delegation part. Before the result becomes available, I want the Promise
class to block the calling thread on every message sent to it (this could
maybe done by overriding Object#send), and after the result becomes
available, I want the Promise to send all messages to the result (i.e., I
want the Promise to be as transparent to the caller as possible). I've
looked at the Delegator class, but this class wants to know which object it
delegates to - the Promise dosen't know which object it will delegate to
until the result becomes available - how can I approach this problem ?
It's OK for me if errors (like "method not found") get raised after the
Promise has completed the calculation - this is the price one pays for not
using a language with down-to-the-byte typed elements.
Thanks,
-max
Thinking further about this, there could be three versions of a Promise, the
SynchronousPromise, which directly evaluates the given block, the
ThreadPromise, which runs the given block in the background, possibly
blocking the foreground thread if it wants the result too early, and the
LazyPromise, which evaluates the given block exactly when the foreground
thread sends a message to the Promise...