Doorgaan naar hoofdnavigatie Doorgaan naar zoeken Ga verder naar hoofdinhoud

Scalagna 0.1: Towards multi-tier programming with scala and Scala.js

  • Bob Reynders
  • , Michael Greefs
  • , Dominique Devriese
  • , Frank Piessens

Onderzoeksoutput: Conference paper

4 Citaten (Scopus)

Samenvatting

In the state-of-practice, developing web applications requires dealing with multiple programming languages or codebases. To address this issue, researchers have proposed multi-tier languages such as Hop or Links that support client and server development in a single language and in one codebase. Even if such multi-tier languages are often strongly based on an existing language - for instance Hop is based on Scheme - they are new languages, and require a new compiler. The objective of this paper is to define a multi-tier language as a library-based Scala DSL. Scala already supports compilation to both the Java VM and to JavaScript. The multi-tier language we propose in this paper, Scalagna, combines the existing Scala JVM and JavaScript ecosystems into a single programming model without requiring changes to, or rewrites of the existing Scala compilers. We discuss how this is possible using Scala's excellent support for definining DSLs, and the experimental Scala macro system. We show that Scalagna has reasonable performance, and by porting an existing Eliom application, we provide evidence that Scalagna is as expressive as other established and existing multi-tier languages.

Originele taal-2English
TitelProgramming 2018 Companion - Conference Companion of the 2nd International Conference on Art, Science, and Engineering of Programming
UitgeverijAssociation for Computing Machinery (ACM)
Pagina's69-74
Aantal pagina's6
VolumePart F137691
ISBN van geprinte versie9781450355131
DOI's
StatusPublished - 9 apr. 2018
Evenement2nd International Conference on Art, Science, and Engineering of Programming, Programming 2018 - Nice, France
Duur: 9 apr. 2018 → 12 apr. 2018

Publicatie series

NaamConference Companion of the 2Nd International Conference on Art, Science, and Engineering of Programming

Conference

Conference2nd International Conference on Art, Science, and Engineering of Programming, Programming 2018
Land/RegioFrance
StadNice
Periode9/04/18 → 12/04/18

Vingerafdruk

Duik in de onderzoeksthema's van 'Scalagna 0.1: Towards multi-tier programming with scala and Scala.js'. Samen vormen ze een unieke vingerafdruk.

Citeer dit