r/programming • u/Dull_Replacement8890 • 28d ago
How curl was accidentally Turing-complete for nine months
https://seriot.ch/computation/curl.html
787
Upvotes
r/programming • u/Dull_Replacement8890 • 28d ago
317
u/tsammons 28d ago
I love how the first paragraph reads like my first recitation in college. Then it dives into discrete math midterm.
97
u/sigma914 28d ago
I feel like for something as old and featureful as curl not being turing complete is harder than being turing complete. Staying bounded, finite and decidable requires actual effort in that kind of program.
227
u/hongooi 28d ago
Hmmm, so could we use curl to rewrite curl in Rust?
52
u/asharif_ 28d ago
Please someone run Doom in curl
12
u/ToaruBaka 27d ago
curl was getting too smart so they had to kneecap it. smh.
1
u/ElletteBarbedor-21 18d ago
Wait so did someone actually manage to write a working program in the flags before it got patched out, or was this just a theoretical proof during an audit?
5
u/wangtutx 28d ago
What kind of fun things can do with this?
2
u/Longjumping_Feed3270 27d ago
Quake 3 how many FPS?
1
u/huangsara-43824 14d ago
Turing-complete is a capability threshold, not a usability endorsement; computing anything in principle doesn't make curl a pleasant language.