Tuesday, January 20, 2009

Toilet Adornments

When you read Lambda the Ultimate, you would think writing a compiler has a lot to do with science. Unfortunately, 99% of the time you're stuck with more worldly problems.

Mundane problems encountered in a day:

  • Forgetting to pass the current module bindings to all bindings during identification

  • Forgetting to add "." as a default search directory to the search path

  • Returning the current module in the list of all loaded modules

  • Not adding a good fall-back for "exhausted all cases" in the operational semantics

  • Compiling string literals in the import section down to char lists

  • Forgetting that if the result of an evaluation is an exception, the runtime should exit with another exit code

No comments:

Post a Comment