News for hackers. Stuff that matters.
Re:One million lines of code ought to be enough for anybody by glofish on Wednesday December 18, 2019 @01:59PM (#21828038)
I might have not explained properly, the output of the program was saved into the file,

  python generate.py > big.py
then this file was executed with Python, that took 5 seconds:

  time python big.py
and yes, I had no idea what to expect, hence the test.
Re:One million lines of code ought to be enough for anybody by abecedarius on Wednesday December 18, 2019 @02:38PM (#21828468)
Some context:

- big.py is almost 15MB

- Running `lua5.3 big.py` takes about 1/6 the time on my Linux VM. (I had to use a big.py only half the size because this VM was too small for the original.)

So Python isn't the fastest at this but I wouldn't call it terrible. Basically all of that time was parsing/compiling, since the time is the same with big.py changed to `def foo(): x0=0 # etc.`