runtime support
Recently Published Documents


TOTAL DOCUMENTS

144
(FIVE YEARS 12)

H-INDEX

17
(FIVE YEARS 2)

2021 ◽  
Vol 5 (OOPSLA) ◽  
pp. 1-28
Author(s):  
Georgios Karachalias ◽  
Filip Koprivec ◽  
Matija Pretnar ◽  
Tom Schrijvers

The popularity of algebraic effect handlers as a programming language feature for user-defined computational effects is steadily growing. Yet, even though efficient runtime representations have already been studied, most handler-based programs are still much slower than hand-written code. This paper shows that the performance gap can be drastically narrowed (in some cases even closed) by means of type-and-effect directed optimising compilation. Our approach consists of source-to-source transformations in two phases of the compilation pipeline. Firstly, elementary rewrites, aided by judicious function specialisation, exploit the explicit type and effect information of the compiler’s core language to aggressively reduce handler applications. Secondly, after erasing the effect information further rewrites in the backend of the compiler emit tight code. This work comes with a practical implementation: an optimising compiler from Eff, an ML style language with algebraic effect handlers, to OCaml. Experimental evaluation with this implementation demonstrates that in a number of benchmarks, our approach eliminates much of the overhead of handlers, outperforms capability-passing style compilation and yields competitive performance compared to hand-written OCaml code as well Multicore OCaml’s dedicated runtime support.


2021 ◽  
Author(s):  
Aditya Dhakal ◽  
Sameer G Kulkarni ◽  
K. K. Ramakrishnan
Keyword(s):  

2021 ◽  
pp. 114857
Author(s):  
Irene Barba ◽  
Andres Jiménez-Ramírez ◽  
Manfred Reichert ◽  
Carmelo Del Valle ◽  
Barbara Weber

Sign in / Sign up

Export Citation Format

Share Document