Talk:Population count: Difference between revisions

→‎task requirements change: added comments about popcount confusing.
(→‎task requirements change: added comments about popcount confusing.)
Line 12:
 
: Having written a few tasks in the past, I advise that you shouldn't get too prescriptive as to the nature of the output unless the producing of that output in that exact form is the ''sole'' reason for the task; it isn't here, since there's also the calculation of the Hamming weight itself. “Printing a list of numbers” isn't really very significant for most languages these days, after all. (Should we change the name of the task to reflect the wikipedia name for this sort of thing? “Population count” is more likely to be confused with something else.) –[[User:Dkf|Donal Fellows]] ([[User talk:Dkf|talk]]) 21:37, 19 March 2014 (UTC)
 
:: The form (list the numbers on one line as opposed to a vertical list) was asked for to more easily see the commonality of the three sets of outputs, thus, using a common format.   Since it is trivial for most computer languages to show each set on a single line, I didn't think it was unreasonable to have that as a requirement.   It wasn't the sole reason, but simply a matter of visual convenience.   In the task, ''population count'' was described in the first sentence (and I'll make that even clearer forthwith), and should clearly identify the reference.   ''Hamming weight'' has other uses, and for the binary case, it would be then equivalent to a ''popcount''. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:13, 19 March 2014 (UTC)