Documentation · Website · Community
This is the main Duckling development repository of the Duckling programming language – a modern, in-development programming language focusing on bridging scripting and compiled worlds together, providing fast prototyping and low friction while maintaining scalability and performance.
Duckling is an in-development programming language. We encourage you to try it out, provide feedback and get involved, but at this point you should still expect the compiler and toolchain to not be stable, features to be missing and breaking changes to be introduced frequently.
Duckling is currently in-development. The first ideas for the language appeared in 2021, and proper development started in 2023. Our focus and development status as of December 2025, divided by the main sub-parts of the project is as follows.
-
Documentation — We have stabilized initial documentation of the language, covering most important features and setting a vision for a 1.0 version of the language. A lot of work still has to be done, but we are not focusing on the docs right now. Instead, we are prioritizing the implementation of the compiler and other tools.
-
Compiler — The Duckling compiler —
duckc— is currently our main priority. We have done most of the architectural groundwork and are now focusing on language features. There are still a few features missing before one can comfortably program in Duckling. However, we have already implemented some of the features that make Duckling stand out, such as fine-grained incremental compilation or compile time evaluation based on our virtual machine. -
Virtual Machine — The Duckling Virtual Machine (DVM) is being developed alongside the compiler and is central to a large part of Duckling's goals. As of today, Duckling's compiler can emit its bytecode and DVM already serves as a compile-time execution engine, but there are a lot of core functionalities yet to be developed. Currently, we are focusing on the development of such features including JIT compilation and fully safe execution. For the time being, LLVM will remain the primary backend of the compiler.
-
Language Server — Duckling's language server underwent a lot of fundamental changes in the past, but has now settled on its final architecture. The current design is based almost entirely on the statefulness of Duckling's compiler. As a result, it has potential to streamline future development and make the server extremely performant on large codebases. Right now, we are focusing on finalizing said architecture and after that we will shift focus to developing and stabilizing the most important features. In terms of editor support, we maintain a VSCode extension, and we will likely not focus on other editors until the core aspects of the language server are set in stone.
-
Package Manager — QuackPack is Duckling's package manager. It's still in its very early stage, and we are currently in the process of rewriting and reshaping it. Our current priority is to create a minimal working solution that seamlessly integrates with other tooling. Together with QuackPack, we are also developing a relatively small tool called
duck, which serves as a main CLI for the entire ecosystem.
The project focuses on creating a language that scales seamlessly — from small scripts to large projects. We want the language to provide a comfortable scripting and prototyping experience, and to remain frictionless as the project grows. This introduces a set of seemingly contradicting goals. For example, the language has to be compiled to machine code, but at the same time it must be usable in notebooks (like Jupyter). We tackle such challenges not only by proper language and toolset design, but also through robust technological improvements that unlock new possibilities currently beyond the reach of most mainstream languages. This includes:
-
Stateful compilation — The
duckccompiler is not built around the traditional paradigm of black-box, pass-based compilation in which each compilation process performs a single, atomic operation. Rather it is a stateful, query-based compiler that can store and modify live state within memory and on disk. This opens up essential qualities that enable features such as fine-grained incremental compilation, gradual compilation in a REPL environment or acting directly as a language server. -
CPU-DVM dual architecture — Duckling's compiler targets two backends: the dedicated Duckling Virtual Machine and LLVM IR. The former acts as a primary development environment, compile time evaluation engine, debugger, and script execution engine. On the other hand, the latter enables Duckling to be compiled to highly performant code on a wide range of architectures.
You can read more about Duckling's technology and goals in the Documentation and on the Duckling website.
User documentation of the language and related tools can be found at https://docs.duckling.pl/.
See CONTRIBUTING.md for details.
Duckling is distributed under the DuckType Compiler License (Version 1.0).
See LICENSE.md for details.