4903-5272 subjects 5310-5785
^ Hanging require
5091 [aleksi.nieme] echo "require 'ext_b'" > a.rb
5092 [aleksi.nieme] Here's a patch for my earlier hanging. I can't say for sure this works, as
5108 [matz zetabit] Hmm, I think hangling problem is already fixed in 1.6.1 (CVS). And
^ binding weirdness
5093 [green FreeBS] I notice that (using 1.6.0 and 1.6.1 snapshot; finding some other kinda
+ 5094 [decoux moulo] 1.4 do the same
| 5095 [decoux moulo] it's best to read 'it search getopts in the class of self' :-(
+ 5099 [matz zetabit] I think it's caused by method cache inconsistency. Try the following
5103 [green FreeBS] It makes things weirder than before :-( It fixes the case I presented, but
5105 [decoux moulo] @@ -5042,4 +5038,4 @@
5106 [green FreeBS] It works now! Thank you both :)
+ 5107 [decoux moulo] Well I've just said that it exist a problem on this patch, not that you
+ 5110 [matz zetabit] Sorry for the buggy patch. I'll update CVS.
^ regexp and performance
5101 [bombadil wan] I have probed example occur.rb with a big file and Ruby 1.6.
+ 5102 [decoux moulo] Probably this is not the regexp engine
+ 5109 [matz zetabit] That's because regexp internal stack is now allocated in the heap to
^ SWIG1.3a5 released
5104 [fukusima got] SWIG1.3a5 has been released. SWIG is a software development tool
^ Best New Trade Show Display by Opera Portables, Inc. adv
5111 [operak earth] Opera Portables, Inc. is offering "by invitation" visits to our web site. Packed full of exciting projects and news, Opera is leading the industry with displays that are as much eye-popping as they are eye catching.
^ Ruby Book, Eng. tl, kei/kata and shurui -> 'type'?
5112 [jon kanji.co] Jon, the editor, here...
5132 [matz zetabit] 'オブジェクトの型 (object no kata)' reminds me the dynamic type of an
^ Types and ===
5114 [hal9000 hype] <sigh> I imagine Yoda behind me, shaking his little green head
+ 5116 [green FreeBS] You're right. This is definitely one such case.
+ 5117 [yashi yashi.] ahm... I might be missing something. You said '*Normally* when x ==
5118 [hal9000 hype] Ahhhh. I now perceive the Ruby Way.
+ 5120 [yashi yashi.] '===' does not imply '==' at all. '===' is defined in each class the
| 5122 [hal9000 hype] Yes... I guess one root of my difficulty is that I have chosen to understand
| + 5123 [green FreeBS] Right! That's because Ruby is purely OO =)
| + 5126 [yashi yashi.] you *can* do this, sort of, using case. but, IMHO, i don't know i'd
| 5128 [green FreeBS] Since this won't work, and neither does my previous suggestion work
| + 5140 [matju cam.or] def newmethod.previous; @previous; end
| + 5141 [hal9000 hype] Yes, this works.
| 5142 [schneik us.i] # First of all, I think I disagree with the assertion that the case
| 5143 [aleksi.nieme] I was thinking much harder cases, but this one is really easy.
| 5144 [hal9000 hype] Well, Aleksi,
| 5146 [schneik us.i] # Well, Aleksi,
| 5160 [hal9000 hype] since
| 5161 [schneik us.i] # >
| + 5163 [hal9000 hype] OK, I see what you are saying...
| | + 5169 [matz zetabit] I felt the case behavior should be determined by objects listed after
| | | + 5170 [decoux moulo] Personnally, I think this is the right way to do it. Unfortunately in this
| | | + 5176 [dfan harmoni] That is the reason that I assumed when I first found that the
| | + 5172 [kjana os.xax] Because we want to test some variable is in some container, in range,
| + 5166 [matju cam.or] the method name (:===) is a parameter.
| 5167 [aleksi.nieme] Your persistence is no suprise for me, I know there's people like that. On
+ 5127 [matju cam.or] def foo(arg)
^ crashes in ruby-lex.rb
5129 [green FreeBS] I've gotten a few crashes when doing some weird things in irb (repeatable in
5130 [matz zetabit] This is not caused by irb, but because that Module#dup did not copy
^ Ruby for Macintosh?
5133 [Jon.Kleiser ] I've seen a couple of web pages (e.g.
+ 5135 [number6 alig] Jon,
+ 5136 [matz zetabit] Ruby 1.1c9 was ported to Mac. But Mac port was not maintained since
5145 [shugo ruby-l] Sorry, this is a test message for ML server.
^ ANNOUNCE: Ruby 1.6.1
5147 [matz picachu] md5sum is
^ Config 1.6.1 on Solaris 2.5.1
5148 [hgs dmu.ac.u] checking count field in FILE structures... _cnt
+ 5149 [fit0298 fite] Now, I build ruby from ruby-1.6.1.tar.gz via gcc-2.8.1.
+ 5150 [matz zetabit] Hmm, could you check if the following patch will do?
5151 [hgs dmu.ac.u] It doesn't seem to make any difference, but since I'm working from
5152 [decoux moulo] moulon% diff -u configure~ configure
5155 [hgs dmu.ac.u] This has fixed the problem at the configure stage. Thank you.
^ Compile Problem with 1.6.1
5157 [aerogems net] gcc -O3 -mathlon -march=athlon -mcpu=athlon -I. -I.
5158 [matz zetabit] Would you mind if I suspect AthlonGCC bug?
5168 [aerogemsX ne] Well, an AthlonGCC bug might be the cause, but I've had no problems
5171 [matz zetabit] Ruby is a rather complicated software.
+ 5174 [aerogemsX ne] Well, just to see what would happen, I changed the Athlon optimisations
| 5181 [matz zetabit] float 9 .. Hmm, could you show me the result of
| 5212 [aerogemsX ne] [root@localhost scott]# ruby -e 'p ((13.4 % 1 - 0.4).abs)'
| 5217 [matz zetabit] ???? How about this?
| 5243 [aerogemsX ne] [root@localhost /downloads]# ruby -e 'p((13.4 % 1 - 0.4).abs <
| 5249 [matz zetabit] Interesting. On your machine, (13.4 % 1 - 0.4).abs gives
| 5267 [aerogemsX ne] [root@localhost qt-gui]# ruby -e 'p(3.330669074e-16 < 0.001)'
| 5274 [matz zetabit] Not the worst, but I still have no idea about what make this false.
| 5277 [aerogemsX ne] The result of the C program you gave (BTW, you forgot the ; after the
| 5280 [matz zetabit] Hmm, your compiler works fine as I expected.
+ 5698 [nick_hynes m] #include <signal.h>
^ Ruby sighting at www.perl.com.
5165 [schneik us.i] FYI/FWIW, there is a link to
^ Re: methods w/ ! giving nil
5173 [marchign di.] Changing swap does not work since swap can be invoked also for equal
5179 [matz zetabit] Let me compare this with [ruby-talk:4564]. And could give me a patch
^ Compiling 1.6.1 problem
5175 [Callus Sympa] gcc -g -O2 -I. -I. -I/usr/local/include -c eval.c
5180 [matz zetabit] This indicates you have rlimit but don't have sys/resource.h on your
5190 [Callus Sympa] That's the direction that I needed to be pointed in, thanks. For some reason,
+ 5191 [yashi yashi.] hmm... linux 2.4.0-test* has RLIM_INFINITY defined in
| 5196 [Callus sympa] Thus spake Yasushi Shoji (firstname.lastname@example.org)
| + 5200 [yashi yashi.] sorry i wasn't clear enough. the reason you get compile error is
| | 5201 [Callus Sympa] This looks the same as yours except that I have an extra directory in
| + 5203 [matz zetabit] Hmm, my <sys/resource.h> does not include <asm/resources.h> directly
| 5204 [Callus Sympa] My <sys/resource.h> includes <bits/resource.h> which in turn includes
| 5206 [matz zetabit] I just don't know. Only thing I can tell your is that my glibc 2.1.3
+ 5192 [matz zetabit] Could you show us the contents of config.log? Probably clue to know
^ equivalent to Python's os.path?
5178 [dfan harmoni] Does Ruby have a module equivalent to Python's os.path? It is useful
+ 5189 [kjana os.xax] elements with File.join.
+ 5195 [matz zetabit] Most of os.path functionality is already provided.
5202 [dfan harmoni] Very much so, thanks!
^ ruby-list etc. English translation
5182 [matz zetabit] We are still preparing our own translation system.
5183 [schneik us.i] # Hi,
5193 [matz zetabit] Oops, I'll fix it.
5198 [Tim.Duncan s] Unfortunately, it still has a long way to go before it becomes usable. On
5199 [jon kanji.co] Too busy now, but I've been keeping a vocabulary list for "First
^ book for beginners.
5184 [skol sbox.tu] i am searching for a book for an absolute beginner (concerning ruby). i
5185 [schneik us.i] # i am searching for a book for an absolute beginner (concerning ruby).
5186 [schneik us.i] # # i am searching for a book for an absolute beginner (concerning
^ bug in example occur2.rb?
5187 [bombadil wan] When I execute example occur2.rb with Ruby 1.6.1 (with 1.6.0 is the
5188 [decoux moulo] No, this is because NameError is now a sub-class of ScriptError, which is
5194 [matz zetabit] Yeah, it's a bug in occur2.rb. Sorry. I'm gonna fix it as Guy
^ ANNOUNCE: rubyweb -- literate programming for ruby?
5197 [hgs dmu.ac.u] I have developed a system for re-sequencing embedded documentation
5207 [frido q-soft] for e-mail reply remove all after .com
^ killing ALLOCA_N
5208 [green FreeBS] ALLOCA_N() isn't good because stacks are not meant to be huge and often have
5233 [matz zetabit] The stack consumption is mainly done in interpreter itself, so that
^ Programming Ruby - small error in posted preface
5209 [Dave thomase] I was reading through the Excite-translated ruby-list archives (thank
^ Ruby slides
5210 [Dave thomase] If anyone is interested, the slides of the presentation on Ruby that
+ 5211 [trinexus one] I can see why your talk went well. A great set of slides that really give
+ 5214 [hal9000 hype] Very impressive work, Dave...
5216 [Dave thomase] Well, there's still some heated discussion about Andy and the nude
+ 5241 [andy toolshe] Somehow a nude iterator just isn't the same...
| 5242 [aleksi.nieme] I'd say Andy is just modest and wants to keep up the exciting athmosphere
+ 5282 [mulperi iki.] So, does it have ISBN yet? I want to pre order this thingy.
5283 [gnhurst hurs] Programming Ruby: The Pragmatic Programmer's Guide
^ RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby! (Revised 2000-09-17)
5213 [schneiker ju] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby! (Revised 2000-09-17)
^ Ruby Book Eng tl, ch1 question
5218 [jon kanji.co] In the Ruby Book, ch1, in a list of 7 features that characterize Ruby
5219 [yashi yashi.] I tried to write one nice sentence but faild, so i'll leave that to
5222 [jon kanji.co] Thanks.
5223 [yashi yashi.] nice. :-) i like it.
5224 [jon kanji.co] Ah, thanks, I think I get it, a slightly different nuance then.
5225 [yashi yashi.] one more thing (sorry to be picky)
5226 [jon kanji.co] 'Because all of Ruby has been...' -> 'Because Ruby has been...'?
+ 5227 [yashi yashi.] that's what I thought. but the word 'Ruby' should cover that.
| 5230 [manamist whi] The traffic of rich & powerful features and/or functionals of Ruby
| 5232 [Callus Sympa] "Ruby's object oriented philosophy and design makes its powerful features
| 5238 [matz zetabit] I like these.
+ 5246 [hal9000 hype] Hmm... I speak only English (and a little German,
5275 [matju cam.or] I speak only English (and French, which in this case is useless as a
5276 [schneik us.i] # > Hmm... I speak only English (and a little German,
5278 [jon kanji.co] I find your input very interesting and helpful and look forward to
+ 5279 [jon kanji.co] 分類する (bunrei suru)
+ 5281 [matz zetabit] And it will fall in my hands soon. ;-)
^ Ruby Book, Eng. tl, ch1 -- code snippet correct?
5220 [jon kanji.co] Dave has kindly let me know that this code generates a warning with
5234 [matz zetabit] No, just ignore it. I'm feeling this warning in too loud. The
^ better way to say 'recursive join'
5221 [yashi yashi.] join error. I, today, happend to had this message and I felt it should
+ 5231 [Dave thomase] -e:1:in `join': thread tried to join itself (ThreadError)
| 5237 [matz zetabit] Thank you. Done.
+ 5345 [matju cam.or] I'd suggest "circular join", just like "circular reference", "circular
^ Ruby/Glade doesn't work with Ruby 1.6.1
5228 [bombadil wan] parser = Glade.new
^ ops: Ruby/Glade works, sorry 0:)
5229 [bombadil wan] Excuse my last message.
^ BigFloat-1.1.4 released
5235 [shigeo tinyf] To keep compatibility with Ruby 1.6, bigfloat-1.1.4 has been
^ Project files for MS VC 6.0
5236 [shigeo tinyf] For Microsoft VC/VC++(6.0) users, I prepared the
^ Running two iterators in parallel
5239 [dfan harmoni] I have two iterators. I would like to run them in parallel, creating
5245 [matz zetabit] Use threads.
5252 [matz zetabit] Oops. There is a termination condition bug.
^ Ruby for Win32/DOS
5240 [dennisn pe.n] Not all of us are blessed with the opportunity to be able to develop on
5244 [matz zetabit] I should have linked from www.ruby-lang.org.
5258 [hgs dmu.ac.u] This is a useful resource, but it is a list of files with little
5260 [Dave thomase] Agreed.
5261 [hgs dmu.ac.u] Thank you.
^ Ruby Book, ch6 -- kukkei no sekai ?
5248 [jon kanji.co] First, thanks for all the good suggestions for my last
5251 [matz zetabit] Well, ... that was typo. We (acutually he) meant 矩形 (kukei - means
^ Ruby 1.6.1 config+widget problems.
5253 [schneik us.i] checking whether OS depend dynamic link works... yes
5314 [schneik aust] Conrad Schneiker
5315 [matz zetabit] The former (configure problem) was fixed in the snapshot.
5322 [schneik us.i] # |Hi; any news about these problems?
5325 [decoux moulo] pigeon% widget
5326 [decoux moulo] 1.6.1 has a new flag SCOPE_DONT_RECYCLE, and you have probably this error
5327 [decoux moulo] Try this patch. It call scope_dup (which transform a SCOPE_ALLOCA in a
+ 5352 [schneik us.i] # Try this patch. It call scope_dup (which transform a SCOPE_ALLOCA in
+ 5360 [matz zetabit] This one is confirmed by [ruby-talk:5352], I'll merge it to 1.6.2.
5366 [decoux moulo] I really think that you must also patch tk.rb or tkencoding.rb because
5368 [schneik us.i] # s> In any case, I did the patch manually and it worked. In addition to
5369 [schneik us.i] # Matz, is this something that can/will soon be fixed in the nightly
^ problem: undefined method `size' for File
5254 [Eric.Santona] I'm new with ruby and I'm just still learning with this language
+ 5255 [decoux moulo] #size is a singleton method of File
+ 5256 [hipster xs4a] size is a class method of File, so you cannot apply it to an instance
+ 5257 [matz zetabit] Use
5259 [bombadil wan] In this case I don't understand well why it should be a class method
5263 [matz zetabit] I don't know why you don't understand. ;-)
+ 5264 [aleksi.nieme] matz critizes good solution argumenting with features lacking from some
| + 5265 [decoux moulo] pigeon% cat b.rb
| | 5266 [aleksi.nieme] % type file_size_2.rb
| + 5269 [matz zetabit] which implements Ruby interpreter. ;-)
| 5270 [ms iastate.e] Maybe I'm crazy, but doesn't this reliably get the length of an open
| 5296 [matju cam.or] Linux 8 minutes ago. It works, but I hesitate. Matz proposes
+ 5273 [vardhan cade] i thought lseek(fd,SEEK_END,0) is a portable way.
+ 5295 [matju cam.or] Standard Ruby could, maybe.
^ Tkx all for your answers
5262 [Eric.Santona] Tkx, now it's clear.
^ Proper ConditionVariable usage?
5268 [aleksi.nieme] Abstract
5284 [hipster xs4a] The concurrent programming that does not bend the brain
5285 [kjana os.xax] That's because ConditionVariable is NOT for general synchronization,
5286 [shugo ruby-l] Here is a simple example.
5287 [shugo ruby-l] Sorry, Mutex is not re-entrant. (So this program cause dead-lock.)
5308 [kjana os.xax] ``inheritance anomaly'' --- embedded synchronization codes prevent
5309 [hipster xs4a] Agreed. Not only do you inherit an interface, you also inherit (a)
5342 [shugo ruby-l] I don't insist that Queue should be implemented by ConditionVariable.
^ MatchData methods
5288 [louie TransS] So, I was regexp'ing away just now, and noted a MatchData method missing which
5290 [knu idaemons] foo = match.to_a.slice(1,2).join(':')
5291 [louie TransS] Uh, duh. Thanks for pointing out the obvious to me. I keep thinking
^ [PATCH] version test using require
5289 [hipster xs4a] The following patch allows testing for a minimal Ruby version using the
+ 5297 [decoux moulo] pigeon% ruby -e 'p "1.10.1" < "1.6.1"'
| 5299 [yashi yashi.] matz told me on -dev a while ago that he ensure minor and patch level
| 5300 [hipster xs4a] Okay, but I want to fix this anyway. It's a terrible mistake.
+ 5307 [hipster xs4a] This fixes the problem noted by Guy. I took the logic from Debian
+ 5313 [yashi yashi.] how about just
5321 [hgs dmu.ac.u] Is the class at the given URL any use at all in this debate?
^ RFC: Enumerable#every(n)
5292 [knu idaemons] Let me show you a new method candidate for Enumerable module, which I
5293 [aleksi.nieme] I like the functionality very much. But I have to say I didn't understand
5294 [aleksi.nieme] Hastily posting something isn't good thing to do. I started to wonder if I
+ 5298 [decoux moulo] Well, I've looked very superficially to your patch
| + 5301 [knu idaemons] ~ free
| + 5304 [decoux moulo] You don't need a mark_function for enum_obj ?
| 5305 [knu idaemons] Ick, I missed that. I'll be fixing it soon.
+ 5302 [knu idaemons] I wonder why noone had answered Dave's question.
5303 [knu idaemons] Bah, I misread iteratorMethod as iterator.each. And it comes to
5306 [Dave thomase] This is an old thread. I was looking for a simple way to generate an