Ermahgerd goto
-
Yeah, but PHP doesn't support static linking of scripts.
-
I know >_<
-
Other languages can do it. Just put a filesystem inside the script and mount the shared libraries and dependent scripts out of that. Not Easy!
-
>I haven't played with yielding and generators.
If it goes deep properly, you can use them to implement cooperative multitasking.
Kinda has the "it would be easier to just implement a damn Turing machine emulator and start from there" ring to it.
-
Turing machines don't do syscalls. Just sayin'…
-
Who needs syscalls? A single infinitely large chmod 666 file should be good enough for anyone.
-
And suitably evil, of course.
-
I've just got to find an infinitely large spool for my infinitely long tape. And wait infinitely long for the TM to fill it up.