28646-29390

28446-29309 subjects 28822-30230

^ ruby translation/adaption of the Kamin interpreters?
28646 [henning ikso] does anyone know of a ruby translation/adaption of the Kamin interpreters?

^ forced to predeclare functions?
28654 [dempsejn geo] just wondering: do i need to declare my functions at the top of files if
28664 [vjoel PATH.B] class A

^ RDoc - Document Ruby source files
28655 [Dave Pragmat] There's an alpha version of my Ruby documentation package available at
+ 28672 [mikkel incre] wow...
+ 28679 [angus quovad] I didn't install it yet, but looking at the generated docs, it is great!
| 28685 [Dave Pragmat] And.. if you define the same class in multiple files, the links only
+ 28716 [jweirich one] Wonderful!  I'm excited to see this!
| 28717 [anany ece.vi] Hey Dave, this RDoc rocks the house!!! I will definitely be using this
| 28718 [Dave Pragmat] No - I plan to support it (and hope others will too).
+ 28748 [a.bokovoy sa] It would be interesting to see backend that allows RPM to produce correct
  28764 [Dave Pragmat] .. code snipped
  28766 [a.bokovoy sa] Is there a way to execute some code inside your application in an isolated
  28768 [Dave Pragmat] Yes, but... is there any way to supply that code with the data it
  28769 [a.bokovoy sa] Of course, not :)
  + 28772 [Dave Pragmat] As an alternative, would it help to have a hint to RDoc in the
  | + 28777 [frykholm hot] I discovered an error when parsing one of my files. Here is a simplified
  | | 28788 [Dave Pragmat] Yup - 'friad so. I'll be releasing a new alpha fixing this (and the
  | | 28809 [niklas kagi.] [Dave Thomas]
  | | 28810 [Dave Pragmat] Hmm. Thanks - I'll check in to this too
  | + 28783 [a.bokovoy sa] It would help to save class inheritance info. Unfortunately it wouldn't
  + 28789 [cboos bct-te] isolated
    + 28790 [Dave Pragmat] Because then it won't run in the environment in which it will finally
    | + 28792 [a.bokovoy sa] Look at http://www.ruby-lang.org/en/raa-list.rhtml?name=Path
    | | + 28793 [feldt ce.cha] ruby -r rdoc program.rb indata1 ... indatan
    | | | 28796 [Dave Pragmat] That would give me the reflection information, but I'd lose the parse
    | | | + 28798 [feldt ce.cha] Yes, but you have the path to the program being run so can recursively
    | | | | 28801 [feldt ce.cha] Or better, redef require and load and parse the Ruby files being loaded.
    | | | + 28799 [jason jvoege] Have you considered anything similar to Python's "doc strings", which are
    | | + 28794 [Dave Pragmat] Absolutely. I just don't see what I can do about it. Could you perhaps
    | |   + 28802 [rich infoeth] All,
    | |   + 28804 [a.bokovoy sa] Well, making RDoc as module which can be loaded to program and then used for
    | + 28795 [1009039642.1] Yes, this can get arbitrarily complex for a dynamic language like
    + 28791 [a.bokovoy sa] find-requires/provides in RPM.

^ using ranges with rand
28660 [dempsejn geo] With ruby's great range feature, I would think it'd be possible to use
28686 [angus quovad] Here's a slow approach, I don't know about its ruby-wayness(?) :)

^ Matrix#inverse broken?
28666 [vjoel PATH.B] require 'matrix'
+ 28673 [decoux moulo] This is unrelated but
| 28726 [matz ruby-la] Thank you for the patch.
+ 28692 [decoux moulo] Try this

^ Re: Matrix#inverse broken? -- NOT
28668 [vjoel PATH.B] m = Matrix[[1.0,2.0],[2.0,1.0]]
28693 [decoux moulo] Oups I've not seen this, sorry for the previous message

^ NodeDump patch for ruby 1.7.2
28671 [sheepman tcn] In ruby 1.7.2 (2001-12-13) [i686-linux],
28684 [Dave Pragmat] Thanks. I've uploaded 0.1.4 that includes your patch.
28687 [nobu.nokada ] I think it's better that t_dump() returns false unless dumped.
28691 [Dave Pragmat] Agreed - I've applied the patch and uploaded it.

^ How do you do "character filtering" of a string using each_byte.
28676 [olczyk inter] I'm trying to do several things where I produce new strings from old
+ 28677 [ jimm io.com] I'd use regulare expressions and String methods instead. For example,
+ 28682 [dblack candl] See Jim M.'s answer -- also, here's an example of how to do it by
| + 28688 [angus quovad] delete("0-9")
| | 28689 [dblack candl] Whoops :-)  Force of (bad) habit.
| + 28696 [olczyk inter] This response as every response to this thread tells me absolutely
|   28701 [Dave Pragmat] Or possibly the documentation, which is generally considered a polite
|   28924 [olczyk inter] Well gee. I went to the bookstore and of the hundreds of Ruby books I
+ 28705 [pcs3 njit.ed] Pardon, but every response up until your last message answered the
  28713 [corion infor] Luckily, I've stayed out of the flames themselves ...

^ How do you do "character filtering" of a string using each_byte. II
28695 [olczyk inter] There has been a trend I noticed in the last few years of the Usenet.
+ 28699 [dblack candl] It's nothing new.  Personally, I've been using Usenet since 1990 --
| 28700 [decoux moulo] Personnaly, I'm really stupid
+ 28703 [ jimm io.com] [rude, thankless rant snipped]
+ 28715 [angus quovad] I don't understand what you consider a hack (?). The people that helped you

^ Re: String filtering, character-wise (was: Re: How do you do "character filtering" of a string using each_byte. II)
28702 [dblack candl] "\\x%x" % b[0]
28736 [decoux moulo] No, you are right it's better to write like this, this is just that I'm

^ A byte-compiler?
28709 [gnuvince yah] Is what I heard true?  Will Ruby have a byte-compiler?  If so, I think
28710 [vruz www.dig] do you mean a Ruby-to-java-bytecode compiler ?
+ 28711 [anany ece.vi] Rite, the semi-official name of Ruby 2.0, is supposed to be based on a
+ 28712 [gnuvince yah] I Don't think it was JRuby.  I don't recall seeing Java mentionned.

^ Testing question wrt Ruby
28714 [rich infoeth] Has anyone out there in Rubyland used a dynamic language (Ruby) to build an

^ New article on rubyxml.com describing event-based processing
28719 [ruby jamesbr] I've posted an article on rubyxml.com describing event-based processing using the REXML
28744 [dsafari xtra] Fantastic! Thank you James - documentation and ideas like this are an
28771 [james rubyxm] Thank you.
28841 [curt hibbs.c] The link to this article brings up an empty page.
+ 28844 [rich infoeth] I works on my machine (Win2K IE5.5)
+ 28850 [james rubyxm] I just made some changes; it validates now as XHTML 1.0 Transitional, so you should be
  + 28853 [curt hibbs.c] I'm still getting an empty page. Although if I view the source I can see it
  + 28860 [tom.hurst cl] It lays out badly in Opera 6 and very badly in Mozilla.
    28870 [james rubyxm] Do I get severance pay?

^ Scanning for delimited substrings
28721 [mdemello ruf] I need to scan a string for delimited substrings, and return an array (as in
+ 28725 [billk cts.co] scan(/<<.*?>>|(?:.(?!<<))+/)
| 28739 [mdemello ruf] Thanks! The nested delimiters thing looks good too.
| 28746 [mdemello ruf] Misbehaved on a few test cases - the problem was that it swallowed the last
| 28813 [billk cts.co] Aiyeeeeeeee!!!!  Shame on me =(
| 29019 [martindemell] I took the excuse to pore over the extended regexp documentation and
+ 28727 [billk cts.co] Here's a thought:  (not thoroughly tested (!))

^ stderr from external process?
28722 [mikkelj-anti] I would like to use Ruby as a kind of "make" script.
+ 28723 [phlip_cpp ya] /usr/lib/ruby/1.6/open3.rb:#    in, out, err = Open3.popen3('nroff -man')
+ 28923 [mikkelj-anti] Thanks to Phil for his answer (I think it was Phil) - my newsfeed has a very
  28944 [mikkelj-anti] Now I have got something working in Ruby (partially)
  28922 [mikkelj-anti] Well - cmd needs the exit command for the process to terminate.

^ Win32 Eventlog extension
28728 [sol123 msn.c] I'am submitting this extension (eventlog) for win32, it has been
28761 [nat.pryce b1] This is a multi-part message in MIME format.

^ Other Rubyists in Portland, OR area?
28730 [ptkwt shell1] I'm wondering th there are any other Rubyists out there in the Portland,

^ Northern VA Users Group
28731 [rich infoeth] All Northern VA and DC Rubyists...let's meet!
28733 [dempsejn geo] Where do you meet? I go to Georgetown and would love to meet with other ruby

^ How can we get publicity for 1.8 release?
28732 [ptkwt shell1] Ruby 1.8 is apparently coming out soon (based on recent posts from Matz) -
+ 28757 [dblack candl] Good post, Phil -- thanks for sharing those thoughts and putting them
| 28805 [hal9000 hype] I'll second that. There is a shortage of women in
| + 28812 [deicher sand] This is way off topic from the subject line.
| | + 28814 [vruz www.dig] Way to go, Diana !!
| | + 28905 [ptkwt shell1] So with David Black's suggestion of bringing more women into the Ruby
| + 28914 [kentda stud.] I've been wondering how to go about "marketing" a Ruby introductory
|   28947 [toddg linux1] After female collegues have 'ripped me a new one'[0] often enough, the
+ 29004 [bobh hslda.o] 1. Ruby in general terms
| + 29040 [matt greenvi] Of course, as stated before, ruby should be aiming at all the platforms it runs under, not just linux. And I'm never quite sure whether to trust things i see on /. anymore... ;) I wonder how hard it would be to get Cnet and all the other Windows sites to at least mention it. And if someone had the $$$ to donate, ruby could be listed on versiontracker.com in the sponsored links section... Just a couple ideas, anyone have better ones?
| | 29055 [bobhicks ade] We all need to pester every news site for all platforms period! The best
| + 29390 [in6x059 publ] Matz probably already has enough stuff to do. Someone else could do
+ 29386 [in6x059 publ] Dave did this: [ruby-talk:10232] and

^ getting started with MinGW
28734 [barry_shultz] I'd like to be able to compile Ruby on my NT4 box using MinGW. I found
+ 28751 [neumann s-di] There's no shell, you have to use the good old Dos shell.
+ 28756 [nobu.nokada ] You can use cygwin's shell.  Unless I'm wrong, cygwin would be
  28824 [loriend bigp] Only some parts of cygwin are needed. I think it is just sh and cygwin.dll,
  28830 [nobu.nokada ] Since I've never built mingw ruby with mingw make, I didn't
  28854 [barry_shultz] Thanks to you and Michael for the replies. I see this is going

^ Iowa installation experience
28735 [W.L.Kleb LaR] Just a report on my experience getting Iowa-0.14a installed with

^ [Announcement] Ruby news weekly
28737 [dsafari xtra] A while ago there was a thread that started by Phil Tomson based on
+ 28738 [matz ruby-la] Great job!  I'd like to express my personal appreciation to your
| 28740 [dsafari xtra] No need to thank me matz, you are Ruby creator :)
+ 28758 [dblack candl] Good job -- I think it looks really good.  One suggestion, if it's not
| 28762 [Dave Pragmat] Click on the title...
| 28765 [dblack candl] Whoops, I didn't catch that because they are black on my screen (i.e.,
+ 28820 [huber alum.w] I like this -- would it be possible to get this via email?
  + 28821 [hal9000 hype] That's an interesting idea.
  + 28823 [Dave Pragmat] 1. We ask someone on www.ruby-lang.org to set up a mailing list for
    28826 [matz ruby-la] Yes.  And I'd like to add addresses like LWN to the list.
    + 28828 [dempsejn geo] Perhaps too dull, but what about ruby-news? Or perhaps ruby-weekly or
    + 28831 [Dave Pragmat] Facets-of-Ruby   :)
    + 28836 [gnhurst hurs] I submit "Ruby Sparkles"
    | + 28838 [curt hibbs.c] I know its fun to think up cool new names, and I hate to sound "boring", but
    | | + 28848 [lists.ruby-t] I would lean towards simple, clear, unambiguous as well.  Though
    | | | 28852 [james rubyxm] It's called "XML Deviant" :)
    | | + 28851 [james rubyxm] So I guess you don't care for the "Ruby Doobie" submission?
    | | + 28877 [pate network] An additional option would be to join the Kernel-Cousins mailing list
    | | | 28946 [rokosm kloka] Ruby.news().week(XX)
    | | + 28948 [mikkelj-anti] Ruby Miner Weekly
    | |   28951 [kentda stud.] I second this one. It uses the metaphor, while still being quite
    | + 28839 [vjoel PATH.B] I like that. It reads two ways.
    |   28915 [kentda stud.] IMHO, a certain "Flash" technology has ruined any usage of the word
    + 28840 [dsafari xtra] Weekly Rubies
      28842 [billk cts.co] Ruby Weekly Gems  ?

^ Yet Another Unit Test Framework
28747 [jesjones min] I've just started working with Ruby. I'm a hardcore C++ programmer, but
28945 [kentda stud.] I've only had a quick glance, but here are the reasons I won't be moving
28917 [jesjones min] Most tests are fundamentally pretty simple: you create one or more
28920 [kentda stud.] But the class method has a much larger definition signature in Ruby,
+ 28935 [jesjones min] It solved this problem and as a bonus resulted in a more cohesive
+ 28936 [jesjones min] Good point. I'll have to experiment with this a bit and see if I like

^ Constant loss of memory with Kernel::load in a loop
28749 [frodo.hobbit] We have developed a wonderful application under Windows 2K using Ruby 1.6.5
+ 28750 [neumann s-di] I don't know, but maybe it's the method you declare in loadit.rb?
| 28753 [frodo.hobbit] "Michael Neumann" <neumann@s-direktnet.de> schrieb im Newsbeitrag
| 28759 [martin.kahle] Seems to be not Windows related.
+ 28752 [decoux moulo] Can you try this patch, it's against ruby-1.6.5 to see if it give better
| 28754 [frodo.hobbit] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
+ 28755 [nobu.nokada ] It may be a fixed bug.
  + 28760 [decoux moulo] No, I don't think
  | + 28767 [frodo.hobbit] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
  | | 28775 [decoux moulo] Yes, the string which is the result of strdup() is stored in *each* node
  | | + 28776 [martin.kahle] [broken patch deleted]
  | | + 28778 [martin.kahle] So every node knows, where it came from.
  | |   28779 [decoux moulo] yes,
  | + 28774 [nobu.nokada ] Sorry, I'd missed your [ruby-talk:28752].
  |   28782 [decoux moulo] Well actually I see also only this solution, but it seems a big
  |   28803 [nobu.nokada ] Agreed.  It's not glad.
  |   29128 [matz ruby-la] I know it leaks.  But they are small memory chunks.  Do I have to fix
  |   29152 [nobu.nokada ] It certainly makes GC slow, lookup a hash for each NODE's.  And
  |   29153 [cboos bct-te] Ok, let me propose a quick hack :)
  |   29161 [nobu.nokada ] Yes.  It's similar to my proposal except using a particular
  |   29203 [matz ruby-la] [ruby-talk:28803]? I don't think so.  Your patch scans filename
  |   29209 [nobu.nokada ] No, later [ruby-talk:29152].  I didn't post the patch.
  |   + 29211 [nobu.nokada ] It was exactly big.
  |   | 29341 [nobu.nokada ] Oops, I'd forgotten to mark ruby_sourcefile.
  |   + 29214 [cboos bct-te] I saw the patch sent by Nobu Nokada, however I think
  |     29220 [nobu.nokada ] I agree it,
  |     29224 [cboos bct-te] If you don't like merging the two concepts, fine. We just
  |     29301 [nobu.nokada ] Your proposal means that load method is divided into 2 kinds,
  + 28763 [frodo.hobbit] <nobu.nokada@softhome.net> schrieb im Newsbeitrag

^ Re: Constant loss of memory with Kernel::load in a loop (patch)
28770 [martin.kahle] it is against the stable-snapshot ruby 1.6.6 (2001-12-13) [i686-linux]
28773 [decoux moulo] No, don't do this.

^ DRb question
28784 [rcalco corte] I'm trying to run a client of a remote ruby object via DRb. Works fine when
28785 [rcalco corte] Nevermind, I figured it out... ALL the IPs of ALL the participants need to

^ DBI/DBD installation problems
28786 [markm chaos.] I come from a Perl background and want to try Ruby to see if it's
28787 [erik bagfors] First you need to install the mysql-package, then install DBI.

^ Tracing instance variables
28797 [jason jvoege] I'm working on a Ruby binding for the GOODS object-oriented database.  What
28811 [paul atdesk.] You can trace assignments to global variables, but you cannot trace
28825 [pcs3 njit.ed] attr_accessor creates = methods for it's instance vars.  Could you use
28846 [WYS helbling] Just an idea. Instead of always updating the "@modified"-flag why not

^ hashes created dynamically
28800 [M.Schlienger] does anyone know how to create hashes at runtime?
+ 28806 [mdavis sevai] Have you tried Hash.new()?
+ 28807 [dblack candl] I don't know any other way to do it in Ruby :-)
  28808 [anany ece.vi] h = {}  #or, h = Hash.new

^ array.to_h
28815 [dempsejn geo] with to_a it is possible to create an array from a hash...is there a function to do the
+ 28816 [vjoel PATH.B] h = Hash[*[1, 2, 3, 4]]
| 28817 [dempsejn geo] wow...it really does get easier...thanks so much!
+ 28903 [ser germane-] h = Hash[ *array ]
  28907 [info mjais.d] why is there an "*" before "array"?
  28918 [ser germane-] "*" explodes an array and turns it into a list.

^ Best way to do XML-RPC
28818 [mps discomsy] I'm trying to promote the use of Ruby on a project I'm working on.
+ 28819 [rich infoeth] I think XML-RPC has the most languages supporting it right now,
+ 28899 [neumann s-di] Using a CGI or FastCGI server with an Apache server gives you more power/speed
| 28989 [mps discomsy] Michael,
+ 28904 [ser germane-] I generally have used a stand-alone server; the XML-RPC package for Ruby is
  29048 [nahi keynaut] Although you don't like SOAP, SOAP4R will support REXML based parsing.
threads.html
top