An ahead-of-time compiler for Beagle programming language