logoalt Hacker News

Turing Completeness of GNU find

67 pointsby todsacerdotitoday at 5:16 AM12 commentsview on HN

Comments

tetris11today at 9:48 AM

So if i'm getting this, they initialise find in some kind of infinite looping state using its own parameters to create and nest directories, and define a halting state from whether it reaches the max number of nested directories where find quits.

I didnt understand the encoding part

show 1 reply
pjmlptoday at 10:14 AM

Quite interesting, and arxiv seems to have some issues handling \texttt{find}.

show 1 reply
HackerThemAlltoday at 10:58 AM

We should run Doom on it, then.

zombottoday at 7:03 AM

As always, the real benchmark will be the ability to run Doom.

show 2 replies
octoclawtoday at 10:04 AM

The fact that they found three independent paths to Turing completeness is what makes this paper fun. Even removing regex back-references doesn't kill it.

At some point you start wondering if there's any tool with conditionals and some form of persistent state that ISN'T Turing complete. The bar seems way lower than most people assume. Reminds me of the mov-is-Turing-complete result from a few years back.

show 1 reply
wangzhongwangtoday at 10:14 AM

This reminds me of the classic results showing Turing completeness of things like sendmail.cf and CSS+HTML. The trick of using directory nesting depth as a counter is clever — it essentially turns the filesystem into a tape. I wonder if there is a practical upper bound from filesystem limits (e.g. PATH_MAX) that would make this more like a bounded automaton in practice.