News for hackers. Stuff that matters.
Re:Core Erlang by Example by dgllghr on Monday May 07, 2018 @10:03AM (#17012780)
I notice in that article that both Erlang and Elixir become "Erlang Abstract Form" before becoming "Core Erlang". What is the purpose of the abstract form vs. core erlang? Why this intermediate step?
Re:Core Erlang by Example by jacquesm on Monday May 07, 2018 @10:16AM (#17012897)
Compilers use many intermediate steps to transform the input on the way to their final destination, in this case bytecode. Each of these 'passes' performs one or more transformations with a specific goal for each transformation (for instance: an optimization). The Erlang Abstract Format is a parse tree representation for Erlang code.
Re:Core Erlang by Example by macintux on Monday May 07, 2018 @10:14AM (#17012888)
Parse transforms operate at the abstract form level, I believe. Virding talks a bit about it here: https://youtu.be/qm0mbQbc9Kc?t=12m00s
Re:Core Erlang by Example by micmus on Monday May 07, 2018 @10:13AM (#17012874)
"Erlang Abstract Form" is just a fancy name for an AST - a representation of the Erlang syntax in terms of Erlang data structures.