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. Reports, Documentation, and Standards
  4. Yin-Yang: Concealing the Deep Embedding of DSLs
 
report

Yin-Yang: Concealing the Deep Embedding of DSLs

Jovanovic, Vojin  
•
Shaikhha, Amir  
•
Stucki, Sandro  
Show more
2014

Deeply embedded domain-specific languages (EDSLs) intrinsically compromise programmer experience for improved program performance. Shallow EDSLs complement them by trading program performance for good programmer experience. We present Yin-Yang, a framework for DSL embedding that uses Scala macros to reliably translate shallow EDSL programs to the corresponding deep EDSL programs. The translation allows program prototyping and development in the user friendly shallow embedding, while the corresponding deep embedding is used where performance is important. The reliability of the translation completely conceals the deep embedding from the user. For the DSL author, Yin-Yang automatically generates the deep DSL embeddings from their shallow counterparts by reusing the core translation. This obviates the need for code duplication and leads to reliability by construction.

  • Details
  • Metrics
Type
report
Author(s)
Jovanovic, Vojin  
Shaikhha, Amir  
Stucki, Sandro  
NIkolaev, Vladimir
Koch, Christoph  
Odersky, Martin  
Date Issued

2014

Subjects

Embedded Domain-Specific Languages

•

Deep Embedding

•

Shallow Embedding

•

Reflection

•

Macros

Written at

EPFL

EPFL units
LAMP1  
Available on Infoscience
August 8, 2014
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/105445
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