38363-39452 subjects 38772-43039

New features in 1.7
38582 [martindemell] Is there a list somewhere of all the new features introduced in the 1.7
38594 [matz@ru y- a] See doc/NEWS file in the source.
38689 [martindemell] Thanks.

[ANN] Ruby-Poll-0.01
38585 [ged@Fa ri MU] This is to announce the release of Ruby-Poll, an object-oriented
+ 38588 [tobiasreif@p] While I didn't like all the green at first, I'm imrpessed with your
| + 38589 [ged@Fa ri MU] It actually requires a bit more than just template changes to RDoc, but I'll
| | 38590 [tobiasreif@p] (I thought so :| )
| | 38601 [curt@hi bs c] I second that! I would love to see this in RDoc.
| + 38636 [jean_hugues_] Two questions.
|   38647 [ged@Fa ri MU] I'm no expert, so take this for what it's worth. I personally prefer poll()
|   38683 [jean_hugues_] I like the idea of encapsulating poll(). I would like the same idea applied
|   38814 [ged@Fa ri MU] I'll try to do something like this for the next release. Perl's IO::Poll does
+ 39621 [nconway@kl m] Very cool project.

Experimental language jtpl
38587 [j.travnik@sh] this might (or might not) be useful to ruby developers
38606 [elanthis@aw ] But those are the most fun languages to hack on.  ^,^
38631 [j.travnik@sh] yes :-)
38632 [j.travnik@sh] Sorry,
38638 [elanthis@aw ] I might just be an idiot (might? everyone asks), but I don't exactly see
38669 [j.travnik@sh] To understand it better look at it in ruby.

GC problem in C++ extension
38592 [pbrannan@at ] #include <string>
+ 38597 [pbrannan@at ] Ouch, I should proofread before I post.  The correct change to make to
| 38602 [nobu.nokada@] It's not predictable when an object will be gargage-collected.
| 38605 [pbrannan@at ] The problem is that I need to test to make sure that my code works, by
+ 38617 [matz@ru y- a] Unfortunately, GC timing is not controllable, even if you call
  38646 [pbrannan@at ] VALUE obj;
  38650 [decoux@mo lo] pigeon% cat uu.cc

Fixnum to_c
38599 [ralph.mason@] I know there must be a more elegant way to conver from a fixnum to a
+ 38600 [usa@os .a t.] Fixnum#chr mey help you.
+ 38609 [vinfoley@iq ] Why don't you use Integer#chr?

RE: article about testers using Ruby.
38608 [robert.calco] ...
38729 [marick@vi ib] ...
38768 [robert.calco] ...
38801 [marick@vi ib] ...

Ruby Servlet Libraries?
38610 [bcox@vi tu l] What are people's experiences with Servlets vs CGI in Ruby? What
38626 [sean@ch tt n] Ehh...  as soon as I give Jim a shout and we get some pair programming
38637 [bcox@vi tu l] You bet I'm interested. If you could send me what you have now, I
39035 [sean@ch tt n] Almost done with ruby-session and it's integration with ruby-tmpl

ANN: TaskMaster 0.1.2
38622 [ptkwt@sh ll ] TaskMaster is an object-oriented framework that makes it easy to

[ANNOUNCE] Imlib2-Ruby 0.4.0
38627 [pabs@pa lo r] I just posted Imlib2-Ruby version 0.4.0, my Ruby bindings for Imlib2
+ 38769 [phlip_cpp@ya] anywhere for the Imlib2 source?
| 38812 [pabs@pa lo r] I mention that in the README.  The version of Imlib2 I have installed is
| 39149 [xlucid@us rs] <rant apology="yes" excuse="Sorry, but its touched a raw
| 39216 [pabs@pa lo r] Imlib2 1.0.5 or newer (it should link against 1.0.4 as well).  There is
+ 38771 [phlip_cpp@ya] Below my sig is a Ruby script that is attempting to convert a color PNG to

Ruby crash when drawing an Icon in FXDCWindow
38628 [dmg@tr gs te] an strange behaviour of FXDCWindow::drawIcon is happenning. Ruby
38640 [lyle@kn lo y] Without any more information, I have the feeling that you have constructed a
38719 [dmg@tr gs te] Yes, that works.

Replacing groups of methods: How would *you* do this?
38633 [hal9000@hy e] Question for you.
+ 38641 [dblack@ca dl] Could you do conditional execution?
| 38651 [hal9000@hy e] I could, but I dislike if-statements that
| 38653 [dblack@ca dl] class Thing
+ 38642 [ronjeffries@] Why not the Strategy pattern?
| 38652 [hal9000@hy e] I don't know that one, but I'll look it up...
+ 38687 [martindemell] How about using alias to swap in and out sets of methods, rather than

Threads creating threads creating threads...
38635 [tpeters@un -] I have already asked this question in [ruby-talk:19661], but I will ask it
38692 [tpeters@un -] My previous posting was not clear enough, I'll try to enhance it.
38731 [matt@li ke .] Ideally, your program would run forever.
38736 [jean_hugues_] Isn't it rather the block that refers to the stack, rather than the thread
+ 38774 [t-peters@gm ] No. I've already used a method for thread creation instead of a block in
| 38791 [jean_hugues_] about C's setjmp()/longjmp() to switch context. Question: How do you set up
| 38820 [cputney@wh s] Matz,
| 38851 [jean_hugues_] Interesting article. However they rely on some sigaltstack() unix specific
+ 38783 [matz@ru y- a] Hmm, I thought this behavior requires the knowledge about internal of
  38792 [jean_hugues_] No intimate knowledge of structure of jmpbuf is necessary at all, it is
  38793 [matz@ru y- a] I'm well prepared though debugging Ruby's user thread code. ;-)
  38794 [jean_hugues_] Yes. You got it.

object question
38643 [roy@mi ic n.] Greetings,
+ 38649 [pete@mc re n] Roy J. Milican asked
+ 38656 [mwg@fl ff .i] Object returns object, i.e. reference to itself, or 'self'. Object.id

[OT] Re: [ANN] Ruby-Poll-0.01
38644 [tobiasreif@p] It works in IE6 and NN6; perhaps you want to see if it's worth filing a
38682 [jean_hugues_] I just did. I would not hold my breath however.

38645 [cibo16@em al] ...

Ruby golf (FFT)  Was: Freshmeat article about Ruby
38648 [szegedy@no p] (The function fft modifies the vals array in place.
+ 38655 [pit@ca it in] On 20 Apr 2002, at 0:09, Christian Szegedy started the golf game
| 38665 [nat.pryce@b1] Sounds like we need a suite of unit tests for the FFT function.
| + 38676 [szegedy@t- n] Now, I have learned something, I did not know that Integer#times
| + 38679 [szegedy@t- n] I think that the other parts of the two implementations (fft vs. sft)
+ 38657 [dblack@ca dl] I highly recommend including the following disclaimer in every
  + 38659 [alan@di ik t] Heh, maybe we should write a unit test so that we can golf faster ;)
  | 38664 [pate@ey er a] Does it make sense to try to find a non-golf metaphor for a ruby coding
  | 38667 [dblack@ca dl] Funny you should ask.  Last year we *almost* had a sort of
  + 38661 [szegedy@no p] You are completely right. I tested my code with the following function
  + 38662 [szegedy@no p] I haven't reduced the code size everywhere. I tried to maintain
  | 38666 [dblack@ca dl] Ah, OK, that's cool, but it's not golf :-)
  | 38668 [pate@ey er a] Ruby Figure Skating ;)
  | + 38670 [michael_s_ca] Ruby chess?
  | + 38688 [dblack@ca dl] I love it!  Only we have to watch out for corrupt judges :-)
  + 38663 [pbrannan@at ] s, j=2**n, 0

String to method name
38654 [switch@at ot] I feel like I have a learning disability asking this, but what I am
38660 [decoux@mo lo] Well, it depend what you want to do but
+ 38672 [switch@at ot] Now, that's good 2/3 of it, (1/3 was easy "Mojo Jojo" == badGuy), but,
| 38673 [decoux@mo lo] You have not given enough information. Imagine this example
| 38678 [switch@at ot] I realize that, but I'm not going to do any changing.  The gist of what
| 38684 [lyle@kn lo y] It sounds like you're just talking about a Hash object (SenslessNames) whose
| 38693 [switch@at ot] Thanks a lot... it does help, a little.  The problem is, I am trying to
| 38699 [lyle@kn lo y] line.scan(/^(\S+)\s(\S+)\s(.*)$/).flatten
+ 38680 [switch@at ot] First of all, that last post made no sense (all the text I typed

readline with no echo?
38658 [probertm@no ] Is this possible to do easily?  I don't need
38674 [j.travnik@sh] On Linux and other unices it can be done using curses
+ 38675 [probertm@no ] Thank you.
+ 38686 [tsiivola@cc ] ...

Fw: http://www.rubyconf.com/
38671 [webmaster@ru] You may have spent much on lots of ways to achieve=20these - search engine registrations, website=20promotions, press release, email sending?- Here=20Traffic BBS presents you a unique method economically=20and professionally converting a PC into personal=20message distribution center=21 Traffic BBS assists you=20to post your message or ad to over 1,200,000+ message=20boards on the web worldwide. Along with a hyperlink=20to your website or email address, a message of your=20business, product, service or offer will be promptly=20submitted to targeted bulletin boards. You can expect=20instant response=21=20
38677 [jjenning@st ] sly.

[Patch] Various cleanups
38681 [m.rokos@sh c] 1) cleanup MACRO in eval 2
38755 [m.rokos@sh c] Maybe it wasn't good idea to state only URL for d/l them.

ms-dos calls on Windows?  and/or, getting working directory?
38690 [brian@dl or ] foo = `pwd`
+ 38691 [vmreyes@us i] The following works for me under windows/2000 dos shell.
+ 38695 [lyle@kn lo y] Dir.getwd

Ruby on .NET?
38694 [ronjeffries@] I scanned the .net threads here and didn't see whether there is, or is not, an
38696 [repeater@lu ] hmm. i'm interested to see how dotnet will influence the interpreted style
+ 38697 [ralph.mason@] I have been thinking about this a little lately because I am wanting to
| 38702 [Reply.To.The] (Paraphrasing)- The designer of Java: "...I made Java a lot like C++ because
| + 38703 [elanthis@aw ] I'm sure this could degenerate into another flame fest, so I'm going to
| | 38705 [tobiasreif@p] I must misunderstand you, but if Ruby offers no advantage over C#, why
| | 38709 [elanthis@aw ] Ruby does offer advantages, just not in the areas C# is strong.  For
| | + 38712 [sma@3p us .d] "Sean Middleditch" <elanthis@awesomeplay.com> schrieb
| | | + 38737 [jean_hugues_] I tend to think that Ruby and Smalltalk are very similar (at least at the
| | | + 38748 [elanthis@aw ] For you and everyone else interested in this thread, I highly suggest
| | + 38725 [ptkwt@sh ll ] Why not?  The Parrot VM has JIT and we're planning a Ruby frontend to
| + 38707 [nat.pryce@b1] do this
| | 38708 [tobiasreif@p] How would you say Ruby is compared to Smalltalk?
| | + 38711 [sma@3p us .d] "Tobias Reif" <tobiasreif@pinkjuice.com> schrieb
| | + 38746 [nat.pryce@b1] About three quarters :-)
| + 38838 [cjh_nospam@m] You're quite wrong about .NET anyhow. The CLR does not contain an
|   38862 [in6x059@pu l] And they are in an awkward area. MS has stated several times, that
|   38904 [cjh_nospam@m] OTOH MS have explicitly said that they expect others to create CLRs
+ 39161 [james@ru yx ] I tried to build this using Mono (on Linux), Rotor (on FreeBSD), and the MS

Re: Undelivered Mail Returned to Sender
38698 [sosoruby@em ] I'm new both to ruby and xemacs(emacs), I used xemacs with ruby-mode.el and
38744 [dennisn@pe n] I don't use xemacs myself, so can't commemnt much on the "features"
38745 [tom.hurst@cl] might be a good idea too.  Although personally I think using spaces for

ruby-mode.el and xemacs
38700 [sosoruby@em ] I'm new both to ruby and xemacs(emacs), I used xemacs with ruby-mode.el and

indentation in ruby-mode
38701 [alan@di ik t] (defun my-ruby-setup ()
38716 [sosoruby@em ] thanx

Cardinal project page on Savannah
38704 [ptkwt@sh ll ] I started a Cardinal project page at Savannah.  Those who are interested
+ 38718 [pate@ey er a] That's great, thanks for taking this and running with it.  I'll see you
+ 39156 [xlucid@us rs] I checked out the URL.  It said 'The purpose of the Cardinal
  + 39157 [pate@ey er a] Parrot is the VM for Perl6.  It is being designed with other languages
  | 39190 [chris@cm -e ] <Pine.LNX.4.30.0204262006200.27561-100000@bigfun.whirlycott.com>,
  + 39162 [ptkwt@ar cn ] Parrot is the Virtual Machine being developed for Perl6.  The Parrot folks

[Patch] proper lib handling for mkmf.rb
38710 [m.rokos@sh c] during installing my exts to ruby-1.7.x I noticed that *.rb
38717 [matz@ru y- a] Thank you.

Advice on Memory Related Performance Tuning
38714 [hutch@re ur ] I'm working on performance tuning a class I've written. I've been using the
39639 [ser@ge ma e-] Array.pack() and String.unpack().
39644 [hutch@re ur ] Thanks. This came up in another thread (I asked a couple of these questions

String sentinels
38715 [hutch@re ur ] I was looking through the source for String and noticed that there is a
38789 [matz@ru y- a] All string operations are depend on len field.  But in some cases, ptr
38800 [hutch@re ur ] Thanks, I shouldn't have a problem then.

38720 [ djh@ma .c m] ...

38726 [ djh@ma .c m] ...

Q: Possible Palm OS port?
38727 [hal9000@hy e] Question for you. (More a matter of curiosity than
+ 38728 [ruby@th rs e] Good to hear; since this is my first mail to this list, you better
+ 38760 [r2d2@ac .u u] I have done my share of programming for PalmOS. I don't think it would

RE: Possible Palm OS port?
38730 [bill@32 68 c] I've worked with an interpreted, dynamic language embedded in a large
38734 [iktindale@nu] Apropos of nothing, there's also a Forth for Palm -
38868 [mwg@fl ff .i] Quite functional Forth was available even for CP/M-80, so no surprise

a newbie about local variables
38732 [engard@al .h] First of all, I greet everybody on the list as this is my first post
38758 [decoux@mo lo] See [ruby-talk:889] http://www.ruby-talk.org/889

Threading the Ruby environment
38733 [jemhoff@st d] Hey hey!

RE: crypting ruby source
38735 [pbrengard@bc] ...

38738 [renatoalvim@] []'s

problem with alias
38739 [gnhurst@hu s] I just discovered a problem with how alias works while
+ 38750 [hal9000@hy e] [snip example]
| 38751 [gnhurst@hu s] Did you try both these workarounds? I already tried
| + 38759 [decoux@mo lo] gsub!(/(defined\?)\s+(\w+)/, 'method_\\1 :\\2') # :-)
| + 38773 [hal9000@hy e] Oh, sorry.
+ 38762 [dblack@ca dl] I'm not sure the concept of an "original" definition is an exact fit
  38763 [decoux@mo lo] This is why some stupid module give an error :-)

A few ideas/suggestions
38740 [brailsmt@ya ] I have had a few ideas about some new features.  Before I submit an RCR
+ 38741 [vinfoley@iq ] if $0 == __FILE__ then
| 38749 [bluetea@nc r] That is what I thought the poster was talking about as well. I
| 38780 [tsiivola@cc ] Like this?
+ 38764 [tobiasreif@p] I think so too.
  38765 [dblack@ca dl] I don't think the fact that String#[] can take a regex argument is a

blocks vs. Procs, closures as objects?
38747 [foo@ba .n ll] what follows is not a criticism or even a suggestion... i'm just
+ 38761 [bri@te ta le] sorry, i didn't mean to be foo@bar.null.  :-/
+ 38784 [matz@ru y- a] A block is not.  a Proc object is.  You can get a Proc by

Ruby Weekly News
38752 [Dave@Pr gm t] Ruby Weekly News: 04/21/2002

[Patch] Make -Wall compilation happier
38753 [m.rokos@sh c] this patch is for making -Wall compilation more calm.

[Patch-feature] IRB completion support
38754 [m.rokos@sh c] this patch is rather questionable: it enables completion support

[Patch] Make -Wall compilation happier 2
38756 [m.rokos@sh c] #2 of calming cure for -Wall compilation.

[Patch] clenup MACRO in eval.c 2
38757 [m.rokos@sh c] this patch adresses further MACROS in eval.c cleanup.

Novice: Each and p
38766 [ruby@th rs e] From the mails I got in the last days, this it seems to be about
38767 [armin@ap ro ] judging from the email address you might
38775 [ruby@th rs e] Moin,
+ 38776 [ms@ia ta e. ] Thorsten, do you see where you've got a curly brace matched with an
+ 38777 [    s@xs .d ] This proves that 20 eyes see more than the 18 (presumably) which
  + 38778 [ruby@th rs e] Do you need my KtoNr. and BLZ?
  + 38779 [dblack@ca dl] I think you mean "do", not "begin".
    38810 [    s@xs .d ] of course ...

newbie embedding
38770 [bigjim16@bt ] I only recently found out about ruby and I'm interested in embedding the
38795 [decoux@mo lo] For example, in ruby you write
+ 38811 [bigjim16@bt ] ok....that all makes sense, but when I write the following test ruby
| 38815 [decoux@mo lo] 1) rb_load_file() compile the file but don't execute the nodes
| 38816 [bigjim16@bt ] ahh right, I understand that now...but it still crashes on the rb_const_get
| + 38853 [decoux@mo lo] pigeon% grep -w rb_const_get *.h
| | 38882 [bigjim16@bt ] ok, that's not the problem....but the program still crashes on classy =
| | 38883 [decoux@mo lo] Can you try with a well known class, for example
| | 38897 [bigjim16@bt ] ok.....rb_const_get(rb_cObject, rb_intern("Array")); fails in exactly the
| + 38888 [eban@os ri .] -DNT
+ 38813 [bigjim16@bt ] oh yeah and also....rb_const_get isn't defined in my ruby.h header which