20178-20644

19994-21355 subjects 20345-21580

^ Ruby article example suggestion
20178 [YuriLeikind ] As soon as Joshua Drake is writing an article

^ ++ Operator
20183 [kamphausen n] Dear Community,
+ 20186 [decoux moulo] ...
| 20191 [gc mandrakes] Ok, the explanations are very understandable.
| 20195 [matz ruby-la] It's possible.  But do you think this is what you really want?
| + 20203 [gc mandrakes] Maybe I just don't see the future problems, but I think it would not be
| | + 20204 [pbrannan atd] Not to mention that a += 1 is less efficient (in terms of speed) than a =
| | | 20217 [mikkelj-anti] ...
| | + 20248 [ugly-daemon ] I agree with you here. I would like to see "++" as an opertor that can be
| + 20206 [Dave Pragmat] Is there any logical difference between a++ and a.succ!
|   20230 [matz ruby-la] The difference is the fact that since Numeric is immutable, a.succ! is
|   20234 [Dave Pragmat] OK, but... (this is where I make a fool of myself).
|   + 20235 [nat.pryce b1] I would say that it's a bit of both... immutability is a fundamental
|   | 20238 [Dave Pragmat] Yup. Good example.
|   + 20236 [matz ruby-la] You sacrifice yourself for the sake of our enlightnment, don't you?
|     + 20240 [Dave Pragmat] I agree. In the back of my mind, I was thinking about the slightly
|     | 20251 [csawtell par] Made my day after an `interesting' meeting this afternoon.
|     + 20256 [csawtell par] Might I just say that the first thing which attracted me to Ruby is its
+ 20187 [pbrannan atd] There are cases where a preincrement and postincrement oprator would be
+ 20189 [matz ruby-la] "++" in C/C++ is fundamentally an assignment, or in other words, an
| 20207 [larsch cs.au] I don't think of ++ as an assignment, as much as a "modification" to what
| + 20208 [ r2d2 umu.se] I could live with this.
| + 20231 [matz ruby-la] Ah, so you want integers to be mutable?  And it may result
| + 20281 [szegedy or.u] I proposed about the same thing in May (See mail 15166,15197,15262 and
+ 20258 [kamphausen n] Dear Ruby Community,

^ Re: Installing ruby in office environments which ...
20193 [Ephaeton gmx] Same thing here ;)
20219 [sascha meta-] Absolutely.  Code will be read many more times than it will be written

^ Bug in require?
20198 [pbrannan atd] FOO1 = 1
+ 20200 [Dave Pragmat] In rubicon I use
+ 20201 [neumann s-di] Put the current directory before any other

^ cygwin and win32 interaction (RE:  Re: Bug in re quire?)
20202 [cbroult sapi] ...

^ In Ruby 0 is true but nil is false.. or how to shoot yourself?..
20209 [gc mandrakes] I have a simple Audio-CD database (using CSV format). I was writing a
+ 20211 [ms iastate.e] By "inconsistency", do you mean with other languages?
| 20223 [jweirich one] I occasionally follow the Python newsgroup.  Late last year the
| + 20224 [paulp Active] How is it useful to know the complete set of things that are false in the world?
| | + 20226 [rtarpine hot] to_f, and to_s.  Not that this should be added, but if it were to be, it
| | + 20227 [jweirich one] the "objects" that act like "false".  But I think its important to
| + 20276 [gc mandrakes] I didn't suggest making more things false.
|   + 20277 [   xm w3d.ru] I'm against any changes ... it is a very consistent scheme, maybe not so
|   + 20282 [szegedy or.u] ...
+ 20213 [Dave Pragmat] Try 'nonzero?'
  20278 [gc mandrakes] Thanks a bunch Dave! As usual, you got the perfect solution..

^ Inherit singleton method?
20210 [mguay cegep-] ...
20215 [avi beta4.co] otherObject = x.clone
20239 [mguay cegep-] ...
20242 [avi beta4.co] Well, you could always invoke the initialize method explicitly.

^ Lazy computation (was: breaking out of nested loops)
20212 [marick visib] Here's one. This one has ruby-unit tests, so is more likely to work. It's
+ 20270 [pit capitain] thanks for the code. I like it. It looks very much like my Iterator
+ 20271 [pit capitain] thanks for the code. I like it. It looks very much like my Iterator

^ Sigh! I should have seen it coming...A ramble on coroutines, shifts and deques
20220 [john.carter ] I was playing with doing a very simple recursive descent parser....

^ Example 1: Was Ruby Article
20221 [jd.nospam co] First let me thank everyone who is responding. This is excellent. I have
20237 [Dave Pragmat] 1. It crashes if the user enters an end of file
+ 20241 [spwhite char] *         line = gets
| 20243 [Dave Pragmat] Yes - I didn't catch them all in the copy :)
+ 20252 [jd.nospam co] ...
  20285 [Dave Pragmat] 'gets' returns nil on end of file (probably ^d on your box). That's

^ ordered hash
20225 [joe vpop.net] Hash.each { } will return items in the order that they were
+ 20266 [pit capitain] I once implemented an OrderedHash, but it was ordered according
+ 20279 [maki inac.co] Do you see PseudoHash in RAA?
  20505 [neumann s-di] You can also use Array#assoc to implement an ordered hash.
  20551 [rtarpine hot] class OrderedHash < Hash
  20595 [irving_1 com] Very nice. I remember thinking earlier on this thread that automatically
  20598 [spwhite char] There's a bug in this as it stands...

^ ruby accessing variables it doesn't need to?
20228 [joe vpop.net] module Kernel
20229 [joe vpop.net] module Kernel
20232 [spwhite char] Having mail problems, so you may see this 3 times or not at all. I give
20233 [joe vpop.net] I just got one copy of this message :-)
20275 [cbroult sapi] ...

^ Re: ++ operator
20250 [ugly-daemon ] I just remembered that we can't name a method "++" and so my behaviour
20253 [knos free.fr] ..-
20257 [ugly-daemon ] I am aware of that :). What I had suggested was adding it in as a behaviour
20260 [knos free.fr] ..-

^ File.readline(s)
20254 [michael.husm] I am reading a 55MB ASCII file  by using File.readline(s) which takes on
+ 20255 [matz ruby-la] There must be some bottleneck left, probably due to my stupidity.
| 20259 [Michael.Husm] lines = None
| + 20481 [joe vpop.net] n = 0; File.open(name).each { n += 1 }
| | 20506 [neumann s-di] IO.foreach(name){}; $.
| | 20511 [cbroult sapi] ...
| + 20500 [michael.husm] Thank you for the hint. But my question was not how to determine the number of lines or the file length but to read a file
|   20501 [Dave Pragmat] ios.sysread( anInteger ) -> aString
|   20502 [dsafari xtra] Perhaps, but surely that is what the previous code is doing, simple
+ 20353 [sean chitten] Tight iterations?  Turn of garbage collection before you do the=20

^ DocStrings
20261 [edsin swes.s] I was wondering why Ruby methods and classes lack documentation
20263 [matz ruby-la] I think it's the responsibility of tools like IDE or ri.  Have you
20264 [edsin swes.s] No, I haven't, but as I got from your and other posts it's some kind
20323 [matz ruby-la] Yes, indeed.  Docstring is for man (or woman), so that - I think -

^ Solaris: "getaddrinfo: DNS temporary failure"
20265 [wys helbling] ...

^ How to decrypt a string?
20267 [martin zsdfh] This will likely turn out to be a dumb question, but is there any way to
20268 [erik bagfors] Not is String#crypt is the same as crypt(3) which I guess it is.
+ 20273 [fritz.heinri] One way encryption is very secure (but a little useless :-). It is a
| 20408 [erik bagfors] And that's pretty much the same thing :)
+ 20274 [   xm w3d.ru] Yeah, it maybe used for things like password comparison though - you have
  20284 [neumann s-di] s, j, k = (0..255).to_a, 0, (ARGV[0]*256)[0,256].unpack('C*')

^ how to "eval" mini ruby ?
20269 [domingo dad-] I'm doing a web application and I want provide a "mini ruby" interpreter for users.

^ 64 bit ruby under aix 4.3
20272 [szegedy or.u] I am currently trying to compile ruby under AIX for 64-bits.
20436 [matz ruby-la] This indicates global variable rb_gc_stack_start is 0. Hmm, strange..

^ ODBC under Debian Linux
20280 [list chromat] Has anyone successfully compiled ruby-odbc under Debian (woody)?  I
20283 [neumann s-di] Have a look at Ruby/DBI (= Databases/DBI at RAA), a DataBase Independent interface similar
20521 [list chromat] Thanks for the pointer Michael.  Christian Werner contacted me and
20545 [neumann s-di] Probably you looked at John Small's Ruby/DBI package that is listed under section "database".

^ Iterators (was Re: ++ Operator)
20286 [pbrannan atd] Unfortunately, Ruby iterators are not always a viable option.  Consider
+ 20287 [Dave Pragmat] Have you seen knu's 'iterator.rb' module in rough/lib?
| + 20319 [harryo zip.c] That looks kind of interesting.  I assume the value of this shows when the
| | + 20321 [Dave Pragmat] That's one value (although of course indexing would return the same
| | | 20351 [harryo zip.c] Interesting you say that.  I made a similar comment to a friend of mine
| | + 20327 [spwhite char] It might not be possible to directly access the contents of some lists,
| + 20325 [marick visib] Where is this? 1.6.4? 1.7.*?
|   20337 [Dave Pragmat] cvs.ruby-lang.org/src co rough
|   + 20361 [neumann s-di] Will this find it's way into Ruby 1.8 ?
|   | 20427 [pbrannan atd] irb(main):001:0> group = [1,2,3], [4,5,6], [7,8,9]
|   | 20428 [decoux moulo] ...
|   | 20430 [pbrannan atd] OIC.  My solution produced output that was flipped across the diagonal.
|   + 20367 [pit capitain] <advertisement>
+ 20288 [pit capitain] if you hide the "weird callcc hacks" in a class like the Iterator class

^ Why doesn't Ruby have this...
20289 [alwagner uar] Over the last 30 years I have written production code in a dozen
20297 [paulp Active] I think it is all in how you ask the question. You shouldn't presume
20304 [chris.morris] My opinion: to some, learning is painful. It requires humility (a need to
20306 [alwagner uar] I think it's a process of ossification that happens to anything

^ Performance of Substrings
20290 [kamphausen n] Dear Ruby Community,
20292 [decoux moulo] ...
20424 [kamphausen n] Much better :) (though still slow in a way)

^ new toy: method_var
20291 [green FreeBS] After seeing a million examples of overriding methods in classes by aliasing
20295 [hal9000 hype] aliasing
20298 [green FreeBS] Okay, I'll try.

^ Re: another new toy
20293 [decoux moulo] ...
+ 20294 [hal9000 hype] Well, people coming from C++ might use it to
| 20296 [decoux moulo] ...
| 20300 [hal9000 hype] Good heavens. I'm behind the times.
| 20301 [decoux moulo] ...
+ 20302 [pbrannan atd] Well, one use would be so that you could have a class that only has static

^ Upgrading from 1.4.5 to 1.6.3
20299 [DDouthitt cu] If I do this, are my programs going to stop working?  What conflicts should I watch out for?
20314 [ r2d2 umu.se] I just upgraded one of my machines from 1.4 to cvs (1.7) which resulted
20322 [matz ruby-la] This change was done in 1.6.

^ New Windows InstallShield version of Ruby
20303 [andy toolshe] ...
+ 20305 [bryan terral] Hey, thanks for the windows update!  Including FXRuby was a good idea.
| + 20308 [Dave Pragmat] Try renaming the .DLL that came with the installshield version and
| + 20332 [mikkelj-anti] ...
| + 20642 [mikkelj-anti] ...
|   + 20339 [Dave Pragmat] That hasn't been our experience with the Cygwin DLL. If (for example)
|   | + 20340 [andy toolshe] ...
|   | | 20445 [pc000 passth] Is this really the case ? Not having the full Unix API is
|   | | 20450 [mikkelj-anti] ...
|   | | 20466 [andy toolshe] ...
|   | + 20343 [kevinbsmith ] I've been out of the Windows internals game for a while,
|   | | 20368 [mikkelj-anti] ...
|   | | 20374 [kevinbsmith ] while,
|   | | 20378 [mikkelj-anti] ...
|   | + 20363 [mikkelj-anti] ...
|   + 20644 [Dave Pragmat] I believe we've been round this before. It's because cygwin is just
+ 20309 [joe vpop.net] Thanks Andy!
| 20312 [andy toolshe] ...
| + 20316 [Dave Pragmat] This is all true. However, as a quick hack, I tried renaming the
| + 20335 [mikkelj-anti] ...
| | 20336 [ned bike-nom] Is Cygwin necessary? Wouldn't it be better to build this without relying on
| | + 20338 [andy toolshe] ...
| | + 20341 [Dave Pragmat] At a loss of some functionality. It's a tradeoff.
| |   20359 [feoh fourfuz] I think the cygwin package is a good thing.
| |   20376 [Dave Pragmat] At some point the installer will check for the existence of a newer
| + 20392 [eban os.rim.] The Cygwin 1.3.1 is buggy and slow and unstable, but the
+ 20346 [clem well.co] I've just had a chance to install it and try some of my code.  Problem
+ 20389 [schneiker ju] ...
  20416 [kevinbsmith ] And are you interested in other GUI toolkits? What are your
  + 20417 [Dave Pragmat] Neither Andy nor I are Windows experts, so for us to consider another
  + 20419 [waisun.chia ] Yup. Me too.

^ Backwards language
20307 [elanthis use] Greetings,
+ 20310 [toddg linux1] ...
| 20315 [elanthis use] Last I saw Parrot was an April Fool's joke....
| + 20320 [toddg linux1] ...
| + 20640 [toddg linux1] ...
|   20329 [elanthis use] Ah.  Well, again, that runtime I'm sure is still a lot larger and such
|   20347 [toddg linux1] ...
|   20349 [elanthis use] Yes, it will.  It will certainly make a lot of things easier.
+ 20311 [beppu binq.o] [  date  ] 2001/08/25 | Saturday | 04:33 AM
| 20317 [elanthis use] Ya, that's what I was thinking, too.  Although CLR will presumably be
| 20326 [toddg linux1] ...
| 20333 [elanthis use] Not much of a schemer myself.  I have worked with guile a bit though,
| 20342 [siigron sii.] ...
| 20348 [elanthis use] Now, to me, that looks like a cheap hack.  ^,^  I've easily written in
| + 20434 [szegedy or.u] I also dislike eval(), but there are certain circumstances where you can't
| | 20437 [DDouthitt cu] tomsrtbt (Tom's Root Boot Disk) recently adopted Lua as a scripting language for his single floppy Linux distribution.
| + 20440 [toddg linux1] ...
|   20442 [elanthis use] Ack, first, sorry my mailer doesn't seem to like your quotes...
|   + 20443 [hal9000 hype] Sean,
|   | 20447 [elanthis use] Of course.  What doesn't one tune and change?  ^,^
|   | 20448 [elanthis use] Wow.  I like the points he makes.  I've actually studied LISP a lot, and
|   | + 20449 [toddg linux1] ...
|   | | 20453 [elanthis use] Aye, when I get time.  ^,^
|   | + 20452 [spwhite char] It's more valuable to learn families of languages than specific
|   |   20454 [elanthis use] Understood.  I am attempting to write a small language, though -
|   |   20455 [avi beta4.co] Smalltalk to see what an IDE should be, and what "dynamic object oriented
|   |   20461 [toddg linux1] ...
|   + 20444 [avi beta4.co] I think he says something like 25% of the code is macros (which
+ 20313 [ r2d2 umu.se] If you haven't already, I suggest you take a look at Lua. It seems to have
| 20318 [elanthis use] Originally I was using LUA for my embedding stuff, but I switched to
| 20373 [ r2d2 umu.se] Lua's object orientation is a lot better than Perl's, and much easier
| 20377 [elanthis use] Yes, but unfortunately, I do need the ability to create classes and
| 20379 [toddg linux1] ...
+ 20324 [matz ruby-la] I like this idea.  This is similar to my Ruby 2.0 implementation
| 20330 [elanthis use] ^,^  Assuming I enjoy my experiencing working on my language (never
+ 20328 [mikkelj-anti] ...
  20331 [elanthis use] Wow.  Interesting concept.  A bit lower level than I was aiming, but
  20334 [mikkelj-anti] ...
threads.html
top