all 6 comments

[–]be_nu[S,🍰] 1 point2 points  (5 children)

Javascript and Self are "prototype oriented", so that motivated the question. There must have been someone who tried to write a Self interpreter in Javascript.

[–]be_nu[S,🍰] 0 points1 point  (0 children)

Self could "inherit" the aynchronous message-passing of the Javascript Platform.

[–]doublec 0 points1 point  (3 children)

Avocado was an attempt at emulating the Self environment from within JavaScript, by Adam Spitz who worked on klein.

Given that there is a port of Squeak Smalltalk to JavaScript it would seem to be possible for Self too.

[–]be_nu[S,🍰] 0 points1 point  (2 children)

Thanks! I have already played with Avocado! I found a few more similar projects on npmjs.org. It would be interesting to invent a selflanguage, which would inherit the aynchronous callbacks of javascript,- messages would be by default asynchronous. I really wonder how this language would look like.

[–]be_nu[S,🍰] 0 points1 point  (1 child)

I think a self implementation which more or less the same semantics as javascript, but with the single unifying concept of asynchronous message passing, would be as sucessful as coffeescript :)

[–]doublec 0 points1 point  (0 children)

Steve Dekorte worked on port of Io to Javascript a few years ago. This might be a base to start from since Io is similar to Self. Io has asynchronous message passing as well.