Back to search

Chalmers University of Technology

Gradual Typing for a More Pure JavaScript

Abstract

dc:description.abstract

Dynamically typed languages have surged in popularity in recent years, owing totheir flexibility and ease of use. However, for projects of a certain size dynamictyping can cause problems of maintainability as refactoring becomes increas-ingly difficult. One proposed solution is the use of gradual type systems, wherestatic type annotations are optional. This results in providing the best of bothworlds. The purpose of this project is to create a gradual type system on topof JavaScript. Another goal is to explore the possibility of making guaranteesabout function purity and immutability using the type system. The types andtheir relations are defined and a basic type checker is implemented to confirmthe ideas. Extending type systems to be aware of side effects makes it easier towrite safer software. It is concluded that all of this is possible and reasonableto do in JavaScript.

Degree

thesis:*
Level thesis:degree_level
M2
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2019

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • ERLANDSSON, JAKOB
  • NYGREN, ERIK
  • VIGREN, OSKAR
  • WESTBERG, ANTON
Advisor dc:contributor.supervisor
  • Norell, Ulf
Committee member dc:contributor.committeemember
  • Ahrendt, Wolfgang

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
DATX02

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

ERLANDSSON, JAKOB; NYGREN, ERIK; VIGREN, OSKAR; WESTBERG, ANTON. Gradual Typing for a More Pure JavaScript. M2 thesis, 2019. https://hdl.handle.net/20.500.12380/301910