Duck Lang is a modern, expressive programming language that combines simplicity with power. Write clean, readable code that just works.
Install Duck Lang on your preferred platform and start coding in minutes.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
1# Install using package manager2curl -fsSL https://duck-lang.org/install.sh | sh34# Or install from source5git clone https://github.com/duck-lang/duck.git6cd duck && make install78# Verify installation9duck --version
A simple program that prints "Hello, World!" to the console. This is the traditional first program that every developer writes when learning a new language.
Learn how to declare and use variables in Duck Lang. Variables are containers that store data values, and Duck Lang provides type safety and immutability by default.
Create reusable functions to organize your code. Functions allow you to break down complex problems into smaller, manageable pieces and promote code reusability.
Iterate through data with for and while loops. Loops are essential for repetitive tasks and processing collections of data efficiently.
Define custom data types with structs. Structs allow you to group related data together and create more organized, maintainable code.
Handle errors gracefully with Result types. Duck Lang uses the Result type to handle errors in a safe and explicit way, preventing runtime crashes.
Join thousands of developers who are already building amazing things with Duck Lang. Get started in minutes with our simple installation process.
One command to install on any platform
Compile and run your code in milliseconds
No null pointers, no data races, no crashes