Conversation
maybe tomorrow see about implementing the pattern match paper comfyslep

although it looks like in practice most people just do a very direct translation from match arms to if/else trees. some of the papers were like "we can get around backtracking all you have to do is blobcatglitch"

and its like yes cool i love finite state automata in my codebase i like 800 lines of _state = 80086; goto fhqwgads;
2
0
1

@icedquinn tbh i just assumed they all used finite state automata

1
0
0
@lizzie some of them might these papers are old.
1
0
1
@icedquinn homestar runner reference spotted
1
0
0
@georgia i had to strongbad. my mouth was a broken jpeg.
1
0
1
@lizzie the simple backtrack strategy makes the most reasonable code (but it might test stuff repeatedly.) i tend to use that in parsing because PEGs were the only things that made sense for so long (and i don't use the packrat memoize table, i just backtrack, which is fine as long as your grammar is reasonable.)

DFA is like. okay, you avoided potentially testing twice. you just have this O(NY^2) mini compiler that generates a 126 state monstrocity instead ablobcatangel
0
0
1