Show HN: AGL a toy language that compiles to Go

Show HN (score: 77)
Found: June 25, 2025
ID: 5

Description

Other
Show HN: AGL a toy language that compiles to Go I spent the past 2 weeks making this toy programming language.

I basically forked the Go scanner/parser, and changed the syntax to have functions return a single value. This enable proper Result/Option type to be used as well as propagating errors with an operator.

I also wanted to have short "type inferred" anonymous functions to be able to use functions like Map/Reduce/Filter, without having to use 100 characters to specify the types.

More from Show

Show HN: Rocket Launch and Orbit Simulator

Show HN: Rocket Launch and Orbit Simulator I (17y&#x2F;o) have been developing a rocket launch simulation that allows the user to explore what it&#x27;s like launching a rocket from earth and putting it into orbit. This idea originally started as an educational simulation but as i&#x27;ve gone more down the rabbit hole the more i&#x27;ve wanted to make it realistic. The problem is that I&#x27;ve never had a formal orbital mechanics class or anything like that so I don&#x27;t know what I&#x27;m missing, what I currently have implemented is:<p><pre><code> Variable gravity Variable Atmospheric drag (US Standard Atmosphere 1976) Multi-stage rockets Closed-loop guidance &#x2F; pitch programs (works well within ranges 350km to 600km) Orbital prediction and thrusting options to change your orbit. </code></pre> The feedback I&#x27;m looking for is: UI improvements and possible future physics implementations that I can work on.<p>Current code and physics can be found at: <a href="https:&#x2F;&#x2F;github.com&#x2F;donutTheJedi&#x2F;Rocket-Launch-Simulation" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;donutTheJedi&#x2F;Rocket-Launch-Simulation</a>

No other tools from this source yet.