[Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread Heinrich Apfelmus
John Van Enk wrote: > Hi List, > > I recently needed a ring structure (circular list with bi-directional > access) and didn't see anything obvious on Hackage. I threw something > together fairly quickly and would like some feedback before tossing it on > Hackage. > > I'd really appreciate if some

[Haskell-cafe] Re: Data.Ring -- Pre-announce

2010-01-04 Thread Maciej Piechotka
On Thu, 2009-12-31 at 04:59 -0500, John Van Enk wrote: > Hi List, > > I recently needed a ring structure (circular list with bi-directional > access) and didn't see anything obvious on Hackage. I threw something > together fairly quickly and would like some feedback before tossing it > on Hackage.

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread Tom Tobin
On Thu, Dec 31, 2009 at 5:27 AM, Heinrich Apfelmus wrote: > Since the name  Ring  is already taken by an ubiquitous mathematical > structure, and thus already in hackage for example as  Algebra.Ring  in > the  numeric-prelude , I suggest to call the data structure  Necklace > instead. Is Necklace

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread John Van Enk
Hi Heinrich, Some comments: On Thu, Dec 31, 2009 at 6:27 AM, Heinrich Apfelmus < apfel...@quantentunnel.de> wrote: > Since the name Ring is already taken by an ubiquitous mathematical > structure, and thus already in hackage for example as Algebra.Ring in > the numeric-prelude , I suggest t

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread Twan van Laarhoven
John Van Enk wrote: Hi Heinrich, I think I like Ring more than Necklace or Tom's suggestion of Circular. I chose Ring simply because that's what I was searching for when I wanted the data structure. The package will be named data-ring, so that should hopefully be enough to clue in the user th

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread John Van Enk
I've decided to settle on Data.CircularList. The renamed git repository is here: http://github.com/sw17ch/data-clist On Thu, Dec 31, 2009 at 3:29 PM, Twan van Laarhoven wrote: > John Van Enk wrote: > >> Hi Heinrich, >> >> >> I think I like Ring more than Necklace or Tom's suggestion of Circular.

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread Iavor Diatchki
Hi, I usually refer to this structure as a RingBuffer, just an idea. If you have the time, I would add rough complexity estimates to the documentation for the different functions. Thanks for your work! Happy new year, Iavor On Thu, Dec 31, 2009 at 1:13 PM, John Van Enk wrote: > I've decided to

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread David Leimbach
I recently needed a ring buffer in haskell, so I did it in C and used the FFI :-) This is much nicer. Dave On Thu, Dec 31, 2009 at 2:37 PM, Iavor Diatchki wrote: > Hi, > I usually refer to this structure as a RingBuffer, just an idea. If > you have the time, I would add rough complexity estim

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2009-12-31 Thread Daniel Fischer
Am Donnerstag 31 Dezember 2009 23:41:13 schrieb David Leimbach: >  I recently needed a ring buffer in haskell, so I did it in C http://en.wikipedia.org/wiki/Non_sequitur_(logic) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.or

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2010-01-01 Thread Tillmann Rendel
Hi, Iavor Diatchki schrieb: I usually refer to this structure as a RingBuffer. Really? According to my understanding, and to wikipedia [1], a ring buffer is a data structure used to implement O(1) bounded FIFO queues with mutable arrays. So in a ring buffer, you have distinct reading and

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2010-01-04 Thread Luke Palmer
On Mon, Jan 4, 2010 at 6:51 AM, Maciej Piechotka wrote: > About comonad - not exactly as every comonad is copointed and the only > possible way is extract Empty = _|_ I think this module could be cleaned up by disallowing empty lists. You have this nice semantic property that "every clist has a f

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2010-01-04 Thread John Van Enk
I've heard this a few times and am slowly becoming convinced of it. I'll try my current use without the Empty and see how it goes. Given that I've heard this from several places, I'll probably drop Empty. On Mon, Jan 4, 2010 at 9:17 AM, Luke Palmer wrote: > On Mon, Jan 4, 2010 at 6:51 AM, Macie

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2010-01-09 Thread wren ng thornton
Tom Tobin wrote: - Heinrich Apfelmus wrote: Since the name Ring is already taken by an ubiquitous mathematical structure, and thus already in hackage for example as Algebra.Ring in the numeric-prelude , I suggest to call the data structure Necklace instead. Is Necklace a known name

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2010-01-16 Thread Henning Thielemann
wren ng thornton schrieb: Tom Tobin wrote: - Heinrich Apfelmus wrote: Since the name Ring is already taken by an ubiquitous mathematical structure, and thus already in hackage for example as Algebra.Ring in the numeric-prelude , I suggest to call the data structure Necklace instead.

Re: [Haskell-cafe] Re: Data.Ring -- Pre-announce

2010-01-16 Thread Edward Kmett
One other name I've heard used, pretty much ever since the dos days when the 16 character fixed sized keyboard buffer was the first instance of such a structure I'd seen, was a 'ring buffer'. Data.RingBuffer perhaps? I agree that Data.Ring is a terrible name, partially because I already have a Data