International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 186 - Number 76 |
Year of Publication: 2025 |
Authors: Dineth Mallawarachchi, Yasas Jayaweera |
![]() |
Dineth Mallawarachchi, Yasas Jayaweera . Design and Implementation of Wyltl: An Imperative, Embeddable and Portable Programming Language. International Journal of Computer Applications. 186, 76 ( Apr 2025), 22-29. DOI=10.5120/ijca2025924669
Wyltl is a programming language with a strong focus on simplicity, portability and functionality. It supports core imperative programming features such as variables, conditionals, loops, functions, and closures. Additionally, Wyltl provides a rich standard library with support for mathematical, date / time, JavaScript Interoperability, i /o, type conversion and more! Its implementation allows Wyltl code to be executed on a variety of platforms such as Windows, Linux, Web (via Web Assembly), and allows Wyltl to be used as an embedded programming language for applications written using the Go programming language. Wyltl offers two reference implementations, a tree walking interpreter [3], and a stack based virtual machine. The primary distinction between the two is execution speed. Executing compiled Wyltl code through the virtual machine is 1.5x - 4x faster depending on the Wyltl code that is executed. However, developers who wish to extend Wyltl with new language features will find the Interpreter easier to modify. Wyltl includes a compilation format named ‘wyltlc’ which allows developers to compile their existing code to an intermediate format which can be executed with the Wyltl stack based virtual machine. This paper provides a breakdown of the design of the Wyltl language and the implementation of its interpreter, compiler and virtual machine.