The Fedex handheld terminal was re-written in Forth...
twice. :)
First time all the features wouldn't fit. Forth re-write fit with room to spare. (factoring is easy in Forth)
New Hardware! Everything fit but batteries didn't last a full shift. :(
Forth with a proprietary tasker put the device to sleep at every opportunity. Problem solved.