User talk:Sonia: Difference between revisions

(I think that's my fault)
Line 5:
: Thank you. The same claim is in in the Fibonacci task, and I agonized over whether to remove that as well. I don't like the wording, and of course efficient recursive solutions exist there as well, but it is true that simple doubly recursive solutions rapidly bog down. —[[User:Sonia|Sonia]] 16:54, 6 January 2012 (UTC)
::I think I might have added both of those notes long ago. I hadn't had any experience with tail recursive optimization and was just basing it on my limited knowledge. Maybe it would be better if it specified that doubly recursive solutions slow down quickly? For what it's worth, [[Recursion]] seems to handle it better. Any improvements to language-neutrality in any of those pages would be nice. --[[User:Mwn3d|Mwn3d]] 17:46, 6 January 2012 (UTC)
 
== Updating Go Bitmap tasks ==
 
It appears that you did the Go code for the various [[Raster_graphics_operations|Bitmap tasks]].
Would you have any objection if I changed them all to use the API of the standard <code>image</code> package?
 
For the top [[Bitmap]] task it could just be showing how to use the <code>image</code>, <code>image/color</code>, and <code>image/draw</code> packages (which I already added). Optionally, if it was deemed instructive for comparison with other languages, it could also include a stripped down version of the definitions of the types needed/used from the Go source (which would be very similar to what you have there, just using the <code>image</code> API) or just a link to the Go source.
 
For most of the other tasks it would just be translating it to fit with the standard packages.
E.g. for reading PPM it'd call <code>image.RegisterFormat</code>, use the standard <code>Decode</code> function signatures and return an <code>image.NRGBA</code> (or <code>image.Gray</code> if PGM is also supported and detected).
For writing PPM it would work with any <code>image.Image</code>.
Similarly things like [[Bitmap/Bresenham's_line_algorithm]] can trivially be made to work with any <code>draw.Image</code>.
 
What do you think? I didn't want to make wide ranging changes without at least running it by you first. &mdash; [[User:Dchapes|Dchapes]] ([[User talk:Dchapes|talk]]) 00:53, 22 August 2014 (UTC)
Anonymous user