Re: Invalid Operating System

[prev] [thread] [next] [lurker] [Date index for 2006/12/17]

From: A. Pagaltzis
Subject: Re: Invalid Operating System
Date: 18:32 on 17 Dec 2006
* Peter da Silva <peter@xxxxxxx.xxx> [2006-12-17 19:05]:
> On Dec 17, 2006, at 11:08 AM, A. Pagaltzis wrote:
> >Agreed. After all, it's roughly a cross between Self and
> >Perl...
> 
> It's more like a C-styled version of Self, without the
> Smalltalk/Self dependance on the GUI and snapshots. What of
> Perl has seeped into it has largely been the stuff that Perl
> borrowed from languages that sucked less in the first place.

Objects in JS are synonymous with hash maps and vice versa. In
Self, there is a meta-object protocol; JS doesn't have that. The
String and Number classes have a bunch of Perlish methods. Etc.

You might contend that these things come from where Perl borrowed
them, fine; but I'm pretty sure JS didn't accidentally happen to
individually copy the same bits from a hodgepodge of other
languages that Perl also copied from those same other languages.
See also the OO model stuff below. It would be a huge coincidence
if JS ended up so much like Perl in so many disparate aspects due
to pure chance alone; esp. considering Javascript was conceived
for the browser environment at a time when doing dynamic web
content meant doing Perl, period.

> I hadn't really noticed this one before [...], so thank you for
> making Javascript hateful to me.

"What appears to be a crisis is often merely the end of an
illusion."

> >The OO models of JS and Perl are in fact amusingly similar.
> 
> They're both template-based, anyway. I guess template-based
> instead of class-based languages are pretty rare, though.

Huh? Perl OO is class-based, not prototype-based like JS and
Self. What I'm talking about is that objects in JS are hash maps,
just like (usually) in Perl. And JS is not a lot like Python or
Ruby here; neither Perl nor JS support uniformity of
property/method access, whereas Python and Ruby do. There are
a bunch of differences as well, of course. By and large, JS falls
almost exactly half-way between Perl and Self.

It should have been a lot more like Self than Perl there...
certainly it should not have introduced its own brokenness on
top.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>;
There's stuff above here

Generated at 22:02 on 27 Dec 2006 by mariachi 0.52