69031-69701

68816-72666 subjects 69249-69933

^ whats new in 1.8?
69031 [dave here.no] I upgraded to 1.8 but couldnt find anything documentiing new features. I
+ 69032 [bruce codedb] You might want to check out: http://www.rubygarden.org/ruby?ProgrammingRubyTwo
+ 69033 [ahoward fsl.] the docs for the shim helped me - search for shim on the RAA

^ TCPServer#accept blocking in Windows
69038 [pmak aaanime] 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 segm] Mozilla used to have this nasty habit, so did some versions of NS4.x...

^ PRIVATE AND CONFIDENTIAL
69054 [mr_musa3 hkn] Dear Sir,
69056 [dcarrera mat] It seems that 90% of the spam at ruby-talk is from Nigerian Generals or
69065 [B.Candler po] I vote against.
69066 [peter semant] As an aside not only would the origonal spam be removed by your rules,
+ 69069 [mike wyer.or] But those 2 "false positives" were a direct result of the spam. Without
| 69070 [peter semant] Licking your own elbow is not easy but it can hardly be called worthwhile.
| + 69071 [nedry mail.b] Are you sure about that?  I've met all kinds...
| + 69079 [hal9000 hype] My cat disagrees.
| | 69084 [peter semant] I hate to have to ask this but; Are you sure your cat knows its arse
| | 69115 [hal9000 hype] worthwhile.
| + 69085 [michael_s_ca] "Nothing worthwhile is ever easy" doesn't imply that all not easy
+ 69074 [jason jvoege] 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 free] 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 mtc] I'm writing PeerTalk, a TCP LAN chat program.  The connections are

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

^ Programming Languages Wiki Ruby entry.
69076 [hgs dmu.ac.u] has an odd (to my mind) first paragraph
+ 69081 [hal9000 hype] This does sound strange to me.
+ 69137 [ jupp gmx.de] Saluton!
  69153 [lkrupp pssw.] "test before" is the default and could have been omitted.

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

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

^ Need IO Optimization help
69096 [jim freeze.o] We're having a little shoot out here at work with Ruby, Perl and Tcl.
+ 69098 [drbrain segm] require 'ftools'
+ 69103 [nobu.nokada ] You can use File.cp in ftools.rb or FileUtils.cp in
| 69105 [jim freeze.o] I see the syswrite src.sysread(bsize) in copy_stream, but
| 69116 [bob.news gmx] "Jim Freeze" <jim@freeze.org> schrieb im Newsbeitrag
| 69119 [jim freeze.o] Hmm..., that would be a problem since the files are 200MB - 900MB.
| 69121 [jim freeze.o] Looks like file.sync => false be default.
+ 69114 [matz ruby-la] Which version of Ruby are you using?  Can you show us the whole
| 69117 [jim freeze.o] ruby -v
| 69120 [djberge qwes] ############################################################
| + 69123 [jim freeze.o] Thanks
| + 69126 [jim freeze.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 gmx] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
|   | 69156 [jim freeze.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 halos] 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 gmx] "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 shell1] Well, if you'd prefer to use Ruby then putting up with a couple of lines
|   + 69155 [jim freeze.o] I did some profiles as well and came to the similar conclusions for these
+ 69581 [dave landrit] In my experience, the fastest way to access files (by far) is mmap.
  + 69582 [dave landrit] One thing I forgot to copy out of my extension:  After the loop (and
  + 69583 [jim freeze.o] [mmap stuff deleted]
    69591 [dave landrit] The mmap should be dramatically faster than rb_io_gets for a few
    + 69593 [jim freeze.o] We did tests comparing read/write speeds between C and cp
    | + 69594 [decoux moulo] Good luck, for this
    | | 69597 [B.Candler po] I agree completely, because I've run essentially that program (but using
    | | + 69598 [jim freeze.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 freeze.o] Yes.
    | | | 69608 [batsman.geo ] I believe that 30% is time spent in kernel mode, doing real IO.
    | | + 69614 [dave landrit] 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 fsl.] <snip> the whole lot </snip>
    | |   + 69688 [decoux moulo] 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 freeze.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 freeze.o] Yes, don't forget that all important ROI benchmark. The
    |   | + 69679 [ptkwt shell1] It's not so easy to do in Perl.  It may be that Inline::C would make it
    |   + 69660 [jim freeze.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 freeze.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 freeze.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 pablotr] Zlib itself doesn't allow for arbitrary seek.  SEEK_END (aka seeking

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

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

^ FAQ for comp.lang.ruby
69132 [hal9000 merc] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2003-1-7)
69233 [hal9000 hype] Thanks, Josef...
+ 69247 [damphyr free] Yep, the english way of saying eszet. Now, as far as the umlauts are
+ 69248 [spoon dellah] 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 gmx.de] Saluton!

^ 未承諾広告※格安タオルと輸入代行のご案内!
69135 [staff osyare] <事業者><送信者> 株式会社 シャレ

^ 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 aon] I'v seen a Ruby-Documentation as a windows help file

^ Spam Filter (OT: PRIVATE AND CONFIDENTIAL)
69140 [xrfang hotma] 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 gmx] "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 qwes] As to why your path appears to be incomplete I couldn't tell you.

^ [BUG] "illegal radix 1"
69145 [dcarrera mat] $ ruby -v
69146 [matz ruby-la] "2".to_i *1.1 is parsed as "2".to_i(*1.1).  Try -w if you have doubt.
69148 [dcarrera mat] Yes, I figured it was something like that.  But don't you think that Ruby
+ 69149 [matz ruby-la] Actually, Ruby tried to figure out what you meant (by looking
| + 69193 [hal9000 hype] I guess that is reasonable, but why
| | 69251 [decoux moulo] ruby has converted 1.1 to an integer, this is valid
| + 69207 [dcarrera mat] 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 nwlink.] 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 shell1] I know there's a package on the RAA for plotting functions with
69215 [vjoel PATH.B] There's the BLT extension for Tcl/Tk, but I don't know if you can use it
69234 [ptkwt shell1] There is a BLT module on the RAA that I found, but all the docs are in
69235 [dcarrera mat] What is BLT?
69237 [ptkwt shell1] "BLT is an extension to the Tk toolkit, adding new widgets, geometry

^ ImageMagick and resizing bitmaps
69154 [drejewic wsi] How to resize bitmap using 'magick.rb'?
69173 [  rw welt.de] 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 chadfow] 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 freeze.o] I am experimenting with some of the C io routines for the first
69162 [decoux moulo] str = rb_io_gets(infptr);
69165 [jim freeze.o] Hmm, can you translate that? Does that mean it can't be used or
+ 69166 [decoux moulo] you can't use rb_io_getline() but rb_io_gets() do what you want if the
| 69167 [jim freeze.o] Thanks. Is it the same for rb_io_getline_fast?
| 69169 [decoux moulo] Yes, rb_io_getline_fast is a static function
+ 69170 [jason jvoege] 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 wsi] (1)
69180 [lyle users.s] The loader can't find the libraries that these extensions depend on;

^ Two questions
69179 [adamss ascin] What restrictions does the Ruby license place on the construction and sale
+ 69186 [dcarrera mat] None really.  It is an error to think that open source licenses prohibit
| 69190 [adamss ascin] 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 ascin] Because it's the requirement that I've been given.
| | 69200 [emschwar pob] Push back, then.  This question comes up all the time in clpm, and the
| | 69201 [adamss ascin] The standard answer is "Use something else other than Ruby.".   My hope
| | + 69205 [emschwar pob] 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 halos] be
| + 69241 [matz ruby-la] If you're programs are written _in_ Ruby, I have no right nor control
+ 69188 [austin halos] None. Individual libraries may have more restrictions than others.
  69191 [djberge qwes] Someone needs to port Acme::Bleach :-P

^ rb_str_chomp or rb_str_strip
69181 [jim freeze.o] How do I access the chomp(!) or strip(!) functions in C?
+ 69182 [decoux moulo] res = rb_funcall2(str, rb_intern("strip"), 0, 0);
| 69187 [jim freeze.o] res = rb_funcall2(str, rb_intern("chomp!"), 0, 0);
| 69189 [decoux moulo] str is modified, res is str if chomp! was successfull or nil
| 69195 [jim freeze.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 users.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-soft] I wonder if someone has some experiences with that. Assume that I want

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

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

^ The hundred year language
69203 [damphyr free] 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 gmx.de] Saluton!

^ Phentermine, Xenical & many others prescribed online and shipped overnight Ruby-talk
69213 [297sb12o2cx ] This is a multi-part message in MIME format.

^ [q]class documentation
69214 [rodrigo.berm] There are some ("native") mechanism to add documentation into my class
69222 [austin halos] # 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 jeje] Vendes por correo?

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

^ De um amigo
69236 [jtgf_2 hotma] INFORMACAO CONFIDENCIAL

^ Does dynamic typing make it easier to place an object in a container?
69239 [mwilson13 co] The following is from
69240 [vjoel PATH.B] ...
+ 69242 [mwilson13 co] Wow! Thank you. That is exactly on point.
+ 69245 [rpav nwlink.] This is a very confused explanation.  The writer has confused strong
  + 69246 [chadfowler c] container?
  | 69259 [rpav nwlink.] Remember, what we're talking about here is definitions.  Semantics.
  | 69287 [jeremy chaos] 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 nwlink.] Oh, I'd have to agree here.  I was actually referring to implementation,
  | + 69346 [bob.news gmx] <nathaniel@NOSPAMtalbott.ws> schrieb im Newsbeitrag
  |   69349 [B.Candler po] ???
  |   69352 [bob.news gmx] "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 nwlink.] Actually, I make a standard base class, Object, and inherit from there.
threads.html
top