The Coil Programming Language
marcelle rusu (2025)
githubCoil is a programming language I designed and worked on in 2023-2024. It is extremely concise and emphasizes generic programming
It compiles to JavaScript and works seamlessly in the js ecosystem such as npm, React, Svelte, Vite & Deno
The major projects written in Coil are the compiler itself (1500 lines), and Charisma CSS v1 (2000 lines)
Starting as a experiment in generic programming inspired by smalltalk, clojure and ruby, it quickly became something that i genuinely loved working in and used almost daily for 6+ months
While Coil has now been sunset I am very proud of the design of this language, particularly `Invokable (Custom) Data Structures`, which is a design pattern where data structures behave like functions, allowing you to examine and reuse themselves
The following are a series of examples.
- click on an example to evaluate it
- (?) are explainers for odd syntax or idioms
- press-and-hold `shift` to show all explainers as you open the sections