Slide 1

Slide 1 text

Kevin Newton Prism Ruby World 2023

Slide 2

Slide 2 text

What is prism?

Slide 3

Slide 3 text

Overview

Slide 4

Slide 4 text

Overview Prism is a new Ruby parser built from scratch with the following goals:

Slide 5

Slide 5 text

Overview Prism is a new Ruby parser built from scratch with the following goals: • Compatibility - must match CRuby semantics exactly in order to merge

Slide 6

Slide 6 text

Overview Prism is a new Ruby parser built from scratch with the following goals: • Compatibility - must match CRuby semantics exactly in order to merge • Maintainability - must be as maintainable as possible

Slide 7

Slide 7 text

Overview Prism is a new Ruby parser built from scratch with the following goals: • Compatibility - must match CRuby semantics exactly in order to merge • Maintainability - must be as maintainable as possible • Error tolerance - must be able to recover from errors and continue parsing

Slide 8

Slide 8 text

Overview Prism is a new Ruby parser built from scratch with the following goals: • Compatibility - must match CRuby semantics exactly in order to merge • Maintainability - must be as maintainable as possible • Error tolerance - must be able to recover from errors and continue parsing • Portability - must be able to be run from any ruby platform

Slide 9

Slide 9 text

Overview Prism is a new Ruby parser built from scratch with the following goals: • Compatibility - must match CRuby semantics exactly in order to merge • Maintainability - must be as maintainable as possible • Error tolerance - must be able to recover from errors and continue parsing • Portability - must be able to be run from any ruby platform • Performance - must be as fast and memory e ffi cient as possible

Slide 10

Slide 10 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01

Slide 11

Slide 11 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit

Slide 12

Slide 12 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team

Slide 13

Slide 13 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit

Slide 14

Slide 14 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit 👶

Slide 15

Slide 15 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit Tru ff l eRuby fi rst commit 👶

Slide 16

Slide 16 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit Tru ff l eRuby fi rst commit JRuby fi rst commit 👶

Slide 17

Slide 17 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit Tru ff l eRuby fi rst commit JRuby fi rst commit CRuby fi rst commit 👶

Slide 18

Slide 18 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit Tru ff l eRuby fi rst commit JRuby fi rst commit CRuby fi rst commit Syntax Tree fi rst commit 👶

Slide 19

Slide 19 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit Tru ff l eRuby fi rst commit JRuby fi rst commit CRuby fi rst commit Syntax Tree fi rst commit Parser fi rst commit 👶

Slide 20

Slide 20 text

Timeline 2022/01/01 2023/01/01 2024/01/01 2022/07/01 2023/07/01 Prototype fi rst commit First call with CRuby team YARP fi rst commit Tru ff l eRuby fi rst commit JRuby fi rst commit CRuby fi rst commit Syntax Tree fi rst commit Parser fi rst commit Rename to prism 👶

Slide 21

Slide 21 text

How was it built?

Slide 22

Slide 22 text

Design

Slide 23

Slide 23 text

Design Approach

Slide 24

Slide 24 text

• Comparative analysis with existing trees Approach Design

Slide 25

Slide 25 text

• Comparative analysis with existing trees • "Semantic" versus "syntactic" trees Approach Design

Slide 26

Slide 26 text

• Comparative analysis with existing trees • "Semantic" versus "syntactic" trees • Provide for all consumers Approach Design

Slide 27

Slide 27 text

Implementations Design

Slide 28

Slide 28 text

• Make compilation as simple as possible Implementations Design

Slide 29

Slide 29 text

• Make compilation as simple as possible • Never have to check child to compile current node Implementations Design

Slide 30

Slide 30 text

• Make compilation as simple as possible • Never have to check child to compile current node • Cover as much common functionality as possible Implementations Design

Slide 31

Slide 31 text

Tooling Design

Slide 32

Slide 32 text

• Named fi elds and known types Tooling Design

Slide 33

Slide 33 text

• Named fi elds and known types • Nodes with enough information to round-trip Tooling Design

Slide 34

Slide 34 text

• Named fi elds and known types • Nodes with enough information to round-trip • Location information for as much as possible Tooling Design

Slide 35

Slide 35 text

Maintenance Design

Slide 36

Slide 36 text

• Template as much as possible Maintenance Design

Slide 37

Slide 37 text

• Template as much as possible • Provide as much documentation as possible Maintenance Design

Slide 38

Slide 38 text

• Template as much as possible • Provide as much documentation as possible • Build up as big of a test suite as possible Maintenance Design

Slide 39

Slide 39 text

Challenges

Slide 40

Slide 40 text

Challenges • Escaping - required to properly fi nd string-like terminators

Slide 41

Slide 41 text

Challenges • Escaping - required to properly fi nd string-like terminators • Regular expressions - required because of named capture groups

Slide 42

Slide 42 text

Challenges • Escaping - required to properly fi nd string-like terminators • Regular expressions - required because of named capture groups • Encoding support - required to properly fi nd string-like terminators

Slide 43

Slide 43 text

Challenges • Escaping - required to properly fi nd string-like terminators • Regular expressions - required because of named capture groups • Encoding support - required to properly fi nd string-like terminators • Heredocs - very complicated semantics, can be almost anywhere in source

Slide 44

Slide 44 text

Testing

Slide 45

Slide 45 text

Testing • Lexer testing - testing against ripper lex

Slide 46

Slide 46 text

Testing • Lexer testing - testing against ripper lex • Snapshot testing - protect from regressions, check parser structure

Slide 47

Slide 47 text

Testing • Lexer testing - testing against ripper lex • Snapshot testing - protect from regressions, check parser structure • Brute-force testing - all escape sequences in all contexts

Slide 48

Slide 48 text

Testing • Lexer testing - testing against ripper lex • Snapshot testing - protect from regressions, check parser structure • Brute-force testing - all escape sequences in all contexts • Fuzzing - random input, check for crashes

Slide 49

Slide 49 text

Testing • Lexer testing - testing against ripper lex • Snapshot testing - protect from regressions, check parser structure • Brute-force testing - all escape sequences in all contexts • Fuzzing - random input, check for crashes • Grammar-based fuzzing - random input, check for crashes and parse errors

Slide 50

Slide 50 text

Integrations

Slide 51

Slide 51 text

Integrations • C - CRuby, Sorbet, Artichoke, Natalie, C/C++/Rust/Zig tooling

Slide 52

Slide 52 text

Integrations • C - CRuby, Sorbet, Artichoke, Natalie, C/C++/Rust/Zig tooling • Ruby - Natalie, tooling

Slide 53

Slide 53 text

Integrations • C - CRuby, Sorbet, Artichoke, Natalie, C/C++/Rust/Zig tooling • Ruby - Natalie, tooling • Serialization - JRuby, Tru ffl eRuby, JavaScript tooling

Slide 54

Slide 54 text

Why build this?

Slide 55

Slide 55 text

Fractured ecosystem Ruby parsers

Slide 56

Slide 56 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y

Slide 57

Slide 57 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y

Slide 58

Slide 58 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser

Slide 59

Slide 59 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby

Slide 60

Slide 60 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet

Slide 61

Slide 61 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser

Slide 62

Slide 62 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser • seattlerb/ruby_parser

Slide 63

Slide 63 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser • seattlerb/ruby_parser • jruby/jruby

Slide 64

Slide 64 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser • seattlerb/ruby_parser • jruby/jruby • oracle/tru ff l eruby

Slide 65

Slide 65 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser • seattlerb/ruby_parser • jruby/jruby • oracle/tru ff l eruby • tree-sitter/tree-sitter-ruby

Slide 66

Slide 66 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser • seattlerb/ruby_parser • jruby/jruby • oracle/tru ff l eruby • tree-sitter/tree-sitter-ruby • sisshiki1969/ruruby

Slide 67

Slide 67 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser • seattlerb/ruby_parser • jruby/jruby • oracle/tru ff l eruby • tree-sitter/tree-sitter-ruby • sisshiki1969/ruruby • natalie-lang/natalie

Slide 68

Slide 68 text

Fractured ecosystem Ruby parsers • ruby/ruby/parse.y • ruby/ruby/ext/ripper/parse.y • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser • seattlerb/ruby_parser • jruby/jruby • oracle/tru ff l eruby • tree-sitter/tree-sitter-ruby • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 69

Slide 69 text

Fractured ecosystem Ruby syntax trees

Slide 70

Slide 70 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree

Slide 71

Slide 71 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP}

Slide 72

Slide 72 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree

Slide 73

Slide 73 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser

Slide 74

Slide 74 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby

Slide 75

Slide 75 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet

Slide 76

Slide 76 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast

Slide 77

Slide 77 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor

Slide 78

Slide 78 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast

Slide 79

Slide 79 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e

Slide 80

Slide 80 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter

Slide 81

Slide 81 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby

Slide 82

Slide 82 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie

Slide 83

Slide 83 text

No content

Slide 84

Slide 84 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie

Slide 85

Slide 85 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 86

Slide 86 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 87

Slide 87 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 88

Slide 88 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 89

Slide 89 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 90

Slide 90 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 91

Slide 91 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 92

Slide 92 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 93

Slide 93 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 94

Slide 94 text

Fractured ecosystem Ruby syntax trees • NODE, RubyVM::AbstractSyntaxTree • Ripper::SexpBuilder{,PP} • ruby-syntax-tree/syntax_tree • lib-ruby-parser/lib-ruby-parser • mruby/mruby • typedruby/typedruby, sorbet/sorbet • whitequark/parser, rubocop/rubocop-ast • seattlerb/sexp_processor • org.jruby.ast • Tru ff l e • tree-sitter/tree-sitter • sisshiki1969/ruruby • natalie-lang/natalie • ruby/prism

Slide 95

Slide 95 text

Fractured ecosystem Ruby syntax trees • lib-ruby-parser/lib-ruby-parser • mruby/mruby • tree-sitter/tree-sitter • sisshiki1969/ruruby • ruby/prism

Slide 96

Slide 96 text

Fractured ecosystem Ruby syntax trees • lib-ruby-parser/lib-ruby-parser • mruby/mruby • tree-sitter/tree-sitter • sisshiki1969/ruruby • ruby/prism

Slide 97

Slide 97 text

Fractured ecosystem Ruby syntax trees • lib-ruby-parser/lib-ruby-parser • mruby/mruby • tree-sitter/tree-sitter • sisshiki1969/ruruby • ruby/prism

Slide 98

Slide 98 text

ecosystem Ruby syntax trees • lib-ruby-parser/lib-ruby-parser • mruby/mruby • tree-sitter/tree-sitter • sisshiki1969/ruruby • ruby/prism

Slide 99

Slide 99 text

Separate understandings

Slide 100

Slide 100 text

Separate understandings • Every tool represents Ruby di ff erently

Slide 101

Slide 101 text

Separate understandings • Every tool represents Ruby di ff erently • Every tool requires contributors to relearn

Slide 102

Slide 102 text

Separate understandings • Every tool represents Ruby di ff erently • Every tool requires contributors to relearn • None of this knowledge translates to contributing to CRuby

Slide 103

Slide 103 text

Maintenance burden

Slide 104

Slide 104 text

Maintenance burden • Every parser has to update every time new syntax is introduced

Slide 105

Slide 105 text

Maintenance burden • Every parser has to update every time new syntax is introduced • Very minor changes have very major consequences

Slide 106

Slide 106 text

Maintenance burden • Every parser has to update every time new syntax is introduced • Very minor changes have very major consequences • Helping Ruby can inadvertently hurt Ruby tooling

Slide 107

Slide 107 text

What is the future of prism?

Slide 108

Slide 108 text

The future of prism

Slide 109

Slide 109 text

The future of prism • Improved error tolerance and messaging

Slide 110

Slide 110 text

The future of prism • Improved error tolerance and messaging • Performance enhancements (SIMD instructions, arena allocation, etc.)

Slide 111

Slide 111 text

The future of prism • Improved error tolerance and messaging • Performance enhancements (SIMD instructions, arena allocation, etc.) • Multi-version support

Slide 112

Slide 112 text

The future of prism • Improved error tolerance and messaging • Performance enhancements (SIMD instructions, arena allocation, etc.) • Multi-version support • Further integrations into the ecosystem

Slide 113

Slide 113 text

The future of prism • Improved error tolerance and messaging • Performance enhancements (SIMD instructions, arena allocation, etc.) • Multi-version support • Further integrations into the ecosystem • Improved Ruby library for external tools

Slide 114

Slide 114 text

The future of prism • Improved error tolerance and messaging • Performance enhancements (SIMD instructions, arena allocation, etc.) • Multi-version support • Further integrations into the ecosystem • Improved Ruby library for external tools • Contributor community around a single tool

Slide 115

Slide 115 text

Thank you!