Codon: A Compiler for High-Performance Pythonic Applications and DSLs
Domain-specific languages (DSLs) are able to provide intuitive high-level abstractions that are easy to work with while attaining better performance than general-purpose languages. Yet, implementing new DSLs is a burdensome task. As a result, new DSLs are usually embedded in general-purpose languages. While low-level languages like C or C++ often provide better performance as a host than high-level languages like Python, high-level languages are becoming more prevalent in many domains due to their ease and flexibility.
Here, we present Codon, a domain-extensible compiler and DSL framework for high-performance DSLs with Python's syntax and semantics. Codon builds on previous work on ahead-of-time type checking and compilation of Python programs and leverages a novel intermediate representation to easily incorporate domain-specific optimizations and analyses.
We showcase and evaluate several compiler extensions and DSLs for Codon targeting various domains, including bioinformatics, secure multi-party computation, block-based data compression and parallel programming, showing that Codon DSLs can provide benefits of familiar high-level languages and achieve performance typically only seen with low-level languages, thus bridging the gap between performance and usability.
Sun 26 FebDisplayed time zone: Eastern Time (US & Canada) change
10:20 - 11:20 | Domain Specific LanguagesResearch Papers at St. Laurent 3 Chair(s): Martin Kong The Ohio State University | ||
10:20 20mTalk | Building a Compiled Query Engine in Python Research Papers DOI | ||
10:40 20mTalk | Codon: A Compiler for High-Performance Pythonic Applications and DSLs Research Papers Ariya Shajii Exaloop, Gabriel Ramirez Massachusetts Institute of Technology, Haris Smajlović University of Victoria, Jessica Ray Massachusetts Institute of Technology, Bonnie Berger Massachusetts Institute of Technology, Saman Amarasinghe Massachusetts Institute of Technology, Ibrahim Numanagić University of Victoria DOI | ||
11:00 20mTalk | MOD2IR: High-Performance Code Generation for a Biophysically Detailed Neuronal Simulation DSL Research Papers George Mitenkov Imperial College London, Ioannis Magkanaris EPFL, Omar Awile EPFL, Pramod Kumbhar EPFL, Felix Schürmann EPFL, Alastair F. Donaldson Imperial College London DOI |