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. JavaScript as an Embedded DSL
 
conference paper

JavaScript as an Embedded DSL

Kossakowski, Grzegorz
•
Amin, Nada  
•
Rompf, Tiark  
Show more
Noble, James
2012
ECOOP 2012 – Object-Oriented Programming
26th European Conference on Object-Oriented Programming

Developing rich web applications requires mastering different environments on the client and server sides. While there is considerable choice on the server-side, the client-side is tied to JavaScript, which poses substantial software engineering challenges, such as moving or sharing pieces of code between the environments. We embed JavaScript as a DSL in Scala, using Lightweight Modular Staging. DSL code can be compiled to JavaScript or executed as part of the server application. We use features of the host language to make client-side programming safer and more convenient. We use gradual typing to interface typed DSL programs with existing JavaScript APIs. We exploit a selective CPS transform already available in the host language to provide a compelling abstraction over asynchronous callback-driven programming in our DSL.

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

js-scala-ecoop.pdf

Type

Postprint

Version

Accepted version

Access type

openaccess

Size

512.16 KB

Format

Adobe PDF

Checksum (MD5)

1da140030c6f43be4d118482f04e5b25

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