[erlang-questions] Erlang Core problem with Erlang < R12B

Elliot Murphy elliot.murphy@REDACTED
Wed Mar 26 21:50:48 CET 2008


I can't answer your question directly, but I can give you a hint about
how to see more clearly what is different between the releases.

You can get a bazaar branch of erlang by running this command with a
recent version of bzr:
bzr get lp:erlang

Once you have that, you can easily generate diffs between the
different releases - whether for the whole tree or just certain files.
To give you an idea about the amount of change between R11B-5 and
R12B-0, here is the diffstat:

 2291 files changed, 519018 insertions(+), 266944 deletions(-)



On Wed, Mar 26, 2008 at 4:16 PM, Roberto Saccon <rsaccon@REDACTED> wrote:
> I am working on a Javascript Flavoured Erlang in Core Erlang.
>  Everything goes fine as long as I stay with R12B0 or R12B1.
>
>  to compile, after core_lint:module/1 succeeds, I simply do:
>
>  compile:forms(Core, [from_core, return_errors]).
>
>  E.g. with the following CoreForm:
>
>     Core = {c_module,
>                [],
>                {c_literal,[1],js_comments},
>                [{c_fname,[1],erlyjs_global,0}],
>                [{{c_literal,[0],checksum},
>                  {c_literal,
>                      [0],
>                      [106,
>                       138,
>                       45,
>                       226,
>                       222]}}],
>                [{{c_fname,[0],erlyjs_global,0},
>                  {c_fun,[0],[],{c_literal,[],<<"todo">>}}}]}.
>
>
>
>  But with Erlang < R12B I now get errors like this:
>
>  {error,
>     [{".",
>       [{none,
>            compile,
>            {crash,
>                transform_module,
>                {function_clause,
>                    [{compile,
>                         compile_options,
>                         [{c_module,
>                              [],
>                              {c_literal,[1],js_comments},
>                              [{c_fname,[1],erlyjs_global,0}],
>                              [{{c_literal,[0],checksum},
>                                {c_literal,[...],...}}],
>                              [{{c_fname,[...],...},{c_fun,...}}]}]},
>                     {compile,transform_module,1},
>                     {compile,'-internal_comp/4-anonymous-1-',2},
>                     {compile,fold_comp,3},
>                     {compile,internal_comp,4},
>                     {compile,internal,3}]}}}]}],
>     []}
>
>
>  anybody knows what is different between those Erlang releases in
>  regard to Erlang Core ?
>
>  --
>  Roberto Saccon
>  http://rsaccon.com
>  _______________________________________________
>  erlang-questions mailing list
>  erlang-questions@REDACTED
>  http://www.erlang.org/mailman/listinfo/erlang-questions
>



-- 
Elliot Murphy



More information about the erlang-questions mailing list