28646-29390
28446-29309 subjects 28822-30230
ruby translation/adaption of the Kamin interpreters?
28646 [henning@ik o] does anyone know of a ruby translation/adaption of the Kamin interpreters?
forced to predeclare functions?
28654 [dempsejn@ge ] just wondering: do i need to declare my functions at the top of files if
28664 [vjoel@PA H. ] class A
RDoc - Document Ruby source files
28655 [Dave@Pr gm t] There's an alpha version of my Ruby documentation package available at
+ 28672 [mikkel@in re] wow...
+ 28679 [angus@qu va ] I didn't install it yet, but looking at the generated docs, it is great!
| 28685 [Dave@Pr gm t] And.. if you define the same class in multiple files, the links only
+ 28716 [jweirich@on ] Wonderful! I'm excited to see this!
| 28717 [anany@ec .v ] Hey Dave, this RDoc rocks the house!!! I will definitely be using this
| 28718 [Dave@Pr gm t] 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@Pr gm t] .. code snipped
28766 [a.bokovoy@sa] Is there a way to execute some code inside your application in an isolated
28768 [Dave@Pr gm t] Yes, but... is there any way to supply that code with the data it
28769 [a.bokovoy@sa] Of course, not :)
+ 28772 [Dave@Pr gm t] As an alternative, would it help to have a hint to RDoc in the
| + 28777 [frykholm@ho ] I discovered an error when parsing one of my files. Here is a simplified
| | 28788 [Dave@Pr gm t] Yup - 'friad so. I'll be releasing a new alpha fixing this (and the
| | 28809 [niklas@ka i.] [Dave Thomas]
| | 28810 [Dave@Pr gm t] 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@bc -t ] isolated
+ 28790 [Dave@Pr gm t] 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 ch ] ruby -r rdoc program.rb indata1 ... indatan
| | | 28796 [Dave@Pr gm t] That would give me the reflection information, but I'd lose the parse
| | | + 28798 [feldt@ce ch ] Yes, but you have the path to the program being run so can recursively
| | | | 28801 [feldt@ce ch ] Or better, redef require and load and parse the Ruby files being loaded.
| | | + 28799 [jason@jv eg ] Have you considered anything similar to Python's "doc strings", which are
| | + 28794 [Dave@Pr gm t] Absolutely. I just don't see what I can do about it. Could you perhaps
| | + 28802 [rich@in oe h] 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@ge ] With ruby's great range feature, I would think it'd be possible to use
28686 [angus@qu va ] Here's a slow approach, I don't know about its ruby-wayness(?) :)
Matrix#inverse broken?
28666 [vjoel@PA H. ] require 'matrix'
+ 28673 [decoux@mo lo] This is unrelated but
| 28726 [matz@ru y- a] Thank you for the patch.
+ 28692 [decoux@mo lo] Try this
Re: Matrix#inverse broken? -- NOT
28668 [vjoel@PA H. ] m = Matrix[[1.0,2.0],[2.0,1.0]]
28693 [decoux@mo lo] Oups I've not seen this, sorry for the previous message
NodeDump patch for ruby 1.7.2
28671 [sheepman@tc ] In ruby 1.7.2 (2001-12-13) [i686-linux],
28684 [Dave@Pr gm t] 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@Pr gm t] Agreed - I've applied the patch and uploaded it.
How do you do "character filtering" of a string using each_byte.
28676 [olczyk@in er] I'm trying to do several things where I produce new strings from old
+ 28677 [ jimm@io co ] I'd use regulare expressions and String methods instead. For example,
+ 28682 [dblack@ca dl] See Jim M.'s answer -- also, here's an example of how to do it by
| + 28688 [angus@qu va ] delete("0-9")
| | 28689 [dblack@ca dl] Whoops :-) Force of (bad) habit.
| + 28696 [olczyk@in er] This response as every response to this thread tells me absolutely
| 28701 [Dave@Pr gm t] Or possibly the documentation, which is generally considered a polite
| 28924 [olczyk@in er] Well gee. I went to the bookstore and of the hundreds of Ruby books I
+ 28705 [pcs3@nj t. d] Pardon, but every response up until your last message answered the
28713 [corion@in or] Luckily, I've stayed out of the flames themselves ...
How do you do "character filtering" of a string using each_byte. II
28695 [olczyk@in er] There has been a trend I noticed in the last few years of the Usenet.
+ 28699 [dblack@ca dl] It's nothing new. Personally, I've been using Usenet since 1990 --
| 28700 [decoux@mo lo] Personnaly, I'm really stupid
+ 28703 [ jimm@io co ] [rude, thankless rant snipped]
+ 28715 [angus@qu va ] 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@ca dl] "\\x%x" % b[0]
28736 [decoux@mo lo] No, you are right it's better to write like this, this is just that I'm
A byte-compiler?
28709 [gnuvince@ya ] Is what I heard true? Will Ruby have a byte-compiler? If so, I think
28710 [vruz@ww .d g] do you mean a Ruby-to-java-bytecode compiler ?
+ 28711 [anany@ec .v ] Rite, the semi-official name of Ruby 2.0, is supposed to be based on a
+ 28712 [gnuvince@ya ] I Don't think it was JRuby. I don't recall seeing Java mentionned.
Testing question wrt Ruby
28714 [rich@in oe h] 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@ja es r] I've posted an article on rubyxml.com describing event-based processing using the REXML
28744 [dsafari@xt a] Fantastic! Thank you James - documentation and ideas like this are an
28771 [james@ru yx ] Thank you.
28841 [curt@hi bs c] The link to this article brings up an empty page.
+ 28844 [rich@in oe h] I works on my machine (Win2K IE5.5)
+ 28850 [james@ru yx ] I just made some changes; it validates now as XHTML 1.0 Transitional, so you should be
+ 28853 [curt@hi bs 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@ru yx ] Do I get severance pay?
Scanning for delimited substrings
28721 [mdemello@ru ] I need to scan a string for delimited substrings, and return an array (as in
+ 28725 [billk@ct .c ] scan(/<<.*?>>|(?:.(?!<<))+/)
| 28739 [mdemello@ru ] Thanks! The nested delimiters thing looks good too.
| 28746 [mdemello@ru ] Misbehaved on a few test cases - the problem was that it swallowed the last
| 28813 [billk@ct .c ] Aiyeeeeeeee!!!! Shame on me =(
| 29019 [martindemell] I took the excuse to pore over the extended regexp documentation and
+ 28727 [billk@ct .c ] 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@ms .c] ...
28761 [nat.pryce@b1] ...
Other Rubyists in Portland, OR area?
28730 [ptkwt@sh ll ] I'm wondering th there are any other Rubyists out there in the Portland,
Northern VA Users Group
28731 [rich@in oe h] All Northern VA and DC Rubyists...let's meet!
28733 [dempsejn@ge ] 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@sh ll ] Ruby 1.8 is apparently coming out soon (based on recent posts from Matz) -
+ 28757 [dblack@ca dl] Good post, Phil -- thanks for sharing those thoughts and putting them
| 28805 [hal9000@hy e] I'll second that. There is a shortage of women in
| + 28812 [deicher@sa d] This is way off topic from the subject line.
| | + 28814 [vruz@ww .d g] Way to go, Diana !!
| | + 28905 [ptkwt@sh ll ] So with David Black's suggestion of bringing more women into the Ruby
| + 28914 [kentda@st d.] I've been wondering how to go about "marketing" a Ruby introductory
| 28947 [toddg@li ux ] After female collegues have 'ripped me a new one'[0] often enough, the
+ 29004 [bobh@hs da o] 1. Ruby in general terms
| + 29040 [matt@gr en i] 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@ad ] We all need to pester every news site for all platforms period! The best
| + 29390 [in6x059@pu l] Matz probably already has enough stuff to do. Someone else could do
+ 29386 [in6x059@pu l] 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- i] 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@bi p] 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@La ] Just a report on my experience getting Iowa-0.14a installed with
[Announcement] Ruby news weekly
28737 [dsafari@xt a] A while ago there was a thread that started by Phil Tomson based on
+ 28738 [matz@ru y- a] Great job! I'd like to express my personal appreciation to your
| 28740 [dsafari@xt a] No need to thank me matz, you are Ruby creator :)
+ 28758 [dblack@ca dl] Good job -- I think it looks really good. One suggestion, if it's not
| 28762 [Dave@Pr gm t] Click on the title...
| 28765 [dblack@ca dl] Whoops, I didn't catch that because they are black on my screen (i.e.,
+ 28820 [huber@al m. ] I like this -- would it be possible to get this via email?
+ 28821 [hal9000@hy e] That's an interesting idea.
+ 28823 [Dave@Pr gm t] 1. We ask someone on www.ruby-lang.org to set up a mailing list for
28826 [matz@ru y- a] Yes. And I'd like to add addresses like LWN to the list.
+ 28828 [dempsejn@ge ] Perhaps too dull, but what about ruby-news? Or perhaps ruby-weekly or
+ 28831 [Dave@Pr gm t] Facets-of-Ruby :)
+ 28836 [gnhurst@hu s] I submit "Ruby Sparkles"
| + 28838 [curt@hi bs 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@ru yx ] It's called "XML Deviant" :)
| | + 28851 [james@ru yx ] So I guess you don't care for the "Ruby Doobie" submission?
| | + 28877 [pate@ne wo k] An additional option would be to join the Kernel-Cousins mailing list
| | | 28946 [rokosm@kl ka] Ruby.news().week(XX)
| | + 28948 [mikkelj-anti] Ruby Miner Weekly
| | 28951 [kentda@st d.] I second this one. It uses the metaphor, while still being quite
| + 28839 [vjoel@PA H. ] I like that. It reads two ways.
| 28915 [kentda@st d.] IMHO, a certain "Flash" technology has ruined any usage of the word
+ 28840 [dsafari@xt a] Weekly Rubies
28842 [billk@ct .c ] Ruby Weekly Gems ?
Yet Another Unit Test Framework
28747 [jesjones@mi ] I've just started working with Ruby. I'm a hardcore C++ programmer, but
28945 [kentda@st d.] I've only had a quick glance, but here are the reasons I won't be moving
28917 [jesjones@mi ] Most tests are fundamentally pretty simple: you create one or more
28920 [kentda@st d.] But the class method has a much larger definition signature in Ruby,
+ 28935 [jesjones@mi ] It solved this problem and as a bonus resulted in a more cohesive
+ 28936 [jesjones@mi ] 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- i] 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@mo lo] 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@mo lo] No, I don't think
| + 28767 [frodo.hobbit] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
| | 28775 [decoux@mo lo] 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@mo lo] yes,
| + 28774 [nobu.nokada@] Sorry, I'd missed your [ruby-talk:28752].
| 28782 [decoux@mo lo] Well actually I see also only this solution, but it seems a big
| 28803 [nobu.nokada@] Agreed. It's not glad.
| 29128 [matz@ru y- a] 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@bc -t ] Ok, let me propose a quick hack :)
| 29161 [nobu.nokada@] Yes. It's similar to my proposal except using a particular
| 29203 [matz@ru y- a] [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@bc -t ] I saw the patch sent by Nobu Nokada, however I think
| 29220 [nobu.nokada@] I agree it,
| 29224 [cboos@bc -t ] 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@mo lo] No, don't do this.
DRb question
28784 [rcalco@co te] I'm trying to run a client of a remote ruby object via DRb. Works fine when
28785 [rcalco@co te] Nevermind, I figured it out... ALL the IPs of ALL the participants need to
DBI/DBD installation problems
28786 [markm@ch os ] I come from a Perl background and want to try Ruby to see if it's
28787 [erik@ba fo s] First you need to install the mysql-package, then install DBI.
Tracing instance variables
28797 [jason@jv eg ] I'm working on a Ruby binding for the GOODS object-oriented database. What
28811 [paul@at es .] You can trace assignments to global variables, but you cannot trace
28825 [pcs3@nj t. d] attr_accessor creates = methods for it's instance vars. Could you use
28846 [WYS@he bl ng] 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@se ai] Have you tried Hash.new()?
+ 28807 [dblack@ca dl] I don't know any other way to do it in Ruby :-)
28808 [anany@ec .v ] h = {} #or, h = Hash.new
array.to_h
28815 [dempsejn@ge ] with to_a it is possible to create an array from a hash...is there a function to do the
+ 28816 [vjoel@PA H. ] h = Hash[*[1, 2, 3, 4]]
| 28817 [dempsejn@ge ] wow...it really does get easier...thanks so much!
+ 28903 [ser@ge ma e-] h = Hash[ *array ]
28907 [info@mj is d] why is there an "*" before "array"?
28918 [ser@ge ma e-] "*" explodes an array and turns it into a list.
Best way to do XML-RPC
28818 [mps@di co sy] I'm trying to promote the use of Ruby on a project I'm working on.
+ 28819 [rich@in oe h] I think XML-RPC has the most languages supporting it right now,
+ 28899 [neumann@s- i] Using a CGI or FastCGI server with an Apache server gives you more power/speed
| 28989 [mps@di co sy] Michael,
+ 28904 [ser@ge ma e-] I generally have used a stand-alone server; the XML-RPC package for Ruby is
29048 [nahi@ke na t] Although you don't like SOAP, SOAP4R will support REXML based parsing.
threads.html
top