A minimal progress bar for day 7 of #genuary. The real progress was that this is made with the SDL2 bindings rather than what I've done to date which is using the X11 based OCaml Graphics library.

At some point I want to move my little fantasy console library over to SDL to remove the X11 dependancy on non-linux platforms, and SDL feels like the best bet, but I've never used it before.

My thanks to @patricoferris who helped me wrangle the stacked optional results here.

https://github.com/mdales/ocaml_sdltest/blob/main/bin/main.ml

ocaml_sdltest/bin/main.ml at main · mdales/ocaml_sdltest

Testing SDL2 with OCaml. Contribute to mdales/ocaml_sdltest development by creating an account on GitHub.

GitHub
Inspired by @ToBach my #genuary progress bar has sprung a leak :)
@mdales @ToBach
My progress bar tends to spring a leak about three quarters along its length.
@mdales Happy to help ! Reminded me that I actually quite like OCaml which is good because it's the only language I know !