18638-19152 subjects 19093-19705

dict ruby  # :-)
18867 [stesch@no sp] stesch@parsec:~$ dict ruby
18875 [mikkelj-anti] Look at the beautiful frozen Yukon River.

RubyGarden and the wiki will be down for a while...
18868 [Dave@Pr gm t] Well, just when things seemed to be going so well, I seem to have had

Re: exercise in minimalism: diamonds
18869 [stesch@no sp] \\\\\\\\\\\\\\\\\\\\\\\\
+ 18910 [ugly-daemon@] Where can I find more info on this lang?? That looks wicked!! From now on all my
+ 18916 [stesch@no sp] <URL:http://dmoz.org/Recreation/Humor/Computer/Programming/Obfuscated_Languages/>
  19004 [brunjes@pr m] I couldn't resist this interesting puzzle!  Here is a 66-character

18870 [spwhite@ch r] I've been playing around with Rebol. It's pretty much like TCL on steroids

TK under ruby
18873 [niktuku@su c] I've Read all the docs I could find, but i still can't figure out how to
+ 18887 [alwagner@ua ] No, you are not brain dead.  I too am just starting to learn Tk
+ 18894 [ljohnson@re ] Could you be more specific about what kind of problem(s) you're having? Is
+ 18943 [schneiker@ju] If you haven't already done so, check out the Tk widget demos (in particular
  18972 [kero@d4 50 u] Time to show the world what I've written.

require()-ing in a module?
18877 [fgp@ph o. rg] Is is possible to require() is file so, that all the classes and modules
18881 [neumann@s- i] load has a second parameter, which allows to execute the file in an anonymous module,

IP multicast with UDPSocket
18883 [nat.pryce@b1] ...
18925 [will.sobel@B] ...

Perl/Python/Ruby common backend
18886 [pate@gn .o g] While there was some talk here recently about running Ruby on the Perl
18909 [mikkelj-anti] There are many similarities to this and the .Net experience.
+ 18911 [elderburn@mi] A compelling reason, in a single word: nonproprietary!
+ 18915 [bryan@te ra ] Ah yes, the inevitable full circle return to implementing a .NET version
+ 18923 [mikkelj-anti] I agree with that point of view - but that might be a too heated political
| 18983 [cyoungbl@le ] Pardon my ignorance, but where can I find out more about GnuNet?
| 18985 [mikkelj-anti] errrh - at the GnuNet site :-)
+ 18924 [mikkelj-anti] That very much expresses my own view of things.

Re: Shallow versus deep copies for Arrays
18892 [ljohnson@re ] Yes, the default implementations of Object#dup and Object#clone do a shallow

Gtk: file selection dialog
18895 [aerpenbe@uo ] I'm struggling with Gtk::FileSelection and how to use it properly.
18897 [ned@bi e- om] Well, you could signal a mutex in the callback and let another thread do the

Tk bind to 'FocusOut' causes segfault
18900 [alwagner@ua ] ...
18956 [alwagner@ua ] P.S.  This problem only appears on Win2k at work.  It runs fine

newbie autovivification
18917 [no@em il co ] Please make Perl autovivification possible in Ruby.
+ 18928 [fgp@ph o. rg] foo ||= Hash.new
+ 18941 [r2d2@ac .u u] (foo ||= {})[obj] = 'hello'
  18952 [nat.pryce@b1] print "middle" if 25..75 === foo
  18954 [hgs@dm .a .u] Hugh
  18955 [jjthrash@po ] It seems to me that this is a prime example of something that could

README for Dynamic-ORBit
18919 [senderista@h] Author/maintainer: Tobin Baker

The Garden is Back
18929 [Dave@Pr gm t] Turns out I basically lost the partition containing Rubygarden, the

Hash vs ==
18930 [ned@bi e- om] I just started my first Ruby program -- a translation from my Perl version of
+ 18936 [decoux@mo lo] Ruby use #eql? to compare 2 keys.
+ 18950 [matz@ru y- a] Hash uses "eql?", so that if you override "eql?" you expected to

notes from a Ruby newbie
18931 [ned@bi e- om] Some initial impressions from a Perl/Smalltalk programmer writing his first
+ 18933 [decoux@mo lo] No, it work. Like you have seen 0 is not false.
| 18935 [ned@bi e- om] That's an interesting distinction, considering that '+' and '==' are methods.
| 18953 [decoux@mo lo] Well, I don't know but if '||' is a method then
+ 18938 [eban@os ri .] % ruby -rdebug -e0
+ 18942 [r2d2@ac .u u] There is ri
+ 18951 [matz@ru y- a] No.  Because I couldn't give them object-oriented semantics.  They
  18975 [ned@bi e- om] Has someone done one of these for Vim yet?

sample run for ruby-xlib
18937 [r.kochhar01@] I have installed ruby-xlib version 0.6.14 with ruby 1.6.2. I was
18939 [decoux@mo lo] It's best if you use ruby-xlib-0.6.15 with ruby 1.6.3
18940 [decoux@mo lo] ruby-xlib-0.6.15 work with 1.6.*

IBM developerWorks - Ruby Series
18944 [mjbjr@be ud ] - Martin J. Brown, Jr. -

Testing a global variable...
18946 [sean-ruby-ta] Howdy...  I'm trying to test to see if a global variable exists. =20
18948 [decoux@mo lo] ???
18981 [sean-ruby-la] sting'

Ruby and Unicode
18957 [ned@bi e- om] I haven't dug into the source yet, but it seems that Ruby ignores the fact
+ 18958 [decoux@mo lo] This is the goal of ruby_m17n
+ 18993 [mikkelj-anti] I may be stating the obvious - but in relation to Unicodification of
  + 19006 [decoux@mo lo] Well, perhaps Unicode is well suited for ASCII but the goal of m17n is to
  + 19046 [mikkelj-anti] What is the problem with Unicode (whatever encoding is used)? It certainly
    19049 [matz@ru y- a] * There're some character sets that is larger than Unicode.

Using "@" as a method name?
18959 [Laurent.Jull] Let's start with a silly question to warm you up :-))
+ 18960 [spwhite@ch r] class Object
| 18961 [spwhite@ch r] class String
+ 18962 [Dave@Pr gm t] On a related note: it would be nice to be able to have the ability to
  + 18963 [spwhite@ch r] This could be extended to the rest of Ruby's syntax too. Something sweet
  | 18984 [matz@ru y- a] "don't go too far".
  + 18965 [dblack@ca dl] Post it to RubyGarden and find out :-)
  + 18966 [decoux@mo lo] make it Kernel.build_special(c, str)

Linking ruby with gcc instead of ld
18968 [Brett.W.Denn] When compiling ruby, is there a way to link using gcc instead of ld?  (I'm
18973 [kero@d4 50 u] `make LDSHARED=gcc`

ANN: FXRuby-0.99.174 Now Available
18969 [ljohnson@re ] I am pleased to announce the latest release of FXRuby, the Ruby language
19041 [knu@iD em ns] Seems it doesn't compile on non-Win32 platforms because
19042 [ljohnson@re ] I just uploaded a fixed version of FXRuby-0.99.174.tar.gz to the SourceForge

hash with Array as value
18970 [info@mj is d] I want an Hash with an Array (reference) as a Value,
18971 [decoux@mo lo] 1) the size of the array

Perl/Python/Ruby common backend (Perl6)
18974 [ptkwt@sh ll ] There is a thread about using .NET's CLR as a backend for Ruby, but how
+ 18979 [marick@vi ib] Brian Marick, marick@testing.com
+ 18987 [matz@ru y- a] I'm not sure.  Basic object model of two languages are quite different
| + 18991 [Dave@Pr gm t] On the other hand, if this is something we'd like to investigate as a
| + 19011 [VardhanVarma] There is a c-- (www.cminusminus.org) project, which is IMHO,
| + 19016 [hipster@xs a] I conjecture that Ruby texts can be translated into equivalent Lisp
|   19017 [matz@ru y- a] I think it's good idea (as a start line at least).  Does somebody know
|   19020 [hipster@xs a] librep (used by sawfish, http://librep.sourceforge.net) could be a
|   + 19022 [waisun.chia@] How about guile?
|   | + 19023 [Pierre-Charl] IIRC, Stallman's goal when he started the Guile project was to design a
|   | + 19035 [matz@ru y- a] Well, I know Guile, but current Guile does not satisfy my needs.
|   + 19024 [fritz.heinri] no guile has no vm,
+ 19056 [max@ma va co] ESR published a letter in which he proposed to make single VM for both
+ 19157 [schneiker@ju] The Mono project FAQ mentions Scheme. Given that Perl, Python, and Smalltalk

"Bang" versions of numerical methods on non-immediate values [was:  Numbers classes.. Rational number? ]
18977 [kentda@st d.] Since my previous rant about this seemed to go unnoticed (due to the
18988 [matz@ru y- a] immediate values (fixnums and symbols) cannot be modified from method,
18990 [kentda@st d.] So for this to work for all numeric objects, we'd need a bang version of
+ 18995 [nat.pryce@b1] Wouldn't this cause awful confusion with aliasing?  At the moment, numerics
+ 18999 [matz@ru y- a] I have to think twice before making something immutable.  So I did.
+ 19007 [kentda@st d.] I took a closer look at NArray, which seems to be able to allow me to do
  19008 [kentda@st d.] That sounds excellent!

ANN: Ruby-trace 0.1.2
18978 [marick@te ti] $trace.announce "Using alternate capability file '#{chosen}'."
18992 [cbroult@sa i] ...
19010 [uwe.matthaeu] I have startet a port 'log4j' to ruby 'log4rb'. My problem is time.
19031 [marick@vi ib] ...

a variable scope question
18980 [yxw@cy re s.] To me, in the following codes, line is declared in the begin ... end
18986 [matz@ru y- a] Scopes are introduced by the following statements, class, module, def,

Midi Compiler
18996 [peterhi@sh k] My first major project has been posted on the RAA. It is a midi compiler,

A Line-by-line profiler
18997 [ned@bi e- om] Inspired by profiler.rb, I whipped this up to help me with my optimization.

How to optimize a Ruby program?
19002 [ned@bi e- om] ...
19013 [neumann@s- i] Is equal? really faster than == ?

IDE for Ruby
19003 [anany@ec .v ] Ruby folk rejoice!!
19005 [Dave@Pr gm t] What's the trick?
+ 19009 [anany@ec .v ] Sorry about that :(
| + 19012 [paulp@Ac iv ] Err, I'm really glad you like Komodo but what you describe is not full
| | 19015 [bfollek@bi f] SciTE ( http://www.scintilla.org/SciTE.html ) is a free text editor that's
| | + 19048 [dsafari@xt a] I just used Debian to get get SciTE 1.37 and there is no Ruby
| | | 19050 [wvucenic@ne ] Ruby support was added in version 1.38.
| | | + 19051 [dsafari@xt a] Thanks Wayne :)
| | | + 19055 [robb@ne vo s] blackadder from the kompany is looking to fill this niche as well.
| | + 19066 [stephen.hill] I have a syntax highlighting pattern for ruby for nedit. It isn't
| |   19068 [nahi@ke na t] Regarding IDE4Ruby, RDE might be a good choice for Windows users.
| |   19071 [nahi@ke na t] I must add following sentences to the license.
| + 19037 [paulp@Ac iv ] Two more disclaimers so nobody is disappointed -- our Linux version is
+ 19075 [shawn@th ko ] I would also like to suggest our BlackAdder product which is a GUI IDE for
  19134 [djberg96@ho ] I heard it used to be called "BlackVegetable", but they changed the name
  19139 [tobiasreif@p] Tobias Reif

RATS (was  Perl/Python/Ruby common backend (Perl6))
19019 [pate@gn .o g] Having started this thread based on ESRs comments on the python-devel

1.6/net errors (stack, igneof)
19025 [tobiasreif@p] I'm downloading files from the web using Net::HTTP.
19038 [aamine@mx ed] hmmm, I haven't saw this message on using ruby.
+ 19040 [matz@ru y- a] No.  But stack limit is larger on Linux.
+ 19058 [tobiasreif@p] I solved the problem: I was iterating through an array, *and* calling
+ 19060 [tobiasreif@p] I solved the problem: I was iterating through an array, *and* calling

YAWN Question (Your Annoying Wandering Newbie)
19026 [matt@gr en i] Since I have yet to find a comprehensive tutorial for CGI using Ruby, I'm still stumbling around in many respects. (I'm sure they exist in Japanese, but I haven't learned it yet... :/ )
+ 19028 [ned@bi e- om] What's wrong with ENV['REQUEST_METHOD'] ?
| + 19029 [ jimm@io co ] You should be able to look at ENV['REQUEST_METHOD']. The CGI protocol says
| + 19030 [matt@gr en i] Well, mainly that the HTTP server doesn't seem to be setting that in the environment. :/ So, I was hoping that someone would suggest something different.
|   19033 [dtillman@oz ] the_method = (ENV['QUERY_STRING'] and (cgi.params.length > 0)) ? 'GET' : 'POST'
|   19036 [matt@gr en i] Very cool. That's what I was looking for. I just couldn't get the syntax correct. I'd test it to be sure, but apache isn't letting me run cgis. (again...) I'll let you know if I have problems with it.
|   19047 [   xm@w3 .r ] Newbie)
|   19053 [matt@gr en i] Yeah, I knew the original wasn't correct. I added in support to give a meaningful error if the query on a POST was vital data. If it's non-vital and it gets called that way, that which is not read is simply dropped. There's a note saying "POST with query is not supported at this time. Just deal. Call this as documented." ;) The script isn't overly complex. Just lots of redundant code. I'm using it as a way to prove that Ruby can create more compact, more legible CGIs. It's proof to myself, mainly. Especially since teh optimized code in Perl is around 300 lines. Ugh. It looks like it's going to stay around 150 in Ruby. And who knows? Maybe in 3 months, I'll know enough to get it down to 50.
+ 19054 [matz@ru y- a] If you are using 'cgi' library,

Re: Perl/Python/Ruby common backend (Perl6), and benchmarks.
19032 [hgs@dm .a .u] While we are looking at virtual machine technologies I'd like to suggest
19034 [decoux@mo lo] Well, I've tried 'loop_test(1200000)' and  'loop_test_iter(1200000)'and

SSL in Ruby?
19043 [hubert@cs ny] Just curious if Ruby library has SSL? I look around and it seems that
+ 19044 [ljohnson@re ] I haven't used this at all, but there is an SSLSocket package listed in the
| 19045 [joe@vp p. et] I've used it.  It works great.
+ 19057 [neumann@s- i] Yes it has as an extension module.
+ 19460 [hubert@cs ny] Thank you all folks...

QNX port
19059 [eli.green@co] Greetings.
+ 19061 [kentda@st d.] [SNIP]
+ 19062 [rpriem@no ra] Did you try "make test"?
  19063 [eli.green@co] test succeeded. =)
  19070 [rpriem@no ra] Fine. It gave me a bad suprise with the signal handlers. But this seems to
  + 19072 [hgs@dm .a .u] Hugh
  | 19083 [rpriem@no ra] I just tried it (see output below). rubicon 0.1.4 and RubyUnit 1.3.0. Seems
  | 19153 [eli.green@co] I don't think rubicon is 100% there yet ... with the latest rubyunits and
  | 19154 [Dave@Pr gm t] Rubicon definitely isn't there under any OS other than Linux, for the
  | 19156 [eli.green@co] Woops. Sorry if I came off sounding like I didn't think rubicon was any good
  + 19079 [eli.green@co] Ugh. I see now why all those patches were necessary. I'm starting to run into
    19084 [matz@ru y- a] I'm pretty interested in supporting new platforms.

ANN: Code Amelioration Contest (presented by Ruby Conference 2001)
19064 [dblack@ca dl] announcing the first (annual?)
+ 19077 [tobiasreif@p] The improved versions have to  have all the same features and logic as
| 19078 [dblack@ca dl] Features, anyway (maybe not logic).  The original version should
| 19091 [pschoenb@gm ] Does this mean, participants have to be at the conference in order
| 19119 [dblack@ca dl] Good question :-)
| 19149 [hal9000@hy e] A couple of questions.
| + 19151 [dblack@ca dl] It's up to you.  I expect some people will have existing code they
| + 19199 [r2d2@ac .u u] I think the second is better, at least if by "obfuscation" you mean something
|   19203 [chadfowler@y] Are teams allowed in the contest?
|   19206 [dblack@ca dl] Yes, but only one prize per team.  So be prepared to pull hard on your
+ 19184 [john.carter@] This post crashed in my mind into this one....
  19185 [dblack@ca dl] I'm afraid I don't follow.  What's the connection?
  19186 [john.carter@] Well, the contest takes cruddy but arbitary code and improves it.
  + 19204 [dblack@ca dl] The amelioration contest is already out of the design stage, so to
  | 19214 [gc@ma dr ke ] I'd welcome any improvement of PLEAC of course ;p.
  + 19215 [gc@ma dr ke ] The main problem is what you mean by "best".
    + 19217 [Dave@Pr gm t] If Guillaume is amenable, then I think that's a great idea.
    | + 19225 [dblack@ca dl] Cookbook code is fine (Guillaume permitting).  But (just to clarify
    | + 19235 [gc@ma dr ke ] Of course, I think this is great!
    + 19313 [tobiasreif@p] Sounds good to me!

"require" vs "execute"
19067 [K.Hodges@ft ] I have some scripts that are really useful for executing from the command line
19069 [jjthrash@po ] if $0 == __FILE__

a+, a++, a+++, a++++, a+ ---, a + ***
19073 [thucdat@ho m] ...
+ 19074 [dblack@ca dl] I get -3 there.
+ 19076 [Dave@Pr gm t] Because '+' is both a unary and a binary operator, and '*' isn't.
  19080 [thucdat@ho m] ...
  + 19081 [Dave@Pr gm t] Because Ruby doesn't dispatch based on the number of arguments. For a
  + 19257 [larsch@cs au] On a side note, why is there at all the need for a `+' sign operator?
    19275 [in6x059@pu l] Do you consider it a win if "a +2" is correct, but "a -2" is an error?

FXRuby on HPUX?
19082 [Craig_Files@] I just compiled the new FXRuby 0.99.174 for Linux and am now trying to
19221 [ljohnson@re ] Craig,

Game prgogramming:(1) interface library
19085 [thegrandbrie] I am In the midst of writing a couple games using ruby (a recreation of
19094 [mikkelj-anti] Have you looked at SDL?

Re: Code Amelioration Contest (presented by Ruby Conference 2001)
19086 [mikkelj-anti] I do not plan to enter the contest, but interestingly, I learned that Ruby
+ 19087 [eli.green@co] I fail to see how this is not OO. It's a design decision of where to separate
| 19104 [spwhite@ch r] From that perspective, a procedural program is still OO as the whole
+ 19090 [toddg@li ux ] <Yoda>

graphic display
19088 [ronjeffries@] I'd like to implement Langston's Ant in Ruby. To do this I need to
+ 19089 [ugly-daemon@] well I am not sure how easy it is but you could probably use gtk or fox. The
| 19100 [waisun.chia@] Don't forget, Ruby can do Qt too...
+ 19092 [Dave@Pr gm t] require 'tk'
+ 19096 [sofdec@wo ld] You might use Tk->Canvas
+ 19124 [ronjeffries@] Thanks, just what I needed. Just one more thing ...
  19138 [Dave@Pr gm t] I believe it's looping: it posts an event to have itself rescheduled,