[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Power of Interpreted Languages

Thomas Adam

11/7/2003 6:31:00 PM

--- "T. Onoma" <transami@runbox.com> wrote:
> Some general questiosn concerning interpreted lanaguages (and their JIT
> couterparts).
>
> How far do you think an interpreted language can go? In otherwords, to
> what extent could the more traditional set of compiled c/c++ programs on
> a system be replaced by interpreted versions.

Not this tired old refrain again.... Every task has a purpose, so it
really doesn't matter to what extend which language you use. Yes, perhaps
there are languages out there more suited to performing certain tasks than
others...

For example, I wouldn't want to see a high-end graphics game written in
Ruby, it would be too slow.

> We all know that scripting is great for good many tasks, but could
> scripting make for a good word processor, for instance? How about a
> Desktop Enviornment or Window Manager?

No -- too slow.

> To what extent can Ruby programs be utilized to displace traditional
> binary apps on my PC?

This sounds very much like a homework assignment....

-- Thomas Adam

=====
Thomas Adam

"The Linux Weekend Mechanic" -- http://linuxg...
"TAG Editor" -- http://linuxg...

________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.y...

5 Answers

Aria Stewart

11/7/2003 6:47:00 PM

0

> > We all know that scripting is great for good many tasks, but could
> > scripting make for a good word processor, for instance? How about a
> > Desktop Enviornment or Window Manager?
>
> No -- too slow.

A counter-argument: Look at SawFish. It's critical sections are written
in C, using GTK and GDK to do drawing routines. However, the logic of
the window manager is written in Scheme/REP. Sawfish is also incredibly
flexible beacuse of this, Scheme being as dynamic as it is.

I don't think that being interpreted makes this possible, it is being
dynamic. That said, dynamic is usually a feature of interpreted
languages, not compiled. (The most notable exception I can think of
being Objective C.)

Sawfish is plenty fast -- faster than Metacity, often, which is written
in C alone.

I'd love to see many apps written in Ruby/Gnome2, or at least large
sections. A word processor with the logic written in Ruby would be easy
to hack, easy to fix. Same for other apps. In my experience, it's fast
enough.

(This is why Emacs is popular, too...)

Ari


Dave Thomas

11/8/2003 2:18:00 AM

0


On Nov 7, 2003, at 13:31, Thomas Adam wrote:
>> We all know that scripting is great for good many tasks, but could
>> scripting make for a good word processor, for instance? How about a
>> Desktop Enviornment or Window Manager?
>
> No -- too slow.
>

Andy and I've written an X-11 window manager, mostly in Ruby...

Cheers


Dave


John W. Long

11/8/2003 2:30:00 AM

0

Wow. Can we download it somewhere?
___________________
John Long
www.wiseheartdesign.com


----- Original Message -----
From: "Dave Thomas" <dave@pragprog.com>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Friday, November 07, 2003 8:18 PM
Subject: Re: Power of Interpreted Languages


>
> On Nov 7, 2003, at 13:31, Thomas Adam wrote:
> >> We all know that scripting is great for good many tasks, but could
> >> scripting make for a good word processor, for instance? How about a
> >> Desktop Enviornment or Window Manager?
> >
> > No -- too slow.
> >
>
> Andy and I've written an X-11 window manager, mostly in Ruby...
>
> Cheers
>
>
> Dave
>
>
>
>
>



Dave Thomas

11/8/2003 5:32:00 AM

0


On Nov 7, 2003, at 21:30, John W. Long wrote:
>> Andy and I've written an X-11 window manager, mostly in Ruby...

> Wow. Can we download it somewhere?
>

Sorry - it was for a client (and it was fairly specialized: it was
designed for an internet kiosk, so it's main job was to control rigidly
which windows could be displayed, and where)

Cheers


Dave


George Ogata

11/8/2003 11:05:00 AM

0

"John W. Long" <ng@johnwlong.com> writes:

> Wow. Can we download it somewhere?

There is an open source ruby-scriptable X11 WM out there.

http://kahakai.sourc...

I've yet to try it, but I'd love to hear more opinions of it.