In this work, we study the JavaScript sealed classes, which differ from regular classes in a few constraints that allow ahead-of-time (aot) compilers to implement them more efficiently. Sealed classes are compatible with the rest of the language so that they can be combined with all other JS structures, including regular classes, and can be gradually integrated into existing code bases.
We present the design of the sealed classes and study their implementation in the hopc aot compiler. We present an in-depth analysis of the speed of sealed classes compared to regular classes. Do do so, we assembled a new suite of benchmarks that focuses on the efficiency of class implementations. On this suite, we measured that sealed classes provide an average speedup of 19%. The more classes and methods the programs use, the greater the speedup. For the most favorable test that uses them intensively, we measured a speedup of 56%.
Wed 8 JunDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
15:30 - 17:00 | Language DesignResearch Papers / Expert Discussion at Aurora Borealis 1 Chair(s): Simon Fowler University of Glasgow | ||
15:30 30mPanel | Programming languages and semanticsExpert Discussion Expert Discussion P: Alexander J. Summers University of British Columbia, P: Gorel Hedin Lund University, A: Guido Salvaneschi University of St. Gallen | ||
16:00 20mTalk | Prisma: A tierless language for enforcing contract-client protocols in decentralized appsVCOOP 2022ECOOP 2022 Research Papers David Richter Technical University of Darmstadt, David Kretzler Technical University of Darmstadt, Pascal Weisenburger University of St. Gallen, Guido Salvaneschi University of St. Gallen, Sebastian Faust Technical University of Darmstadt, Mira Mezini TU Darmstadt Pre-print Media Attached | ||
16:20 20mTalk | JavaScript Sealed ClassesECOOP 2022 Research Papers Manuel Serrano Inria | ||
16:40 20mTalk | Functional programming for distributed systems with XCVCOOP 2022ECOOP 2022 Research Papers Giorgio Audrito Università di Torino, Roberto Casadei University of Bologna, Italy, Ferruccio Damiani University of Turin, Guido Salvaneschi University of St. Gallen, Mirko Viroli Alma Mater Studiorum - Università di Bologna Pre-print |