John Meacham wrote:
On Thu, Feb 23, 2006 at 10:40:31AM +, Malcolm Wallace wrote:
What I would really like is a syntax to statically construct an array,
without having to compute it from a list.
This is exactly what my ForeignData proposal on the haskell-prime wiki
is meant to address
Malcolm Wallace wrote:
Stefan Karrmann [EMAIL PROTECTED] wrote:
can ghc compile huge tables into efficient code if they are constant
at compile time?
I have a related but different question. If I have large, statically
defined tables of data e.g.
table = listArray (0,max) [ [1,2,3,4]
Hello Simon,
Thursday, February 23, 2006, 3:35:51 PM, you wrote:
What I would really like is a syntax to statically construct an array,
without having to compute it from a list. I'm not sure that even
Template Haskell can help here, since there is no normal form for it to
translate to.
SM
What I would really like is a syntax to statically construct an
array, without having to compute it from a list. I'm not sure that
even Template Haskell can help here, since there is no normal form
for it to translate to.
SM Happy Alex use the hack of encoding static arrays as strings
Malcolm Wallace wrote:
Hmm, that only works if the data being stored in the table is of regular
size? I need variable-length values. Using a two- or three-level
encoding into strings would start to get /really/ unpleasant.
And this is pretty ghc-specific stuff.
Perhaps I should propose a new