Not too much work, either. I once live coded a Brainfuck interpreter in 30 minutes for PyCon IL, and there aren't really any tricks involved, just work, so it should take the average dev that didn't just practice it maybe 2-4 hours: https://www.youtube.com/watch?v=F5P6Q7vs_-Y