203271-235310 subjects 203543-205311
^ short cut to do a inspect method for object
203469 [junkone roge] I have a object with following instance variables
203500 [m.fellinger ] class A
^ rhtml can't find rubygems
203471 [moore.joseph] I'm having some problems including rubygems in rhtml files. I'm on OSX
203476 [anne wjh.har] is rubygems a library? is so, giving the full unix path might solve
203641 [moore.joseph] Hmm. I have both versions, gems being installed for 1.8.4. Checking
203644 [moore.joseph] Also I have the newer ruby in /usr/bin and the older in /usr/local/lib
^ I'll have the duck!
203473 [transfire gm] I promised myself I'd shut-up for awhile, maybe I still should, but I
+ 203496 [john.carter ] duck == mixin
| 203501 [m.fellinger ] Well... i don't think mixins are exactly that :)
+ 203497 [ronjeffries ] there's a language called "self" that has no classes, only prototypes. if you
| + 203498 [jake.mcarthu] I much prefer its (less mature) derivative, Io. Everything is a
| | + 203499 [znmeb cesmai] Actual, real programming languages with compilers or interpreters, a
| | + 203548 [schapht gmai] You piqued my curiosity with that. But "lo" is really hard to google
| | + 203552 [rimantas gma] Actually it is pretty easy to google: Io programming language ;)
| | | 203556 [schapht gmai] Right. io, not LO..... silly sans-serif fonts.
| | + 203553 [alex blackke] Alex
| | + 203566 [fabioaquotte] Enjoy ;)
| + 203716 [chneukirchen] While you're at it, have a look at Slate, that also removes single-dispatch.
| 205775 [strobel secu] if you
| + 205779 [nothinghappe] you
| + 205791 [perrin apoth] I agree. If we were going to go that route, we'd probably want to give
| + 205843 [chneukirchen] CLOS has classes, though.
+ 203518 [robert.dober] So did I ;)
| 203523 [alex blackke] That's the whole point. Duck-typing means that your class only needs to
| 203531 [robert.dober] Well I have read that, kind of, it is a little bit heavy, too heavy I am
| 203532 [alex blackke] It's my opinion that opposition to duck-typing is a bad idea (especially
| + 203537 [robert.dober] No that is not what I want (I do that an awful lot but that is very doggish)
| | 203540 [alex blackke] I think it does everything you're after.
| + 203541 [dblack wobbl] I'd go further: the definition of duck typing is that you don't :-)
| 203549 [robert.dober] Maybe we can fly. Maybe. But I do not believe so.
| 203551 [alex blackke] Duck typing doesn't stop you from failing early. If you combine the
| 203561 [robert.dober] Nice 1.
| 203562 [dblack wobbl] I don't think I'd call interface-checking "duck typing", but if it
+ 203522 [simon.kroege] Like this *evil grin* ? (Ok, there are still classes...)
+ 203528 [benjohn fysh] sure
| 203611 [dan-ml dan42] The concept really piqued my interest, and since ruby gives us such nice
| + 203615 [transfire gm] [snip cool code]
| | + 203628 [dblack wobbl] If it's a shift in paradigm, then it isn't "duck typing" (which is a
| | | 203630 [perrin apoth] The term "duck typing" predates Ruby, as I recall. I seem to remember
| | | 203632 [dblack wobbl] I've always thought that Dave Thomas coined it, and that it then
| | | + 203647 [perrin apoth] You may well be right. I'm afraid I'm not an expert in the etymology of
| | | + 203664 [transfire gm] This argument has been made before, notably by you, and it simply does
| | | | 203681 [dblack wobbl] No misstatement: Duck typing isn't something one can implement in
| | | | + 203729 [transfire gm] Well, besides the fact that all code is the implementation of a way of
| | | | | + 203734 [transfire gm] Hmmm... David, my point is simply this: I understand your concern with
| | | | | + 203792 [rubyfan gmai] Actually, David is doing something very important: he's making sure
| | | | | | + 203798 [transfire gm] "stealing" anything. I am using teh current terminology as a jumping
| | | | | | | 203911 [hal9000 hype] As far as I am concerned, David is smarter in his sleep than
| | | | | | | 203916 [james.britt ] I like the work Trans has done, but I'm really surprised to read such
| | | | | | | + 203919 [perrin apoth] I'm not prepared to render judgment on Hal at the moment, but 7rans
| | | | | | | + 203920 [hal9000 hype] You're right, of course.
| | | | | | + 203799 [ara.t.howard] on the one hand, i agree with you. on the other hand though, it's important
| | | | | | | 203813 [dblack wobbl] Let's not get too global about this. Disagreeing about a Ruby module
| | | | | | | + 203874 [ara.t.howard] whew - because i can't even spell that! ;-)
| | | | | | | | 203928 [gregory.t.br] Zen Typing: The sound of one duck quacking.
| | | | | | | | + 203933 [Dymaio gmail] No, really, what *is* the sound of a duck typing?
| | | | | | | | | 204227 [riko despamm] I suppose the very same a human does when typing. However, probably what
| | | | | | | | | 204245 [perrin apoth] Not to the duck.
| | | | | | | | + 203935 [perrin apoth] Shouldn't that be "the sound of one wing flapping"?
| | | | | | | | | 203942 [znmeb cesmai] This discussion brings back memories of the duck and the bird arguing in
| | | | | | | | | 204022 [Dymaio gmail] I've heard that the turkey can fly. That suprised me; I would have
| | | | | | | | | 204072 [perrin apoth] Wild turkeys can fly (badly). Domesticated, not so much. They do tend
| | | | | | | | + 203936 [ara.t.howard] touche!
| | | | | | | + 203924 [ara.t.howard] i was thinking about this on my ride home and recalled a term used in damian
| | | | | | | + 203950 [jake.mcarthu] charset=US-ASCII;
| | | | | | | | + 203955 [M.B.Smillie ] Surely AJAX already took that award?
| | | | | | | | + 204078 [hal9000 hype] I mentioned this term in ch 1 of _The Ruby Way_ (referencing
| | | | | | | + 203983 [dblack wobbl] It sounds like a very useful term, but maybe not a synonym for duck
| | | | | | | | 204026 [ara.t.howard] right. one would say something like
| | | | | | | | 204030 [dblack wobbl] Don't take it too absolutely concretely on a word-by-word basis,
| | | | | | | | 204038 [ara.t.howard] __except__ for the fact that 'type' is easily one of the most semantically and
| | | | | | | | + 204060 [dblack wobbl] I'd say "bookkeeping" is a pretty suggestive and loaded term for
| | | | | | | | | 204076 [james.britt ] If you poke around Lambda the Ultimate for a bit you soon learn that
| | | | | | | | + 204084 [hal9000 hype] Haha... well, if you can quote Lao Tzu, I can quote
| | | | | | | | 204252 [martindemell] To which, of course, the answer is "no, it hasn't urned the right"
| | | | | | | + 204016 [Dymaio gmail] Holy cow; the whole thread was worth it just for this. This is on
| | | | | | | 204018 [dblack wobbl] (Do you mean 'interface polymorphism'?)
| | | | | | | 204036 [ara.t.howard] hmmm. see, i don't think these two ideas are at odds because i agree with you
| | | | | | + 203908 [hal9000 hype] Thank you very much for that clarification, Phil.
| | | | | + 203932 [Dymaio gmail] ... # yadda-yadda
| | | | + 203739 [Dymaio gmail] Perhaps you should try being 'delusional,' for a change; doesn't your
| | | | + 203872 [benjohn fysh] *nods* I tend to agree. When I posted earlier, it certainly seemed
| | | | + 203876 [benjohn fysh] I meant to say predicate classes. Sorry.
| | | | | 203909 [dan-ml dan42] Interesting. "predicate class" certainly sounds more serious than "duck type".
| | | | + 203877 [ara.t.howard] sortof. even if you ignore the compile-time vs run-time semantics between
| | | | + 203903 [dan-ml dan42] Hmm, as far as I know "prototype classes" is about being able to call .new on
| | | + 203709 [dan-ml dan42] So your objection is merely semantic? If DuckTyping isn't the "proper"
| | | + 203738 [Dymaio gmail] It's confusing. For my part, I wouldn't mind so much seeing a module
| | | + 203749 [dblack wobbl] The problem is that "duck typing" is already "taken" :-)
| | | + 203763 [dan-ml dan42] *sigh*
| | | | + 203770 [transfire gm] Yep. Now I'm wondering what they hell your're talking about ;-D
| | | | + 203786 [dblack wobbl] I have no idea how or when or why this all got so acrimonious. For
| | | + 203769 [transfire gm] Er... Did someone put you in charge of the duck type club? I am a
| | | 203926 [Dymaio gmail] For the record, I'll cross-reference with Mr. Black's 2:16 PM post,
| | + 203685 [srinivas.j s] 'interface' concept. If 'each' is a "ducktype", and 'each' has a set of
| + 203627 [dblack wobbl] I guess you'd have to think of a new name to refer to what has in the
| + 203649 [daniel.schie] Isn't this stuff used i Aspect Oriented Programming as well? I only know
| 203678 [Dymaio gmail] I think that AOP is a much more specific approach tailored for
+ 203679 [Dymaio gmail] I'm not sure what the best place for this is; sorry. The following are
+ 203684 [dblack wobbl] True, though that's partly why test-driven development is so big among
| 203865 [Dymaio gmail] *Whew!* That's a relief.
+ 205784 [strobel secu] No. That's not duck typing, that is shoddy programming.
205790 [perrin apoth] I'd say that duck typing is more a means of allowing you to defer
+ 205795 [lukfugl gmai] That is one of the most concise statements on the benefits of
| + 205801 [chiology gma] Duck typing appeals to me specifically because it lets me say that I
| | 205823 [perrin apoth] Isn't that language called Io, like the natural satellite, and not IO,
| + 205824 [perrin apoth] You're welcome -- and thanks for the compliment.
+ 206903 [strobel secu] on
206907 [perrin apoth] I don't think we disagree. I just said that's what I'd say -- not that
^ rb-gnome and gtkglext
203475 [anne wjh.har] I ran the darwinports install instructions on rb-gnome
+ 203536 [kou cozmixng] In <email@example.com>
| 203585 [anne wjh.har] Thanks for the link. what is it I should install?
+ 203658 [anne wjh.har] apparently, one of the problem was that what I needed was rb-gnome2
+ 203662 [anne wjh.har] running
+ 203717 [anne wjh.har] After two days of installs, gnome then gnome2, I don't have gtk, and
| 203791 [dharple gene] Are you running this in an xterm started from /Applications/Utilities/
| 203899 [anne wjh.har] I tried terminal and I tried X11 (xterm) and got the same error in
+ 203788 [mutoh highwa] Can you execute other X application such as xterm ?
203906 [anne wjh.har] I can run irb, then require "gtk2" in either terminal or xterm (X11)
203970 [kou cozmixng] In <firstname.lastname@example.org>
203972 [anne wjh.har] case $gdktarget in x11|linux-fb|win32|quartz|directfb
203978 [anne wjh.har] Quartz is the one of the graphics services in Mac OS X, the others are
203979 [kou cozmixng] In <email@example.com>
204077 [anne wjh.har] I tried that because
204086 [anne wjh.har] oups, there is OpenGL but it is not a directory.
^ irb on Mac OS X not displaying previous lines
203479 [robinson.t c] I just started using irb on my Mac. When I press the Up arrow I should
+ 203480 [curi curi.us] i believe you need to install readline
| 203482 [demmer12 fas] Ruby 1.8.4 from DarwinPorts depends on readline, so it's installed
| + 203486 [robinson.t c] Ok, I installed readline from Darwin Ports, but as you said its version
| + 203708 [hramrach cen] It also works for me with ruby from Fink :)
+ 203481 [demmer12 fas] Works for me in Terminal.
+ 203529 [ryand-ruby z] You need not do anything but build your own ruby and move the stock
203676 [robinson.t c] Yup, that did I. I installed from Darwin Ports.
204841 [ryand-ruby z] Not quite the same, but I suppose it works too.
^ How to run variable method names?
203483 [bjohnson con] charset=US-ASCII;
+ 203484 [sitharus sit] In this case Ruby is interpreting method_name as the method to call.
| 203485 [dblack wobbl] No need to call to_sym -- send will accept a string.
+ 203512 [shugotenshi ] You would use `__send__' in the event `send' is overriden.
^ RLisp - Lisp naturally embedded in Ruby
203488 [tomasz.wegrz] Maybe some of you guys will be interested.
+ 203492 [john.carter ] This is just very very Cool.
| 203493 [john.carter ] - Or perhaps hack on it until it outputs Joy instead of Lisp.
+ 203618 [erikveen gma] Great!
+ 203624 [w_a_x_man ya] Very interesting.
| 203639 [tomasz.wegrz] Now I know perfectly well that let is used in different way in other
| + 203653 [w_a_x_man ya] In newLisp, (setq x 9) is equivalent to
| | 203682 [tomasz.wegrz] I have to say that I come more from Objective Caml/Ruby than
| | 203695 [ola.bini ki.] Why don't you do an OCaml in Ruby instead, if you don't know the
| + 203721 [chneukirchen] BTW, compare with Basic's LET. }}}:-)
| 203727 [tomasz.wegrz] Is setf used like that in any Lisp ?
| + 203731 [ola.bini ki.] Which standard?
| | + 203736 [tomasz.wegrz] Revised 5 Report on the Algorithmic Language Scheme.
| | | 203741 [ola.bini ki.] Actually, the reason people never say "we often want to do X, this is
| | + 203808 [perrin apoth] More to the point, it seems to me that an opinion about something
| | 203840 [ola.bini ki.] This was another point I tried to get across, but your statement
| + 203803 [chneukirchen] Does Common Lisp count? :)
| | + 203818 [tomasz.wegrz] Yeah, but setf changes variables in outside scope.
| | | 204258 [chneukirchen] (defun foo ()
| | | 204259 [tomasz.wegrz] Can we macro around it or something, so that
| | | + 204261 [ola.bini ki.] Such a macro would be a strange beast indeed. The problem is that
| | | + 204319 [martin snowp] Well, you can't quite do that but you can easily do something like
| | | 204330 [tomasz.wegrz] So, how would such a macro look like ?
| | | + 204339 [ola.bini ki.] You would have to do a code-walker (with all the glory such a thing
| | | + 204356 [martin snowp] Well, 1) This is ruby-talk, not comp.lang.lisp, and 2) I don't
| | | 204360 [tomasz.wegrz] Wow, I'm genuinely impressed by this macro.
| | + 203839 [ola.bini ki.] Heh, you seem to misread the question. The question referred to an
| + 203893 [curi curi.us] Umm, where does he say that?
+ 203900 [tomasz.wegrz] New version of RLisp is available. Now with lexical scoping,
204145 [wrecklass1 g] 1) I have really liked Ruby for the very reason that I can often
+ 204147 [tomasz.wegrz] I agree that Ruby syntax is usually nicer.
+ 204150 [perrin apoth] While you may not want "rules lawyers" and "min-maxers" in your RPG
^ Re: Mongoose 0.2.0
203491 [vikkous gmai] Ok, this is a totally different sort of query language, but have you
^ Bother checking wether got response from others of your topic?
203494 [windylady121] I know you must have such headache as I had. But now, aha, I found
^ checking for directory (noob mistake?)
203503 [bilal33 gmai] I apologize in advance if this is a stupid question, but this is the
+ 203505 [dharple gene] directories in the specified path, it does not return the path to
+ 203506 [foamdino gma] I'm not sure, but works fine on my machine (OSX)
203509 [botp delmont] # I'm not sure, but works fine on my machine (OSX)
^ Bad query?
203510 [raffir gmail] I have a find() query inside a for loop. Basically, I want the loop to
+ 203515 [robert.dober] Hmm, looks like a Rails problem, although there are a lot of nice people
+ 203525 [jan.svitok g] Try to fiddle with the condition... what are your course numbers like?
+ 203533 [has.sox gmai] You could simplify this a lot by using a db IN condition.
^ [Nitro] [ANN] Nitro/Og 0.31.0
203514 [surrender_it] (forwarding from nitro's list)
203907 [Eric.Armstro] a sentence or two telling me what nitro is, I'd
^ Shared memory between servers.
203516 [pedro.baldan] I was thinking about this question all weekend. It's possible to have
+ 203519 [farrel.lifso] It's in in the standard lib.
+ 203527 [eyal.oren de] check memcached , a cache shared over multiple servers; it can be used
+ 203573 [ara.t.howard] you want a tuplespace. it's part of drb, which ships with ruby.
^ Autoloading objects ¡½ Ruby equivalent for PHP5 "__autoload
203526 [naum azplace] Does there exist a Ruby equivalent to PHP5 "magic" __autoload method
+ 203545 [lopx gazeta.] Sure there is ;D
| 203550 [alex blackke] That's not quite it. You need to call Module.autoload yourself. PHP's
| 203554 [alex blackke] I mean, besides the fact that it won't work, unlike Mat's. Should have
+ 203720 [ggarra advan] def Object.const_missing elem
^ [ANN] One-Click Ruby Installer 1.8.4-20 is available
203534 [ml.chibbs gm] If you already have 1.8.4-19 you probably don't need this release,
^ How to debug 'ri' ?
203535 [hhausman gma] convert nil into Array (TypeError)
+ 204079 [drosihn gmai] I am not seeing that problem on my unix box, but that does not
+ 204800 [drbrain segm] This is fixed in 1.8.5p1
^ =?WINDOWS-1252?Q?Re:_Autoloading_objects_=97_Ruby_?= =?WINDOWS-1252?Q?equivalent_for_PHP5_"=5F=5Fautoload?=
203539 [rubytalk eac] check out http://www.ruby-doc.org/core/classes/Kernel.html#M002963 its clos=
203588 [shugotenshi ] =?WINDOWS-1252?Q?Re:_Autoloading_objects_=97_Ruby_?= =?WINDOWS-1252?Q?equivalent_for_PHP5_"=5F=5Fautoload?=
^ How to create standl alones applications with Ruby
203542 [jsnit jsnit.] In .NET, Eclipse/SWT, Interface Builder (mac os X) it is possible to
203544 [farrel.lifso] You can use Glade which is a visual designer for GTK/Gnome
203584 [shugotenshi ] And don't forget about the Qt Designer for Qt/KDE applications.
203606 [jsnit jsnit.] Is it possible to combine for example a SWT Eclipse form in java, and
+ 203608 [cdc cyphers.] I haven't messed around with this but using JRuby I'd think so. Could use
+ 203610 [brabuhr gmai] JRuby has some examples using swing; I don't know if anyone has tried
203655 [headius head] JRuby ought to work fine with any basic Java component library. We have