[#14459] Overloading Constructors. — "Florian G. Pflug" <fgp@...>
Hi
Hi,
On Tue, May 01, 2001 at 10:20:23AM +0900, Yukihiro Matsumoto wrote:
Hi,
[#14464] who uses Python or Ruby, and for what? — ellard2@...01.fas.harvard.edu (-11,3-3562,3-3076)
A while ago I posted a request for people to share their experiences
Its interesting that people consider the number of
On Tue, 1 May 2001 10:27:58 +0900, Bryan Zarnett <bryan_zarnett@yahoo.ca> wrote:
[#14517] RAA — ptkwt@...1.aracnet.com (Phil Tomson)
[#14552] emacs and ruby debugging — "Joseph McDonald" <joe@...>
[#14555] Ruby as a Mac OS/X scripting language — Dave Thomas <Dave@...>
I was looking at OS/X yesterday and although the sales
I'm confused by people saying that there is no scripting language for Mac OS
Applescript is there, as is Perl. I guess (IMHO) that
[#14557] Arggg Bitten by the block var scope feature!!! — Wayne Scott <wscott@...>
>
[#14598] Re: Arggg Bitten by the block var scope feature!!! — "Conrad Schneiker" <schneik@...>
# On Thu, 3 May 2001, Wayne Scott wrote:
On Fri, 4 May 2001, Conrad Schneiker wrote:
On Fri, May 04, 2001 at 08:51:32AM +0900, David Alan Black wrote:
[#14600] Design by contract — "J J" <jj5412@...>
Any interest/thoughts on implementing simple design by contract in Ruby?
[#14601] bizarre File open, read, close problem on Win98? — ptkwt@...1.aracnet.com (Phil Tomson)
[#14609] scope of base class instance variable — "Chochain Lee" <cclee@...>
Hi,
[#14629] Database Abstraction Framework — "Florian G. Pflug" <fgp@...>
Hi
[#14636] Yet another "About private methods" question — Eric Jacoboni <jacoboni@...2.fr>
I'm still trying to figure out the semantics of private methods in Ruby.
Eric Jacoboni <jaco@teaser.fr> writes:
Greetings from a newbie,
On Sat, 5 May 2001, Chris Montgomery wrote:
On Tue, 8 May 2001, Guy N. Hurst wrote:
"Guy N. Hurst" <gnhurst@hurstlinks.com> writes:
On Tue, 8 May 2001, MJ Ray wrote:
[#14663] Vote for anime character — "Gudrun Heinrichmeyer" <Gudrun.Heinrichmeyer@...>
I vote for a modern friendly symbol clearly associated with japan, the animcharacter.
[#14683] Class refresher please. — "John Kaurin" <jkaurin@...>
class B
[#14689] ranges — "Joseph McDonald" <joe@...>
[#14699] local/nonlocal block vars — "Hal E. Fulton" <hal9000@...>
Well, I don't think I ever put in my (full) two cents...
[#14710] Why's Ruby so slow in this case? — Stefan Matthias Aust <sma@3plus4.de>
Sure, Ruby, being interpreted, is slower than a compiled language.
[#14740] have I messed up my setup, or are these real irb problems? — Dave Thomas <Dave@...>
[#14743] ANTLR rules for Ruby — matz@... (Yukihiro Matsumoto)
Hi,
matz@zetabits.com (Yukihiro Matsumoto) writes:
[#14753] Re: Ruby on AIX? — "Conrad Schneiker" <schneik@...>
Sean Rusell wrote:
[#14762] skipping arguments — touch freedom <stillflame@...>
this is going to be a stream of thought, not really one coherant question. i am sorry(or 'you are welcome', in some cases).
[#14768] SimpleDelegator assymetry — Robert Feldt <feldt@...>
Hi folks,
[#14777] Completely freaky behavior — "J J" <jj5412@...>
I've got a class that sets a variable in a method like so:
[#14780] AW: Re: SimpleDelegator assymetry — Wyss Clemens <WYS@...>
...does your solution remove obsolete methods?
[#14792] Integer division oddness — "Mike T. Miller" <mtm@...>
My father pointed out this oddity.
[#14793] Polymorphic methods — "J J" <jj5412@...>
In C++ you can have polymorphic methods such as
[#14825] [Q] Why module methods are NOT included by 'include' statement? — Leonid Razoumov <see_signature@127.0.0.1>
Ruby has a powerful 'include some_module' statement which imports into the
[#14881] Class/Module Information — "John Kaurin" <jkaurin@...>
It is possible to modify the following code to produce
[#14932] Re: Automatic inclusion of modules — "rashworth" <rashworth@...>
What is your translation of:
[#14945] ICQ LIB for Ruby — "Anders Johannsen" <anders@...>
Hi
[#15004] Re: Standard practices for module distribution — Renald Buter <buter@...>
On Fri, May 11, 2001 at 04:40:00PM +0100, ruby-talk@ruby-lang.org wrote:
Renald Buter wrote:
Ok, the synapsis aren't firing so well today.
[#15005] Re: Mascot/Icon Ruby Laser — "Conrad Schneiker" <schneik@...>
Furio R Filoseta wrote:
[#15006] Komodo support for Ruby? — Brian Sobolak <sobolak@...>
On Sat, 12 May 2001, Brian Sobolak wrote:
[#15011] DRuby/Rinda/TupleSpace Dokumentation — "Florian G. Pflug" <fgp@...>
Hi
# Is there any documentation of DRuby/Rinda/TupleSpace in english?
[#15034] Re: calling .inspect on array/hash causes core dump — ts <decoux@...>
>>>>> "A" == Andreas Riedl <viisi@chello.at> writes:
Question 1
[#15043] Can't compile 1.7 — Urban Hafner <the-master-of-bass@...>
Hello,
[#15047] Ruby/GTK question and future RAA suggestions — "Conrad Schneiker" <schneiker@...>
Hi,
[#15056] Syntax highlighting — Stephan K舂per <Stephan.Kaemper@...>
Hi,
[#15057] ncurses-bindings — Stefan Nobis <stefan@...>
Hi.
[#15069] Flushing TkText — "John Kaurin" <jkaurin@...>
I am converting a command line program that had
[#15071] bytecode compilation — Steven Haryanto <steven@...>
Hi folks,
Not exactly what you want, but look at ruby2c (rb2c)
[#15096] [Q] Rroc#arity ambiguity. Is it a bug? — Leo <slonika@...>
Hi experts,
[#15101] Re: Ruby on AIX? — Christian Szegedy <szegedy@...>
Here is a solution:
[#15115] Q: GUI framework with direct drawing capabilities? — Stefan Matthias Aust <sma@3plus4.de>
Hi!
Stefan Matthias Aust <sma@3plus4.de> writes:
[#15125] Re: How do I alias a class method? — Mathieu Bouchard <matju@...>
On Tue, 15 May 2001, Mathieu Bouchard wrote:
On Tue, 15 May 2001, David Alan Black wrote:
[#15162] Regexp (a\1) — ts <decoux@...>
[#15173] Re: Discussion on new Ruby features — Christian Szegedy <szegedy@...>
Dave Thomas wrote:
[#15174] class << self — Hans-Dieter Stich <hdstich@...>
hi!
Hans-Dieter Stich <hdstich@commplex-media.de> writes:
[#15193] Re: Discussion on new Ruby features — Christian Szegedy <szegedy@...>
Angus McIntyre wrote:
[#15197] Re: Discussion on new Ruby features — Christian Szegedy <szegedy@...>
Dave wrote:
[#15198] Re: Q: GUI framework with direct drawing ca pabilities? — Steve Tuckner <SAT@...>
Would it be a good idea to develop a pure Ruby GUI framework built on top of
-----BEGIN PGP SIGNED MESSAGE-----
[#15216] Re: Discussion on new Ruby features — "Christian Szegedy" <szegedy@...>
matz wrote:
[#15234] Pluggable sorting - How would you do it? — "Hal E. Fulton" <hal9000@...>
Hello all,
Hi,
Wayne Scott <wscott@bitmover.com> writes:
From: Dave Thomas <Dave@PragmaticProgrammer.com>
Is there a built in way to turn an array
[#15235] Bug or feature? eval("x=5") — "Hal E. Fulton" <hal9000@...>
Hello Rubyists...
[#15272] Re: Discussion on new Ruby features — "Benjamin J. Tilly" <ben_tilly@...>
>===== Original Message From matz@zetabits.com (Yukihiro Matsumoto) =====
[#15290] Ruby in Java — Glen Starchman <glen@...>
[#15318] — "Michael Dinowitz" <mdinowit@...2000.com>
subscribe michael dinowitz
[#15325] help with rubyunit — Max Ischenko <max@...>
[#15333] how to use garbage collection relyably? — viisi@... (Andreas Riedl)
hi!
[#15364] Re: Time.times problems in libc5; getrusage request — ts <decoux@...>
>>>>> "G" == Guy N Hurst <gnhurst@hurstlinks.com> writes:
[#15366] UnMac — Chris Moline <ugly-daemon@...>
Hi, I was reading the anti mac paper that showed up on slashdot and figured why not?? For those who don't follow slashdot, the paper was about alternative interfaces. In this case an interface similar to the ones found in text adventure games. I think this is a cool idea. A sample session would be
On Fri, May 18, 2001 at 10:56:41PM +0900, chad fowler wrote:
[#15391] PROPOSAL: Java-like method-based synchronization mechanism in Rub y — Wyss Clemens <WYS@...>
Hi all,
[#15394] Re: Ruby in Java — ts <decoux@...>
>>>>> "M" == Mathieu Bouchard <matju@sympatico.ca> writes:
[#15403] how to remove method from singleton class — Joel VanderWerf <vjoel@...>
[#15434] A proto-RCR: making def and class rvalues — Dave Thomas <Dave@...>
[#15438] Newbye question: retrieving a Class by its classname — "Benoit Cerrina" <benoit.cerrina@...>
Hi,
[#15448] RCR: #const_name_is — Mathieu Bouchard <matju@...>
[#15456] more reflection — Mathieu Bouchard <matju@...>
Hi,
On Mon, 21 May 2001, Yukihiro Matsumoto wrote:
[#15470] Re: Embedding Ruby - Segfaults? — ts <decoux@...>
>>>>> "S" == Sean Middleditch <elanthis@users.sourceforge.net> writes:
[#15474] Ruby catching error signals — Sean Middleditch <elanthis@...>
Hi again!
[#15493] One for the FAQ — "Matthew Bloch" <mattbee@...>
initialize NOT initialise, dammit :-) The error message:
[#15511] Tk Bitmaps — "John Kaurin" <jkaurin@...>
The following code works when I use a bitmap from the Ruby Tk demos kit
[#15512] Newbie GC question — Ashley Roeckelein <ashley.DONT@...>
Hi,
[#15549] ColdFusion for Ruby — "Michael Dinowitz" <mdinowit@...2000.com>
I don't currently use Ruby. To tell the truth, I have no real reason to. I'd
[#15569] I like ruby-chan ... — Rob Armstrong <rob@...>
Ruby is more human(e) than Python. We already have too many animals :-).
----- Original Message -----
On Wed, 23 May 2001, Hal E. Fulton wrote:
[#15590] Re: -lX11 error installing Ruby — ts <decoux@...>
>>>>> "C" == Collins Richey <erichey2@home.com> writes:
[#15599] Language specification reference — Lothar Scholz <llothar@...>
Hello,
[#15601] How to avoid spelling mistakes of variable names — ndrochak@... (Nick Drochak)
Since Ruby does not require a variable to be declared, do people find
ndrochak@gol.com (Nick Drochak) writes:
On Thu, 24 May 2001, Dave Thomas wrote:
Jim Freeze <jim@freeze.org> writes:
[#15602] Interactive Ruby II — Mario Lang <mlang@...>
Hello.
[#15615] help attr_reader — bashar asad <baasad@...>
hello;
[#15633] Q: Function modification/Procedures — Daishi Harada <daishi@...>
Hi,
[#15646] Disabling stderr — "Tom Spilman" <tspilman@...>
Is there a way to keep Ruby from sending exception info to the stderr
[#15683] Newbie: each! — Martin Julian DeMello <mdemello@...>
I'm trying to write an each! iterator that will iterate over an object
[#15688] every body wants java — bashar asad <baasad@...>
its really frustrating when you try to look for a job noadays.... you know so
[#15704] gnome, bonobo and corba. — Erik B虍fors <erik@...>
Hi all,
[#15708] regexp — ts <decoux@...>
[#15725] Wow! (impressed newbie) — sjr3a@... (Stephen Ramsay)
I just got the Programming Ruby book a few days ago and have been reading it
[#15734] java based interpreter and regexes — "Wayne Blair" <wayne.blair@...>
I have been thinking about the java based ruby interpreter project, and I
>
Does anyone have any experience with javacc? I've been playing with it and
[#15735] Compilation helper — Sean Middleditch <elanthis@...>
Hi!
[#15738] Ruby globbing problem? — Guillaume Cottenceau <gc@...>
[#15754] Challenges of java interpreter — "Wayne Blair" <wayne.blair@...>
"Stefan Matthias Aust" <sma@3plus4.de> wrote:
"Wayne Blair" <wayne.blair@relian.com> wrote:
[#15782] Subsets of a set — Harry Ohlsen <harryo@...>
I know that the Array class has a number of methods that make it usable
[#15793] Check a few characters of a string: How? — "Franz GEIGER" <fgeiger@...>
Want to check the first or last character of a string or say any character
[#15804] is it possible to dynamically coerce objects types in Ruby? — mirian@... (Mirian Crzig Lennox)
Greetings to all. I am a newcomer to Ruby and I am exploring the
Hi,
In article <990979671.433370.24481.nullmailer@ev.netlab.zetabits.com>,
Hi,
In article <991006658.571333.26080.nullmailer@ev.netlab.zetabits.com>,
Hi,
In article <991014401.628418.26898.nullmailer@ev.netlab.zetabits.com>,
On Mon, 28 May 2001, Mirian Crzig Lennox wrote:
[#15828] subclassing Date — Michael Husmann <Michael.Husmann@...>
Using ruby 1.6.0 and trying to subclass the Date class like
[#15832] Can irb have smart completion? — Max Ischenko <max@...>
Hi,
[#15846] gtk/glib — Patrik Sundberg <ps@...>
hi,
[#15863] Experimental "in" operator for collections — Stefan Matthias Aust <sma@3plus4.de>
There's one thing where I prefer Python over Ruby. Testing whether an
[#15871] embedded ruby — Wesley J Landaker <wjl@...>
Hello list, =)
[#15886] Q about TrueClass & FalseClass — Stefan Matthias Aust <sma@3plus4.de>
Hi!
[#15894] Dir[] — "Todd Smith" <todd@...>
I can get a list of files to be returned from a line such as:
[#15923] Block arguments vs method arguments — Mike <mike@...>
Hi,
[#15925] Re: Block arguments vs method arguments — ts <decoux@...>
>>>>> "M" == Mike <mike@lepton.fr> writes:
----- Original Message -----
On Thu, May 31, 2001 at 11:53:17AM +0900, Hal E. Fulton wrote:
At 11:01 PM 5/31/2001 +0900, Sean Russell wrote:
In article <5.1.0.14.2.20010531160016.00aa8aa8@mail.vex.net>,
mirian@cosmic.com (Mirian Crzig Lennox) writes:
[#15947] Traffic seems to be up significantly — ptkwt@...1.aracnet.com (Phil Tomson)
[#15954] new keyword idea: tryreturn, tryturn or done — Juha Pohjalainen <voidjump@...>
Hello everyone!
[#15955] .scan() using '/' as the regular expression delimiter — "Luke Crook" <lcluke@...>
I am trying to parse an Apache log file. The date field looks like:
[#15960] Ruby Standard and Enterprise Edition — Bryan Zarnett <b@...>
One of the best "marketing" things that Java did was there standard and
[#15998] ruby-mode not hilighting keywords in XEmacs 21.4? — jeffrey@... (Jeffrey P Shell)
In a freshly-built XEmacs 21.4.3 with lots-o-packages installed,
[#16015] tryreturn - names and intentions — Juha Pohjalainen <voidjump@...>
Hiya all again! :-)
[#16068] require and include confusion — Albert Wagner <alwagner@...>
I have totally confused myself about the relationship between require and
[#16087] linked list redux — Al Chou <hotfusionman@...>
Hi, all,
>Hi, all,
Johan Dahl <Johan.Dahl@ling.lu.se> writes:
[ruby-talk:15812] Re: java based interpreter and regexes
[Many replies to multiple emails on this thread in one easy-to-delete message!] Glen> Unless we would be seeking 100% Java certification, there is Glen> nothing stopping us from using JNI and creating native regex Glen> libraries for each supported platform. It's very, very ugly, Glen> but certainly could be done. Stefan> Sure, it could be done. But my dream would be an easy-to-deploy Stefan> single jar distribution which could be droped on any platform we Stefan> like... I agree. I think this is the most compelling reason to write a Java Ruby interpreter, and I dislike the idea of "polluting" the Java version with JNI; if I'm going to have to recompile the Java-based interpreter, I might as well use the original C source. Don't get me wrong; I have nothing against a Java implementation as an intellectual exercise; it just wouldn't benefit *me* much ;-) Stefan> Hi Sean, Hi Stefan :-) > >Hm. I was comparing Ruby 1.6.4 against IBM's Java 1.3 on Linux. > >My benchmarks were from my office computer (200Mhz CPU 128Mb RAM). > > I was using a PII 450 with 256 MB running Windows 98. > > >Java runtime: 14.794s (Sun's JDK 1.3 w/ Hotspot) > >Java runtime: 15.070s (IBM's JDK 1.3) > >Ruby runtime: 4.707s (Ruby 1.3) > > Funny, we get nearly the same time for Ruby even if my system should > be twice as fast as yours. I compiled my Ruby on cygwin with whatever > "configure; make; make install" sets (-g -O2). I apologize; I wasn't clear. The benchmarks I had posted earlier were from my 200MHz office machine; these benchmarks were posted from my 400MHz, 256MB home machine. > Please note that I was using java 1.4 which is known to be slower on > the startup. Whatever, I also can't really believe the measured > result. Well, Benoit's results match yours, although it looks as if his machine configuration is nearly identical to yours (same CPU, same VM, etc). If this true, the 1.4 VM is literally an order of magnitude faster than the 1.3 VM, or else the Windows VM is a better implementation than the Linux VM. I find this last option a bit odd, because IBM's 1.3 VM for Linux was supposed to be the fastest for non-GUI apps, although I last checked this several months ago. How does the 1.4 VM perform memory-wise? The 1.3 VM is a memory hog under Linux. > I've only GCC available. Wait, I've also RubyWin (based on version > 1.6.2 I think). It takes 3.5s for the benchmark. Wow. 25% faster. Not bad, but this still doesn't account for the Java regex package being two to four times as fast as the Ruby version. > As I wrote, I think it's based on the jakata project's (apache) regex > package. Just check out the hyperlink I posted. I did (thanks for the link), but I didn't do a lot of reading about the new package. I'll have to do that in a year or so, when I have more free time :-) > >The reason that Java hasn't become the defacto application language is > >primarily because of the speed issue (IMO). > > I'd say it's also because most people (including some developers at > Sun) don't know how to write fast OO applications, but that's a > different topic :-) Yes, and no. Swing is comparatively slow, no matter what you do. I do agree that non-GUI Java apps perform really well. I wish something could be done about Swing, though. > The papers about the SELF project are very interesting to read. Don't > get me wrong, a good static compiler can do amaizing things, but only > for static programs. They often fail on dynamic object-oriented Ah. Yes, you are completely right. > languages. Don't compare static C programs with more dynamic > object-oriented solutions. The goal is to make these programs to run I was doing this comparison because we were talking about Java regex vs. Ruby regex, and I was under the impression that the Ruby regex package was written in C, not C++. Further, the loop in the benchmark was tight, and I expected most of the time to be spent in the regex match (IE, static C code), not in interpreted OO Ruby code. > could be true. If you compare the programs with the same semantic, > Java isn't slow. Don't make the mistake to compare an unchecked array > access with Java's checked access. I always want the security to > never get any buffer overrun error (security problem number one in the > C-based server world!) and only the JIT is allowed to remove the check > if it can prove that the array bounds are never violated. Yes, everything you say is true. It does get into the larger discussion of comparing apples to apples (OO to OO), but I'm still confused about your results which indicated that interpreted OO code is faster than native functional code. > GC, done right, is faster than the typical manual malloc/free memory > management, especially if we're talking about millions of small > objects. Yeah, but we aren't. We're talking about a single, tight loop on static stringes. Although, Benoit's results on a larger itteration, which narrows the gap between Java 1.4 and Ruby runtimes, illustrate the garbage collection point. At 10,000 itterations, the Java code probably wasn't getting a chance to invoke GC. On the other hand, Ruby uses GC as well... is Ruby's GC mechanism more efficient than Java's? > I'd really like to see somebody else to try the benchmark using JDK > 1.4 and checking whether I made a mistake. I don't think you did, and Benoit's benchmarks prove this. I'd like to see some other, more complete benchmarks of Ruby vs. Java, particularly of Ruby methods which are known to be implemented in native code. Thanks for the discussion, Stefan. --- SER