35317-36666

35088-36220 subjects 35478-38534

^ [ANN]  RDoc Alpha C
35317 [Dave Pragmat] RDoc is a Javadoc-alike documentation tool for Ruby. The latest

^ How Ruby differs from Other Languages?
35322 [shridevi ncb] I am new to Ruby.
+ 35326 [armin approx] If you want a (technical) comparison of Ruby versus Python et al,
| 35338 [tobiasreif p] (garbled in NN6; view through IE6)
+ 36056 [web2ed yahoo] 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 vegeta.a] ostream.write(istream.read)
35595 [matt lickey.] 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 lickey.] Sure, you're talking API and I'm talking implementation.  Your IO#<<
35649 [erik bagfors] I just had to try this...

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

^ Improvement to system()
35329 [ysantoso jen] I just got bitten by return value of system() because it does not
+ 35336 [paul atdesk.] IMO, It's a problem with system() itself and not with the
+ 35337 [mike stok.co] ...
  35360 [ysantoso jen] $? >> 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 impe] Well, I went to build the test program, and found myself a liar.  I was

^ Ruby Serial Ports under Windows
35341 [DWende lynxp] I've started using Ruby a week ago as my first OOP
+ 35355 [ajm nb.sympa] ...
| 35356 [ajm nb.sympa] 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 lickey.] 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 lickey.] Last time I had a runaway ruby process like this, it turned out to be

^ WIN32OLE and LDAP
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 mailhos] Vbs' native GetObject function is mostly used to get a reference to an

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

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

^ bug in ruby SWIG-1.3.11
35357 [loriend bigp] I've found a problem in the ruby module of SWIG-1.3.11. I've been making a
+ 35359 [vor_lord hot] ...
+ 35375 [ljohnson res] ...

^ ZODB or Metakit for Ruby?
35361 [wayne mishre] 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 semant] 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 semant] 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 Pragmat] It's when you stop realizing that you're confused that you become
| + 35372 [joe vpop.net] But you're only reading, not writing.  19 seconds is in the realm of
| | 35373 [joe vpop.net] ~$ time cp 300megs.txt 300megs.txt.copy
| + 35374 [nobu.nokada ] Just FAT fs is silly.  Not so great system.
+ 35400 [ysantoso jen] Perhaps I am mistaken, but I read somewhere in this newsgroup that IO
  36227 [bobx linuxma] And I am one of the unlucky ones because I use Ruby for file parsing
  36266 [bobalex attb] 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 fast] 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 mcbreen] 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 lickey.] Yes, the slow IO for the native Win32 version of Ruby 1.6 is quickly
  35388 [pete mcbreen] I missed the first two, but having recently installed the 1.6.6 version I
  + 35395 [matt lickey.] 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 iar] I think I described one of the major reasons why the native Windows

^ RDoc now generates .chm files
35378 [Dave Pragmat] If you're a Windows user, and if you have Microsoft's HTML Help
+ 35380 [rich infoeth] www.kde-look.org
| 35381 [curt hibbs.c] Dave, if your interested in these icons (they are very nice!) you might like
+ 35391 [bdelmee adva] ...
  35392 [Dave Pragmat] 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 uiu] ...
35402 [matz ruby-la] I have never compiled on AIX; these codes are from other AIX users,

^ Advertisement
35385 [E-mise ruby-] ...

^ What are the Ruby 1.8 plans?
35386 [matt lickey.] There have been two recent threads about slow Ruby IO under Win32
35403 [matz ruby-la] Ruby 1.7 is in bug fix mode, but we have to wait some libraries
+ 35404 [james rubyxm] What direction is the XML support taking?
| 35412 [matz ruby-la] Not yet.  Help me.
| 35417 [james rubyxm] 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 lickey.] How about m18n?  I know it isn't going into 1.8, but how about 1.9?
  35416 [matz ruby-la] 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 jen] resp, data = Net::HTTP("someurl", 80)
+ 35401 [ysantoso jen] Trying 216.115.102.80...

^ RHTML syntax highlighting with VIM
35394 [toby eprivac] Here's a simple little .vim script to handle syntax high-

^ 5 dollar emails
35399 [rtfbsw comca] ...

^ newbie Q: managing a multi-file Ruby project, win32
35405 [ktilton nyc.] I am interested in porting a neat little constraints contrib from Lisp
+ 35418 [ktilton nyc.] thirty /field/?!! aorry, that should be thirty files. clearly the brain
+ 35485 [lafor arraki] You can use cygwin [cygwin.sourceforge.net] + vi [vim.org]
+ 35499 [nhodgson big] ...
+ 35500 [nhodgson big] ...

^ 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 crowfi] ...
+ 35419 [c.hintze gmx] ...

^ Talking Trash About Ruby
35409 [lyle users.s] All,
+ 35411 [elanthis awe] snip
| + 35433 [cboos bct-te] My 2 cents on this?
| + 35446 [ljohnson res] ...
+ 35414 [jweirich one] I don't think so.  IIRC, Ruby uses a conservative GC algorithm and may
+ 35415 [matt lickey.] Do you play around with finalizers in the code at all?  If not
  35447 [ljohnson res] ...

^ 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.cha] Regards,
+ 35441 [paul atdesk.] Interesting.  The author starts with some rather odd claims about
| + 35449 [gehlker fast] I've been dragged, kicking and screaming, to the conclusion that templates
| | + 35450 [paul atdesk.] Do you think the problem is with templates themselves, or could they be
| | | + 35452 [rich infoeth] see http://www.google.com/search?sourceid=navclient&q=java+generics
| | | + 35456 [gehlker fast] 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 bayar] When I saw Meyers I first thought Bertrand Meyer (singular) ... and *he*
| | |   + 35522 [gehlker fast] I never did understand the type system in Java. The point of having a type
| | |   | 35523 [Dave Pragmat] Dave
| | |   + 35550 [j.travnik sh] IMHO correct OOP way is to have encapsulating class for that collection.
| | |   + 35606 [paul atdesk.] 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 atdesk.] 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 acc.umu] ...
|   35603 [paul atdesk.] Was it C++ code or was it C code?
|   35642 [r2d2 acc.umu] ...
+ 35444 [gehlker fast] 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 lickey.] I'm often surprised that ML (and languages like Ocaml) aren't brought
  + 35459 [hutch recurs] I'd like to add/emphasise one thing here, many/most functional languages
  | 35527 [avi beta4.co] In the sense that it requires whole-program, or at least whole-module,
  + 35502 [jweirich one] I've always found the following article interesting.

^ Spooky backtick bug w/large file support
35430 [jonathan alu] 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 alu] 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 faker] At least when I checked my version of the (more-or-less) same patch, the
  35514 [jonathan alu] 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 med] Can someone tell me how the "rbw" files are created in the FXRuby
+ 35434 [WYS helbling] The windows 1.6 distribution assigns
+ 35448 [ljohnson res] ...

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

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

^ 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 celsoft] ...
+ 35461 [Dave Pragmat] because single-quoted strings only interpret \\ and \'
+ 35462 [mdavis sevai] Try array.join("\n").
+ 35465 [ljohnson res] ...
  35466 [sean celsoft] ...
  35488 [ysantoso jen] I don't think you need to take it out. Notice the double-quote within

^ Spam, ruby-talk, and me
35460 [Dave Pragmat] Today, someone reported me for sending spam to the ruby-talk mailing
+ 35463 [rjp browser.] ...
+ 35468 [matt lickey.] Dave, you provide this great service and seem to get screwed by the
| + 35476 [T.Clausen co] <SNIP>
| | 35509 [Dave Pragmat] As of this morning they are.
| + 35481 [hal9000 hype] <Dave@PragmaticProgrammer.com>
|   35487 [paul atdesk.] I did get the original message, but I've been seeing replies to message
+ 35490 [ysantoso jen] How about forwading only messages in the newsgroup that have some
| 35491 [jim freeze.o] 1) require that the reverse dns match the original address.
| 35493 [Dave Pragmat] I don't really have a reverse DNS to check - this is stuff coming off
| 35494 [jim freeze.o] Yes, (1) wouldn't be particularly useful for the nntp feed.
| 35510 [roy milican.] Greetings,
| 35513 [Dave Pragmat] I've installed it, but right now I'm just passing the messages
+ 35492 [lucid connec] Unfortunately, even *if* everyone on the list today agrees not to spam,

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

^ How To: Read a paragraph at a time
35471 [jd204c nih.g] ...
+ 35472 [sean chitten] # Try using "\r\n\r\n" or "\n\n" instead
| 35564 [jd204c nih.g] ...
+ 35474 [nobu.nokada ] IO#gets doesn't yield the block, use `each' instead.
+ 35480 [tobiasreif p] Perhaps something like
+ 35668 [maz nawak-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 tca] I agree.  It's counter-intuitive.
| 36666 [comp.lang.ru] ...
+ 35503 [jweirich one] You've just chosen the wrong mnemonic.  The extra dot has just pushes
  + 35508 [alwagner tca] Not really.  Whatever works.  Thanks for the mnemonic.  I had trouble with
  + 35512 [ktilton nyc.] Not at all, good mnemonic, occurred to me, too. Probably how it got
    35621 [huber alum.w] I think you should join the perl development team! ;)
threads.html
top