ePrints.FRI - University of Ljubljana, Faculty of Computer and Information Science

A compiler for Haskell Core targeting JavaScript

Andraž Bajt (2014) A compiler for Haskell Core targeting JavaScript. EngD thesis.

[img]
Preview
PDF
Download (446Kb)

    Abstract

    We designed and implemented a compiler for Haskell's immediate representation Haskell Core to JavaScript. Purpose of this compiler is the ability to use high level Haskell to develop JavaScript applications. We introduce ups and downs of both languages as well as the gap between them. We present features and semantics of the language Haskell Core and implementation of compilation of separate constructs in more detail. We explain non-strictness and its simulation in a strict language, define a system and representation for algebraic datatypes as well as pattern matching. We designed immediate representation to serve as a step between a non-strict functional language and a strict imperative one. We also developed the required runtime system for JavaScript and tested the compiled programs in several web browsers.

    Item Type: Thesis (EngD thesis)
    Keywords: compiler, Haskell, Haskell Core, JavaScript, functional programming
    Number of Pages: 74
    Language of Content: Slovenian
    Mentor / Comentors:
    Name and SurnameIDFunction
    doc. dr. Matjaž Kukar267Mentor
    Link to COBISS: http://www.cobiss.si/scripts/cobiss?command=search&base=51012&select=(ID=1536084931)
    Institution: University of Ljubljana
    Department: Faculty of Computer and Information Science
    Item ID: 2719
    Date Deposited: 19 Sep 2014 09:56
    Last Modified: 02 Dec 2014 11:43
    URI: http://eprints.fri.uni-lj.si/id/eprint/2719

    Actions (login required)

    View Item