Generator Tricks for Systems Programmers