Re: Case study on ranges and lazy evaluation

2015-07-21 Thread Matt Kline via Digitalmars-d-announce
On Tuesday, 21 July 2015 at 14:34:25 UTC, Kagamin wrote: You assign off_t to size_t, won't compile on 32-bit system. You're safe to use simple `long` for file sizes and offsets. Nice catch! I'll clean that up after work.

Re: Case study on ranges and lazy evaluation

2015-07-21 Thread Kagamin via Digitalmars-d-announce
On Monday, 20 July 2015 at 17:26:31 UTC, Matt Kline wrote: http://bitbashing.io/be-lazy-use-ranges.html You assign off_t to size_t, won't compile on 32-bit system. You're safe to use simple `long` for file sizes and offsets.

Re: Case study on ranges and lazy evaluation

2015-07-20 Thread extrawurst via Digitalmars-d-announce
On Monday, 20 July 2015 at 17:26:31 UTC, Matt Kline wrote: With the general push to make more of Phobos use lazily evaluated ranges, Walter's DConf talk, and even C++ moving towards ranges (https://www.youtube.com/watch?v=uXBcwcF3ln4), I wrote a small article with a case study examining their

Case study on ranges and lazy evaluation

2015-07-20 Thread Matt Kline via Digitalmars-d-announce
With the general push to make more of Phobos use lazily evaluated ranges, Walter's DConf talk, and even C++ moving towards ranges (https://www.youtube.com/watch?v=uXBcwcF3ln4), I wrote a small article with a case study examining their merits. http://bitbashing.io/be-lazy-use-ranges.html The

Re: Case study on ranges and lazy evaluation

2015-07-20 Thread Adam D. Ruppe via Digitalmars-d-announce
Quick, what does this loop in this function do? void PanelBar::RepositionExpandedPanels(Panel* fixed_panel) I'm willing to guess it repositions the expanded panels named functions are the best abstraction.

Re: Case study on ranges and lazy evaluation

2015-07-20 Thread Matt Kline via Digitalmars-d-announce
On Monday, 20 July 2015 at 18:17:18 UTC, Adam D. Ruppe wrote: Quick, what does this loop in this function do? void PanelBar::RepositionExpandedPanels(Panel* fixed_panel) I'm willing to guess it repositions the expanded panels named functions are the best abstraction. Well, yes, but

Re: Case study on ranges and lazy evaluation

2015-07-20 Thread John Colvin via Digitalmars-d-announce
On Monday, 20 July 2015 at 18:17:18 UTC, Adam D. Ruppe wrote: Quick, what does this loop in this function do? void PanelBar::RepositionExpandedPanels(Panel* fixed_panel) I'm willing to guess it repositions the expanded panels named functions are the best abstraction. That's great for

Re: Case study on ranges and lazy evaluation

2015-07-20 Thread Joakim via Digitalmars-d-announce
On Monday, 20 July 2015 at 17:26:31 UTC, Matt Kline wrote: With the general push to make more of Phobos use lazily evaluated ranges, Walter's DConf talk, and even C++ moving towards ranges (https://www.youtube.com/watch?v=uXBcwcF3ln4), I wrote a small article with a case study examining their