15064-15983

14797-15505 subjects 15235-15829

^ Find your sole mate here!! Post your FREE personal ADs here!
15064 [zwtzdg you.c] Stop wasting time waiting for love to fall on your lap come to the worlds #1 onling dating service with over 8,000,000 users world wide from the USA to the worl you will find that someone here! come and place you FREE personal AD today and tomrrow you may find the one your looking for!

^ Flushing TkText
15069 [jkaurin home] I am converting a command line program that had
15073 [jkaurin home] A nice person sent me this offline. Being new to Tk it was something
15132 [jkaurin home] This worked fine.
15138 [matju sympat] Have you tried "0.0" ?
15139 [jkaurin home] I  will try this in the morning. delete("1.0", "end") was the  example
15142 [matju sympat] I tried both

^ bytecode compilation
15071 [steven harya] I come from a Python (and later, Perl) background and decided
+ 15074 [armin approx] Not exactly what you want, but look at ruby2c (rb2c)
| 15108 [ser germane-] This is a wonderful idea, but I have three problems with it: it only works
| + 15134 [matz zetabit] * to create executable binary.
| + 15154 [steven harya] As the case with compiling other scripting languages, speed gain or
|   15155 [buter CWTS.L] Probably a silly question, but how about 2native, JIT, etc. Would this also
|   15161 [steven harya] Java is probably easier because of its static typing.
+ 15076 [matz zetabit] Ruby's not yet byte-compiled.  Byte-compilation is planned but not in
| 15223 [alwagner tca] Compiling into Obj-C is a natural solution for an OOP interpreter.  The
| 15224 [avi beta4.co] This is a very interesting concept, although it seems like the problems might become overwhelming (how, for example, do you deal with instance variables, which can be added at runtime?  What about class variables? Garbage collection? The object models of ObjC and Ruby are not quite similar enough to easily merge them...).  Are there any examples of this having been done with another language? (FScript comes vaguely to mind, but I know nothing about the implementation.)
+ 15146 [feldt ce.cha] Exepackaging of Ruby programs for Wintel machines with cygwin is available

^ Place your FREE personal ADs here!
15085 [vyxiol you.c] Stop wasting time waiting for love to fall on your lap. Come to the worlds #1 onling dating service with over 8,000,000 users world wide from the USA to the world you will find that someone here! come and place you FREE personal AD today and tomrrow you may find the one your looking for! And most of th ADs have PICTURES!!!

^ Ruby and MySQL
15092 [rlipscombe s] I've looked on the main Ruby sites for a sign of this, but I apologise if
15093 [ralf kuerbis] MySQL Ruby Interface: http://www.tmtm.org/en/mysql/ruby/
15094 [barry_shultz] Check the RAA http://www.ruby-lang.org/en/raa.html
15123 [neumann s-di] And if you're familiar with Perl's DBI, you may try out

^ Ruby/FLTK; trying to use it on the Agenda VR3d
15095 [kentda stud.] I've been trying to compile and run the Ruby/FLTK binding on my Agenda

^ [Q] Rroc#arity ambiguity. Is it a bug?
15096 [slonika yaho] # Ruby-1.6.2, Ruby-1.6.3
15097 [decoux moulo] pigeon% ruby -e 'p (Proc.new{ |x,| }.arity)'

^ Windows Install
15098 [wayne.blair ] I downloaded and installed the new 1.6.3 Windows Install from http://www.pragmaticprogrammer.com/ruby/downloads/ruby-install.html site (other sites do not seem to have it yet).  I was pleased.  For one, the eruby.exe executable now runs fine instead of failing with a stackdump error as it did in 1.6.2 on Windows.
15105 [andy toolshe] Whoops!  That isn't *quite* ready to go out yet.  Please wait until tomorrow

^ unit testing in ruby
15099 [wayne.blair ] I've done a decent amount of sophisticated unit testing with junit in java, and now I'm started to write tests with runit.  The implementations are very similar, so it was pretty easy to get up and running.  In any case, I'm interested in both seeing interesting ruby unit testing solutions any of you have come up with and trying to help anyone who has a unit testing conundrum they are having trouble working through.

^ OOP Primer
15100 [jj5412 earth] Regards,

^ Re: Ruby on AIX?
15101 [szegedy or.u] I have recently sucessfully compiled ruby under AIX 4.1.5!
15103 [Dave Pragmat] Should I record this somewhere (in the FAQ or on the Wiki), or will
15107 [matz zetabit] I'd like to fix them.  ISDIGIT in dln.c is solely my mistake.  I need
+ 15117 [schneik us.i] # |> I have recently sucessfully compiled ruby under AIX 4.1.5!
| 15144 [matz zetabit] I have no idea about AIX versioning situation.  You can retrieve old
+ 15208 [wfp5p virgin] All I had to do was add the ISDIGIT #define to dln.c and I had no
  15218 [schneik us.i] # >

^ confirm
15104 [jg1lee hanma] confirm 2001022200210517821527915609 jin-kyu lee
<br>

^ Syntax highlighting
15106 [jtobler Wire] This message is in MIME format. Since your mail reader does not understand
15110 [Dave Pragmat] I've added this to the wiki at
+ 15124 [jtobler Wire] That is correct, albeit initially surprising.  Examine the file a bit closer
+ 15152 [rlipscombe s] editors.

^ Porting Ruby Applications to OpenBSD
15113 [ray hackfoo.] I have a problem that I need to get resolved in some fashion. It may be my
15228 [matz zetabit] I don't think I understand the situation, but FreeBSD ports and Debian

^ Q: GUI framework with direct drawing capabilities?
15115 [sma 3plus4.d] I wonder whether there's any Ruby GUI package available which not only
15116 [jimm fnord.i] I'm learning OpenGL by using the Ruby interface. (I'm also using QT to do
15118 [sma 3plus4.d] I'm looking for something for 2D graphics - just a flat map.  Using
15119 [jimm fnord.i] Probably overkill, but worth learning in my opinion.
+ 15122 [schneik us.i] # I wonder whether there's any Ruby GUI package available which not
+ 15127 [martin optus] and
| + 15143 [barry_shultz] I've been using FXRuby lately for a few small projects. It's cross platform,
| + 15177 [danny frouke] That's the one I'm making. In the meantime, I've made two small games with
|   15195 [matju sympat] wouldn't suffer from some help, so if some of you are quite interested,
|   + 15198 [SAT MULTITEC] Would it be a good idea to develop a pure Ruby GUI framework built on top of
|   | + 15203 [matju sympat] I'd be ready to do that on top of Xlib, and actually cooperating with
|   | | 15211 [jimm fnord.i] Take a look at Squeak (www.squeak.org). It's a Smalltalk environment that
|   | + 15204 [ser germane-] Yes!  I've been thinking the same thing.  Something at a higher level of
|   | | + 15209 [danny frouke] I, "the SDL guy" am planning to make a copy of Swing for RUDL (SDL). This
|   | | | + 15213 [billk cts.co] Not sure if this is relevant or useful, but the discussion here
|   | | | + 15214 [ser germane-] I don't have time to write a book on the subject, and a lot of complaints can
|   | | |   15219 [danny frouke] This reminds me a bit of Rebol, and Rebol is made by, if I'm not mistaken,
|   | | + 15212 [ljohnson res] and
|   | |   15215 [ser germane-] Oh, definately.  This is my own personal hell... I like the *design* of AWT
|   | |   15273 [ljohnson res] and
|   | |   + 15277 [ben_tilly op] The main place it went was that I pointed out that what I
|   | |   | 15279 [barry_shultz] #...
|   | |   | 15302 [ljohnson res] to
|   | |   + 15293 [ser germane-] I'm responding to multiple emails on this thread here, to keep the volume
|   | + 15317 [sma 3plus4.d] This is the traditional Smalltalk way :-)
|   + 15281 [r2d2 mao.acc] And I'm working on Ruby bindings for Allegro. Allegro is a cross-platform
|     15285 [ben_tilly op] An idea that is floating around "out there" for wrapping C
+ 15316 [sma 3plus4.d] Thank you all for all recommendations.  I had a brief look on both SDL

^ threads and extensions
15120 [avi beta4.co] I'm playing with a multithreaded Ruby app that spends a lot of its time in
15140 [matz zetabit] Yes.

^ initialize overload
15121 [jim freeze.o] Ok, the synapsis aren't firing so well today.
+ 15128 [jimm eris.io] Yes. Alternately, you can create class methods that create objects that are
| 15156 [ugly-daemon ] Reading this list brings with it a lot of references to patterns. What are they
| 15157 [Pierre-Charl] And the book that started it all: "Design Patterns: Elements of Reusable
+ 15133 [wayne.blair ] I read a few posts that mentioned method overloading might be coming in 1.7

^ Re: How do I alias a class method?
15125 [matju sympat] There should be no visible efficiency difference. I still always use the
15130 [dblack candl] class A
+ 15131 [Dave Pragmat] And then to be _really_ consistent, there's the fact that with current
+ 15136 [matju sympat] Yes, that's why I said similar things...
  15141 [matz zetabit] Interesting.  RCR?
  + 15153 [dblack candl] I'm not sure I'm getting this.  Would this mean that every Ruby
  | 15172 [matz zetabit] I believe it's just an alternative.  Plus it allows to define
  | 15187 [ser germane-] Alternatives are good.  Be wary of reducing Ruby to Smalltalk-ness.  One of
  + 15446 [matju sympat] I'm not sure what you do want an RCR on. There is already a default value
    15460 [matz zetabit] I meant RCR to make

^ specifying argument type to method?
15135 [joe vpop.net] I'd like to specify that a method accepts it's argument as a specified

^ XML parsers
15137 [wayne.blair ] I saw NQXML and XMLParser in the RAA, but I did not see any modules in place

^ LIBRARiES
15145 [Jean-Francoi] I have downloaded a binary version of ruby for HPUX 10.
15149 [decoux moulo] Try the shell variable RUBYLIB

^ building libraries in win32 (uconv)
15148 [benoit.cerri] I downloaded the 1.6.3 version of cygwin ruby.
15164 [ljohnson res] xml)

^ Discussion on new Ruby features
15150 [szegedy or.u] I know it is not very polite to start a discussion about
+ 15151 [neumann s-di] def addInteger(a : Fixnum, b : Fixnum)
| 15160 [szegedy or.u] Sorry, I don't know how to reply to this list,
| 15165 [neumann s-di] It should denote that a is a subclass of Fixnum, kind_of?, instead is_a?.
| 15168 [szegedy or.u] The optimizer must reconginze this situation, and should not
| + 15170 [Dave Pragmat] I also depends on what you're trying to optimize. For example, in many
| | 15173 [szegedy or.u] Not so pragmatic, Dave! ;)
| | 15175 [brad cray.co] Another Ruby Newbie weighs in.  I've only used Ruby a week, but I was
| | 15220 [fgp phlo.org] I totally agree (being a newbie too... ;-) ).
| | 15623 [matju sympat] Note that, in my mind, interface is mostly the same as a type. A type of
| + 15178 [matz zetabit] Agreed.  Ruby really is a hard-to-optimize language.
+ 15179 [johann physi] Well, just to quibble, but the Smalltalk and Lisp compilers do
  + 15182 [szegedy or.u] Bradford Hull
  | 15183 [George.Marro] There's plenty of papers on optimising dynamically-typed languages (mostly
  | 15185 [szegedy or.u] Nice to know this!!!
  | + 15191 [angus pobox.] You might want to take a look at the way Common LISP does this stuff.
  | | 15193 [szegedy or.u] This gives confidence...:)
  | | 15194 [szegedy or.u] Sather would be the optimal language at all IF
  | | + 15197 [szegedy or.u] OK. I see...
  | | | 15227 [matz zetabit] * introduce reference counting.
  | | | + 15230 [masa stars.g] I have another idea;
  | | | + 15231 [matju sympat] What do you think of adding an extra level of indirection? Maybe String
  | | | | 15242 [matz zetabit] It's not solving the problem, e.g.
  | | | + 15254 [stefan snobi] What about only make it an option to not only overwrite operator + but also to
  | | |   15256 [matz zetabit] Why hate "<<" so much?  I think it's good to mention side effect
  | | + 15200 [matz zetabit] Yes, it's interesting.  I once had an ambition to create a language
  | + 15202 [matz zetabit] I personaly encourage people to write extension if they need
  |   15216 [szegedy addc] This is a multi-part message in MIME format.
  |   15226 [matz zetabit] Well, I know your intention.  But cool down.
  |   15232 [hal9000 hype] Ha... funny and true. Most of us have had RCRS from time to time,
  |   + 15252 [matz zetabit] Maybe.  You might not know that Japanese are pretty free-of-order
  |   + 15261 [dblack candl] OK... but your examples don't include the word include.  I mean, the
  |     + 15262 [szegedy or.u] This is a very fair answer. I really wanted to provide some ideas
  |     | + 15272 [ben_tilly op] You mentioned this before.
  |     | + 15305 [masa stars.g] I considerd such an issue for NArray.
  |     |   15310 [szegedy or.u] a.dup.add!(b) may be less effective than a+b
  |     + 15401 [fgp phlo.org] Maybe syntatic sugar like "if x in [a,b,c]" should be generalized by
  |       + 15412 [hal9000 hype] Please, no. Macros are evil, IMO.
  |       | 15435 [benoit.cerri] Yes they are definitely from the darkside...
  |       + 15479 [r2d2 mao.acc] The big drawback of macros is that when everyone starts to use their own
  |         15528 [benoit.cerri] peoples
  + 15201 [matz zetabit] Yes, I've already borrowed some from Sather, for example, class

^ How do I catch unsuspecting errors:
15158 [jim freeze.o] I would like to be able to catch unexpected errors
+ 15159 [decoux moulo] By default rescue catch StandardError, if you want to catch another error
| 15169 [wayne.blair ] Class Exception is the superclass of all Exceptions, so you could rescue
+ 15171 [matz zetabit] Try "rescue NameError" or "rescue Exception".

^ Regexp (a\1)
15162 [decoux moulo] pigeon% ruby -e '/(a\1)/ =~ "a\001"; p $&'
15917 [matz zetabit] Sorry for being late.
+ 15919 [matz zetabit] Ah... No, well,.. I mean .. I was wrong and stupid (again).
+ 15924 [decoux moulo] This is not what do perl, and this will be a difference from perl/ruby.
  + 15932 [matz zetabit] Hmm, I don't get the point.
  + 15938 [decoux moulo] No this is me which has given the wrong example, sorry
    + 15939 [ben_tilly op] The following 2-line program is valid in both Ruby and Perl.  But
    | 15940 [decoux moulo] There will be also another difference, but this difference exist also in
    + 15983 [matz zetabit] Thank you.  I confirmed your fix in [ruby-talk:15924] works like Perl.

^ Re: GUI framework with direct drawing capabilities?
15163 [ljohnson res] FXRuby (http://fxruby.sourceforge.net) should be able to handle this just

^ operator idea
15166 [szegedy or.u] I like the feature of Ruby that automatically generates the
15186 [neumann s-di] Use str << "hello\n" in this case instead, which do not copy the object.
15188 [szegedy or.u] Of course, I know. Exactly that was my point.
15189 [szegedy or.u] Of course, I know. Exactly that was my point.
15190 [Dave Pragmat] So are you suggesting mapping
15192 [szegedy or.u] I thought that the semantics of a+=x a<<x for thing is the same,
15199 [matz zetabit] a = b = "matz"

^ Regexp (a)|\1
15167 [decoux moulo] Apparently ruby can match a group which have never matched, normal ?

^ class << self
15174 [hdstich comm] what is the difference between
15221 [leo slonik.n] These two forms are equivalent and define the same singleton method A.method1.
15248 [hdstich comm] ok, i agree to you, but are their any advantages or
15249 [matz zetabit] The former is full form, you can do everything, define, undefine,
+ 15250 [hdstich comm] ok, 'alias' for example can only be used inside a class
| 15253 [matz zetabit] They are "def" and "undef" respectively.  Description of "undef"
+ 15251 [decoux moulo] undef is a keyword, undef_method is a method
  + 15255 [hdstich comm] hmm, am i missing something here?
  | 15263 [Dave Pragmat] We decided to illustrate its function by example :)
  | 15265 [hdstich comm] hehe, and on which page in your book is the 'example'? ;-)
  | 15266 [Dave Pragmat] 240, at the end of the language chapter.
  + 15257 [decoux moulo] More precisely, it's in keywords :-)))
    15258 [hdstich comm] ooohhh, yes!!! ;-)

^ Handling undefined methods gracefully
15176 [jgb3 email.b] In Python, there is a pretty graceful way to specify a generic routine
15180 [Dave Pragmat] Have a look at
+ 15181 [decoux moulo] See #method_missing
+ 15184 [jgb3 email.b] Yup, I knew I joined this list for a reason.  That's exactly what I was

^ ZetaBITS == Zetta bits (10 ** 21)?
15205 [schneik us.i] Matz,
+ 15206 [glen enabled] (sorry for the *completely* off-topic post...)
+ 15225 [matz zetabit] It's intended pun between zetta (10**21) and greek letter zeta.

^ Windows Installer for Ruby 1.6.3 Available Now
15207 [andy toolshe] See www.rubygarden.org for the full announcement.
15308 [Stephan.Kaem] And which is really great. I missed the, well, missing (searchable)

^ Turtle graphics anyone?
15210 [msnomer spam] I've been trying to persuade my teacher friends to use Ruby to teach
15217 [matju sympat] * a sample program using the turtle
15286 [LuthyCraig J] I have a chance at a Career Awareness Day this friday to introduce your

^ Ruby/X11 version 0.1
15222 [matju sympat] Announcing Ruby/X11 version 0.1. I release it because I just succeeded in
15229 [matju sympat] Note that it depends temporarily on MetaRuby, but it's easy to remove that

^ RCR Syndrome - half-serious idea
15233 [hal9000 hype] Speaking of ideas to change Ruby, here's one.
15236 [matju sympat] if foo() & bar() & bam() then...

^ Pluggable sorting - How would you do it?
15234 [hal9000 hype] I was thinking about this today. I'd like to be able to define
+ 15238 [matju sympat] class Array
| 15246 [phasis hanan] The latter doesn't work.
+ 15247 [matz zetabit] GOTO Kentaro once proposed something like this.
  + 15274 [ben_tilly op] Hmmm...this doesn't really address my main need in a
  | + 15275 [decoux moulo] When no block is given, #sort is hard-coded if the 2 elements are FIXNUM
  | | 15283 [ben_tilly op] Ick?
  | | 15284 [decoux moulo] Do the method lookup on what ? The first element in the array ?
  | + 15287 [matz zetabit] As Guy Decoux stated in [ruby-talk:15275], string sort is highly
  |   15289 [ben_tilly op] Take the list that is being sorted, and internally map
  + 15319 [wscott bitmo] How about "sort_using" ??
    15320 [Dave Pragmat] The example in http://www.rubycentral.com/book/ref_c_numeric.html#nonzero_qm
    15329 [wscott bitmo] ^^ missing ) here
threads.html
top