[erlang-questions] Erlang and Rules Engines / Production Systems
Jesper Louis Andersen
jesper.louis.andersen@REDACTED
Thu Jul 16 14:55:48 CEST 2015
On Wed, Jul 15, 2015 at 11:01 PM, Garrett Smith <g@REDACTED> wrote:
> Use Erlang to tackle that directly. Just hard code the
> rules for the time being - it's easy to move them outside the program
> as config - and when people complain that they can't edit the cryptic
> Erlang term syntax, introduce a rules compile phase that takes
> Markdown defined rules - or better, Yaml - and generates the Erlang
> config.
>
Parse the Yaml to an AST. Compile the AST through merl to Erlang code.
Compile the Erlang code to BEAM. Load module. Call into module. Revel in
the fast execution :)
--
J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150716/fb725a33/attachment.htm>
More information about the erlang-questions
mailing list