Comment

Comment by tsegratis

i mean, well done

> using direct mutual recursion instead of array-stack machinery

the reason for array-stacks is using recursion can "blow the stack" i.e. has almost arbitrary failure on deeply nested pathological inputs

using recursion is going to be faster, to about the degree you bench, but there is a reason the parser you bench against doesn't use it!

parent tsegratis 8 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton