8611-9708 subjects 9023-9760

8778 [aotto2@my de] after Mirosoft create .NET , it's time to answer

Also: Internet C++
8792 [patrickdloga] Another .net competitor could be based on Internet C++.

8796 [patrickdloga] The CO-process does not seem to support multiple languages in the same OS
8832 [aotto2@my de] OS
8876 [patrickdloga] I was thinking more of IPC time than memory use.
8904 [aotto2@my de] heavyweight.

Dynamic Flash movies from Ruby
8808 [Dave@Pr gm t] Macromedia's Flash format is everywhere on the web. Uses range from
+ 8823 [patrickdloga] I think I recall that Squeak Smalltalk (open source) has implemented support
+ 8825 [moriq.kazuhi] require 'swf'
| 8830 [moriq.kazuhi] results..
| 8833 [schneik@us i] # in message news:m2snmuvgrr.fsf@zip.local.thomases.com...
+ 8837 [feldt@ce ch ] Cool.
| 8843 [chadfowler@y] This is a very interesting comment.  Can you expand on
| 8871 [Dave@Pr gm t] The latter is what I meant
| 8880 [aleksi.nieme] Just to note there's already something useful (kind of) done with
| 8894 [schneik@us i] #
+ 8860 [hal9000@hy e] IANAWD either, but I tend to agree...

Protocol for adding package to application archive
8809 [gmiller@ek o] I'm fairly new to ruby (about 2 weeks) but I have been completely

Re: Any ideas about a Ruby version of the Perl Mongers?
8812 [schneik@us i] AFAIK, no. However, there was some recent discussion of maybe doing a Ruby

class Version (was: No :<, :>, etc. methods for Array)
8813 [yashi@ya hi ] I realized the other day, when I tried to create class Version, that
8816 [Dave@Pr gm t] Not better, but perhaps additional.
+ 8821 [ben_tilly@ho] To a big extent with versioning it is better to be consistent
+ 8850 [hgs@dm .a .u] I think it would be useful to have "and possibly earlier", as well.
+ 8853 [hipster@xs a] It might be more intuitive to use the operator-less notation to denote

Debug with threads?
8814 [is.r@co .i -] I debug ruby program with thread.
8818 [yashi@ya hi ] if you don't join the thread, it dies silently.
8862 [aleksi.nieme] Let me add that it might be beneficial to take control of the error handling
8865 [nahi@ke na t] You can use catchpoint.

setting up mode ruby
8817 [ tie@ac .o g] Just got Dave and Andy's book, want to try it out. I know I should use
8819 [Dave@Pr gm t] Put the ruby-mode.el file in a directory that's searched by xemacs. I

Sandbox (again)
8829 [wys@he bl ng] I have seen Robert's post from Nov 13th and I would like to re-start this
+ 8864 [c.hintze@gm ] sandbox.execute("p %x(ls -l /)")
| + 8868 [nahi@ke na t] Though I did not follow this thread(sorry), why don't
| + 9003 [wys@he bl ng] Sorry it took so long, but I only find time in the evenings to work on
| | 9006 [matz@ze ab t] How about level 4, which makes eval available again.
| + 9017 [decoux@mo lo] Perhaps there are very good reasons to run it with $SAFE >= 3
| + 9029 [wys@he bl ng] As expected, there still seem to be (quite a lot) *securityholes* around!
| | + 9043 [matz@ze ab t] Allowing eval at level 3?  Hmm, I thought it was pretty dangerous.
| | + 9045 [decoux@mo lo] eval "exit", no ?
| | | 9055 [matz@ze ab t] Yes, this might be a problem.  But even if this is a problem, it can
| | + 9110 [wys@he bl ng] looks like (once again) a ruby-talk answer didn't make its way into clr.
| | | + 9132 [matz@ze ab t] $defout may help you.
| | | + 9142 [decoux@mo lo] He can have a surprise with #p, no ?
| | | + 9143 [decoux@mo lo] I've not seen that this was modified in 1.7, sorry
| | + 9141 [decoux@mo lo] The superclass of A is Object, not Context
| + 9039 [decoux@mo lo] Try
+ 8884 [matz@ze ab t] Well, there are e.g.
  8892 [c.hintze@gm ] It seems so! Perhaps this matter of fact is worth an entry in the
  + 8893 [Dave@Pr gm t] Can be used as bait.
  + 8895 [hal9000@hy e] In fact, if Samuel Clemens were alive today, he would

"Catching" output from eval-call
8834 [wys@he bl ng] is there a possibility to catch all print's, put's etc. which are

'irb --readline' fails
8842 [skeeler@si i] Any idea why this happens?
8848 [decoux@mo lo] Verify that the extension readline is built when you compile ruby. See in
+ 8905 [skeeler@si i] When I run 'irb --readline' or even just 'irb' from the dir you mention,
+ 8907 [decoux@mo lo] Where is installed readline.so ?
  8909 [skeeler@si i] Guy,

problems with mkmf.rb
8844 [bombadil@wa ] Have any of you experienced problems with mkmf.rb of ruby 1.6.2?...
8847 [fukusima@go ] Could you show me the whole output of extconf.rb?
8852 [bombadil@wa ] # ruby extconf.rb
+ 8877 [fukusima@go ] Some change in mkmf.rb causes the problem as you guessed.
| 8889 [bombadil@wa ] Thanks!, it works well.
+ 8885 [kjana@os xa ] You can get more information with `-d' eg. `ruby -d extconf.rb'.

About string return from IO::gets
8846 [is.r@co .i -] How to limit string which return from IO::gets max length ?
+ 8866 [ms@ia ta e. ] inp = gets[0,length]
+ 8872 [Dave@Pr gm t] You could use #read instead
+ 8873 [gotoken@ma h] Do you really need reading a *line*?  IO#gets is a line-oriented
  8874 [aleksi.nieme] Um, I might be mistaken here, but isn't IO.gets a notation for a IO's class
  + 8875 [decoux@mo lo] [ruby-talk:01704]
  + 8881 [is.r@co .i -] I'm a ruby newbie. I use ruby to write network daemon,
    8882 [gotoken@ma h] The point is the reason.  If you would like to limit the

processor time questions
8863 [mbrace@ho .r] I am quite new to the ruby community, having discovered it by accident on my
8957 [matju@ca .o ] tremendous boost in performance. I posted the final version of it in

good container?
8878 [gotoken@ma h] I see what you say just now.  Thank you Christoph.  Well, such
8886 [crippel@pr m] This seems like a pragmatic and probably best course of action.

Simple binary install for Ruby/GTK under MS Windows?
8900 [sent@qu li y] I feel really dense, but I can't find a simple
8903 [tammo.freese] A couple of the examples work on my machine.


define_finalizer in initialize?
8914 [is.r@co .i -] See follow codes
8915 [decoux@mo lo] Which version of ruby ?

Hash#index !==> Hash#indexes
8916 [aleksi.nieme] After I've learned Hash#index I'd expect I'm able to guess correctly what
+ 8919 [decoux@mo lo] Hash#index return the key corresponding to obj
+ 8920 [dblack@ca dl] #indexes, confusingly (I think), gathers values, whereas #index finds a
  8921 [aleksi.nieme] Guy, yes, I know that. I was pointing the difference
  8922 [decoux@mo lo] I've no problem with this :-)
  8923 [decoux@mo lo] A small precision : bdb do the same thing :-)
  8973 [sent@qu li y] I agree that this is a big surprise. I would love

Genetic Programming in Ruby
8928 [aleksi.nieme] During the last year there were some discussions where Ruby has been used
+ 8930 [feldt@ce ch ] (Limited technical substance in my mail below so beware ;-). Some
+ 8932 [hgs@dm .a .u] May I suggest that these are automaticcally generated for all lists, in
  8958 [schneik@us i] # Thanks a lot to the Ruby community for making this all possible. I'm

String confusion
8931 [ndrsbngtssn@] I just ran into a problem with Strings that really confuses me.
+ 8934 [thucdat@ho m] Ruby 1.4x behaves like what you expected.
| 8935 [decoux@mo lo] Perhaps a bug ?
+ 8937 [matz@ze ab t] It's a bug.  Here's the patch.  Thank you.
  + 8938 [aleksi.nieme] My mail program measured this one to be 42 minutes (you see, it's The
  + 8939 [dblack@ca dl] Matz, while you're here and we're talking about rb_str_modify...
  | 8941 [matz@ze ab t] Well, I made every functions static unless they are referred from
  | + 8942 [decoux@mo lo] grep -c rb_str_modify *.c | grep -v 0
  | | 8945 [dblack@ca dl] Yes... but it came to my attention when I was trying to write a bang
  | + 8947 [dblack@ca dl] OK -- see my answer to Guy (are *all* time zones in the world awake
  |   8948 [decoux@mo lo] rb_ary_delete_at(ary, RARRAY(ary)->len);
  + 8940 [feldt@ce ch ] Dave&Andy: Would Rubicon have caught this? How complete is it?
  | + 8950 [Dave@Pr gm t] Not complete enough, obviously ;-)
  | | + 8955 [elderburn@mi] Actually, in my naive opinion, this is a wondrous idea, provided enough people
  | | + 9135 [steve@de f. ] Include it with Ruby source and let people run it with "make test"?
  | + 8969 [crippel@pr m] On a somewhat related matter. When running Rubicon on ``cygwin-NT''
  |   8970 [Dave@Pr gm t] Great advice. Thanks.
  + 8946 [hgs@dm .a .u] It is nice to get a fast response like that.  I'd like to ask
  | 8988 [matz@ze ab t] I'm not sure.  But we've found some serious bugs (like String#reverse!
  | 9027 [hgs@dm .a .u] Thank you.
  | 9044 [matz@ze ab t] How about making stable snapshot system too?  It's pretty easy for me.
  | 9046 [hgs@dm .a .u] Yes, that is what I mean.  The nightly snapshot says it is not (very)
  | + 9089 [matz@ze ab t] What do you think is the best name for the "stable snapshot"?
  | | 9126 [hgs@dm .a .u] I think "stable snapshot" would be fine.  I'm just asking for clarity
  | + 9111 [dsafari@pa a] Hmm....sounds like a model similar to what Debian follows with their stable,
  |   9116 [schneik@us i] Matz, the Magnificent Manufacturer of Masterpieces with the Monosyllabic
  + 8952 [ndrsbngtssn@] Thank you very much!
    + 8954 [aleksi.nieme] I just tested with latest 1.7.0 and Rubicon 0.1.4. I'm pretty sure this one
    | 8956 [ndrsbngtssn@] I now found a way to reproduce this particular bug without really
    + 8978 [matz@ze ab t] If I recall correctly, the record is somewhere around 7 minutes. ;-)

Re: CVS repository
8944 [aleksi.nieme] In the mean time I'd like to note you can see the sources at CVS at
9307 [knu@iD em ns] Thanks for introducing that site to everyone.  In fact I've been

Please remove account from files
8953 [westernporte] ...
8983 [rubinubi@cy ] Ruby *is* right for what I do (play with & learn Ruby) but I have to agree

re: sockaddr
8959 [erne@po er a] Does anyone know where I can find an example of building a sockaddr
8960 [Dave@Pr gm t] Have a look at ruby-talk:8634. Basically it looks like
8966 [erne@po er a] Thanks,

cgi.rb and fastcgi?
8961 [bhilton@vp p] I am trying to use ruby 1.6.2 in a persistent cgi setup with fastcgi, and am

GULP (working title :-) related thoughts
8964 [dblack@ca dl] Quite a busy Ruby Tuesday today.  I wanted to add to it a few thoughts
8965 [Dave@Pr gm t] Great post.
+ 8971 [schneik@us i] #
| 8980 [ben_tilly@ho] Warning.  Generating good raw material tends to be fairly
+ 9005 [hipster@xs a] I would be nice to introduce keywords to go along with each snippet in
  9066 [tuinstra@cl ] This sounds like a good idea.  Something that would help in
  9159 [schneik@us i] # I'm new to Ruby, and just starting the Pickaxe book [after which
  + 9160 [brian@co ln ] Wow.  That's great.  I shall now refer to it as "the Ruby Rocks book"
  | 9192 [hgs@dm .a .u] Which won't cause a problem until Wrox publish a book on Ruby...
  + 9165 [Dave@Pr gm t] groan.
  + 9167 [dblack@ca dl] Hey, yeah, that's subliminal advertising!  So *that's* why I couldn't
    9216 [gotoken@ma h] In my mind, I call the book `Ore book'.
    9224 [schneik@us i] # In message "[ruby-talk:9167] Re: GULP (working title :-) related

Benchmark is updated
8968 [gotoken@ma h] I've added bmbm to Benchmark module.

Database access with ADO
8972 [dnaseby@af i] I am a Ruby newbie, drawn to the language by the DDJ article. I'm about to
8974 [erne@po er a] I don't know if 1.6.1 has a bug that's been fixed in 1.6.2 but I have used
+ 8976 [dnaseby@af i] Thanks for the quick response, but I tried this code
| + 8981 [crippel@pr m] I successfully run the Excel's examples with 1.6.2 - however
| + 8990 [nick@jo dr g] Not sure if this will help, but try to include both the provider and the DB
| + 9037 [wys@he bl ng] I had COM-problems with 1.6.1 which disappeared in 1.6.2.
|   9079 [dnaseby@af i] This worked perfectly. Many thanks.
+ 9040 [erne@po er a] In order to use a DSN name, you must first set it up in the control panel

ruby-mode and '+'
8987 [aseltine@ro ] Is there a way to get ruby-mode to refrain from indenting the next line
9060 [joeyGibson@m] print %x{ping #{host}}

Ranges inside brackets for arrays
8989 [hal9000@hy e] I'm just now getting around to asking this.
8993 [matz@ze ab t] * A range enumeration cannot go back, it's upward only.
8994 [hal9000@hy e] As the Zen stories say: "The student was then enlightened."

Why File::Stat?
8991 [hal9000@hy e] I'm assuming that Stat is embedded inside File just
8995 [matz@ze ab t] No.  I'd like to reserve Stat for statistic people.

Methods in FileTest
8992 [hal9000@hy e] I've noticed that the FileTest methods can test
8996 [matz@ze ab t] We both have size and size?; the latter returns nil for zero sized
8997 [hal9000@hy e] Yes, I do understand that... I am only trying to understand why
9000 [matz@ze ab t] Well, the only reason is I could live without them.  Propose methods

Re: 1.6.2 on NETWINDER
8998 [matju@ca .o ] I am _not_ compiling for Alpha. However Hal was compiling for Alpha and I
8999 [hal9000@hy e] another Hal here?
9014 [matju@ca .o ] Sorry, was Hugh. Both start with an H. =)

Help: Problem with accessing C extension methods
9001 [mulperi@ik .] I have a following problem when I trying to do a very simple
9007 [matz@ze ab t] You are returning class Foo from Foo.new here.

SV: Genetic Programming in Ruby
9002 [rhq093s@tn n] I'm totally new to ruby. How do I install the library if I use The Pragmatic

using RUnit's setup and teardown methods
9008 [wlkleb@my de] can someone show me how to use (or explain to me when i should use)
9011 [Dave@Pr gm t] You could just use instance variables with setup
9024 [feldt@ce ch ] I think I read somewhere that there is a good reason why a unit testing
9227 [CQN02273@ni ] I don't know the reason why testing framework shouldn't

running ruby on an emacs buffer
9009 [w.l.kleb@la ] i am an emacs-using-addict, i admit it; and so,
9010 [Dave@Pr gm t] Have you had a look at inf-ruby (also in the misc directory)? It takes

Posting to RAA
9012 [harryo@zi wo] I have a couple of things I'd like to have added to RAA, but couldn't
9019 [decoux@mo lo] You have a link "add new entry" in the page
9028 [harryo@zi wo] Thanks for pointing that out!  Obviously, I was blinded by the content

time to divide -talk? (was: Please remove account from files)
9020 [yashi@ya hi ] well, i kinda agree.  these days (after Dr. Dobb's article?) -talk has
+ 9022 [dsafari@pa a] My full agreement with this.
+ 9041 [matz@ze ab t] Counterpart to ruby-dev (Japanese one), right?
| 9047 [aleksi.nieme] I'll vote for it.
| 9049 [yashi@ya hi ] yup.
| + 9050 [crouton@we t] How do you think about re-organizing all the ruby-* list names?
| + 9051 [rubinubi@cy ] I brought this up in the first place to find out if there were people who
| | 9052 [dblack@ca dl] Isn't that what Usenet is for?  Ummm, I don't mean stupid questions,
| + 9053 [Dave@Pr gm t] If we split the list, what happens to the newsgroup. Does it just
|   + 9056 [aleksi.nieme] I'd go for only ruby-talk mirroring.
|   + 9062 [matz@ze ab t] In that case, developer's list will not be mirrored to comp.lang.ruby.
|   | 9074 [gotoken@ma h] I prefer this plan.
|   | 9075 [Dave@Pr gm t] ruby-clubie  ;-?
|   | 9077 [gotoken@ma h] No. Because Japanese can't pronounce differently ruby and lubie :p
|   + 9112 [dsafari@pa a] List only for me. I would much rather get the information pushed onto me
|   + 9239 [elderburn@mi] FWIW as a Ruby beginner (which I presume includes most of us east of the
+ 9058 [dblack@ca dl] I'm thrilled -- what's everyone's problem?  :-)
  + 9059 [aleksi.nieme] The great thing is that there's already such place. It's called IRC where
  | 9061 [ben_tilly@ho] Some of the people who feel as you do may not have posted
  + 9064 [tuinstra@cl ] I can't compare the "before DDA" days to now, as I'm one of those
  | 9068 [brian@co ln ] I have to disagree here.  That little "[ruby-talk:XXXX]" thing has already
  | + 9069 [schneik@us i] #
  | | + 9070 [schneik@us i] who
  | | | 9095 [jcusickc@ho ] Thank You, Conrad,
  | | | 9103 [matju@ca .o ] Let's split the list when it gets 1000 messages in 7 days. I think that is
  | | | 9137 [dblack@ca dl] As long as it's 1000 messages that aren't about splitting the list :-)
  | | + 9115 [danny@so er ] i'm very new to ruby and to this group (or mailing list, for some you). when
  | |   9145 [RichardASchu] Agreed. That's exactly what I did when I began to get too
  | |   9147 [ps@ra ia .m ] as should any decent mail reader, as long as people don't missbehave.
  | + 9072 [tuinstra@cl ] OK, I wasn't being clear.  Having "[ruby-talk]" in subject headers
  | + 9090 [matz@ze ab t] Could you explain it more concretely, preferably with examples?
  |   9092 [brian@co ln ] I can try - let's hope all of my brain cells are cooperating today.
  + 9065 [ps@ra ia .m ] Why not make english the language of existing ruby-*
  | 9119 [nahi@ke na t] Sad to say, yes.
  + 9067 [decoux@mo lo] Just learn japanese.