Slide 1

Slide 1 text

Yet Another Ruby Parser

Slide 2

Slide 2 text

Kevin Newton @kddnewton

Slide 3

Slide 3 text

Yet Another Ruby Parser

Slide 4

Slide 4 text

Yet Another Ruby Parser

Slide 5

Slide 5 text

Yet Another Ruby Parser Can parse 100% of:

Slide 6

Slide 6 text

Yet Another Ruby Parser Can parse 100% of: Shopify/shopify

Slide 7

Slide 7 text

Yet Another Ruby Parser Can parse 100% of: Shopify/shopify github/github

Slide 8

Slide 8 text

Yet Another Ruby Parser Can parse 100% of: Shopify/shopify github/github ruby/ruby

Slide 9

Slide 9 text

Yet Another Ruby Parser Can parse 100% of: Shopify/shopify github/github ruby/ruby The top 100 gems by download on rubygems.org

Slide 10

Slide 10 text

Yet Another Ruby Parser Can parse 100% of: Shopify/shopify github/github ruby/ruby The top 100 gems by download on rubygems.org Experimental fork of CRuby

Slide 11

Slide 11 text

Yet Another Ruby Parser Can parse 100% of: Shopify/shopify github/github ruby/ruby The top 100 gems by download on rubygems.org Experimental fork of CRuby Experimental feature in TruffleRuby

Slide 12

Slide 12 text

Yet Another Ruby Parser Can parse 100% of: Shopify/shopify github/github ruby/ruby The top 100 gems by download on rubygems.org Experimental fork of CRuby Experimental feature in TruffleRuby Experimental branch in JRuby

Slide 13

Slide 13 text

Yet Another Ruby Parser

Slide 14

Slide 14 text

Yet Another Ruby Parser Motivations

Slide 15

Slide 15 text

Error tolerance Yet Another Ruby Parser Motivations

Slide 16

Slide 16 text

Error tolerance Portability Yet Another Ruby Parser Motivations

Slide 17

Slide 17 text

Error tolerance Portability Maintainability Yet Another Ruby Parser Motivations

Slide 18

Slide 18 text

Error tolerance Portability Maintainability Yet Another Ruby Parser Motivations Development

Slide 19

Slide 19 text

Error tolerance Portability Maintainability Challenges Yet Another Ruby Parser Motivations Development

Slide 20

Slide 20 text

Error tolerance Portability Maintainability Challenges Yet Another Ruby Parser Motivations Development Path forward

Slide 21

Slide 21 text

Error tolerance Portability Maintainability Challenges Adoption Yet Another Ruby Parser Motivations Development Path forward

Slide 22

Slide 22 text

Error tolerance Portability Maintainability Challenges Adoption Future work Yet Another Ruby Parser Motivations Development Path forward

Slide 23

Slide 23 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 24

Slide 24 text

Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 25

Slide 25 text

Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 26

Slide 26 text

Error tolerance $ irb irb(main):001:0> foo + bar + <> baz .../irb/workspace.rb:119:in `eval': (irb):1: syntax error, unexpected '<' (SyntaxError) foo + bar + <> baz ^ from .../exe/irb:11:in `' from .../bin/irb:25:in `load' from .../bin/irb:25:in `' irb(main):002:0> Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 27

Slide 27 text

Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 28

Slide 28 text

Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 29

Slide 29 text

Automatically insert tokens Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 30

Slide 30 text

Automatically insert tokens Automatically insert nodes Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 31

Slide 31 text

Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 32

Slide 32 text

Automatically insert tokens Automatically insert nodes Context-based recovery Error tolerance Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 33

Slide 33 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end

Slide 34

Slide 34 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode

Slide 35

Slide 35 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode

Slide 36

Slide 36 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode

Slide 37

Slide 37 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode

Slide 38

Slide 38 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode

Slide 39

Slide 39 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode

Slide 40

Slide 40 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode

Slide 41

Slide 41 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode ArgumentsNode

Slide 42

Slide 42 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode CallNode ArgumentsNode

Slide 43

Slide 43 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode CallNode ArgumentsNode ArgumentsNode

Slide 44

Slide 44 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode CallNode ArgumentsNode ArgumentsNode CLASS

Slide 45

Slide 45 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode CallNode ArgumentsNode ArgumentsNode CLASS CLASS,DEF

Slide 46

Slide 46 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode CallNode ArgumentsNode ArgumentsNode CLASS CLASS,DEF CLASS,DEF,BLOCK

Slide 47

Slide 47 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode CallNode ArgumentsNode ArgumentsNode CLASS CLASS,DEF CLASS,DEF,BLOCK

Slide 48

Slide 48 text

Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work class Foo def bar(baz) self.then { |value| value + baz * end end ClassNode StatementsNode DefNode CallNode SelfNode BlockNode CallNode CallNode MissingNode ArgumentsNode ArgumentsNode CLASS CLASS,DEF CLASS,DEF,BLOCK

Slide 49

Slide 49 text

Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 50

Slide 50 text

Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 51

Slide 51 text

Portability CRuby Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 52

Slide 52 text

Portability parse.y CRuby Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 53

Slide 53 text

Portability parse.y ripper/parse.y CRuby Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 54

Slide 54 text

Portability parse.y ripper/parse.y CRuby Runtimes Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 55

Slide 55 text

Portability parse.y ripper/parse.y mruby CRuby Runtimes Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 56

Slide 56 text

Portability parse.y ripper/parse.y mruby JRuby CRuby Runtimes Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 57

Slide 57 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby CRuby Runtimes Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 58

Slide 58 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby CRuby Runtimes Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 59

Slide 59 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie CRuby Runtimes Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 60

Slide 60 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie CRuby Runtimes Tools Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 61

Slide 61 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie parser CRuby Runtimes Tools Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 62

Slide 62 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie parser ruby_parser CRuby Runtimes Tools Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 63

Slide 63 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie parser ruby_parser tree-sitter-ruby CRuby Runtimes Tools Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 64

Slide 64 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie parser ruby_parser tree-sitter-ruby sorbet CRuby Runtimes Tools Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 65

Slide 65 text

Portability parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie lib-ruby-parser parser ruby_parser tree-sitter-ruby sorbet CRuby Runtimes Tools Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 66

Slide 66 text

Portability kddnewton.com/parsing-ruby/ parse.y ripper/parse.y mruby JRuby TruffleRuby ruruby natalie lib-ruby-parser parser ruby_parser tree-sitter-ruby sorbet CRuby Runtimes Tools Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 67

Slide 67 text

Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 68

Slide 68 text

Portability syntax_tree Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 69

Slide 69 text

Portability syntax_tree rubyfmt Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 70

Slide 70 text

Portability syntax_tree rufo rubyfmt Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 71

Slide 71 text

Portability syntax_tree rufo rubyfmt syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 72

Slide 72 text

Portability syntax_tree rufo rubyfmt ruby-lsp syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 73

Slide 73 text

Portability syntax_tree rufo rubyfmt ruby-lsp rubocop syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 74

Slide 74 text

Portability syntax_tree rufo rubyfmt ruby-lsp rubocop standard syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 75

Slide 75 text

Portability syntax_tree rufo rubyfmt ruby-lsp unparser rubocop standard syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 76

Slide 76 text

Portability syntax_tree rufo rubyfmt ruby-lsp unparser ruby-next rubocop standard syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 77

Slide 77 text

Portability syntax_tree rufo rubyfmt ruby-lsp solargraph unparser ruby-next rubocop standard syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 78

Slide 78 text

Portability syntax_tree rufo rubyfmt ruby-lsp solargraph unparser ruby-next rubocop standard steep syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 79

Slide 79 text

Portability syntax_tree rufo rubyfmt ruby-lsp solargraph unparser ruby-next debride rubocop standard steep syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 80

Slide 80 text

Portability syntax_tree rufo rubyfmt ruby-lsp solargraph unparser ruby-next flay debride rubocop standard steep syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 81

Slide 81 text

Portability syntax_tree rufo rubyfmt ruby-lsp solargraph unparser ruby-next flog flay debride rubocop standard steep syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 82

Slide 82 text

Portability syntax_tree rufo rubyfmt ruby-lsp solargraph unparser ruby-next flog flay debride fasterer rubocop standard steep syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 83

Slide 83 text

Portability syntax_tree rufo rubyfmt ruby-lsp sorbet solargraph unparser ruby-next flog flay debride fasterer rubocop standard steep syntax_suggest Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 84

Slide 84 text

Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 85

Slide 85 text

No reliance on CRuby internals (VALUE, ID, etc.) Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 86

Slide 86 text

No reliance on CRuby internals (VALUE, ID, etc.) No reliance on any external packages or generators Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 87

Slide 87 text

No reliance on CRuby internals (VALUE, ID, etc.) No reliance on any external packages or generators Shared logic: unescaping strings, pack API, etc. Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 88

Slide 88 text

No reliance on CRuby internals (VALUE, ID, etc.) No reliance on any external packages or generators Shared logic: unescaping strings, pack API, etc. Serialization API Portability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 89

Slide 89 text

#include "yarp.h" #include "org_yarp_Parser.h" JNIEXPORT jbyteArray JNICALL Java_org_yarp_Parser_parseAndSerialize( JNIEnv *env, jclass clazz, jbyteArray source) { jsize size = (*env)->GetArrayLength(env, source); jbyte* bytes = (*env)->GetByteArrayElements(env, source, NULL); yp_buffer_t buffer; yp_buffer_init(&buffer); yp_parse_serialize((char*) bytes, size, &buffer); (*env)->ReleaseByteArrayElements(env, source, bytes, JNI_ABORT); jbyteArray serialized = (*env)->NewByteArray(env, buffer.length); jbyte *value = buffer.value; (*env)->SetByteArrayRegion(env, serialized, 0, buffer.length, value); yp_buffer_free(&buffer); return serialized; } Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 90

Slide 90 text

#include "yarp.h" #include "org_yarp_Parser.h" JNIEXPORT jbyteArray JNICALL Java_org_yarp_Parser_parseAndSerialize( JNIEnv *env, jclass clazz, jbyteArray source) { jsize size = (*env)->GetArrayLength(env, source); jbyte* bytes = (*env)->GetByteArrayElements(env, source, NULL); yp_buffer_t buffer; yp_buffer_init(&buffer); yp_parse_serialize((char*) bytes, size, &buffer); (*env)->ReleaseByteArrayElements(env, source, bytes, JNI_ABORT); jbyteArray serialized = (*env)->NewByteArray(env, buffer.length); jbyte *value = buffer.value; (*env)->SetByteArrayRegion(env, serialized, 0, buffer.length, value); yp_buffer_free(&buffer); return serialized; } Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 91

Slide 91 text

Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 92

Slide 92 text

Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 93

Slide 93 text

Readability Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 94

Slide 94 text

Readability Understandability Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 95

Slide 95 text

Readability Understandability Ease of contribution Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 96

Slide 96 text

Readability Understandability Ease of contribution Ease of change Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 97

Slide 97 text

Readability Understandability Ease of contribution Ease of change Documentation Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 98

Slide 98 text

Readability Understandability Ease of contribution Ease of change Documentation Test suites Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 99

Slide 99 text

Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 100

Slide 100 text

Is YARP more maintainable? Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 101

Slide 101 text

Is YARP more maintainable? Can we make YARP more maintainable? Maintainability Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 102

Slide 102 text

Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 103

Slide 103 text

Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 104

Slide 104 text

Grammar ambiguities Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 105

Slide 105 text

Grammar ambiguities Unary/binary operators, spaces Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 106

Slide 106 text

Grammar ambiguities Unary/binary operators, spaces The `do` keyword Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 107

Slide 107 text

Grammar ambiguities Unary/binary operators, spaces The `do` keyword Newlines, comments, semicolons Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 108

Slide 108 text

Grammar ambiguities Unary/binary operators, spaces The `do` keyword Newlines, comments, semicolons Local variables and method calls Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 109

Slide 109 text

Grammar ambiguities Unary/binary operators, spaces The `do` keyword Newlines, comments, semicolons Local variables and method calls Encoding Challenges Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 110

Slide 110 text

Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 111

Slide 111 text

Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 112

Slide 112 text

Gem release Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 113

Slide 113 text

Gem release CRuby fork/compilation work Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 114

Slide 114 text

Gem release CRuby fork/compilation work JRuby exploring Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 115

Slide 115 text

Gem release CRuby fork/compilation work JRuby exploring TruffleRuby merged, actively working Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 116

Slide 116 text

Gem release CRuby fork/compilation work JRuby exploring TruffleRuby merged, actively working Other runtimes/tools Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 117

Slide 117 text

Gem release CRuby fork/compilation work JRuby exploring TruffleRuby merged, actively working Other runtimes/tools Compatibility with ripper Adoption Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 118

Slide 118 text

Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 119

Slide 119 text

Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 120

Slide 120 text

Error tolerance - forward scanning Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 121

Slide 121 text

class Foo def bar(baz) baz. end end Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 122

Slide 122 text

class Foo def bar(baz) baz. end end baz.end Missing `end` keyword Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 123

Slide 123 text

class Foo def bar(baz) baz. end end baz.end baz. Missing `end` keyword Missing call message Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 124

Slide 124 text

Error tolerance - scanning forward Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 125

Slide 125 text

Error tolerance - scanning forward Memory Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 126

Slide 126 text

Error tolerance - scanning forward Memory Arena allocation, improve locality Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 127

Slide 127 text

Error tolerance - scanning forward Memory Arena allocation, improve locality Reduce size of the tree Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 128

Slide 128 text

Error tolerance - scanning forward Memory Arena allocation, improve locality Reduce size of the tree More nodes, more specialization Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 129

Slide 129 text

Error tolerance - scanning forward Memory Arena allocation, improve locality Reduce size of the tree More nodes, more specialization Serialization - reduce size, variable length integers? Future work Error tolerance · Portability · Maintainability · Challenges · Adoption · Future work

Slide 130

Slide 130 text

Thank you!

Slide 131

Slide 131 text

Yet Another Ruby Parser github.com/Shopify/yarp Kevin Newton @kddnewton