'Better C' playgrounds

I have a soft spot for the "better C" family of languages: C3, Hare, Odin, V, and Zig.

I'm not saying these languages are actually better than C — they're just different. But I needed to come up with an umbrella term for them, and "better C" was the only thing that came to mind.

I believe playgrounds and interactive documentation make programming languages easier for more people to learn. That's why I created online sandboxes for these langs. You can try them out below, embed them on your own website, or self-host and customize them.

If you're already familiar with one of these languages, maybe you could even create an interactive guide for it? I'm happy to help if you want to give it a try.

C3 • Hare • Odin • V • Zig • Editors

C3

An ergonomic, safe, and familiar evolution of C.

import std::io;

fn void greet(String name)
{
    io::printfn("Hello, %s!", name);
}

fn void main()
{
    greet("World");
}
Hello, World!

⛫ homepage • αω tutorial • ⚘ community

Hare

A systems programming language designed to be simple, stable, and robust.

use fmt;

fn greet(user: str) void = {
	fmt::printfln("Hello, {}!", user)!;
};

export fn main() void = {
	greet("World");
};
Hello, World!

⛫ homepage • αω tutorial • ⚘ community

Odin

A high-performance, data-oriented systems programming language.

package main

import "core:fmt"

greet :: proc(name: string) {
    fmt.printf("Hello, %s!\n", name)
}

main :: proc() {
    greet("World")
}
Hello, World!

⛫ homepage • αω tutorial • ⚘ community

V

A language with C-level performance and rapid compilation speeds.

fn greet(name string) {
	println('Hello, ${name}!')
}

fn main() {
    greet("World")
}
Hello, World!

⛫ homepage • αω tutorial • ⚘ community

Zig

A language designed for performance and explicit control with powerful metaprogramming.

const std = @import("std");

pub fn greet(name: []const u8) void {
    std.debug.print("Hello, {s}!\n", .{name});
}

pub fn main() void {
    greet("World");
}
Hello, World!

⛫ homepage • αω tutorial • ⚘ community

Editors

If you want to do more than just "hello world," there are also full-size online editors. They're pretty basic, but still can be useful.

★ Subscribe to keep up with new posts.