PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Ruby vs Smalltalk
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Ruby vs Smalltalk

Réponse
 
LinkBack Outils de la discussion
Vieux 08/06/2008, 11h55   #1
Marc Heiler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Ruby vs Smalltalk

Some time ago we have had ruby vs ~ada discussions, or more generally
ruby and "large scale applications" - actually, the people that
contributed their (impressive) knowledge made this quite interesting.

So here I start again - with my lack of knowledge. Ruby vs Smalltalk.

I only wrote a tiny bit of smalltalk so far. Some things remind me of
ruby like the |block| syntax (but the smalltalk people seem to like to
do the |block| in a new line and whenever I saw this in ruby, i was
puzzled, because I am used to having the |block| in the same line).

Actually come to look at it, I dont so much like the syntax of
smalltalk. I think Ruby's syntax is cleaner than smalltalk's and I also
am not too fond of using := instead of = for assignment. (The Io
language uses := too and I'd really have it the other way around, so
that = means assignment, rather than "update slot")

Anyway, there is one thing which I believe totally rocks in smalltalk
and I still have not understood it completely.

It is that image thing.

Of course I am interested in this due to the recent exposure of Maglev,
additionally some older praises towards smalltalk-squeak, but also about
the general VM discussions regarding ruby. And on IRC drbrain mentioned
that there are objects which are nearly thirty years old (in some
images), which I found astonishing. (Havent even thought that objects
"age" too .. can I have my immortal objects in the matrix please? ;> )

My brain also connects this to other discussions I have had (on
Gobolinux), where a few talked about a filesystem which uses a database
rather than the current FHS approach with flat files being spread
everywhere. I think the idea that an image is used for both storing
where files are (and then would do away with the problem of requiring
_absolute_ paths for anything actually, because i think having the need
to store absolute, hardcoded paths is really bad if one needs
flexibility), and also the complete OS (in form of objects and their
data) is simply ... well, "cool".

But it seems as if this whole VM or rather image thing is hardly used
outside Smalltalk. Which sounds like a shame, unless I missed something
perhaps? Can ruby have such an image based system additionally?
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 08/06/2008, 12h31   #2
ThoML
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby vs Smalltalk

> But it seems as if this whole VM or rather image thing is hardly used
> outside Smalltalk.


Lisp suffers from this approach too.

Anyway, I think you might like to read this for a smalltalk
perspective:
http://c2.com/cgi/wiki?RubyIsSmalltalkMinusMinus

It was on reddit recently.

> Can ruby have such an image based system additionally?


No!
  Réponse avec citation
Vieux 08/06/2008, 12h46   #3
Nicolas Pelletier
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby vs Smalltalk

Hello,

On Sun, Jun 8, 2008 at 7:55 PM, Marc Heiler <shevegen@linuxmail.org> wrote:
>
> Actually come to look at it, I dont so much like the syntax of
> smalltalk. I think Ruby's syntax is cleaner than smalltalk's and I also
> am not too fond of using := instead of = for assignment. (The Io
> language uses := too and I'd really have it the other way around, so
> that = means assignment, rather than "update slot")


Back in the old days, the code for the assignment operator in
Smalltalk produced a left arrow. Now that ASCII is generally used, the
corresponding code is that of underscore, which does not make clear
its intent (assignment). This lead to the introduction of the :=
syntax for assignment.

Squeak Smalltalk includes a font that still has the old left arrow.

> Anyway, there is one thing which I believe totally rocks in smalltalk
> and I still have not understood it completely.
>
> It is that image thing.


Images are good because they come with persistance and session
management. On the other hand, they can accumulate a big pile of
"dust". I have found I needed a strict discipline while using images
to not loose track of what is inside and what is not.

> But it seems as if this whole VM or rather image thing is hardly used
> outside Smalltalk. Which sounds like a shame, unless I missed something
> perhaps? Can ruby have such an image based system additionally?


There are Lisp or ML systems that use images, too.

--
Nico

  Réponse avec citation
Vieux 08/06/2008, 13h30   #4
Eleanor McHugh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby vs Smalltalk

On 8 Jun 2008, at 12:46, Nicolas Pelletier wrote:
> On Sun, Jun 8, 2008 at 7:55 PM, Marc Heiler <shevegen@linuxmail.org>
> wrote:
>> But it seems as if this whole VM or rather image thing is hardly used
>> outside Smalltalk. Which sounds like a shame, unless I missed
>> something
>> perhaps? Can ruby have such an image based system additionally?

>
> There are Lisp or ML systems that use images, too.


Not to mention MOO (as in LambdaMOO) and Forth.


Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net
----
raise ArgumentError unless @reality.responds_to? :reason



  Réponse avec citation
Vieux 08/06/2008, 19h28   #5
Huw Collingbourne
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby vs Smalltalk

I've written quite a bit on this subject so instead of repeating myself,
here are a few links...

http://www.sapphiresteel.com/Ruby-The-Smalltalk-Way
http://www.sapphiresteel.com/Ruby-The-Smalltalk-Way-1
http://www.sapphiresteel.com/Ruby-The-Smalltalk-Way-2-A
http://www.sapphiresteel.com/Ruby-Th...ay-3-The-World

best wishes
Huw Collingbourne

SapphireSteel Software
Ruby and Rails In Visual Studio
http://www.sapphiresteel.com
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h33.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11347 seconds with 13 queries