News for hackers. Stuff that matters.
Re:One million lines of code ought to be enough for anybody by Aperocky on Wednesday December 18, 2019 @10:00AM (#21825488)
No, don’t control what people do!

Remember that before Unix file system used to enforce what’s in the file instead of allowing storing whatever in whatever? That specific suffix/file validation that are carried in part on early Windows? People were sufficiently pissed to create Unix, which had none such bs.

Less rule is better than more rules, You can always put whatever you want into best practice but not expect people to follow hidden rules like this one.

Re:One million lines of code ought to be enough for anybody by ModernMech on Wednesday December 18, 2019 @11:55AM (#21826783)
The point here isn't that they are adding restrictions. Those restrictions are already there whether you like them or not, and in many cases that are quite arbitrary. This is a proposal to standardize many of the restrictions on a single arbitrary number, one that is large enough to account for most people's needs and small enough to make implementation easier. One of the motivations spelled out in the article is precisely to avoid hidden rules.
Re:One million lines of code ought to be enough for anybody by tbrock on Wednesday December 18, 2019 @10:25AM (#21825752)
Maybe it’s not appropriate for the official cpython but would be appropriate for something like pypy?
Re:One million lines of code ought to be enough for anybody by Aperocky on Wednesday December 18, 2019 @11:14AM (#21826313)
Maybe, that would be up to the project.

Pypy is in a spot where if you're after speed you would do it in another language, while package accessibility that cpython has is gone. I don't see it going mainstream but it's a nice project - and I can see why it has more limitation.

Re:One million lines of code ought to be enough for anybody by aequitas on Wednesday December 18, 2019 @11:28AM (#21826485)
Following your argument I should be able to write any random words to a file and expect the Python interpreter to run it as the program I intended?

Don't see it as a forced rule to restrict people, I can't really see how 1 million lines is a restriction on hand writen code anyways and generators can work around the problem, but more as a contract that sets the boundary on what people can expect. Python interpreter developers know they don't have to expect arbitrary large programs and can optimize their code for everything below 1 million and Python scripts/app developers know within what limits they can expect their code to work.

Re:One million lines of code ought to be enough for anybody by Aperocky on Wednesday December 18, 2019 @11:51AM (#21826738)
Exactly, You can put arbitrary things in a .py folder, if it doesn't run, it's your problem.

Unix didn't limit what you can put in a file, it doesn't expect your program to work when you fill your program with random strings.

The point is, the intepreter developer can feel free to optimize for everything below 1 million, putting a hard cap is pointless. The same reason that most sh file are suffixed as sh despite not needing that suffix at all.