News for hackers. Stuff that matters.
Re:Smalltalk-87 by goatlover on Wednesday March 25, 2020 @08:04PM (#22689682)
Around this time, Sun Microsystems Labs was developing Self, a child of Smalltalk that ditched classes for prototypes. Work on improving the VM's performance using a JIT and generational GC helped when developing Java's VM a few years later.
Re:Smalltalk-87 by jecel on Wednesday March 25, 2020 @09:39PM (#22690133)
Actually, Self was one of the three proposals for the Smalltlak-86 project described in this page. David Ungar (from Stanford) joined forces with Randy Smith (Xerox Parc) who had done ARK (the Alternate Reality Kit). ARK had the visual equivalent to classes but users ignored those and preferred to just copy and existing instance instead. They wondered if a whole language could be based on this.

Randy moved to England after they published a paper at OOPSLA so David put his PhD students at Stanford to try to actually implement their proposal. Since David just wanted to do research instead of working as a professor, he moved his whole team to the newly created SunLabs (in 1991, I think).

Re:Smalltalk-87 by russellallen on Wednesday March 25, 2020 @09:33PM (#22690111)
As I understand it, when Sun developed Java, they ditched Self. Some of the Self team left, and created a Smalltalk VM using the Self VM techniques called Strongtalk. Sun belatedly realised they needed a fast VM, and rehired the team which formed the basis of the HotspotVM.
Re:Smalltalk-87 by saurik on Wednesday March 25, 2020 @09:46PM (#22690165)
That same team--led by the same guy: Lars Bak--was later hired by Google to develop v8 for Chrome and later built the VM for Dart (which has some really powerful features in static object layout and AOT support). Virtually every single seminal VM for decades was designed by this same group of people, with almost all other VMs you see just borrowing those same techniques to apply to other languages.
Re:Smalltalk-87 by pjmlp on Thursday March 26, 2020 @03:45AM (#22691397)
And then Lars Bak left, I guess desilusioned with out things turned out for Dart, and is now doing "Dart for IoT" back in Denmark.

https://www.youtube.com/watch?v=mPna6D21Eqg

Re:Smalltalk-87 by russellallen on Wednesday March 25, 2020 @11:15PM (#22690533)
It’s an era only just ending now with the emergence of Truffle/Graal.
Re:Smalltalk-87 by cardiffspaceman on Thursday March 26, 2020 @02:17AM (#22691074)
One of my favorite JIT techniques from the era is PIC, polymorphic inline caching. A method send (virtual function call) would be statically coded to call the hottest implementation of a virtual function. The virtual function itself would check that the incoming object had the right type. If not, the fully polymorphic dispatch mechanism would kick in. Statistics would be tracked and could lead to a decision to overwrite the static call with a call to the new hot implementation. I think this was demonstrated on Strongtalk.
Re:Smalltalk-87 by pinewurst on Thursday March 26, 2020 @12:14AM (#22690749)
ParcPlace’s Smalltalk VMs (PS and HPS) were JIT VMs in the same period (if not a bit earlier).
Re:Smalltalk-87 by jecel on Thursday March 26, 2020 @03:10PM (#22696798)
PS and HPS did indeed implement the dynamic compilation technologies created by L Peter Deutsch and Allen Shiffman at Xerox Parc. Self 1 and 2 were even fancier JITs by Craig Chambers, but Self 3 (and 4) by Urs Hölzle implemented adaptive compilation which uses an initial simple compiler for all called code and then a second fancy compiler for the hot spots. The execution of the code from the first compiler not only measured execution to find the hot spots but also accumulated type information to make the second compiler simpler (compared to the type inference in the Self 2 compiler).

I gave a talk about this a few months ago: "Adaptive Compilation" -

video: https://www.youtube.com/watch?v=TO53xFACfuQ

pdf slides: http://www.merlintec.com/download/2019_slides_jecel_fast2v2....

open office slides: http://www.merlintec.com/download/2019_slides_jecel_fast2v2....

As the name of the Sun Java VM indicates, it is an adaptive compiler like StrongTalk and Self 3/4.

Re:Smalltalk-87 by eternalban on Thursday March 26, 2020 @07:45AM (#22692535)
quote:

"Before I started down the path of making Java fast, I was told "you can't JIT code that will touch a static compiler" . Afterwards: all new languages start with the assumption "we can JIT this" in the implementation." - Cliff Click's LinkedIn (1997-2002 @ Sun Micro)

Re:Smalltalk-87 by tomcam on Wednesday March 25, 2020 @08:58PM (#22689952)
Were prototypes like C# or Go interfaces?

Also your username scares me a little

Re:Smalltalk-87 by goatlover on Wednesday March 25, 2020 @09:53PM (#22690197)
Prototypes as in object-based inheritance and the username is just based on finding goats to be kind of funny.
Re:Smalltalk-87 by lyjackal on Wednesday March 25, 2020 @08:59PM (#22689955)
Prototypes like in JavaScript. Self was a design influencer for JavaScript
Re:Smalltalk-87 by numlock86 on Thursday March 26, 2020 @05:53AM (#22692007)
> Self was a design influencer for JavaScript

Can you share details?

Re:Smalltalk-87 by sumim on Thursday March 26, 2020 @07:19AM (#22692416)