18 ms·
To that end, I have a simple benchmark that I run: find / Well crap. Years ago during an phone interview for a position that wasn't going to use Python,
by stcredzero 10y ago
To that end, I have a simple benchmark that I run:
find /
Well crap. Years ago during an phone interview for a position that wasn't going to use Python, I was discussing that the current python script was exponential, then I wondered what would happen if I just let it run. It very quickly completely froze my laptop. In VisualWorks Smalltalk, I would have been able to Ctrl-Y interrupt into the "emergency evaluator." Python has nothing like an "emergency evaluator." How uncivilized of it! Interpretation of my interviewer: I am a stupid fake programmer person who doesn't understand exponential time/space complexity. [sigh] -- No I just don't understand why someone would build a tool like that! I guess I was spoiled.
- GrinningFool 10y agoClearly you should not have run that script at all - it was a trick.
- qwertyuiop924 10y agoAnd C-c didn't work? You must have let it run a really long time. I'm surprised it didn't error out.
- stcredzero 10y agoYou must have let it run a really long time. All of about 5 seconds.