Not quite true!Bob P wrote:candy has always been an undocumented feature. the only people who are even aware of it are the people who have actually examined the portage source code.
One of the lines I remember seeing one time said something like this:Cinder6 wrote:I can't even read it when it's enabled (I only know it says "Thank you for using Gentoo" by looking for it), but I think it's kinda fun to have Easter eggs like this, so I say keep it (unless, of course, as others have said, it makes the code unmanageable).
If you can read this, your computer is too slow!

Again, Bob P, thank you for that steaming load of useless crap.Bob P wrote:candy has always been an undocumented feature. the only people who are even aware of it are the people who have actually examined the portage source code. it should come as no surprise, then, to observe that the vast majority of people responding to this poll aren't aware that the feature exists and aren't familiar with what it does. moreover, it should come as no surprise that people who have been living in blissful ignorance won't miss anything that they never knew existed. in this context it might be most meaningful to sort the responses to this poll, group them into pools of people who knew that the feature existed and those that didn't, and analyze the pools of responses separately.![]()
on the one hand there's the "efficient code" argument. if the developer is basing his opinion on the efficient code argument, this thread is really quite meaningless, as the answer to the question was known before the question was asked.
from a user's CPU utilization perspective, "candy" doesn't cost any significant amount of CPU overhead for the people who aren't using it. candy amounts to a block of code that is executed if and only if the user triggers its execution by implementing the features statement. realistically speaking, candy only costs you in CPU utilization if you intentionally turn the feature on.
in the big scheme of things, i think that its important to remember that undocumented features like candy amount to pearls that have been buried in the source code to reward people who bother to read it. somebody who had worked on portage before spent alot of time working on that code. leaving it in for posterity is an honor to them in acknowledgement of what they've done for Gentoo, and it doesn't cost anything. OTOH, removing it is the honorary equivalent of a sharp stick.
my recommendation would be to give users choice, and to leave it in. but then my recommendation would also have been not to document a feature that had been intentionally undocumented in the first place.


Code: Select all
/*
** "Wanting every habitable planet to be inhabited is like wanting
** everybody to get athlete's foot."
** -- Kurt Vonnegut
*/
Things like that can be amusing like in one kernel when there was a printer problem it would say "lp0 on fire" or something. But the original poster, who is a dev, states that the code is fairly long. Though antarus has few posts here on the forums, he must know how to code and have some idea of what he is doing otherwise the other developers wouldn't let him be a developer.john_r_graham wrote:So, by all means, leave them in. I've seen the code: there're no credible performance or maintainability argument to be made here. And they're fun!
- John
Err... how long? Searching /usr/bin/emerge only finds one instance of candy, at line 75, where it's checked for in the feature list. Under that conditional, there's an assignment that points to a list at line 24. Then, there's an assignment that points to a function at line 54, which is 8 lines long. The conditional is 3 lines long, and while the list is 18 lines long, it's hardly difficult code. All in all, 29 lines. That doesn't seem like much, even in python.brims wrote:But the original poster, who is a dev, states that the code is fairly long.

Ok, then maybe antarus can clarify that point. But again, if it isn't used, is it really needed?sponge wrote:Err... how long? Searching /usr/bin/emerge only finds one instance of candy, at line 75, where it's checked for in the feature list. Under that conditional, there's an assignment that points to a list at line 24. Then, there's an assignment that points to a function at line 54, which is 8 lines long. The conditional is 3 lines long, and while the list is 18 lines long, it's hardly difficult code. All in all, 29 lines. That doesn't seem like much, even in python.
Hey, he is 100% right.jedsen wrote:Again, Bob P, thank you for that steaming load of useless crap.
Good job trolling. You don't use --deep, other people do. As the thread shows, very few use FEATURES="candy".no idea wrote:I don't use emerge --deep, so let's throw that out as well, shall we?brims wrote:Ok, then maybe antarus can clarify that point. But again, if it isn't used, is it really needed?

I don't think so; yes, there were some who didn't even know of that, but believe me, I've read people on these forums who didn't even know of cflags. It wasn't documented in the installing manual nor in any man page I know of, but it was mentioned in a GWN, so a lot of people read about it, and I think that a lot of people likes some candy here and there: ok, it's not very pretty, but I know many people who use it.brims wrote:As the thread shows, very few use FEATURES="candy".
Ok, then you explain all the posts "interesting, but don't use it" or "not very useful" or any post similar to these examples. A couple of posts say "never knew it existed", for the most part the tone is to get rid of it.Ferdinando wrote:I don't think so; yes, there were some who didn't even know of that, but believe me, I've read people on these forums who didn't even know of cflags. It wasn't documented in the installing manual nor in any man page I know of, but it was mentioned in a GWN, so a lot of people read about it, and I think that a lot of people likes some candy here and there: ok, it's not very pretty, but I know many people who use it.brims wrote:As the thread shows, very few use FEATURES="candy".
Bye

Wait: most posts were to get rid of it if it was a problem in terms of performance and/or code simplicity, and I agree with that. But you wrote that very few use it, and I disagree: if you search for "features candy" you'll get 5 pages of topics.brims wrote:Ok, then you explain all the posts "interesting, but don't use it" or "not very useful" or any post similar to these examples. A couple of posts say "never knew it existed", for the most part the tone is to get rid of it.
True; and that happens to me too, as I wrote a few posts above. But I still like the idea.brims wrote:as someone brought up, on a semi fast machine, you can't even read the sentences
Feel free to disagree with your fellow community members, but please do it in a more professional way next time.jedsen wrote:Again, Bob P, thank you for that steaming load of useless crap.