Hello! Here's a calculator program I've built using a UI library I've been working on for some time now. This is more of a first step for me to start building more complicated programs that people would actually really use.

The binary ends up being 3.6MB, the first frame shows up in ~300ms (tons of room for improvement), it uses 10.5MB of working set memory after some time idle, and it's all 1,155 lines of jai (Jonathan Blow's programming language).

For comparison, on my machine the Windows Calculator is 18.2MB on disk, takes ~410ms until its buttons show up, and sits at ~97MB of working set memory.

It also showed tons of missing things that the library needed, and some of its code, such as use_input, is definitely going to end up as built-ins for the library.

Download for Windows: https://github.com/gabrielmfern/Calculator/releases/latest/download/Calculator.exe
Code: https://github.com/gabrielmfern/Calculator