Solod: Go can be a better C

koeng1 pts0 comments

Solod

Solod: Go can be a better C

Solod (So ) is a strict subset of Go that translates to regular C.

Highlights

Go in, C out. You write regular Go code and get readable C11 as output.

Zero runtime. No garbage collection, no reference counting, no hidden allocations.

Rich standard library. Use familiar types and functions ported from Go's stdlib.

Native C interop. Call C from So and So from C — no CGO, no overhead.

Go tooling works out of the box. Syntax highlighting, LSP, linting and "go test".

So supports structs, methods, interfaces, slices, maps, multiple returns,<br>and defer. Everything is stack-allocated by default; heap is opt-in through<br>the standard library. There is limited support for generics, and concurrency<br>is provided by the standard library instead of being built into the language.

So is for Go developers who want systems-level control without learning a new language.<br>And for C programmers who like Go's safety, structure, and tooling.

Playground

Here's some Go code in a file main.go.<br>Click Run to execute it, or Translate to see the<br>generated C code (main.h + main.c).

package main

import "solod.dev/so/time"

type Person struct {<br>Name string<br>Age int<br>Nums [3]int

func (p *Person) Sleep() int {<br>p.Age += 1<br>return p.Age

func main() {<br>p := Person{Name: "Alice", Age: 30}<br>p.Sleep()<br>println(p.Name, "is now", p.Age, "years old.")

p.Nums[0] = 42<br>println("1st lucky number is", p.Nums[0])

year := time.Now().Year()<br>println("The year is", year)

Getting started

Even though So isn't ready for production yet, I encourage you to try<br>it out on a hobby project or just keep an eye on it if you like the concept.

Installation and<br>usage<br>to work with So locally.

Language<br>and<br>standard library<br>guides for a quick overview.

So by example<br>for a hands-on introduction.

Source code<br>to see the internals or contribute.

Current status<br>v0.3 in progress

As of July 2026, So is in active development.<br>The latest release is<br>0.2,<br>which adds support for networking, WebAssembly, and freestanding mode.<br>The next release,<br>0.3,<br>will add concurrency support.

If you have any questions, feel free to reach out<br>on GitHub.

🧑‍💻 Anton Zhiyanov

solod main code standard library year

Related Articles