Back to search

Athens University Economics and Business (AUEB)

Ενσωμάτωση γλωσσών ειδικού πεδίου με γενικές γλώσσες προγραμματισμού γενικού σκοπού

Abstract

dc:description

Domain-specific Languages (DSL), also known as micro-languages or little languages, are programming languages designed to specifically solve problems within a particular do- main. They are used to improve the efficiency of the software development process. Well-known DSLs include regular expressions, markdown and SQL. On the contrary, General-purpose languages (GPL) have a wider scope. They provide a set of processing capabilities applicable to different problem domains. Typical examples of GPLs are Java, C++ and Scala. In modern software engineering approaches, DSLs are often used together with GPLs. For example, the integration of SQL with various GPLs constitutes a field that drew the attention of researchers and of practitioners. For the case of Java, the language integration is executed with the use of a JDBC (Java Database Connectivity) application library. The programmer has to pass the SQL query to the database as a string. Through this process, the Java compiler is completely oblivious to the SQL language contained within the Java code with many SQL syntax and type errors detected at runtime. Such errors remain undiscovered, even with extensive testing during the development process. There are more sophisticated methods; many of them use common compiler, metaprogramming and generative programming techniques and methodologies. All those approaches suffer from one or more of the following weaknesses: - They deal with the problem for only one DSL-GPL pair. The integration of other DSLs is either not supported or supported via complex mechanisms. - They recommend complex solutions that syntactically burden mainstream programming languages, obliging programmers to remember difficult semantics that are not aligned with the language philosophy and best practices. - They are not practical, since they offer new programming languages that deal with the problem efficiently, and this usually requires a complete rewrite of complex DSL systems. The proposed programming languages are an extension of an existing language, or a language with a completely new syntax. This thesis introduces J% (j-mod), a DSL-aware extension of the Java programming language. J% provides an extensible way to embed DSLs into Java in the form of compiler modules. So far, it supports SQL and regular expressions. It facilitates existing Java DSL APIs, for example SQL support uses the standard JDBC application library. However, this is not a requirement and a module can translate DSL code to the host language or even directly to JVM bytecode. It introduces the following new characteristics: - Modular Design - Static Typing- DSL Syntax Validation- Retain DSL Syntax- Pragmatic- Domain-specific Optimisations

Degree

thesis:*
Grantor dc:publisher
Athens University Economics and Business (AUEB)
Year dc:date
2015

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Karakoidas, Vassilios
  • Καρακόιδας, Βασίλειος

Subjects

dc:subject × 12

Rights

dc:rights
Statement dc:rights
  • BY_NC_SA
Language dc:language
gre

Identifiers

dc:identifier.*
Identifier
10.12681/eadd/43147

Chain of custody

source
Harvested from
Greek National Archive of PhD Theses
Base URL
phdtheses.ekt.gr/eadd_oai/request
Last updated
2026-11-18
Source record
OAI-PMH GetRecord
citation

Karakoidas, Vassilios; Καρακόιδας, Βασίλειος. Ενσωμάτωση γλωσσών ειδικού πεδίου με γενικές γλώσσες προγραμματισμού γενικού σκοπού. Athens University Economics and Business (AUEB), 2015. http://hdl.handle.net/10442/hedi/43147