User loginNavigation |
archivesWTF: A DSL for hand-written 4-function calculatorsIn one sense, this is light enough that I feel bad posting it to LtU. In another, though, it's entirely relevant: this guy started out inventing a DSL for pen-strokes, combinations of them, and relations between these combinations, and ended up with a simple OCR-based 4-function calculator. This was one of the cleverest bits of just-because programming language work and contrived abstraction that I've seen in a long time. Sample:
Zero is
a large circle
One is
either
a long vertical line
or
a long vertical line
a very small slash line
top of first joins top of second
|
Browse archivesActive forum topics |
Recent comments
1 day 19 hours ago
2 days 16 hours ago
3 days 21 hours ago
3 days 21 hours ago
1 week 1 day ago
1 week 1 day ago
1 week 1 day ago
4 weeks 2 days ago
5 weeks 23 hours ago
5 weeks 1 day ago