Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Compiling structural types on the JVM: a comparison of reflective and generative techniques from Scala's perspective
 
conference paper

Compiling structural types on the JVM: a comparison of reflective and generative techniques from Scala's perspective

Dubochet, Gilles  
•
Odersky, Martin  
Rogers, Ian
2009
Proceedings of the 4th workshop on the Implementation, Compilation, Optimization of Object-Oriented Languages and Programming Systems
4th workshop on the Implementation, Compilation, Optimization of Object-Oriented Languages and Programming Systems

This article describes Scala's compilation technique of structural types for the JVM. The technique uses Java reflection and polymorphic inline caches. Performance measurements of this technique are presented and analysed. Further measurements compare Scala's reflective technique with the "generative" technique used by Whiteoak to compile structural types. The article ends with a comparison of reflective and generative techniques for compiling structural types. It concludes that generative techniques may, in specific cases, exhibit higher performances than reflective approaches, but that reflective techniques are easier to implement and have fewer restrictions.

  • Files
  • Details
  • Metrics
Loading...
Thumbnail Image
Name

2009_structural.pdf

Access type

openaccess

Size

184.59 KB

Format

Adobe PDF

Checksum (MD5)

cc8f0d7fe348a948742b7df0165042e8

Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés