[Haskell-cafe] ANNOUNCE: grid-1.1

Amy de Buitléir amy at nualeargais.ie
Thu Sep 6 14:04:09 CEST 2012


Paul Visschers <mail <at> paulvisschers.net> writes:

> Looks nice. Does it scale well to millions of elements, and can it handle 3D?

The current implementation wouldn't scale well to millions of elements, but it
shouldn't take much tweaking to support that. Currently, when a grid is
constructed, the list of all possible indices is constructed as well, so that
calls to the "indices" function are fast. To support large numbers of tiles, I
would instead generate all possible indices only when the "indices" function is
called. Then the indices function would be too slow to be usable for more than,
say, 50,000 tiles. But perhaps you don't need that function.

At present, the only 3D support I have is for square tiles on the surface of the
torus. I could add more tile shapes on the surface of the torus or other 3D
shapes. I could also add support for 3D "tiles" (e.g., cubes, pyramids) in a 3D
volume, if that's what you need. 

Let me know what your needs are and I'll try to incorporate it.




More information about the Haskell-Cafe mailing list