Slide 1

Slide 1 text

Augmented Ruby! The Rubinius Language Platform!

Slide 2

Slide 2 text

Brian Shirai

Slide 3

Slide 3 text

You can create your own programming language

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

3 steps to designing! a language

Slide 9

Slide 9 text

Steps to designing a language 1.Syntax

Slide 10

Slide 10 text

def divide(a, b) # ... end ! function divide(a, b) { /* ... */ }

Slide 11

Slide 11 text

Steps to designing a language 1. Syntax 2.Semantics

Slide 12

Slide 12 text

def divide(a, b) a / b # 1 / 3 => 0 end ! function divide(a, b) { a / b; /* 1 / 3 => 0.333 */ }

Slide 13

Slide 13 text

Steps to designing a language 1. Syntax 2. Semantics 3.Model

Slide 14

Slide 14 text

3 parts to building! a language

Slide 15

Slide 15 text

Parts to building a language 1.Parser

Slide 16

Slide 16 text

+ 1 2 Parse: 1 + 2 + 3 + 3

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Parts to building a language 1. Parser 2.Compiler

Slide 21

Slide 21 text

Parts to building a language 1. Parser 2. Compiler 3.Machine

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

processing input output Pipeline of transformations

Slide 24

Slide 24 text

Parts to building a language 1.Parser

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Parts to building a language 1. Parser 2.Compiler

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Parts to building a language 1. Parser 2. Compiler 3.Machine

Slide 35

Slide 35 text

->0000: meta_push_1 0001: meta_push_2 0002: send_stack :+, 1 0005: push_int 3 0007: send_stack :+, 1 0010: ret Stack Instructions 1 Interpretation

Slide 36

Slide 36 text

Stack Instructions 1 Interpretation 2 0000: meta_push_1 ->0001: meta_push_2 0002: send_stack :+, 1 0005: push_int 3 0007: send_stack :+, 1 0010: ret

Slide 37

Slide 37 text

Stack Instructions 3 Interpretation 0000: meta_push_1 0001: meta_push_2 ->0002: send_stack :+, 1 0005: push_int 3 0007: send_stack :+, 1 0010: ret

Slide 38

Slide 38 text

Stack Instructions 3 Interpretation 3 0000: meta_push_1 0001: meta_push_2 0002: send_stack :+, 1 ->0005: push_int 3 0007: send_stack :+, 1 0010: ret

Slide 39

Slide 39 text

Stack Instructions 6 Interpretation 0000: meta_push_1 0001: meta_push_2 0002: send_stack :+, 1 0005: push_int 3 ->0007: send_stack :+, 1 0010: ret

Slide 40

Slide 40 text

Stack Instructions 6 Interpretation 0000: meta_push_1 0001: meta_push_2 0002: send_stack :+, 1 0005: push_int 3 0007: send_stack :+, 1 ->0010: ret

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Thank you

Slide 44

Slide 44 text

Credits https://www.thingiverse.com/thing:16023 http://snokey.com/furniture-designing-with-simple-concept-of- decoration/simple-capture-of-designing-with-writing-photo-capture/ http://www.citsolutions.edu.au/uploads/flags.jpg http://atomy-lang.org http://fancy-lang.org https://github.com/apricot-lang/apricot https://github.com/evanphx/kpeg http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html