[erlang-questions] elrc "implementation limit"?

Dimitry Golubovsky golubovsky@REDACTED
Fri Aug 29 14:08:18 CEST 2008


Given this Erlang module:


and a file it includes (precompiled from an external source):


erlc gave this error message after several minutes of compilation (CPU
at 99%, but size in memory remained stable):

[dima@REDACTED hugs_yc]$ erlc yc2erl.erl
yc2erl: function char_block/0+7:
  An implementation limit was reached.
  Try reducing the complexity of this function.

  Instruction: {move,{x,0},{y,2558}}

This is basically the same "large indexable structure" I asked couple
days ago about (how to get the most efficient indexed access).

If compilation of such a large tuple fails, what is the other way to
build such a structure into a program (other than reading it from an
external file)?


PS Implementation of the same in C (Hugs, GHC) and Javascript had no
problems at all.

See e. g. http://darcs.haskell.org/hugs98/src/unitable.c,

How to compile such thing in Erlang?

Dimitry Golubovsky

Anywhere on the Web

More information about the erlang-questions mailing list