Talk:CRC-32: Difference between revisions

Content deleted Content added
→‎Error correction: CRC, error detection, error correction
→‎Task goal: bit-twiddling and shortcuts
Line 36: Line 36:
::: Nor do I. Also it's trivial. --[[User:Dgamey|Dgamey]] 12:32, 8 December 2011 (UTC)
::: Nor do I. Also it's trivial. --[[User:Dgamey|Dgamey]] 12:32, 8 December 2011 (UTC)
:::: So? Some people round here seem to think that doing everything with a hair shirt on is fine, but in reality it is the people who use the built-in functions and well-known libraries that will really prosper. In particular, they are working ''idiomatically'' with their language. If there is anything that people should be doing when posting solutions here, it is ensuring that those solutions are — to the greatest extent practicable — idiomatic and easy to read. After all, that is how to best encourage the use of the language and to compare and contrast. Moreover, some languages really do slam-dunk their way through tasks that others find exceptionally challenging (and for many reasons). ''That'' is interesting, bit manipulations… not so much. –[[User:Dkf|Donal Fellows]] 15:04, 8 December 2011 (UTC)
:::: So? Some people round here seem to think that doing everything with a hair shirt on is fine, but in reality it is the people who use the built-in functions and well-known libraries that will really prosper. In particular, they are working ''idiomatically'' with their language. If there is anything that people should be doing when posting solutions here, it is ensuring that those solutions are — to the greatest extent practicable — idiomatic and easy to read. After all, that is how to best encourage the use of the language and to compare and contrast. Moreover, some languages really do slam-dunk their way through tasks that others find exceptionally challenging (and for many reasons). ''That'' is interesting, bit manipulations… not so much. –[[User:Dkf|Donal Fellows]] 15:04, 8 December 2011 (UTC)
::::: Mostly concur with Donal, except that I do think seeing bit-twiddling solutions useful as well; it's best to use a language's idiomatic solution, but it's almost as important, in my opinion, to have an understanding of how it ''works.'' (Pragmatic vs theoretical arguments are abound, but it's often pragmatic to have an understanding of the theory) I'll retreat on my original recommendation of having polynomial-specific pages, though, and just suggest that different polynomials beyond the most common be optional entries; if a language has a shortcut for CRC32 of a particular polynomial, then that shortcut should be included as an additional solution. --[[User:Short Circuit|Michael Mol]] 15:28, 8 December 2011 (UTC)


== Error correction ==
== Error correction ==