News for hackers. Stuff that matters.
Re:Moving Google toward the mainline by jdub on Tuesday October 05, 2021 @10:59PM (#28768661)
Ask a Googler about the size of their environment variables.
Re:Moving Google toward the mainline by packetslave on Tuesday October 05, 2021 @11:05PM (#28768698)
ever wonder why linux supports command line arguments that are 2mb long?
Re:Moving Google toward the mainline by yegle on Tuesday October 05, 2021 @11:35PM (#28768890)
Ever wondered absl flags library has a --flagfile special flag?

https://abseil.io/docs/python/guides/flags#special-flags

Re:Moving Google toward the mainline by packetslave on Tuesday October 05, 2021 @11:44PM (#28768947)
I wonder if ABSL supports gzipped flags...
Re:Moving Google toward the mainline by yegle on Tuesday October 05, 2021 @11:50PM (#28768986)
Probably not, since --flagfile accepts a list of filenames :-)

https://github.com/abseil/abseil-cpp/blob/1ae9b71c474628d60e...

Re:Moving Google toward the mainline by matheusmoreira on Wednesday October 06, 2021 @12:19AM (#28769150)
Does Linux need explicit support for this? Command line arguments and environment variables are copied to the stack of the new process. I would expect the stack's size to be the limiting factor.
Re:Moving Google toward the mainline by jeffbee on Wednesday October 06, 2021 @02:37AM (#28769909)
Before they relaxed it 15 years ago, Linux had a hard limit at 128KiB for args + env on x86. After the change it was variable up to 2MiB.

https://github.com/torvalds/linux/commit/b6a2fea39318e43fee8...

Re:Moving Google toward the mainline by lamontcg on Tuesday October 05, 2021 @11:46PM (#28768959)
I'm afraid of what they're likely to show me...
Re:Moving Google toward the mainline by kevincox on Wednesday October 06, 2021 @12:27PM (#28775009)
Your fears are completely founded.