Convert any Python file into a single line of code
1–10 of 27 posts
Re: Convert any Python file into a single line of code
#2Seems like a non sequitur?
Re: Convert any Python file into a single line of code
#3Still brings me back to highschool, where we toyed with that kind of tricks (someone builds something, the others try to figure out how it works). Fun times!
Re: Convert any Python file into a single line of code
#4Re: Convert any Python file into a single line of code
#5This made me think of this video with Jim Weirich demonstrating functional patterns, transformations and the Y combinator:
Highly recommened. It's very related to what seems to be going on here, and actually quite funny.
Re: Convert any Python file into a single line of code
#6Well that was disappointing...
Re: Convert any Python file into a single line of code
#7Re: Convert any Python file into a single line of code
#8Okay, this was enough to scare me away from it :)
Re: Convert any Python file into a single line of code
#9Re: Convert any Python file into a single line of code
#10> Space: O(n). No code is ever duplicated, so the one-lined code produced is linear in the size of the input code. Seems like a non sequitur?
In which case, yeah, it's a little incongruous. The "space" bit is talking about the textual representation of the program produced, while the "time" bit is talking about the runtime characteristics of the program.