Commit Graph

3 Commits (338bb0cdf0bffba13361b608f0f048d78af0fc5e)

Author SHA1 Message Date
Mike Gerwitz 338bb0cdf0
base10-mul.sed: Multiply two base-10 numbers using regexes
This was a pretty fun hack---it looks esoteric and sounds impressive (or
even impossible to some), but is really easy given the proper
intuition.  Perhaps at some point I'll write more on DFAs and some of the
theory and limitations behind this, but for now, that's beyond the scope of
what I had intended for this repo.  (I suspect that my intentions are
shifting.)

Enjoy!

* regex/base10-inc.sed: Reference new script.
* regex/base10-mul.sed: New script.
2018-11-24 00:02:26 -05:00
Mike Gerwitz 107d090a04
base10-inc.sed: New script demonstrating regex-based addition
It might be easy to guess where I'm heading with the concepts that I'm
demonstrating with these scripts.  It's just fun to do, and I've never
had an excuse to actually do it.  ("It" referring to something for future
commits.)

You can try this out like this:

  $ ./animate base10-inc.sed <( echo 000 ) 0.01

* regex/base10-inc.sed: New file.
2018-11-24 00:02:20 -05:00
Mike Gerwitz cc583c6cb7
Initial commmit with fall script 2018-11-24 00:02:15 -05:00