Shouldn't this line:
> "using regular expressions clocks in as taking about twice as long as the hashmap-based solution."
be written as the opposite? That the RE takes half as long/is twice as fast?
I think the point is that naive regex are a very generic purpose tool, but it's still in the same ballpark. Having a custom optimized state machine for this specific use case could bring another 5x improvement on top, leading to 2.5x faster, potentially.
Great read. I could feel the emotion of the character's throughout. The story reminds me of a previous post I saw on HN about a tech support guy trying to solve mysterious bad code appearing in a professors program, only for him to fall down the rabbit whole and discovering a student had tampered with the compiler's code in a similar fashion. If someone could find and link the story, I would be very grateful.
It was mainly a toy project for me; a bone to chew on if you will. I wanted something which I could mess with easily myself and which was heavily pluggable.
Integrating it with various external peripherals should be easy and it's designed to run completely on its own (i.e. no cloud for a lot of things).