I have not programmed in ZIL or Inform, but have made implementations of Z-machine, as well as a "Tricky Document" describing various optimizations that can be used in a Z-machine code (such as Black-Johansen text packing, the SET->BCOM optimization, storing introduction text in the input buffer, etc).