3 ms·
I wrote this in 2006 (a couple years before V8): I just ran into Dave Ungar (of Self fame), and mentioned how ironic it was that JavaScript pointed to Self as
by DonHopkins 6y ago
I wrote this in 2006 (a couple years before V8):
I just ran into Dave Ungar (of Self fame), and mentioned how ironic it
was that JavaScript pointed to Self as its inspirational prototype
(vis-a-vis JavaScript's prototype based object system), but JavaScript
totally missed the boat on efficient compile-ability, which is the most
interesting thing about Self. (I mean, anybody can make a prototype oop
system that runs slow, but it takes a fucking genius to come up all the
brilliant stuff in Self, like the aggressive inlining compiler (it has
no byte code interpreter, just a bad-ass compiler), incremental
compilation, polymorphic inline cache, coupled with dynamic
de-optimization to make it debuggable). He gave a cool Self demo of
writing a straightforward factorial function, then editing the source to
the system's multiplication operator, so it would return a different
result if you multiplied something by 1,000,000. Then he showed how it
affected the factorial function, as well as the rest of the system,
which incrementally recompiled itself as needed. All that and perfect
debuggability, too! About JavaScript, he retorted that it was actually
possible to efficiently compile JavaScript if you were really devious
enough. Too bad the art of designing languages so you don't have to be
devious in order to compile them, was lost of so many popular bad
language designers (PHP, JavaScript, Perl, etc).
https://en.wikipedia.org/wiki/V8_(JavaScript_engine) https://en.wikipedia.org/wiki/V8_(JavaScript_engine)
- jecel 6y agoAnd after that one of Dave's ex-students put the Self technology into Javascript (V8). So you were right.