12157-13260
11965-12811 subjects 12287-12879
^ Override "."
12157 [jonas.bulow ] I'm new to ruby and....
12159 [gotoken math] Maybe that makes ruby slow.
12160 [decoux moulo] 2 method calls rather than one.
^ SV: Re: Is Ruby japanese-centered?
12163 [hvrosen worl] Thanks! :-))))))))))))))))) Why didn't I count?
+ 12166 [hvrosen worl] SV: Re: Is Ruby japanese-centered?
+ 12175 [nickb fnord.] It's always been the case that when programming in english, one doesn't
12187 [schneik us.i] # There would also have to be a way to tell what encoding
^ Nonblocking Read
12174 [lists theori] I was just wondering if there is a way to do a non-blocking read on a
12176 [gotoken math] IO#sysread is what you are looking for.
12181 [atm297s smsu] This is what I had initially seen - but in my tests, it still *seems* to
12185 [rise knavery] It seems unlikely, but you might be running into Ruby's internal buffering
^ Re: Nonblocking Read]
12182 [lists theori] This is what I had initially seen - but in my tests, it still *seems* to
12186 [dgjs acm.org] The UNIX call for doing it would be something like
12189 [atm297s smsu] Doing some examining of the Ruby source, and it appears that O_NONBLOCK is
12190 [dgjs acm.org] The pickaxe book documents two paramaters for IO::fcntl
^ misc questions [was Re: disassembling and reassembling a hash]
12188 [raja cs.indi] Thanks. I'll also await the official answer.
12209 [decoux moulo] class method can be aliased. Hah::new was an example.
+ 12248 [raja cs.indi] Let me say up front that I'm trying to clarify my understanding of how things
| 12254 [crippel prim] you might find the following script useful ...
+ 12263 [decoux moulo] alias Hash.new Array.new
12268 [raja cs.indi] Yes, i see the problem.
12293 [crippel prim] This is not quite correct ... there are such animals as
^ Ruby API function to check for "true"-ness?
12194 [ljohnson res] This is not a big deal; but is there a function already there in Ruby's C
+ 12196 [Dave Pragmat] There's the RTEST macro.
| 12234 [ljohnson res] Yes, but as Shugo points out in another response to my question, RTEST
+ 12208 [shugo ruby-l] rb_is_true(UINT2NUM(0)) should not return 0, because 0 does not
^ FEATURE REQUEST: 'my' local variables
12204 [see_signatur] Ruby is, indeed, a very well designed language.
+ 12205 [sent quality] If I know that x should be local, I would
+ 12206 [gnhurst hurs] This same request was brought up by Ben Tilly not too long ago.
+ 12207 [cjon sapphir] This seems to me like it would be very useful.
| 12211 [decoux moulo] Please, no. Why make the same error of perl with this very strange name ?
+ 12212 [shugo ruby-l] CLU ((<URL:http://www.pmg.lcs.mit.edu/CLU.html>)) has explicit
| 12213 [schneik us.i] #
| + 12214 [brk jenkon.c] If you want to use this sort of idiom, try this example which doesn't
| + 12252 [lists.ruby-t] sounds kinda like `upvar' in tcl.
+ 12215 [gotoken math] "my" seems too complex for user.
| + 12216 [decoux moulo] This was my 2nd objection :-)
| + 12250 [see_signatur] I do not understand why "my" is too complex to a user. It has been in Perl for
| | + 12251 [petemcbreen ] Why is it bad Leo?
| | + 12284 [gotoken math] I have other opinion. Ruby has scope-indicating variable name,
| | 12289 [matz zetabit] OK, OK. Let me finalize this thread.
| | + 12299 [see_signatur] Matz, do you mean 'loop' or do you mean 'let' ?
| | | 12307 [matz zetabit] I meant the block in general. You can define let like the following.
| | | 12320 [ameuret bloc] 'i' in
| | | + 12333 [ben_tilly ho] I doubt it.
| | | + 12358 [see_signatur] Arnaud,
| | | 12369 [sent quality] Hmmmm. At a glance, that looks pretty confusing.
| | | 12371 [matz zetabit] So, which symbols are better for them?
| | | + 12385 [sent quality] I was afraid you would ask. I'm hoping to avoid
| | | | + 12389 [ms iastate.e] Matz's suggestion is quite acceptable (there's not much that one can't
| | | | + 12392 [gnhurst hurs] I agree with this sentiment.
| | | | + 12407 [decoux moulo] I think, but probably I'm wrong, that it's too complex to implement.
| | | + 12393 [Dave Pragmat] Perhaps there's another way to look at this. Rather than making scope
| | | | 12490 [lists.ruby-t] Interesting idea. Not so keen on the syntax.
| | | + 12416 [decoux moulo] What do you call block exit ?
| | | | 12420 [Dave Pragmat] Sorry, sloppy wording. I meant close of scope.
| | | + 12544 [decoux moulo] What do you expect with
| | | + 12546 [schneik us.i] # I'm wondering: was the idea of having a different block type for
| | | + 12548 [Dave Pragmat] [1,2,2,2], the same as if you passed 'a' in to a method
| | | + 12551 [Dave Pragmat] Guy just pointed out that the question might be: "how many times to I
| | | + 12552 [decoux moulo] and with retry, it make a re-initialization or not ?
| | | 12554 [Dave Pragmat] Not
| | + 12452 [gotoken math] May I show yet another syntax?
| | + 12457 [matz zetabit] Could you tell me the semantics?
| | | + 12468 [gotoken math] Parameters on the left side of the semicolon declare shadowed
| | | | 12470 [tammo.freese] But b is on the RIGHT side of the semicolon???
| | | | + 12485 [lists.ruby-t] which indicates the concern I'd have for such a syntax. It would be
| | | | | 12536 [elderburn mi] And real hell to debug! :-)
| | | | + 12500 [gotoken math] Oops!
| | | + 12476 [decoux moulo] Perhaps you can write loop{(a;b) .... } where a and b are new local
| | | + 12491 [Dave Pragmat] Doesn't that break existing code, though?
| | | | + 12537 [elderburn mi] Yes and no :-)
| | | | + 12550 [matz zetabit] I don't think it's too stupid. But I don't prefer this one. It seems
| | | | 12553 [Dave Pragmat] OK, I don't want to beat a dead horse, but from a user's perspective,
| | | | + 12555 [matz zetabit] Well, some might feel that the latter is simpler. But in reallity,
| | | | | + 12556 [schneik us.i] # I have two ideas, still not knowing which is better to solve this
| | | | | | 12607 [crippel prim] I very much like ``:='' since it is very explicit (and Ruby
| | | | | + 12563 [gnhurst hurs] For some reason, I keep spending a lot of time on this issue.
| | | | | | 12567 [ ddj kmd.dk] [A good summa summarum of discussed features]
| | | | | | 12574 [gnhurst hurs] Actually, I meant the time saved from having to figure out
| | | | | | + 12589 [ben_tilly op] With the various variations on eval (instance eval, etc) it is
| | | | | | + 12624 [ ddj kmd.dk] Yes. I had forgotten some of the things you mentioned.
| | | | | + 12570 [Dave Pragmat] 1. If you were designing Ruby over again, what would do with the
| | | | | | 12599 [matz zetabit] I wouldn't enable block local variable, at least by default. It's for
| | | | | + 12594 [spwhite char] One problem I can see with this is that it will make code harder to
| | | | | | + 12597 [crippel prim] I agree ...
| | | | | | + 12598 [johann physi] Understood. Start of relatively newbie comments. :-)
| | | | | | | 12604 [spwhite char] The syntax change I proposed would fix that problem. Here's how it would
| | | | | | | 12638 [johann physi] Yes, I understand that. I just meant that I would be fine with simply
| | | | | | + 12610 [crippel prim] in your world every time your interpreter scans an object in source an #exec
| | | | | | 12612 [spwhite char] I don't understand how that causes a problem?
| | | | | | 12654 [crippel prim] and I am OOP wanebe ...
| | | | | | + 12655 [ben_tilly op] Why would you this this a typo?
| | | | | | | 12683 [kjana os.xax] Then the snippet below show what value?
| | | | | | | 12685 [matz zetabit] I think it would give 1 and 3.
| | | | | | | + 12718 [dae_alt3 jun] I an new to Ruby, but there seems to be something
| | | | | | | | + 12720 [hal9000 hype] Comments below....
| | | | | | | | | 12722 [matz zetabit] I don't need that much.
| | | | | | | | | 12725 [sent quality] Along those lines, I'm increasingly of the belief
| | | | | | | | + 12721 [matz zetabit] I think the problem is you were assigning vegetables to the variable
| | | | | | | | 12740 [raja cs.indi] Yes, but that is C. This is Ruby --- life is supposed to be better in this
| | | | | | | | 12790 [ppladijs cag] - using longer (and meaningfull) names for none-iterator
| | | | | | | + 13181 [dmuller etra] <delurking on c.l.r for the first time...>
| | | | | | | 13260 [matz zetabit] Interesting. Let me put this in my brain archive of Ruby
| | | | | | + 12659 [crippel prim] I assume you know this - just in case observe the differences between
| | | | | + 12613 [see_signatur] How to read the following?
| | | | | 12628 [matz zetabit] The first declarative assignment make `f` local to the block, so that
| | | | + 12611 [see_signatur] I respectfully disagree with the concept of "pure local" block {{..}}.
| | | | 12614 [spwhite char] a = 1
| | | | 12621 [decoux moulo] pigeon% cat b.rb
| | | + 12493 [decoux moulo] Yes, you're right. Forget it
| | | 12494 [Dave Pragmat] 3.times local {
| | + 12460 [cjon sapphir] The semicolon is a bit subtle.
| | + 12473 [elderburn mi] And I have not really been following this thread in detail, except to test
| | | 12505 [spwhite char] I think this is the best suggestion I've seen so far, though it needs
| | | + 12516 [ms iastate.e] Well put. You're quite right about the trend, and I hope we can avoid
| | | + 12533 [cjon sapphir] x = 5; loop { |y| x = 3; x * y }; puts x ->3
| | | + 12538 [elderburn mi] x = 5
| | | 12539 [Dave Pragmat] But to do that, you'd have to cut and paste the code into your
| | + 12475 [decoux moulo] You break all old scripts with this
| | 12535 [elderburn mi] Not exactly.
| | 12640 [ale crimson.] While I understand your point of view, and agree with the basic idea I
| + 12267 [decoux moulo] OK, explain me this result
| 12274 [ben_tilly ho] Ah, my favorite bug!
| 12297 [see_signatur] Thank you for emphasizing my point once again. Indeed, encapsulation properties
+ 12223 [ ddj kmd.dk] local variable
+ 12258 [ffiloseta ca] I am sure you see this as useful, but I honestly can grasp why on earth
12296 [see_signatur] I am not sure that the respondents got my point right. Probably I was not precise
12306 [furifilo901 ] Leo, thanks for clarifying. I indeed see your point, collaborative
^ Ruby as CGI under Windows
12218 [joerg krause] trying ruby under iis (w2k), it doesn't work
12240 [fgeiger date] "C:\Programs\Ruby\ruby.exe" %s %s
^ Unsubscribe
12227 [stu virtualp] How do I unsuscribe again....?
^ random chars
12229 [the-master-o] I've writte a little program that makes a copy of itself but
12230 [tammo.freese] s[i] = ""
+ 12231 [tammo.freese] s[i]=""
+ 12233 [the-master-o] Yes, this was it! Thanks for the fast help
^ SUMMARY: Licensing, Intellectual Property, and Ruby code
12235 [colin webg2.] Just to summarize back to the list the results of the discussion about
12239 [jtobler Wire] I am glad you were able to arrive at a decision that feels appropriate for
^ [ANN] NQXML v2.0 adds DOM, DOCTYPE, and ENTITY
12237 [jimm eris.io] NQXML is a pure Ruby implementation of an XML tokenizer, a SAX parser, and
12249 [chadfowler y] Jim, excellent work on this! I've had time to play
12255 [jimm fnord.i] [this answer cc'd to email]
+ 12259 [sent quality] I sort of interpreted this question the other way
+ 12262 [aaron cybers] Jim, I am glad to hear that you are taking the approach that you are taking.
+ 12311 [maki inac.co] Do you know Paul Prescod's PullDOM/EasyDOM ? It's written in Python.
^ File with length 0
12238 [the-master-o] 1. If I run the program, I want to get only those Files that are valid
12270 [tammo.freese] 1) Ruby processes fast enough so that sometimes you write two files
12360 [the-master-o] Sorry for my late answer, but I've been busy.
12361 [the-master-o] Sorry for this harsh words. Realised it to late
^ Possibility of displaying/searching descriptions in RAA?
12241 [gsemones pri] Greetings,
12243 [ale crimson.] I noticed the same also. So I made
^ [ANN] NQXML v0.2.2
12244 [jimm eris.io] In the spirit of "release early, release often", version 0.2.2 of NQXML can
12277 [matt sergean] Jim,
12279 [jimm eris.io] I interpret a SAX parser as one that does not build an object tree, but
12303 [jweirich one] I always figured a SAX parser was one that followed the SAX API spec.
12309 [jimm fnord.i] Maybe I should stop calling it a SAX parser.
+ 12315 [sent quality] That's easy: NQSAX parser
| 12316 [schneik us.i] #
+ 12324 [matt sergean] In the XML world we call your kind of parsing "Pull parsing". It's pretty
12326 [jimm eris.io] I've decide to call it `StreamingParser'. It outputs a stream of entities,
^ Re: Possibility of displaying/searching descriptions
12246 [gsemones pri] Fantastic! It's a . . . bookmark!
^ Order of hash.keys ...
12253 [crippel prim] I run a little experiment on the ambiguity of
^ Feature requests will be the death of Ruby
12260 [ristad mnemo] Recent postings have raised the issue of local variables in Ruby and
+ 12271 [luigi.ballab] 1) you can write "a, b = b, a" instead of "temp = a; a = b; b = temp".
+ 12411 [jdf pobox.co] While your point about my() and feature requests might be well-taken,
^ COM bindings
12261 [ffiloseta ca] This is something I didn't care for yesterday, but just today someone
+ 12265 [rise knavery] You might investigate the WIN32OLE, WIN32OLE_EVENT and WIN32API classes in
+ 12278 [furifilo901 ] Thanks to Wyss Clemens and Jonathan Conway for their suggestions !
12282 [ben_tilly ho] Different problem. :-)
12562 [MarkH Active] That would be me :)
^ Q re looping structures
12264 [matju sympat] Question regarding looping structures: what should a loop-aware Array#==
12266 [decoux moulo] pigeon% ruby
+ 12269 [decoux moulo] we
+ 12328 [matju sympat] No, I mean, if we were to say that such structures should be comparable,
12331 [decoux moulo] You have the response. In this case you can't give a result, this is why
12336 [matju sympat] Ok, I thought it would be possible to answer "true" meaningfully.
+ 12340 [ben_tilly op] It is possible, and I posted code that does it before.
| + 12341 [decoux moulo] pigeon% cat b.rb
| | 12347 [decoux moulo] This version of tangle implement this
| + 12363 [crippel prim] Actually,
| 12364 [crippel prim] Actually,
| 12365 [ben_tilly op] Why would you expect u to be != to s?
| 12366 [crippel prim] Because I am moron (you should realize by
| 12370 [ben_tilly op] That has to be a bug..yup. In Array's eq? method I
| 12379 [crippel prim] You can always write a specialised directory tree
| 12380 [ben_tilly op] Your basic linked list is another example. It may be
| + 12383 [ben_tilly op] =====
| | 12384 [decoux moulo] Difficult to say which is faster. Actually it has this algorithm, you can
| + 12398 [crippel prim] Okay you can cook up the notion of absolute equality for
+ 12353 [crippel prim] Well,
12355 [crippel prim] (- I should have used past tense)
^ profile.rb needs updating
12272 [feldt ce.cha] /usr/local/lib/ruby/1.7/profile.rb:11: warning: obsolete method
^ [ANN] NQXML v0.3.0 fixes DOCTYPE bug
12273 [jimm eris.io] Version 0.3.0 fixes a DOCTYPE tag bug (PUBLIC and SYSTEM id arguments
+ 12276 [brucedickey ] I write software which is used internally at my company. My internal
+ 12291 [elderburn mi] "Early and often" is the recommended procedure :-)
+ 12292 [ale crimson.] I really think announcements should be kept around but not here. Before we
+ 12294 [gsemones pri] useful
^ Which method(s) to override for equality test?
12281 [ljohnson res] I am writing a new class that's implemented by a C extension module and I
12283 [decoux moulo] There are not really synonymous. You have in ruby-man
^ SAX for Ruby (Re: [ANN] NQXML v0.2.2)
12285 [maki open-ne] There is a implement of SAX API in Ruby's XMLParser library,
^ <no subject>
12286 [sky math.uqa] # chaddr sky@math.uqam.ca luc.belanger@acm.org
threads.html
top