[#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:
a new block parameter/variable notation (Re: ruby-dev summary 17252-17356)
Hi,
In message "Re: ruby-dev summary 17252-17356"
on 02/06/12, "Hal E. Fulton" <hal9000@hypermetrics.com> writes:
|Well, Matz is much smarter than I am... but this
|makes me wince.
I don't think I'm smarter than you. That's simply my fault that I
cannot explain clear enough mostly due to the language barrier.
I wish I were born in English speaking country. I'll try to explain
anyway.
Originally, the "|...|" used to be a simple iteration variable
specifier. But when Proc (and closure) was introduced to Ruby (back
in Ruby 0.60 in 1994), I needed block local variables, so I made the
current local variable scoping rule, which is "when a new local
variable appears first in a block, it is valid only in the block".
And *I was wrong*. This rule is the single biggest design flaw in
Ruby. You have to care about local variable name conflict, and you
will have totally different result (without error) if they conflict.
So, we are talking about a part of many-year-long effort of fixing
this flaw.
We have following constraints:
* the fix should not cause fatal compatibility problem. It may not
cause any problem, or at least may not cause any problem which
cannot be fixed by the filter program.
* the fix need not to cover arbitrary combination of local/non-local
variables in block parameter, so that you don't need the one like
|a,{b},c| # where a goes block-local
as someone proposed before. We have two major usage of block
parameters, a) iterator variables b) closure arguments. The
current block parameters are suitable (and designed for) a. I
guess we need a new notation designed for b too.
* preferably, the above *bad* scoping rule should be removed from the
language in the future, so that I guess we need a new notation to
*declare* in-block variables.
* Ruby does not like explicit variable declaration (except method
arguments, of course), so that a new in-block variable declaration
is better not be explicit, if possible.
I've got a bunch of proposals from worldwide (and from myself). Some
seemed good, Some bad, and some even ugly. Thank you everyone who
joined the discussion anyway. After a long discussion and pondering,
there is the first design choice:
(a-1) do nothing, it's already a part of the language even though it's
bad. Stay as it is.
Pros: least effort.
Cons: least effectiveness.
(a-2) do something, let's make Ruby close to the perfect language.
Assuming we choose the latter, I chose several candidates for the fix.
From the constraints, we need two new notations to fix the problem,
one for block parameters and one for in-block variables.
For block parameters (in order of my preference):
(b-1) "<...>" that takes local variables only; they are in-block
local. In addition, it follows basic rules of argument
passing, even optinal argumen may be allowed.
Pros: it solves several pitfalls of Ruby at once, for example,
"lambda{|a| p a}.call(1,2,3)" prints "[1,2,3]", because
it behaves like assignment "a = 1,2,3". on the other
hand, "lambda{<a> p a}.call(1,2,3)" will cause an error
"wrong number of arguments (3 for 1)".
Cons: it makes Ruby syntax bigger.
it appears awkward for some eyes.
(b-2) "|...|" should take local variables only, and make them
in-block variables.
Pros: it makes Ruby syntax simpler.
Cons: no backward compatibility.
For in-block variables:
(c-1) local variables assigned by ":=" are in-block variables,
otherwise they are method local variables. If you assigns to
an existing local variable, the variable is shadowed, and you
will probably be warned.
(c-2) variables listed after ";" in the block parameters are in-block
variables. If you list an existing local variable, the
variable is shadowed, and you will probably be warned.
Cons: this is explicit declaration.
(c-3) introduce a method named "let" and use the solution for (b) to
solve the in-block variables problem. For example (in the case
we choose (b-1)):
lambda{<x,y> # x,y are local to this closure.
...
let{<a,b,c>
.... # a,b,c are local here.
}
...
}
Pros: least syntax enhancement.
Cons: Cons: this is explicit declaration.
And even uglier (to my eyes).
Man, it took me hours to write this mail. Why you guys don't read Japanese?
|Complaint #1: This introduces an ordering constraint on
|the items. If the "natural" order is a,b,c but we need
|b to be local, we will write something like |a,c;b|
It won't happen, since they are different things. "a" and "c" are
block parameters, "b" is an in-block variable.
|Complaint #2: The <x;y> case is exceptionally annoying
|to me if I understand it correctly. Doesn't it send two
|contradictory messages (to the reader) about x? The fact
|that it appears on the lefthand side of the semicolon
|says it's nonlocal; but the fact it's in brackets says
|it's local.
No. The fact that it appears on the lefthand side of the semicolon
says it's a block parameter; and the fact it's in brackets says it's
in-block local. Get it?
matz.