← All projects
Project record1 mention
Originally shared on Hacker News

AGL

A programming language that compiles to Go, designed to behave like TypeScript for Go so existing Go programs compile out of the box while enabling new syntax. It features built-in Set, Enum, Tuple, and lambda expressions, error propagation operators, a working LSP server, and sourcemap generation that maps runtime stacktraces back to the original .agl source lines. The author has ported Advent of Code 2024 solutions into the language as examples.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. AGL

    A programming language that compiles to Go, designed to behave like TypeScript for Go so existing Go programs compile out of the box while enabling new syntax. It features built-in Set, Enum, Tuple, and lambda expressions, error propagation operators, a working LSP server, and sourcemap generation that maps runtime stacktraces back to the original .agl source lines. The author has ported Advent of Code 2024 solutions into the language as examples.

    Posted by @alain_gilbert · Original source ↗

    Source text · @alain_gilbert · · Source ↗

    I'm working on this programming language that compiles to Go. The goal is to have it behave like typescript for Go, where any Go program would compile out of the box, but then you can use the new syntax.