Remix.run Logo
smitty1e 3 days ago

> For example, the byte-code engine used to evaluate SQL statements inside of SQLite is implemented as a large "switch" statement inside a "for" loop, with a separate "case" for each opcode, all in the "vdbe.c" source file.

Duff's Device[1] for the win!

[1] https://en.m.wikipedia.org/wiki/Duff's_device

wizzwizz4 3 days ago | parent [-]

Duff's Device is a for loop inside a switch statement. Totally different.

1oooqooq 3 days ago | parent | next [-]

And here I was thinking I found a fancy term for my "lazy parser"... Well "Lazy Parser" it will remain named.

smitty1e 2 days ago | parent | prev [-]

I stand clue-batted, thank you.