| Crates.io | alan-von-palladium |
| lib.rs | alan-von-palladium |
| version | 0.1.1 |
| created_at | 2025-06-20 16:16:11.575231+00 |
| updated_at | 2025-06-20 17:53:42.957279+00 |
| description | The Alan von Palladium Programming Language - A systems programming language combining Turing's correctness with von Neumann's performance |
| homepage | https://github.com/labforadvancedstudy/palladium-a |
| repository | https://github.com/labforadvancedstudy/palladium-a |
| max_upload_size | |
| id | 1719795 |
| size | 1,309,568 |
Palladium is a systems programming language that combines Turing's correctness with von Neumann's performance.
cargo install alan-von-palladium
Create a file hello.pd:
fn main() {
print("Hello, World!");
}
Compile and run:
pdc hello.pd -o hello
./hello
fn main() {
let x: i32 = 42;
let mut y = 10; // Type inference
y = y + 1;
let message: string = "Hello";
let flag: bool = true;
}
fn add(a: i32, b: i32) -> i32 {
a + b
}
fn greet(name: string) {
print("Hello, ");
print(name);
print("!");
}
fn main() {
let x = 10;
if x > 5 {
print("x is greater than 5");
} else {
print("x is 5 or less");
}
for i in 0..10 {
print(i);
}
let mut count = 0;
while count < 5 {
count = count + 1;
}
}
struct Point {
x: i32,
y: i32
}
enum Result<T, E> {
Ok(T),
Err(E)
}
fn main() {
let p = Point { x: 10, y: 20 };
let result: Result<i32, string> = Result::Ok(42);
match result {
Result::Ok(value) => print(value),
Result::Err(error) => print(error)
}
}
fn main() {
let numbers: [i32; 5] = [1, 2, 3, 4, 5];
let first = numbers[0];
for i in 0..5 {
print(numbers[i]);
}
}
# Compile to executable
pdc program.pd -o program
# Compile to C (for debugging)
pdc program.pd -c -o program.c
# With optimizations
pdc program.pd -O3 -o program
# Initialize new project
pdm init my_project
# Add dependency
pdm add some_package
# Build project
pdm build
# Run project
pdm run
The Palladium Language Server provides IDE support:
# Start language server
pls
Supported features:
git clone https://github.com/palladium-lang/palladium
cd palladium
cargo build --release
We welcome contributions! Please see our Contributing Guide for details.
Palladium is dual-licensed under MIT and Apache 2.0. See LICENSE-MIT and LICENSE-APACHE for details.
Special thanks to all contributors who helped achieve 100% bootstrap capability!