Duck Lang Logoduck-lang

Quack your way to better code

Duck Lang is a modern, expressive programming language that combines simplicity with power. Write clean, readable code that just works.

main.duck
Loading...

Get Started with Duck Lang

Install Duck Lang on your preferred platform and start coding in minutes.

Install Duck Lang on Linux

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.

Terminal
1# Install using package manager
2curl -fsSL https://duck-lang.org/install.sh | sh
3
4# Or install from source
5git clone https://github.com/duck-lang/duck.git
6cd duck && make install
7
8# Verify installation
9duck --version

Hello World

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.

main.duck
Loading...

Variables

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.

main.duck
Loading...

Functions

Create reusable functions to organize your code. Functions allow you to break down complex problems into smaller, manageable pieces and promote code reusability.

main.duck
Loading...

Loops

Iterate through data with for and while loops. Loops are essential for repetitive tasks and processing collections of data efficiently.

main.duck
Loading...

Structs

Define custom data types with structs. Structs allow you to group related data together and create more organized, maintainable code.

main.duck
Loading...

Error Handling

Handle errors gracefully with Result types. Duck Lang uses the Result type to handle errors in a safe and explicit way, preventing runtime crashes.

main.duck
Loading...

Ready to start coding?

Join thousands of developers who are already building amazing things with Duck Lang. Get started in minutes with our simple installation process.

View on GitHub

Easy Installation

One command to install on any platform

Lightning Fast

Compile and run your code in milliseconds

Memory Safe

No null pointers, no data races, no crashes