<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 15, 2015 at 11:01 PM, Garrett Smith <span dir="ltr"><<a href="mailto:g@rre.tt" target="_blank">g@rre.tt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2wr" class="a3s" style="overflow:hidden">Use Erlang to tackle that directly. Just hard code the<br>
rules for the time being - it's easy to move them outside the program<br>
as config - and when people complain that they can't edit the cryptic<br>
Erlang term syntax, introduce a rules compile phase that takes<br>
Markdown defined rules - or better, Yaml - and generates the Erlang<br>
config.</div></blockquote></div><br></div><div class="gmail_extra">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 :)<br></div><div class="gmail_extra"><br clear="all"><br>-- <br><div class="gmail_signature">J.</div>
</div></div>