Re: Article: Functional image processing in D

2014-03-21 Thread Vladimir Panteleev
On Friday, 21 March 2014 at 18:40:10 UTC, ponce wrote: On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use

Re: Article: Functional image processing in D

2014-03-21 Thread Rikki Cattermole
On Friday, 21 March 2014 at 13:54:25 UTC, Vladimir Panteleev wrote: On Friday, 21 March 2014 at 12:27:57 UTC, Rikki Cattermole wrote: On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights

Re: 1st draft of complete class-based std.random successor

2014-03-21 Thread bearophile
Joseph Rushton Wakeling: I think the following patch should fix that for you: https://github.com/WebDrake/std.random2/commit/fb5429de77b3c1f7fe3968fd0bd92209c9021f31 I've also made shuffle composable as per your request. Looks good? :-) Seems good. Onward! :-) Bye, bearophile

Re: 1st draft of complete class-based std.random successor

2014-03-21 Thread Joseph Rushton Wakeling
On Thursday, 20 March 2014 at 00:39:43 UTC, bearophile wrote: It's the best chance to improve naming, so do not throw it away for nothing: https://d.puremagic.com/issues/show_bug.cgi?id=9106 I think the following patch should fix that for you: https://github.com/WebDrake/std.random2/commit/fb5

Re: Article: Functional image processing in D

2014-03-21 Thread Walter Bright
On 3/21/2014 4:04 AM, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tried to make the articl

Re: Article: Functional image processing in D

2014-03-21 Thread ponce
On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tr

Re: Article: Functional image processing in D

2014-03-21 Thread ponce
On Friday, 21 March 2014 at 18:40:10 UTC, ponce wrote: On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use

Re: Article: Functional image processing in D

2014-03-21 Thread Vladimir Panteleev
On Friday, 21 March 2014 at 17:24:02 UTC, Jakob Ovrum wrote: What happens if negative values sneak into the code? Sounds dangerous. Well, working with unsigned values correctly complicates the code by a good deal, for one. For example, if you want to draw a circle at (x,y) with radius r, then

Re: Article: Functional image processing in D

2014-03-21 Thread Jakob Ovrum
On Friday, 21 March 2014 at 17:03:17 UTC, Vladimir Panteleev wrote: Where this is done, it is on purpose. For example, the "invert" declaration as it appears in the article wouldn't be possible with the shorthand function template syntax. Right, I only skimmed over the various aliases. It look

Re: Article: Functional image processing in D

2014-03-21 Thread Vladimir Panteleev
On Friday, 21 March 2014 at 16:21:18 UTC, Jakob Ovrum wrote: On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It make

Re: Article: Functional image processing in D

2014-03-21 Thread Justin Whear
On Fri, 21 Mar 2014 11:04:57 +, Vladimir Panteleev wrote: > http://blog.thecybershadow.net/2014/03/21/functional-image-processing- in-d/ > > Some highlights from a recent overhaul of the graphics package from my D > library. It makes use of a number of D-specific language features, so > I've

Re: 1st draft of complete class-based std.random successor

2014-03-21 Thread Andrea Fontana
On Friday, 21 March 2014 at 16:01:28 UTC, ponce wrote: On Thursday, 20 March 2014 at 21:17:33 UTC, Joseph Rushton Wakeling wrote: On Thursday, 20 March 2014 at 08:30:09 UTC, ponce wrote: Related: please consider using parts of SimpleRNG the excellent work of John D. Cook which provides many ran

Re: Article: Functional image processing in D

2014-03-21 Thread Jakob Ovrum
On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tr

Re: 1st draft of complete class-based std.random successor

2014-03-21 Thread ponce
On Thursday, 20 March 2014 at 21:17:33 UTC, Joseph Rushton Wakeling wrote: On Thursday, 20 March 2014 at 08:30:09 UTC, ponce wrote: Related: please consider using parts of SimpleRNG the excellent work of John D. Cook which provides many random distributions in a compact and documented way. ht

Re: Article: Functional image processing in D

2014-03-21 Thread bearophile
Andrei Alexandrescu: http://www.reddit.com/r/programming/comments/2101ti/functional_image_processing_in_d/ But I have suggested some improvements of the article :-( Bye, bearophile

Re: Article: Functional image processing in D

2014-03-21 Thread Andrei Alexandrescu
On 3/21/14, 4:04 AM, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tried to make the article

Re: Article: Functional image processing in D

2014-03-21 Thread Meta
On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tr

Re: Article: Functional image processing in D

2014-03-21 Thread ponce
On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tr

Re: Article: Functional image processing in D

2014-03-21 Thread bearophile
Vladimir Panteleev: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ It looks nice. I suggest to not pack too much the code of the examples, so I suggest to put spaces around operators, etc. It can be useful to add some benchmarks to compare its performance to eq

Re: Article: Functional image processing in D

2014-03-21 Thread Vladimir Panteleev
On Friday, 21 March 2014 at 12:27:57 UTC, Rikki Cattermole wrote: On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It

Re: Article: Functional image processing in D

2014-03-21 Thread Atila Neves
Wow, great stuff here. If anybody else asks me "What is D good for?" again I'll point them to this. Atila On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of th

Re: Article: Functional image processing in D

2014-03-21 Thread Rikki Cattermole
On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tr

Re: Article: Functional image processing in D

2014-03-21 Thread Andrea Fontana
Very interesting! Do you know http://www.antigrain.com/ ? It is (was?) a very efficent c++ 2d library, heavily based on templates. Something like this in D with templates and lazy ranges should be impressive. On Friday, 21 March 2014 at 11:04:58 UTC, Vladimir Panteleev wrote: http://blog.t

Article: Functional image processing in D

2014-03-21 Thread Vladimir Panteleev
http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language features, so I've tried to make the article accessible to people new to D as well.