68816-72666 subjects 69249-69933

whats new in 1.8?
69031 [dave@he e. o] I upgraded to 1.8 but couldnt find anything documentiing new features. I
+ 69032 [bruce@co ed ] You might want to check out: http://www.rubygarden.org/ruby?ProgrammingRubyTwo
+ 69033 [ahoward@fs .] the docs for the shim helped me - search for shim on the RAA

TCPServer#accept blocking in Windows
69038 [pmak@aa ni e] require 'socket'
69058 [nobu.nokada@] It's one of restrictions on Windows version.  Because interrupt

Re: embedding ruby with swig
69040 [emilie3012@n] Thanks for reply - i looked at your tgz last night (as well as vim and
+ 69045 [0bz63fz3m1qt] bootstrapping.. I choose a bad word for this :-)
+ 69049 [0bz63fz3m1qt] I think its overkill to have your own freefunc when SWIG
| 69050 [0bz63fz3m1qt] Damn.. I am wrong here.. sorry
+ 69051 [0bz63fz3m1qt] Move your variable-declaration down to where they are
  + 69090 [emilie3012@n] Thanks for the reply - sorry if I kept you up!
  | 69097 [0bz63fz3m1qt] The hardest part of my day is when I have to move myself from
  + 69101 [emilie3012@n] My previous post has not appeared yet but I have a better solution
    69133 [0bz63fz3m1qt] Agree :-)
    69324 [emilie3012@n] This got garbled in post - I just tried to follow through from

Un-gzip'd gzip files (Was: Re: ANN: ri v1.8)
69052 [drbrain@se m] Mozilla used to have this nasty habit, so did some versions of NS4.x...

69054 [mr_musa3@hk ] Dear Sir,
69056 [dcarrera@ma ] It seems that 90% of the spam at ruby-talk is from Nigerian Generals or
69065 [B.Candler@po] I vote against.
69066 [peter@se an ] As an aside not only would the origonal spam be removed by your rules,
+ 69069 [mike@wy r. r] But those 2 "false positives" were a direct result of the spam. Without
| 69070 [peter@se an ] Licking your own elbow is not easy but it can hardly be called worthwhile.
| + 69071 [nedry@ma l. ] Are you sure about that?  I've met all kinds...
| + 69079 [hal9000@hy e] My cat disagrees.
| | 69084 [peter@se an ] I hate to have to ask this but; Are you sure your cat knows its arse
| | 69115 [hal9000@hy e] worthwhile.
| + 69085 [michael_s_ca] "Nothing worthwhile is ever easy" doesn't imply that all not easy
+ 69074 [jason@jv eg ] If you use the latest version of Mozilla the mail client includes a
  + 69078 [B.Candler@po] And a Bayesian spam filter requires a body of marked 'non-spam' as well as
  | 69128 [damphyr@fr e] Well actually, ruby-talk gets the most spam I've seen in a list
  + 69086 [michael_s_ca] There's a very good bayesian POP proxy on sourceforge; POPfile.  If

Ruby-Gnome2 and thread-safety
69057 [tcfelker@mt ] I'm writing PeerTalk, a TCP LAN chat program.  The connections are

run  a script within...
69063 [offstuff@ao ] I want to run a script within a script.
69068 [bob.news@gm ] "daniel" <offstuff@aon.at> schrieb im Newsbeitrag

Programming Languages Wiki Ruby entry.
69076 [hgs@dm .a .u] has an odd (to my mind) first paragraph
+ 69081 [hal9000@hy e] This does sound strange to me.
+ 69137 [ jupp@gm .d ] Saluton!
  69153 [lkrupp@ps w.] "test before" is the default and could have been omitted.

未承諾広告※ 素敵な出会い
69080 [mido2@yy ne ] <事業者><送信者>

[ANN] DataVision 0.7.7. released
69093 [ jimm@io co ] DataVision 0.7.7 is now available from SourceForge at

Need IO Optimization help
69096 [jim@fr ez .o] We're having a little shoot out here at work with Ruby, Perl and Tcl.
+ 69098 [drbrain@se m] require 'ftools'
+ 69103 [nobu.nokada@] You can use File.cp in ftools.rb or FileUtils.cp in
| 69105 [jim@fr ez .o] I see the syswrite src.sysread(bsize) in copy_stream, but
| 69116 [bob.news@gm ] "Jim Freeze" <jim@freeze.org> schrieb im Newsbeitrag
| 69119 [jim@fr ez .o] Hmm..., that would be a problem since the files are 200MB - 900MB.
| 69121 [jim@fr ez .o] Looks like file.sync => false be default.
+ 69114 [matz@ru y- a] Which version of Ruby are you using?  Can you show us the whole
| 69117 [jim@fr ez .o] ruby -v
| 69120 [djberge@qw s] ############################################################
| + 69123 [jim@fr ez .o] Thanks
| + 69126 [jim@fr ez .o] Below are the results I get from your benchmarks. I added
|   69150 [B.Candler@po] I did some profiling of a very similar program, results posted at
|   + 69152 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
|   | 69156 [jim@fr ez .o] For new scripts what you say is true. But I can't accept the fact
|   | + 69158 [Ruben.Vandeg] I think this really depends on the scripts, what they do and what they're
|   | + 69160 [B.Candler@po] But Ruby has some fundamental disadvantages compared to Perl for this sort
|   |   + 69185 [austin@ha os] I've been thinking about this a bit since the last time the "++"
|   |   | 69199 [B.Candler@po] I guess you'd have to call
|   |   | 69308 [surrender_it] well I suppose his point is that not using Fixnum you can have
|   |   | + 69310 [B.Candler@po] I don't think you'll get anywhere close to where that would make any
|   |   | + 69345 [bob.news@gm ] "gabriele renzi" <surrender_it@remove.yahoo.it> schrieb im Newsbeitrag
|   |   |   69348 [B.Candler@po] There wouldn't be any (noticeable) performance improvement anyway.
|   |   + 69197 [ptkwt@sh ll ] Well, if you'd prefer to use Ruby then putting up with a couple of lines
|   + 69155 [jim@fr ez .o] I did some profiles as well and came to the similar conclusions for these
+ 69581 [dave@la dr t] In my experience, the fastest way to access files (by far) is mmap.
  + 69582 [dave@la dr t] One thing I forgot to copy out of my extension:  After the loop (and
  + 69583 [jim@fr ez .o] [mmap stuff deleted]
    69591 [dave@la dr t] The mmap should be dramatically faster than rb_io_gets for a few
    + 69593 [jim@fr ez .o] We did tests comparing read/write speeds between C and cp
    | + 69594 [decoux@mo lo] Good luck, for this
    | | 69597 [B.Candler@po] I agree completely, because I've run essentially that program (but using
    | | + 69598 [jim@fr ez .o] For a 260MB file, ruby spent 30% of its time in io and
    | | | 69601 [B.Candler@po] I don't think that's a meaningful question, because mmap() doesn't do the
    | | | 69607 [jim@fr ez .o] Yes.
    | | | 69608 [batsman.geo@] I believe that 30% is time spent in kernel mode, doing real IO.
    | | + 69614 [dave@la dr t] I've found that in the real world the speed advantages of using mmap
    | |   69633 [B.Candler@po] When you say your original version used "buffered IO" do you mean it was
    | |   69636 [ahoward@fs .] <snip> the whole lot </snip>
    | |   + 69688 [decoux@mo lo] mmap was written to manage a file like a String object and it's perhaps
    | |   + 69701 [dlandrith@ma] For my application (which consists of converting a delimited ASCII file
    | + 69637 [michael_s_ca] Jim, I may be mis-remembering, but wasn't your original
    |   69642 [jim@fr ez .o] Why would this be cheating?
    |   69655 [michael_s_ca] As I said, I may not understand what you are trying to do.  But if
    |   + 69659 [vangczung@ya] [snipt]
    |   | + 69661 [jim@fr ez .o] Yes, don't forget that all important ROI benchmark. The
    |   | + 69679 [ptkwt@sh ll ] It's not so easy to do in Perl.  It may be that Inline::C would make it
    |   + 69660 [jim@fr ez .o] We use Perl in a business environment. My quest is not an academic
    + 69599 [B.Candler@po] I have the source code for FreeBSD's cp on my machine. If the file is under
      69602 [jim@fr ez .o] Thanks for that info. From the above, I don't think I am going to worry
      69605 [B.Candler@po] Absolutely. But I liked the idea of "beating Perl" as being the underlying
      69612 [jim@fr ez .o] The attached code did not run on Sun for mmap.

Code for random access to compressed IO?
69102 [coma_killen@] Anyone seen some code for compressed IO streams that allow
69384 [pabs@pa lo r] Zlib itself doesn't allow for arbitrary seek.  SEEK_END (aka seeking

changing behavior of literal {:k => :v}
69106 [ahoward@fs .] rubyists-
+ 69110 [decoux@mo lo] When you write this ruby create a node (NODE_HASH), this node is directly
+ 69122 [hal9000@hy e] I once wanted to do this... the conclusion I
  69130 [ahoward@fs .] class methods
  69131 [hal9000@hy e] Hmm. I think it means that the end result is the

Benchmark Warning
69124 [jim@fr ez .o] /ruby-1.8.0/lib/ruby/1.8/benchmark.rb:454: warning: `*' interpreted as argument prefix

FAQ for comp.lang.ruby
69132 [hal9000@me c] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2003-1-7)
69233 [hal9000@hy e] Thanks, Josef...
+ 69247 [damphyr@fr e] Yep, the english way of saying eszet. Now, as far as the umlauts are
+ 69248 [spoon@de la ] For some reason, the mail isn't specifying any content
+ 69253 [Stephan.Kaem] As far as I see, I see the umlauts 糜? etc. But then I didn't see them
  69267 [ jupp@gm .d ] Saluton!

69135 [staff@os ar ] <事業者><送信者> 株式会社 シャレ

soap4r from CVS won't work
69136 [surrender_it] I just downloaded soap4r from cvs.ruby-lang.org, but I've got a little
69138 [surrender_it] ok, done woth the tar.gz from raa, feel free to insult me

ruby help (*.chm)
69139 [offstuff@ao ] I'v seen a Ruby-Documentation as a windows help file

69140 [xrfang@ho ma] My company is doing anti-spam business. Our product is based on Bayesian

Re: parsing ENV['PATH']
69141 [0bz63fz3m1qt] It works fine for me. Both with double/single quotes.
+ 69147 [bob.news@gm ] "Peter Ensch" <nobody@bogus.com> schrieb im Newsbeitrag
+ 69164 [pensch@ti co] What I'm trying to do is find the path to a certain program on my
  69175 [djberge@qw s] As to why your path appears to be incomplete I couldn't tell you.

[BUG] "illegal radix 1"
69145 [dcarrera@ma ] $ ruby -v
69146 [matz@ru y- a] "2".to_i *1.1 is parsed as "2".to_i(*1.1).  Try -w if you have doubt.
69148 [dcarrera@ma ] Yes, I figured it was something like that.  But don't you think that Ruby
+ 69149 [matz@ru y- a] Actually, Ruby tried to figure out what you meant (by looking
| + 69193 [hal9000@hy e] I guess that is reasonable, but why
| | 69251 [decoux@mo lo] ruby has converted 1.1 to an integer, this is valid
| + 69207 [dcarrera@ma ] Well, I would normally expect * to be parsed differently (different
|   + 69232 [michael_s_ca] Yes, but based on your .sig, I'm guessing you're a heavy math-head.  (I don't
|   + 69238 [rpav@nw in .] For me it's the other way around.  I have yet to use any multiplication
+ 69250 [gsinclair@so] Your point about high-level languages is good, but this is the cost of

plotting 2D math functions
69151 [ptkwt@sh ll ] I know there's a package on the RAA for plotting functions with
69215 [vjoel@PA H. ] There's the BLT extension for Tcl/Tk, but I don't know if you can use it
69234 [ptkwt@sh ll ] There is a BLT module on the RAA that I found, but all the docs are in
69235 [dcarrera@ma ] What is BLT?
69237 [ptkwt@sh ll ] "BLT is an extension to the Tk toolkit, adding new widgets, geometry

ImageMagick and resizing bitmaps
69154 [drejewic@ws ] How to resize bitmap using 'magick.rb'?
69173 [  rw@we t. e] image.resize!(50, 500)
69227 [cyclists@nc ] Hmmm...I haven't seen the original post, but the code snippet looks like

pb with ruby/ldap
69157 [cedric.foll@] i have to make a search on a quite big ldap database.
69159 [chad@ch df w] Your LDAP server should have a search size parameter.  The purpose of this
69168 [cedric.foll@] I'm not sure the pb come from the server.

rb_io_getline question
69161 [jim@fr ez .o] I am experimenting with some of the C io routines for the first
69162 [decoux@mo lo] str = rb_io_gets(infptr);
69165 [jim@fr ez .o] Hmm, can you translate that? Does that mean it can't be used or
+ 69166 [decoux@mo lo] you can't use rb_io_getline() but rb_io_gets() do what you want if the
| 69167 [jim@fr ez .o] Thanks. Is it the same for rb_io_getline_fast?
| 69169 [decoux@mo lo] Yes, rb_io_getline_fast is a static function
+ 69170 [jason@jv eg ] It means that the function is "private" and only available to the file

Amanda Perez Update
69163 [amandaperez@] Thanks for helping Amanda Perez all the way to the TOP  FIVE!

'Z' and 'A' String#unpack question
69171 [guillaume.pi] i wondered that 'Z' or 'A' parameters in String#unpack to return a
69172 [nobu.nokada@] 'Z' removes trailing NUL characters.

*.so loading 'fox' and 'RMagick' please help
69174 [drejewic@ws ] (1)
69180 [lyle@us rs s] The loader can't find the libraries that these extensions depend on;

Two questions
69179 [adamss@as in] What restrictions does the Ruby license place on the construction and sale
+ 69186 [dcarrera@ma ] None really.  It is an error to think that open source licenses prohibit
| 69190 [adamss@as in] Parts of the license are a bit vague about if commercial apps can be
| + 69192 [michael_s_ca] True enough, but the question posed was "why do *YOU* want to do that?"
| | 69196 [adamss@as in] Because it's the requirement that I've been given.
| | 69200 [emschwar@po ] Push back, then.  This question comes up all the time in clpm, and the
| | 69201 [adamss@as in] The standard answer is "Use something else other than Ruby.".   My hope
| | + 69205 [emschwar@po ] Feel free to point out that disassemblers are easy to come by, and
| | + 69309 [surrender_it] if they point you to java show them decafe and dj.
| + 69210 [austin@ha os] be
| + 69241 [matz@ru y- a] If you're programs are written _in_ Ruby, I have no right nor control
+ 69188 [austin@ha os] None. Individual libraries may have more restrictions than others.
  69191 [djberge@qw s] Someone needs to port Acme::Bleach :-P

rb_str_chomp or rb_str_strip
69181 [jim@fr ez .o] How do I access the chomp(!) or strip(!) functions in C?
+ 69182 [decoux@mo lo] res = rb_funcall2(str, rb_intern("strip"), 0, 0);
| 69187 [jim@fr ez .o] res = rb_funcall2(str, rb_intern("chomp!"), 0, 0);
| 69189 [decoux@mo lo] str is modified, res is str if chomp! was successfull or nil
| 69195 [jim@fr ez .o] Is there an efficient way to test for a character in a string?
| 69202 [B.Candler@po] By the time you've done RSTRING you've got yourself a char* pointer, so have
| 69204 [B.Candler@po] doesn't work. You might want to check for RSTRING(str)->len > 0 first
+ 69183 [lyle@us rs s] You'll probably need to call them indirectly using rb_funcall(), i.e.

Experiences with Ruby and C libraries using Boehm Weiser GC?
69184 [frido@q- of ] I wonder if someone has some experiences with that. Assume that I want

splat question
69194 [nemo@he lo r] (This question assumes that the unary `*' (used in arrays and such) is
69211 [batsman.geo@] ==========
+ 69212 [nemo@he lo r] could
| + 69220 [B.Candler@po] As a workaround you can always nest arrays, infinitely so if you wish. I
| + 69221 [austin@ha os] Array#flatten.
| + 69223 [batsman.geo@] Generators provide some kind of restricted lazy evaluation (an arguably,
+ 69229 [jweirich@on ] You just need closures to do lazy evaluation ...

[OT] Re: Two questions
69198 [billk@ct .c ] Try making a living as a game developer...
69206 [wtanksleyjr@] Sounds like a tough challenge.
69209 [billk@ct .c ] It's indeed possible to break any protection scheme

The hundred year language
69203 [damphyr@fr e] It tries to describe/predict how a programming language is going to be
69311 [stesch@no sp] Who would have guessed it? It will be Lisp. :-)
69314 [0bz63fz3m1qt] I don't think there will be any languages at all.
69315 [batsman.geo@] =============
69391 [ jupp@gm .d ] Saluton!

Phentermine, Xenical & many others prescribed online and shipped overnight Ruby-talk
69213 [297sb12o2cx@] ...

[q]class documentation
69214 [rodrigo.berm] There are some ("native") mechanism to add documentation into my class
69222 [austin@ha os] # Just an example

Syck 0.15 -- the road to YAML.rb 1.0
69217 [ruby-talk@wh] Syck 0.15 to you.  Syck is the new parser for YAML.rb.  Coded in C.

a question...
69218 [yarod33@je e] Vendes por correo?

69219 [Gsanomat.mni] This is a multi-part message in MIME format.

De um amigo
69236 [jtgf_2@ho ma] INFORMACAO CONFIDENCIAL

Does dynamic typing make it easier to place an object in a container?
69239 [mwilson13@co] The following is from
69240 [vjoel@PA H. ] ...
+ 69242 [mwilson13@co] Wow! Thank you. That is exactly on point.
+ 69245 [rpav@nw in .] This is a very confused explanation.  The writer has confused strong
  + 69246 [chadfowler@c] container?
  | 69259 [rpav@nw in .] Remember, what we're talking about here is definitions.  Semantics.
  | 69287 [jeremy@ch os] No, what Dave's article is talking about is the practicalities of
  + 69254 [nathaniel@NO] Ahem. I beg to (gently) differ. I program in Ruby and in Java on a
  | + 69260 [rpav@nw in .] Oh, I'd have to agree here.  I was actually referring to implementation,
  | + 69346 [bob.news@gm ] <nathaniel@NOSPAMtalbott.ws> schrieb im Newsbeitrag
  |   69349 [B.Candler@po] ???
  |   69352 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
  + 69256 [brett_willia] While I agree with your statement about the lowest common denominator, I must
    69261 [rpav@nw in .] Actually, I make a standard base class, Object, and inherit from there.