Compiling high-level scripting languages to performant code