MHN

Doo: A Simple, Fast Programming Language Built on Rust and LLVM

15 points by nynrathod·392 days ago·Show in HN

Hey HN!

https://github.com/nynrathod/doolang

I'm Nayan, and I'm stoked to share Doo, my project turned side hustle for a lang that's dead simple to write but punches like Rust. Think clean syntax (inspired by Rust but less boilerplate), auto memory mgmt via ref counting (no GC pauses), rich types, and it spits out standalone native bins via LLVM/clang.

Why Doo? Coding should feel fun, not fighty. No more wrestling with lifetimes or macros just to get a "hello world" but still safe and speedy.

Quick tour (hello.doo):

fn main() {
let msg = "Hey HN!";
print(msg);
}

Static Type System: Compile-time type checking with type inference
Automatic Memory Management: Reference counting for data types
Rich Data Types: Integers, strings, booleans, arrays, maps, and tuples
Module System: Organize code with a hierarchical import system
Control Flow: Conditional statements, for loops, and range iteration
Function System: First-class functions with parameter and return type annotations
Native Compilation: Compiles to standalone executables using clang/lld

Repo: https://github.com/nynrathod/doolang (stars/pulls welcome!)

What do you think? Too Rust-y? Missing a killer feature?

Add a comment on Hacker News →
1 of 27 comments
  1. Very cool. I'm always on the lookout for languages - especially beginner-friendly ones - that are good candidates for building Wasm Components (my use case is a fantasy console with Wasm game cartridges).

    Have you given any thought to supporting Wasm Components as a build target?