3 ms·
That's not the point. Many people are surprised when they hear that sed is Turing complete. How come a text filtering program is Turing complete they ask? Turn
by pkrumins 15y ago
That's not the point.
Many people are surprised when they hear that sed is Turing complete. How come a text filtering program is Turing complete they ask? Turns out sed is like a small assembly language that has a comparison operation, a branching operation and a temporary buffer. If you translate a problem into a textual representation then these operations are enough to make sed Turing complete!