r/ProgrammingLanguages • u/TheOmegaCarrot • Mar 24 '26
Frost: a simple, safe, functional scripting language
https://github.com/TheOmegaCarrot/Frost/tree/mainI made a scripting language!
This has been a passion project for me for the past couple months, and I’ve had a lot of fun designing and implementing this.
This is *not* stable yet, and breaking changes are still planned, but this is at a point where it works quite well!
Frost is a functional scripting language built on immutability, safety, and clean, terse syntax. It’s primarily been built to cater to how I like solve problems with code.
This aims to be a clean, clear C++26 codebase, with a strong internal design philosophy of safety and extensibility.
I’m posting mostly to see what y’all think of this!
The README has links to a short introduction, as well as more thorough documentation.
AI usage disclosure: I’ve used AI to help keep the documentation style/tone consistent (if dry), implementing a lot of the very tedious tests behind this, apply some simple but tedious and mechanical changes, and a couple little ancillary things, all with very heavy oversight. But the core architecture is all human-designed and human-built.
View all comments
Show parent comment
1
u/TheOmegaCarrot Mar 24 '26
I decided to keep the type system really simple. There’s only 8 types: Null, Int, Float, Bool, Array, Map, and Function
Null is just a very familiar name for “there is no value here”
Could’ve called it Unit, but that’d just be less familiar
There’s not a formal “Maybe” type, nor real “compound types”, but there is a bit of a convention to use a map to represent a Result-like structure
One thing that’s planned is to build on this further