16287-16641

16040-16369 subjects 16502-25454

^ subscribe
16287 [mstephen fsl] Michael Stephenson <mstephen@fsl.noaa.gov>

^ Poll results on RubyGarden
16290 [Dave Pragmat] The first poll on http://www.RubyGarden.org settled down with 123

^ RPM .spec for Ruby and friends
16300 [waisun.chia ] This is a multi-part message in MIME format.
16324 [pixel mandra] @@ -129,6 +129,7 @@
16399 [waisun.chia ] Thanks Pixel, I needed that.
16405 [pixel mandra] i don't understand the need of enable-shared. It sure doesn't help normal ruby
16407 [waisun.chia ] When building extensions you need to link with libruby, if you don't
16408 [pixel mandra] gcc -shared  -L/usr/lib/ruby/1.6/i586-linux-gnu -L/usr/lib -L/usr/local/lib -o pcap.so Pcap.o packet.o ip_packet.o tcp_packet.o udp_packet.o icmp_packet.o -lpcap -lc
16417 [waisun.chia ] Three common extensions...

^ links list
16303 [tobiasreif p] Send me your links offlist,

^ libxml2 and libxslt?
16306 [waisun.chia ] I'm currently using XMLparser extension (against James Clark's Expat

^ -fomit-frame-pointer and segfault
16307 [pixel mandra] When compiling with -fomit-frame-pointer, ruby segfaults with gcc-2.96 and
16315 [matz zetabit] I didn't know that.  Thank you for the information.

^ Strange behaviour of require
16309 [neumann s-di] 1)
16314 [matz zetabit] Hmm, I couldn't reproduce the problem (using Curses though).
16319 [decoux moulo] I can confirm
16323 [matz zetabit] Thank you.  I found out where tha bug lied.  It will be fixed very soon.

^ ruby regex
16310 [dthiel nexpr] How would I do a regex in ruby that expressed "all printable characters"?
16316 [wayne.blair ] Sometimes I chime in with a response that is pretty simplistic, but on the
16317 [decoux moulo] character class [:print:]
+ 16318 [Dave Pragmat] I thought this was deprecated (which is why we didn't document it).
| + 16321 [matz zetabit] No.  It's because I wasn't sure if they would survive in the future
| + 16336 [elderburn mi] Double play on words, Dave? :-)
+ 16320 [decoux moulo] It's easier for me to read C rather than english :-)
  16335 [elderburn mi] Great point! Sadly, it's not "free speech" :-)

^ Little bug in the manual
16311 [teespy bigfo] I think there is a little error in ruby's guide
+ 16312 [huber alum.w] ^       ^ -- probably meant " ?
+ 16313 [matju sympat] Not only str="abcdefg" is legal and working, but your replacement has
  16348 [hal9000 hype] release of

^ Tcl string map lookalike
16325 [wbsoft xs4al] What's the best way to perfomrs a Tcl-like "string map" function.
+ 16334 [kjana os.xax] Well.... something like following?
| + 16341 [ben_tilly op] I am working in Perl right now, so I can give a Perl answer
| + 16439 [wbsoft xs4al] something like that.  The problem is that the order of the keys does
|   16440 [decoux moulo] '<<' found (in your regexp) before '<'
+ 16349 [decoux moulo] You can't do this. If tcl use an array (and not an hash) this is because

^ Removal of a list of entries from an array
16327 [buter CWTS.L] Is there functionality equivalent to the following in Ruby?

^ Any Documentation for MySQL-Interface available?
16328 [   ml sph.de] Does anybody here know _today_ whether there's documentation
+ 16329 [buter CWTS.L] Try the MySQL documentation, specifically the part on the C API. That's
+ 16330 [Dave Pragmat] You can pretty safely use the documentation for the C API that comes
| 16331 [   ml sph.de] Also las ich bei Dave Thomas [mailto:Dave@PragmaticProgrammer.com]
+ 16342 [alwagner tca] If nothing else works, I connected to MySQL using the Ruby ODBC interface.

^ Re: What is happening?
16332 [wayne.blair ] connection

^ Thread deadlock message - what does it mean?
16333 [ptkwt aracne] deadlock 0xd7368: 2:2  - /usr/local/lib/ruby/site_ruby/1.6/drb/drb.rb:95
16353 [decoux moulo] The first is the status of the thread with

^ extension distribution
16337 [sol123 msn.c] I've written an extension for NT and 2000 and I need to know how to
16338 [danny frouke] cygwin versions right.
16339 [sol123 msn.c] r u talking about cygwin1.dll, then use the latest that comes with either=

^ Lisp vs. Perl Round 3: Operator Associativity and Manipulation
16340 [ken.lacrosse] Thought the list might find this of interest.

^ Garbage Collection?
16343 [mdavis sevai] Does anyone understand garbage collection well enough to provide me some
16344 [mdavis sevai] I forgot to mention that I am running version 1.7.1 (the current snap shot as of early this week) mostly on Windows2000.
16351 [decoux moulo] Probably because your variables are always referenced and the GC can

^ bug?
16347 [nconway klam] #...
16350 [decoux moulo] methID is not defined and it's resolved as a method call.
+ 16362 [nconway klam] Okay, I see why that happens.
+ 16363 [decoux moulo] This is what ruby do :-)

^ [ANN] Ruby/DBI 0.0.5
16352 [neumann s-di] I am pleased to announce a new and completely rewritten version of Ruby's DBI.
+ 16371 [alwagner tca] Thanks for the heads-up, Michael.  I wasn't aware of this project and had
+ 16373 [m_seki mva.b] I tried Ruby/DBI 0.0.5 with Pg, But my script made a minnor truble...
  16381 [m_seki mva.b] Sorry, I forgot a quoter.quote().
  16397 [neumann s-di] Thanks for the bug-fix. I'll include it, and release a patch-version.
  16421 [SAT MULTITEC] dbd_sybase.c:29: tds.h: No such file or directory
  16422 [SAT MULTITEC] Please ignore this post. It was easy to configure not to build the sybase

^ Garbage Collection?
16354 [mdavis sevai] Here is a test script that is similar to what my btree is doing.  The
16355 [decoux moulo] Well, this script
16356 [ben_tilly op] May I suggest using the Ruby interface to Berkeley DB?  They have
16357 [mdavis sevai] The method eats memory for as long as it runs.  When it completes all
16358 [mdavis sevai] I did consider it.  I am using this project to learn Ruby with the intent
16359 [decoux moulo] The testing is done *before* it return, i.e.

^ Garbage Collection?
16360 [mdavis sevai] I have narrowed the issue down a little further.  It appears to be related
16361 [decoux moulo] pigeon% cat b.rb
16364 [mdavis sevai] Windows 2000 and linux (RedHat 6.2).  I have run these tests on both OSs.
+ 16366 [wjl mindless] system("ps aux | head -1")
| + 16367 [decoux moulo] You have a problem with your system or your version of ruby
| + 16376 [ser germane-] Same here.
|   16384 [decoux moulo] pigeon% ./ruby test.rb
|   16398 [matz zetabit] Arrghh!  Sorry..
+ 16368 [decoux moulo] I'm using
  16370 [mdavis sevai] I just grabbed the latest snapshot.  It is still an issue in version ruby

^ Tk page fault
16365 [ms iastate.e] I was experimenting with Windows this morning and had a problem with

^ Ruby Jabber
16372 [jray jabber.] Does anyone know if anyone is working on a library for the jabber protocol?
16374 [hal9000 hype] protocol?
16375 [avi beta4.co] It's a very open and well-designed instant-messaging system; it's mainly
16423 [julian-ml be] Avi directed me to this thread as I haven't been following this mailing list recently (just signed up again).  I have been playing around with Ruby and Jabber though it's certainly nothing I would call a library or anything.  I did a wrapper around the Ruby/XML package to make my life a little easier when dealing with XML streams and I'm playing around with writing some client stuff and services in the hopes of figuring out by using it what I would like a library to look like.
16425 [jray jabber.] If you want some help, I can help out with it.  I was looking to implement something

^ other ways to create class instance?
16377 [samantha obj] I was fooling around with object persistence ideas in Ruby and
16378 [mirian cosmi] Possibly the marshalling support in Ruby is what you're after.  It
+ 16379 [hal9000 hype] Yes... also check out the PStore library.
+ 16388 [mirian cosmi] After thinking about the question Samantha raised (creating class
+ 16389 [decoux moulo] "bless" just associate a STASH with a variable
  + 16390 [mirian cosmi] It's tempting, but unfortunately it does not work in the general case.
  + 16391 [decoux moulo] Use #send like in your example.
  + 16394 [samantha obj] The problem with this is that I want to be able to transparently

^ Method objects fail equivalence
16380 [mirian cosmi] def foo
16403 [matz zetabit] Yes.  Method objects are created each time you invoke "method".
16409 [mirian cosmi] Okay.  I thought that == was supposed to be for logical equivalence,
+ 16410 [Dave Pragmat] I'm not sure the semantics are that clear. For example, would this be
| 16416 [mirian cosmi] Intuitively, I would expect it to be the implementation of the method.
+ 16412 [matz zetabit] Well, == is for equivalence, which default behavior is equal
  16418 [matju sympat] For unbound methods: my idea on it is that one def is one method, so if

^ Huffman algorithm
16382 [hal9000 hype] Well, a couple of days ago I was taking some
16402 [luigi.ballab] Better yet, you could use a tree instead of an array - once implemented, it

^ Symbolic Computation
16383 [matju sympat] I don't remember whether the following has been done in Ruby yet, but I

^ Re: [ruby-cvs] rubicon, rubicon/builtin, rubicon/language: Add all the 1.6.4 sample/test.rb tests to Rubicon, and integrate the
16385 [knu iDaemons] Great work!!  Why don't we put this into /src/ruby some day in the

^ Ruby source
16386 [aleksei.guze] I've compiled 1.6.4 for mswin32 almost succefully. Microsoft's compiler
16457 [aleksei.guze] First, I like Intel's compiler, 'cause it really uses the power of two

^ Symbolic Computation II
16387 [matju sympat] Take the source of [ruby-talk:16383] and append the following to it. It

^ yield to list?
16392 [mirian cosmi] def numstrings x, y
16393 [Dave Pragmat] For your given problem, of course, you could use

^ Ruby on Mac OS X?
16395 [fgp phlo.org] Is anyone working on a "native" version of ruby for mac os x?
16396 [deleeuw stat] format=flowed;

^ Symbolic Computation III
16400 [matju sympat] This third installment departs from the former two [ruby-talk:16383],
+ 16401 [wayne.blair ] Very interesting.  I checked out the source you sent, and if I understand
| 16404 [matju sympat] Yes.
| 16411 [wayne.blair ] most
| 16420 [matju sympat] RubyAST aims to be a spec for an interchange format between
| 16424 [matju sympat] First question, in the process of making RubyAST.rb into real runnable
| + 16427 [feldt ce.cha] Could you briefly summarize the benefits from having these MetaTypes? Is
| | 16436 [matju sympat] "*this* goes *there*".
| + 16430 [spwhite char] I don't really understand what the choices, unions, lists and tuples are
|   + 16434 [matju sympat] They are not doing anything, they are just there. They could be used for
|   | 16438 [spwhite char] ChoiceTypes?
|   | 16461 [matju sympat] Well, the caching is, sorry. What's more important is that two equally
|   + 16441 [bobgus mcs.c] A nice run-through of the syntax possibilities. I hope it catches on.
+ 16414 [feldt ce.cha] I heartily agree with all of this. In Rockit:examples/ruby there is a

^ An introduction and kudos
16406 [jbulley bere] Just thought I'd announce myself. I Just started tinkering with Ruby

^ Anniversary thanks and rockit
16413 [feldt ce.cha] Last week was my Ruby one.year anniversary; I've now been a happy Ruby
16449 [feldt ce.cha] The place for rockit is now rockit.sourceforge.net (and oh what a

^ Ruby - Objective C - GNUstep
16415 [Laurent.Jull] - Discovered Ruby 6 months ago after 8 years of Perl. Liked it a lot
16426 [avi beta4.co] I started a quick proof of concept of this, but it needs some work before
+ 16428 [julian-ml be] whoa man... what's Meta Ruby?
| 16429 [julian-ml be] Hmm... that's embarrassing... for some reason that didn't match my filter rule for the mailing list and since it happened to be from someone I knew, I thought it was directly to me... only when it showed up on the mailing list did I realize where my reply went.  Now I understand why I didn't know what the hell the message was about.
+ 16444 [Laurent.Jull] That's interesting.
  16445 [avi beta4.co] No... those three classes are actually "class clusters" - the superclasses

^ Fw: Newsgroup mirroring problem alert!
16419 [schneiker ju] pain

^ Inital Q's on Ruby grammar
16431 [feldt ce.cha] * Can you give a regexp for tDXSTRING? If not can you give a context-free
16432 [matz zetabit] tD* are something with #{} inside of it, so tDSTRING is a tSTRING with
16433 [decoux moulo] tDXSTRING correspond to the node NODE_DXSTR i.e. ``
16435 [feldt ce.cha] Thanks for your answers (both Guy and Matz). Reason I ask instead of
16437 [matju sympat] QRegexp = tuple([:pattern,QString|IString],[:flags,String])
16446 [feldt ce.cha] Yes, thats reasonable.

^ 
16442 [s.unsworth v] This is a multi-part message in MIME format.
16443 [Dave Pragmat] Absolutely. If you're currently using an IDE to build your
16459 [cbroult sapi] This message is in MIME format. Since your mail reader does not understand

^ regex: all but one
16447 [tobiasreif p] "all possible characters, including newlines and carriage returns, but
+ 16448 [tobiasreif p] .*|\n*
| + 16450 [wayne.blair ] /[^"]+/m
| | 16453 [tobiasreif p] /[^"]+/
| | 16456 [wbsoft xs4al] For example, when you want to match a specific character class, like
| + 16452 [tobiasreif p] please excuse me for sending too many messages.
+ 16451 [wjl mindless] ([^"]|\n|\r)*

^ xmlrpc4r ... does this work for anyone?
16454 [ser germane-] I've been trying to get any XML-RPC code working with the xmlrpc4r library.
16455 [ser germane-] usual (for me) my brain was being selectively blind to the obvious.

^ C extension questions
16458 [szegedy or.u] I currently write an linked-list extension for Ruby, not
16460 [matz zetabit] Basically yes.  Even though you can do something else, I strongly

^ Opinion sought: parsing non-regular languages
16462 [feldt ce.cha] (This is a bit long...)
16463 [decoux moulo] You are on the road of a P language with this, and there is some madness
16464 [feldt ce.cha] Thanks for the pointer.
+ 16465 [decoux moulo] mad in itself.
| 16466 [feldt ce.cha] I feared that answer... ;-)
+ 16471 [matz zetabit] It's too nasty for me. ;-)
  16482 [ben_tilly op] languages"
  16483 [matz zetabit] Well, I didn't mean regular expressions themselves, but meant regex

^ Ruby regexp bug ?
16467 [   xm w3d.ru] That's me again with a possible bug in regexp implementation.
16468 [decoux moulo] pigeon% ruby -e 'print "123\n456" =~ /\A456/, "\n"'
16469 [   xm w3d.ru] hmm ... then why '^' works like that ? ;)
16470 [decoux moulo] because it's consistent with $

^ Re: Opinion sought: parsing non-regula`r languages
16472 [Dave Pragmat] I know next to nothing about parsing and lexing, but it seems to me
16473 [feldt ce.cha] Yes, sounds reasonable.
16474 [derek digita] Not to interrupt this thread, but what is rockit?  I've seen that a couple
16475 [feldt ce.cha] Its a compiler construction toolkit. Not part of Ruby but implemented in
16477 [derek digita] Thanks a lot Robert.

^ C-extension question
16476 [szegedy addc] This is a multi-part message in MIME format.
16484 [matz zetabit] There's no difference in Ruby between passing three values and passing

^ Re: Newsgroup mirroring problem alert!
16478 [schneiker ju] [snip, snip, snip]
16480 [Dave Pragmat] I posted to the Japanese list this morning, and Matz followed up

^ Confusion about alias and alias_method
16479 [srussell rhi] I programmed myself into a corner and thought of a fix involving
16490 [decoux moulo] Why ?
+ 16500 [ser germane-] I don't quite understand this.
+ 16535 [decoux moulo] In page 252 of the book, id.inspect is used in an eval (i.e. in a string)

^ FXDocument part of some MVC?
16481 [dsafari para] I'm using FXRuby for an application and getting to a stage where it

^ Test - please ignore
16485 [Dave Pragmat] Just testing

^ Initial thoughts about Ruby From a Smalltalk Programmer
16486 [s3225202 stu] I have to say I'm utterly fascinated by Ruby and I'm really getting

^ FEATURE REQUEST: Smalltalk ^ for return
16487 [s3225202 stu] Is there a hope at all of getting ^ in to the language as an alias for
16488 [luigi.ballab] Michael,
16491 [aleksei.guze] class Fixnum
16492 [luigi.ballab] Of course. But that was before my morning coffee :)
16493 [luigi.ballab] Oh, now I remember. I also wanted to show that the value of an "if"

^ Verify correct lexing of delimited strings
16489 [feldt ce.cha] Could someone knowledgeable in Ruby's parse.y please verify the correct
16494 [Dave Pragmat] I'm not a parse.y pro, but I believe you need to take into account
16495 [feldt ce.cha] I knew I'd missed something. Thanks!
+ 16496 [decoux moulo] I know nothing about parse.y but
| 16497 [feldt ce.cha] Thanks!
| 16501 [Dave Pragmat] The table on 203 and an example on 204 shows this, but we don't
+ 16498 [matz zetabit] Besides the points Dave and Guy pointed out, regexp takes trailing

^ Class Var question
16499 [SAT MULTITEC] This message is in MIME format. Since your mail reader does not understand
16538 [matz zetabit] Cool down and re-think what you want.  Your program did not describe
16610 [SAT MULTITEC] What I want to do is have some "meta" information about an object's members.
+ 16616 [matz zetabit] Is the following code close to what you want?
+ 16617 [matju sympat] class Address # this is the class
  16627 [SAT MULTITEC] Thanks, I think this will do the trick! Unfortunately it just brings up more
  + 16628 [SAT MULTITEC] This worked when put into the class itself but not when using "extend"? Any
  | 16641 [matju sympat] module UserClass
  + 16629 [Dave Pragmat] None - they just belong to a different object :)
threads.html
top