standing on the shoulders of giants - zenspider.com · standing on the shoulders of giants mwrc...
TRANSCRIPT
![Page 1: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/1.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx1
Standing on the Shoulders of Giants
![Page 2: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/2.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Setting ExpectationsSorta a history talk. Le Sigh.
Very Little Code.
Ideas/Survey/Inspiration Talk.
109 Slides, ~3.6 SPM2
![Page 3: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/3.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx3
Intro
![Page 4: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/4.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
"we [the Moderns] are like dwarves perched on the shoulders of giants [the Ancients], and thus we are able to see more and farther than the latter. And this is not at all because of the acuteness of our sight or the stature of our body, but because we are carried aloft and elevated by the magnitude of the giants.”
Bernard of Chartres, 12th century
4
![Page 5: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/5.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
"If I have seen further it is by standing on ye sholders of Giants.”
Isaac Newton, 1676
5
![Page 6: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/6.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
In Other Words6
![Page 7: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/7.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Not a new concept, at all
7
![Page 8: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/8.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Newton was
iterating8
![Page 9: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/9.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Simple Idea9
![Page 10: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/10.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Idea10
![Page 11: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/11.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Begs the
question11
![Page 12: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/12.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
WTF, Language?
12
![Page 13: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/13.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ruby13
![Page 14: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/14.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
RubyCreated by Matz in 1993
Interpreted File-based “Scripting” System.
Purely Object-Oriented Class-based Runtime.
Incredibly Complex Syntax & Semantics.
Extensive Class Library, Numeric Tower, etc.
Designed for “Developer Happiness”.14
![Page 15: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/15.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Fibonacci
15
class Integer def fib self < 2 ? self : (self-1).fib + (self-2).fib end end
![Page 16: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/16.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ruby History
16
1981 - 1990
1981 1983 1985 1987 1989
1991 - 2000
1991 1993 1995 1997 1999
2001 - 2010
2001 2003 2005 2007 2009
2011 - 2020
2011 2013 2015 2017 2019
Feb 1993: Birth
Dec 1995: Ruby 0.95
Dec 1996: Ruby 1.0
Dec 1998: Ruby 1.2
Aug 1999: Ruby 1.4
Aug 2000: Ruby 1.6
Aug 2003: Ruby 1.8
Dec 2007: Ruby 1.9
Feb 2013: Ruby 2.0
Dec 2013: Ruby 2.1
Dec 2014: Ruby 2.2
Glo
bal
![Page 17: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/17.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ruby History
16
1981 - 1990
1981 1983 1985 1987 1989
1991 - 2000
1991 1993 1995 1997 1999
2001 - 2010
2001 2003 2005 2007 2009
2011 - 2020
2011 2013 2015 2017 2019
Feb 1993: Birth
Dec 1995: Ruby 0.95
Dec 1996: Ruby 1.0
Dec 1998: Ruby 1.2
Aug 1999: Ruby 1.4
Aug 2000: Ruby 1.6
Aug 2003: Ruby 1.8
Dec 2007: Ruby 1.9
Feb 2013: Ruby 2.0
Dec 2013: Ruby 2.1
Dec 2014: Ruby 2.2
Glo
bal
What Happened?
![Page 18: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/18.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ruby 1.0 Shipped with Almost Everything
17
![Page 19: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/19.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Not Much Added Since 1.0Private/Protected (~1.1)
Class Variables (1.6)
Encodings (1.9, 2.0)
frilly syntactic sugar (that doesn't really improve much of anything) (1.9+)
18
![Page 20: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/20.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ruby is a fantastic language, but it could be
better.19
![Page 21: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/21.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Smalltalk
Ruby
Lisp Perl
20
![Page 22: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/22.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
COLASelf
Smalltalk
Ruby
Lisp Perl
21
![Page 23: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/23.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx22
Smalltalk Self
Scheme/Racket FONC/COLA
+ V
PRI T
eam
+ P
LT T
eam
+ D
an In
galls
TooCoolfor
Logos?
![Page 24: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/24.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
& Many More23
![Page 25: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/25.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Smalltalk24
![Page 26: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/26.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Brief summary of SmalltalkBy Alan Kay & Dan Ingalls at Xerox PARC, created in 1972. Publicly released in 1980.
Bytecode Compiled Image-based System.
Purely Object-Oriented Class-based Runtime.
Incredibly Simple/Clean Syntax and Semantics. Only 6 keywords, 4 precedence levels.
Fully Immersive development environment.
Incubator for Ideas: this is where many ideas of OO, patterns, mvc, etc came from.
WAY ahead of its time. Still is in some ways.
25
![Page 27: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/27.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Fibonacci
26
!Integer methodsFor: 'benchmarks' stamp: 'jm 11/20/1998 07:06'! fib ^ self < 2 ifTrue: [self] ifFalse: [(self-1) fib + (self-2) fib] ! !
![Page 28: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/28.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Self27
![Page 29: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/29.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Brief summary of selfDavid Ungar & Randall Smith started at Xerox PARC and finished at Sun in 87.
Bytecode Compiled + JIT Image-based System.
Purely Object-Oriented Classless (aka prototypes) Runtime.
Incredibly Simple/Clean Syntax & Semantics. 8 bytecodes. EIGHT.
Fully Immersive development environment.
Incubator for Ideas: java hotspot was born here.
28
![Page 30: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/30.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Fibonacci
29
fibonacci = ( <= 1 ifTrue: [ self ] False: [ predecessor fibonacci + (- 2) fibonacci ])
![Page 31: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/31.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Scheme & Racket
30
![Page 32: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/32.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Brief summary of schemeBy Gerald Sussman & Guy Steele in 1975.
Scheme is a minimal variant of a lexically-scoped Lisp.
Lisp is a functional language based on lists.
Innovation Galore: Tail Call Optimizations, Numeric Tower, Hygienic Macros, 1st class continuations, etc.
31
![Page 33: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/33.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Brief summary of racketBy Matthias Felleisen & PLT Cohort.
Racket is a maximal variant of Scheme. Huge incredibly diverse library.
Bytecode Compiled + JIT File-based System.
Mostly functional multi-language Runtime.
Simple Syntax & Semantics w/ rich expressions like extensive macros & structural matching.
Ships with Editor & Runtime.
32
![Page 34: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/34.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Fibonacci
33
(define (fib x) (if (< x 2) x (+ (fib (- x 1)) (fib (- x 2)))))
![Page 35: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/35.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
COLA34
![Page 36: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/36.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
A Tiny, Beautiful
Kernel35
![Page 37: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/37.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
In the theme of this talk, we are coming back around to Alan Kay
36
![Page 38: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/38.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Brief Summary of VPRI Viewpoints Research Institute (VPRI) is Alan Kay's thinktank
5 year NSF grant to work on FONC: foundations of new computing
Project: STEPS (STEPS Toward Expressive Programming Systems)
They want a whole system that can be understood by one brain
Entire system, from language to GUI Apps, in ~20kloc.37
![Page 39: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/39.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Brief Summary of COLA Machine Compiled File-Based System.
Object Oriented Prototype-based Runtime.
Incredibly Simple/Clean Syntax & Semantics. (notice a pattern?)
COLA = Combined Object/Lambda Architecture.
“designed to be the simplest possible language which can be described in itself"
38
![Page 40: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/40.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Fibonacci
39
Integer fib { ; lispy (if (< n 2) n (+ (fib (- n 1)) (fib (- n 2)))) }
Integer fib [ ; smalltalky ^ self < 2 ifTrue: [self] ifFalse: [(self - 1) fib + (self - 2) fib] ]
![Page 41: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/41.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Time to Plunder!
40
![Page 42: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/42.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Time to Plunder!
40
Yarrrrrr
![Page 43: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/43.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ideas from Smalltalk
41
![Page 44: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/44.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Squeak Smalltalk generates and builds itself.
42
Smalltalk
New VM
Smalltalk Subsetto C translator
VM written inSmalltalk Subset
![Page 45: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/45.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Extensive Hierarchy of Classes
43…lots more…
![Page 46: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/46.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Developer Tools!44
![Page 47: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/47.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx45
![Page 48: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/48.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx46
![Page 49: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/49.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx47
Integrated Debugger
![Page 50: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/50.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Implementors & Senders Browser
48
![Page 51: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/51.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
(and a lot more)49
![Page 52: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/52.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
#inspect actually useful# smalltalk: >> Color lightRed darker => (Color r: 0.92 g: 0.736 b: 0.736) >> (Color r: 0.92 g: 0.736 b: 0.736) => (Color r: 0.92 g: 0.736 b: 0.736)
# versus ruby: >> Color.new(0.92, 0.736, 0.736) => #<Color:0x007fad5114c458 @r=0.92, @g=0.736, @b=0.736>
50
![Page 53: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/53.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ideas from Self
51
![Page 54: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/54.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
This was the birthplace of JIT.
52
![Page 55: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/55.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Self is the reason why Java & Javascript
are fast53
![Page 56: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/56.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Dynamic languages CAN be fast.
54
![Page 57: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/57.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Prototyping55
![Page 58: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/58.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Influenced Javascript & IO
56
![Page 59: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/59.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Prototyping is Handy!class Object def define_method name, &b self.singleton_class.send :define_method, name, &b self end
def clone_method obj, name define_method name, &obj.method(name) end end
class X; def to_s; self.class.name; end; end class Y; def to_s; self.class.name; end; end
puts X.new # X puts Y.new # Y puts X.new.clone_method(Y.new, :to_s) # Y??
57
![Page 60: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/60.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Developer Tools!58
![Page 61: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/61.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx59
![Page 62: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/62.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx60
![Page 63: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/63.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx61
![Page 64: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/64.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx62
![Page 65: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/65.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ideas from Scheme & Racket
63
![Page 66: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/66.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx64
![Page 67: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/67.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx65
![Page 68: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/68.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx66
![Page 69: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/69.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx67
![Page 70: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/70.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Visual Stack Traces
68
![Page 71: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/71.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx69
Structural Pattern Matching
![Page 72: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/72.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Multiple Language Support
#lang scribble/manual @title{My Library} Welcome to my documentation: @racket[(list 'testing 1 2 3)].
70
![Page 73: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/73.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
OO is good for organization, scoping,
and data hiding71
![Page 74: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/74.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
But…72
![Page 75: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/75.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
lambda is king
73
𝞴
![Page 76: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/76.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
lambda is king
73
𝞴👑
![Page 77: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/77.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Speed Comparison% racket fib.rkt '(0 1 1 2 3 5 8 13) cpu time: 13 real time: 13 gc time: 0 cpu time: 22 real time: 22 gc time: 0 cpu time: 35 real time: 35 gc time: 0 '(832040 1346269 2178309)
% ruby fib.rb [0, 1, 1, 2, 3, 5, 8, 13] user system total real 30 0.230000 0.000000 0.230000 ( 0.237727) 31 0.390000 0.000000 0.390000 ( 0.389832) 32 0.600000 0.010000 0.610000 ( 0.602819)
74
![Page 78: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/78.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
17x faster75
![Page 79: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/79.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Tail Call Optimization
76
![Page 80: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/80.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ideas from COLA
77
![Page 81: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/81.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
STEP’s vision of computing is massively
powerful78
![Page 82: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/82.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx79
![Page 83: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/83.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Debian Mac OS X
Windows Vista FreeBSD
Open Office GTK+ v2
Ruby electromagnetism
283 million lines of code 86 million lines of code 50 million lines of code 9 million lines of code 10 million lines of code 650 thousand lines of code 1.2 million lines of code 4 lines of code
80
![Page 84: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/84.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Combined Object/Lambda Architecture
81
![Page 85: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/85.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Objects for storage and organization
82
![Page 86: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/86.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Lambdas for execution
83
![Page 87: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/87.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx84
Objectsfor
Storage
Lambdasfor
Execution
![Page 88: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/88.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx85
string "lookup"_vt
symbol
string "addMethod"_vt
symbolstring "allocate"_vt
symbol
string "delegated"_vt
symbol
string "intern"_vt
symbol
--datalookupmethod
_vtclosure
--dataaddMethodmethod
_vtclosure
--datadelegatedmethod
_vtclosure
--dataallocatemethod
_vtclosure
--datainternmethod
_vtclosure
parentvalueskeys
4size_vt
vtable_vt
--parentvalueskeys
5size--_vt
SymbolList
parent--values
keys --0size
_vtclosure_vt
parent--values
keys --0size
_vtobject_vt
parentvalueskeys
1size_vt
symbol_vt
![Page 89: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/89.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Nile (graphics language) Source
Nile to Nile AST
Nile AST
Nile AST to Nothing
Nothing Code
Nothing to N-AST
N-AST code
Nothing to x86
CPU
OMeta: Translators all the way down
86
![Page 90: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/90.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Define your system using basic axioms.
87
![Page 91: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/91.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Teach the GUI Euclid’s geometry and give it a rule
engine88
![Page 92: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/92.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
650 kloc gtk GUI library <
Rules + Euclid in ~250 loc89
![Page 93: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/93.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Runtime90
![Page 94: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/94.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
MUCH smaller91
![Page 95: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/95.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Much more understandable
92
![Page 96: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/96.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Much more maintainable.
93
![Page 97: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/97.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ruby’s 1.3 mloc <
STEPS’ 20 kloc94
![Page 98: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/98.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
👋 Too Hand Wavey?
👋95
![Page 99: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/99.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
TONS of Rich Info Here:
http://vpri.org/html/writings.php
96
![Page 100: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/100.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx97
Conclusion
![Page 101: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/101.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Surveyed a minority of ideasself-bootstrapping implementations
extensive collection / magnitude hierarchies
instance-based inheritance
JIT compilation
Importance of lambdas & Tail Calls
object level pattern matching
the combined object/lambda architecture
98
![Page 102: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/102.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Ruby is at its best
99
![Page 103: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/103.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Borrowing great ideas
100
![Page 104: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/104.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
From other languages
101
![Page 105: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/105.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
It has fallen behind
102
![Page 106: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/106.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
Lost its way103
![Page 107: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/107.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
It's time for ruby to step up
104
![Page 108: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/108.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
do more with these ideas
105
![Page 109: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/109.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
keep pushing forward
106
![Page 110: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/110.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx
to stand upon the shoulders of giants
107
![Page 111: Standing on the Shoulders of Giants - zenspider.com · Standing on the Shoulders of Giants MWRC 2015, SLC, UT Ryan Davis, Seattle.rb @the_zenspiderx "we [the Moderns] are like dwarves](https://reader035.vdocuments.site/reader035/viewer/2022081607/5ecdc6be23e7e560b14fb3fc/html5/thumbnails/111.jpg)
Standing on the Shoulders of Giants
MWRC 2015, SLC, UT
Ryan Davis, Seattle.rb
@the_zenspiderx108
Thank You