35088-36220 subjects 35478-38534

[ANN]  RDoc Alpha C
35317 [Dave@Pr gm t] RDoc is a Javadoc-alike documentation tool for Ruby. The latest

How Ruby differs from Other Languages?
35322 [shridevi@nc ] I am new to Ruby.
+ 35326 [armin@ap ro ] If you want a (technical) comparison of Ruby versus Python et al,
| 35338 [tobiasreif@p] (garbled in NN6; view through IE6)
+ 36056 [web2ed@ya oo] The selling point for me is the ease with which one can extend and

RE: write a stream to another
35324 [tsondergaard] No one has written a reply to this question! I expect this means that there is no nice way to do it. I plan to submit an RCR about this. What I essentially want is a mechanism for writing an input stream to an output stream, so I don't have to create a suitable buffer and read, write, read, write myself.
35541 [tim@ve et .a] ostream.write(istream.read)
35595 [matt@li ke .] These are roughly equivalent memory wise.  IO#read and IO#readlines
35596 [tsondergaard] You're not thinking declaratively ;-) I want to say what I want it to do. Not how to do it.
35645 [matt@li ke .] Sure, you're talking API and I'm talking implementation.  Your IO#<<
35649 [erik@ba fo s] I just had to try this...

[ANN] Ruby/SMB beta 1
35328 [hefa@us rs s] Thanks to some good feedback and a lot of code tweaking, I'm glad to

Improvement to system()
35329 [ysantoso@je ] I just got bitten by return value of system() because it does not
+ 35336 [paul@at es .] IMO, It's a problem with system() itself and not with the
+ 35337 [mike@st k. o] You can look at $? e.g.
  35360 [ysantoso@je ] $? >> 8 ... equivalent, no?

RE: Welcome to our (ruby-talk ML) You are added automatically
35330 [mark.firesto] help
35334 [mark.firesto] Some idiot posting help requests to the list.  Oh wait, that's me.  Sorry
35335 [stephan.schm] For telnet protocols etc. you may look at JTA - Java Telnet Applet.
35362 [mark.firesto] Thanks!  I downloaded that java code and it is helping.

Re: system creating zombies (Oops!)
35340 [dcorbin@im e] Well, I went to build the test program, and found myself a liar.  I was

Ruby Serial Ports under Windows
35341 [DWende@ly xp] I've started using Ruby a week ago as my first OOP
+ 35355 [ajm@nb sy pa] ...
| 35356 [ajm@nb sy pa] Well, so much for not into general circulation.... :):) ...comments
+ 35358 [nobu.nokada@] I don't know about serial port API under Windows, it may be

object size and overhead.
35343 [ronjeffries@] My set program was turned loose yesterday to build a hundred thousand objects.
35348 [matt@li ke .] Every ruby object has the same overhead since every Ruby object is
35351 [ronjeffries@] This is much like I would expect. I can't figure out why I was at 200 meg and
35383 [matt@li ke .] Last time I had a runaway ruby process like this, it turned out to be

35344 [chris.morris] set ldap = GetObject("LDAP:")
+ 35346 [chris.morris] After a little research, it would appear that the GetObject call with a
| 35518 [masaki.suket] The new version 0.4.2 of Win32OLE has WIN32OLE.bind method.
| 35579 [chris.morris] Excellent. I'll try to eek out some time today to check it out.
| 35730 [masaki.suket] Hmm... I'll investigate.
+ 35347 [pcs3@ma lh s] Vbs' native GetObject function is mostly used to get a reference to an

exception-safety and opening sockets
35345 [paul@at es .] When I open a file and want to make sure a file gets closed, even when I
35349 [matt@li ke .] You can also do this to avoid putting "socket" in the outer scope.

Loading ruby file in irb
35352 [gogoneruson@] ...
35354 [pete@mc re n] << wonder how do I load Ruby files at irb on a fly?>>
35389 [Nelson@HE IK] Thank you so much, Pete, it was a great help!

bug in ruby SWIG-1.3.11
35357 [loriend@bi p] I've found a problem in the ruby module of SWIG-1.3.11. I've been making a
+ 35359 [vor_lord@ho ] but
+ 35375 [ljohnson@re ] but

ZODB or Metakit for Ruby?
35361 [wayne@mi hr ] Does anyone know of something like Metakit[1] or ZODB[2] for Ruby?  Or

file reading impossibly slow?
35364 [ronjeffries@] So I'm doing this benchmark to work with my set program. Part of the problem is
+ 35365 [ronjeffries@] The file ran in 2229.656 seconds, or 37 minutes. Smalltalk was 3 minutes.
| 35366 [peter@se an ] Your file reading is a bit non-ruby, so to speak, you need to get the
| 35371 [ronjeffries@] Doubtless I do. But this is really going to be a binary file, read with read().
| 35376 [peter@se an ] Odd. Here's my test.
| 35382 [ronjeffries@] My times this time are
+ 35367 [nobu.nokada@] IO in ruby 1.6 is slow.  And you look run it under Windows, 1.6
| 35369 [ronjeffries@] On over 300 megs of file? It takes Windows six minutes to copy it. What are you
| + 35370 [Dave@Pr gm t] It's when you stop realizing that you're confused that you become
| + 35372 [joe@vp p. et] But you're only reading, not writing.  19 seconds is in the realm of
| | 35373 [joe@vp p. et] ~$ time cp 300megs.txt 300megs.txt.copy
| + 35374 [nobu.nokada@] Just FAT fs is silly.  Not so great system.
+ 35400 [ysantoso@je ] Perhaps I am mistaken, but I read somewhere in this newsgroup that IO
  36227 [bobx@li ux a] And I am one of the unlucky ones because I use Ruby for file parsing
  36266 [bobalex@at b] I'm jumping into this thread late, so apologies if I'm repeating well-known
  + 36270 [stathy.toulo] I was wondering if this is more a compiler issue than a platform issue.  Or
  | 36287 [gehlker@fa t] On 3/19/02 9:04 AM, "Stathy G. Touloumis" <stathy.touloumis@edventions.com>
  + 36288 [nobu.nokada@] It's well-known that Cygwin's stat() is slow.  It checks #! in

pty and vi
35368 [wmwilson01@h] I've hacked together a little script, using some of the samples from the

Re: file reading impossibly slow? 1.6.6 vs. 1.6.2 numbers
35377 [pete@mc re n] Peter Hickman suggested another test, so here are my results from Windows
+ 35384 [ronjeffries@] Sabotage! Who talked me into going to 1.6.6 anyway? ;->
+ 35387 [matt@li ke .] Yes, the slow IO for the native Win32 version of Ruby 1.6 is quickly
  35388 [pete@mc re n] I missed the first two, but having recently installed the 1.6.6 version I
  + 35395 [matt@li ke .] The 1.6.6, the Win32 IO was just written very inefficiently.  It ends
  | 35397 [nobu.nokada@] The reasons of IO slowness, of 1.6 and of Win32, are differ.
  + 35396 [holmberg@ia ] I think I described one of the major reasons why the native Windows

RDoc now generates .chm files
35378 [Dave@Pr gm t] If you're a Windows user, and if you have Microsoft's HTML Help
+ 35380 [rich@in oe h] www.kde-look.org
| 35381 [curt@hi bs c] Dave, if your interested in these icons (they are very nice!) you might like
+ 35391 [bdelmee@ad a] There are 42 standard icons to choose from in the HTML HELP workshop;
  35392 [Dave@Pr gm t] None of them jumped out at me, though. I'm very open to suggestions -

Ruby 1.6.7 configure confused by AIX with GCC
35379 [d-lewart@ui ] The default configuration for AIX with GCC fails when building Ruby.
35402 [matz@ru y- a] I have never compiled on AIX; these codes are from other AIX users,

35385 [E-mise@ru y-] ...

What are the Ruby 1.8 plans?
35386 [matt@li ke .] There have been two recent threads about slow Ruby IO under Win32
35403 [matz@ru y- a] Ruby 1.7 is in bug fix mode, but we have to wait some libraries
+ 35404 [james@ru yx ] What direction is the XML support taking?
| 35412 [matz@ru y- a] Not yet.  Help me.
| 35417 [james@ru yx ] I think those people interested enough in the matter expressed their
+ 35407 [ronjeffries@] This makes me wonder about applying Continuous Integration to Ruby ...
+ 35413 [matt@li ke .] How about m18n?  I know it isn't going into 1.8, but how about 1.9?
  35416 [matz@ru y- a] It will be in 1.9.0 (the next development version), along with a new

win32ole and ICatalogObject
35390 [chris.morris] Have a Ruby script to do some COM+ administration. There's a funky interface
35437 [masaki.suket] How about following? (Yes, this is not straightforward like VB, but...)
35438 [chris.morris] Yep! That works. I'd tinkered with something similar end of the day

net/http; 302
35393 [tobiasreif@p] how to handle a 302?
+ 35398 [nobu.nokada@] 302 means `Moved Temporarily'.
| + 35435 [tobiasreif@p] Thanks for your explanation, but the rescue line gives
| | 35538 [aamine@mx ed] Sorry. This type of confusion is caused by my fault.
| + 35436 [tobiasreif@p] ... now I get
|   35442 [ysantoso@je ] resp, data = Net::HTTP("someurl", 80)
+ 35401 [ysantoso@je ] Trying

RHTML syntax highlighting with VIM
35394 [toby@ep iv c] Here's a simple little .vim script to handle syntax high-

5 dollar emails
35399 [rtfbsw@co ca] Please check out 5 dollars an email...I earned over $850.00 last month simply by using this program. This company is free to join. You can get paid and earn prizes for surfing,reading email,t aking surveys, chatting and playing games. To read all about the program,you must click on the link and sign up. there are no obligations Just click on the link on the mail and it will take you to the sign-up page in a new window. Remember to refer all your friends, as this is how you will make more money.

newbie Q: managing a multi-file Ruby project, win32
35405 [ktilton@ny .] I am interested in porting a neat little constraints contrib from Lisp
+ 35418 [ktilton@ny .] thirty /field/?!! aorry, that should be thirty files. clearly the brain
+ 35485 [lafor@ar ak ] You can use cygwin [cygwin.sourceforge.net] + vi [vim.org]
+ 35499 [nhodgson@bi ] SciTE has difficulties running an interactive irb session. You need to
+ 35500 [nhodgson@bi ] SciTE has difficulties running an interactive irb session. You need to

Permanently change directory after exit
35406 [guaracybm@ig] I need change a path inside a script and stay there
+ 35408 [nobu.nokada@] Impossible.
+ 35410 [felix@cr wf ] Nope.  When I first wanted to do this, it was very frustrating until I
+ 35419 [c.hintze@gm ] Not exactly as you want to do it. This is as any script will be

Talking Trash About Ruby
35409 [lyle@us rs s] All,
+ 35411 [elanthis@aw ] snip
| + 35433 [cboos@bc -t ] My 2 cents on this?
| + 35446 [ljohnson@re ] These are "borrowed" pointers, which point to items from a container that
+ 35414 [jweirich@on ] I don't think so.  IIRC, Ruby uses a conservative GC algorithm and may
+ 35415 [matt@li ke .] Do you play around with finalizers in the code at all?  If not
  35447 [ljohnson@re ] I'm not dealing with finalizers and so that's not it. But I do not discount

Message delivery failure notification
35420 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35421 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35422 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35423 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35424 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35425 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35426 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35427 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Message delivery failure notification
35428 [MAIL-ROUTER@] Unable to delivery mail for 'siebenschlaefer', this user's mailbox is full.

Interesting link on static/dynamic typing...
35429 [feldt@ce ch ] Regards,
+ 35441 [paul@at es .] Interesting.  The author starts with some rather odd claims about
| + 35449 [gehlker@fa t] I've been dragged, kicking and screaming, to the conclusion that templates
| | + 35450 [paul@at es .] Do you think the problem is with templates themselves, or could they be
| | | + 35452 [rich@in oe h] see http://www.google.com/search?sourceid=navclient&q=java+generics
| | | + 35456 [gehlker@fa t] I most familiar with gcc and CodeWarrior for C++. I think they're both
| | | + 35464 [bob.hutchiso] Eiffel does not suffer from code bloat or bad compile time with its
| | | + 35511 [frankm@ba ar] When I saw Meyers I first thought Bertrand Meyer (singular) ... and *he*
| | |   + 35522 [gehlker@fa t] I never did understand the type system in Java. The point of having a type
| | |   | 35523 [Dave@Pr gm t] Dave
| | |   + 35550 [j.travnik@sh] IMHO correct OOP way is to have encapsulating class for that collection.
| | |   + 35606 [paul@at es .] There is a similar problem in Ruby.  If I have an array of Foo objects,
| | + 35457 [bob.hutchiso] Interesting. This depends on your point of view. Having written a lot of
| |   35467 [paul@at es .] Just to be on the safe side (and if everyone already understands this
| + 35475 [rawlins@cs u] For those who haven't read the article, the author does not present 850% as any
| + 35515 [r2d2@ac .u u] Well, this is just one datapoint, but at least it is something empiric.  I
|   35603 [paul@at es .] Was it C++ code or was it C code?
|   35642 [r2d2@ac .u u] C++
+ 35444 [gehlker@fa t] As a refugee from C++, I tend to agree strongly with the article. I used to
+ 35453 [andrew_queis] It's interesting that in discussions about static/dynamic typing the
+ 35454 [matt@li ke .] I'm often surprised that ML (and languages like Ocaml) aren't brought
  + 35459 [hutch@re ur ] I'd like to add/emphasise one thing here, many/most functional languages
  | 35527 [avi@be a4 co] In the sense that it requires whole-program, or at least whole-module,
  + 35502 [jweirich@on ] I've always found the following article interesting.

Spooky backtick bug w/large file support
35430 [jonathan@al ] any use of backquotes (%x) results in a seg fault.  :(  The fix is
35432 [nobu.nokada@] Because you changed siz to off_t, 64bit integer is passed to
35470 [jonathan@al ] Oh yes, thanks, that was silly of me.  Calls to IO.read with no length
+ 35473 [nobu.nokada@] Well, it seems reasonable and may be better.
+ 35504 [oliver@fa er] At least when I checked my version of the (more-or-less) same patch, the
  35514 [jonathan@al ] By "32-bit platform", I meant that the pointer size is 32 bits, not

How are rbw files created (as in the Sample FOX demos)
35431 [edjbaker@me ] Can someone tell me how the "rbw" files are created in the FXRuby
+ 35434 [WYS@he bl ng] The windows 1.6 distribution assigns
+ 35448 [ljohnson@re ] ;)

[CODE] Opinions wanted (long)
35439 [list@ch om t] These are some embryonic ideas that generated after a discussion with
35445 [ysantoso@je ] OK, nitpicking time.. I love doing this.
35551 [list@ch om t] Uhm, dunno.  This approach actually requires people to Think
35558 [ysantoso@je ] Sorry, for forgetting to answer that. Sometimes in the near future, I

Text stuff and appending to a file
35440 [bobx@li ux a] # open a file and read it
+ 35443 [WYS@he bl ng] lines = File.readlines(ARGV[0])
| 35486 [bobx@li ux a] Very good! It does indeed do it! Now...since these are very large
| + 35495 [ysantoso@je ] That's quite a large file. Instead of reading everything to memory,
| | 35507 [bobx@li ux a] Well not being a programmers programmer and on Windows 1.7 is out of
| + 35516 [tobiasreif@p] ... does the file get closed?
|   35521 [bobx@li ux a] Not sure how I would test this on Windows 2000 but the script does end
+ 35526 [erik@ba fo s] Why do you close this?
+ 35546 [decoux@mo lo] Well, you have also the stupid way to do it

ruby odbc question
35451 [andrew_queis] I've been playing with the Ruby/ODBC interface and I have a basic
35484 [petr.fischer] Try use ADO with WIN32OLE (why not? you know ADO interfaces if you using ADO from C++).

Problem with Array.Join
35458 [sean@ce so t] I'm calling array.join('\n') and what I'm getting is one string made up of
+ 35461 [Dave@Pr gm t] because single-quoted strings only interpret \\ and \'
+ 35462 [mdavis@se ai] Try array.join("\n").
+ 35465 [ljohnson@re ] Escape codes like newline (\n) aren't evaluated when the string is in single
  35466 [sean@ce so t] of
  35488 [ysantoso@je ] I don't think you need to take it out. Notice the double-quote within

Spam, ruby-talk, and me
35460 [Dave@Pr gm t] Today, someone reported me for sending spam to the ruby-talk mailing
+ 35463 [rjp@br ws r.] If you want somewhere to host it that involves less risk to your internet
+ 35468 [matt@li ke .] Dave, you provide this great service and seem to get screwed by the
| + 35476 [T.Clausen@co] <SNIP>
| | 35509 [Dave@Pr gm t] As of this morning they are.
| + 35481 [hal9000@hy e] <Dave@PragmaticProgrammer.com>
|   35487 [paul@at es .] I did get the original message, but I've been seeing replies to message
+ 35490 [ysantoso@je ] How about forwading only messages in the newsgroup that have some
| 35491 [jim@fr ez .o] 1) require that the reverse dns match the original address.
| 35493 [Dave@Pr gm t] I don't really have a reverse DNS to check - this is stuff coming off
| 35494 [jim@fr ez .o] Yes, (1) wouldn't be particularly useful for the nntp feed.
| 35510 [roy@mi ic n.] Greetings,
| 35513 [Dave@Pr gm t] I've installed it, but right now I'm just passing the messages
+ 35492 [lucid@co ne ] Unfortunately, even *if* everyone on the list today agrees not to spam,

OT: Need XML advice on data handling
35469 [jim@fr ez .o] Being somewhat an XML newbie, I question whether my

How To: Read a paragraph at a time
35471 [jd204c@ni .g] I am new to Ruby and am trying to write a simple program that reads a
+ 35472 [sean@ch tt n] # Try using "\r\n\r\n" or "\n\n" instead
| 35564 [jd204c@ni .g] Thanks, but that still doesn't work, (at least not on my Win 2000
+ 35474 [nobu.nokada@] IO#gets doesn't yield the block, use `each' instead.
+ 35480 [tobiasreif@p] Perhaps something like
+ 35668 [maz@na ak on] You do not get exactly how iterators work.

is there any way ...
35477 [ronjeffries@] is there any way we could fix the bug whereby a..b is /longer/ than a...b ?
35482 [tobiasreif@p] => Ranges
35489 [ronjeffries@] I'm sorry I wasn't clear in my objection. I'd think it was more mnemonic if the
+ 35498 [alwagner@tc ] I agree.  It's counter-intuitive.
| 36666 [comp.lang.ru] - - I think ... is syntactic sugar that most sane programmers
+ 35503 [jweirich@on ] You've just chosen the wrong mnemonic.  The extra dot has just pushes
  + 35508 [alwagner@tc ] Not really.  Whatever works.  Thanks for the mnemonic.  I had trouble with
  + 35512 [ktilton@ny .] Not at all, good mnemonic, occurred to me, too. Probably how it got
    35621 [huber@al m. ] I think you should join the perl development team! ;)