Hi,
Before I post my version in C of a Bayesian Inference Model, I would like to mention that you can use this technique to perform conditional compilation in the e.g. rakudo compiler. You will have different outputs of MoarVM and JVM microcode which changes runtime behavior of your perl6 code. HTH, Holly P.S.: See my Bayes::Learn package for the formulas