[BLOG] Rewriting Slipshow in OCaml: The undo-able monad

Hello OCamlers,

I have recently rewritten Slipshow’s engine from JavaScript to OCaml.
It turns out this rewriting was very satisfying, and many niceties came out of it.
I have written a blog post about a specifically interesting one: the use of custom let operators with the “undo-able” monad. I hope you enjoy the read!

The blog post: How I fixed Slipshow’s worst flaw using OCaml and a monad.

Cheers!

27 Likes

That was fun to read! And nice to hear that Slipshow was funded and is getting attention :partying_face: I used Slipshow for a presentation last year, and it was wonderful!

3 Likes

Completely agree with @reynir, congratulations @panglesd! I have a presentation coming up next week and it will be a slipshow :))

2 Likes

Reading was both enlightening and fun, thanks !
This may also provide a “light” introduction to the State monad (at least, it was useful for me to view it this may).
A question, en passant, which tool did you use to write the blog itself. Having executable code blocks (with revert possibility) is very helpful.

1 Like

Thanks a lot, really appreciate to hear a positive feedback! :heart:

I wrote most of the blog post in markdown, converted it in HTML, and then ended up editing the HTML for some reason…
For the executable code blocks, I quickly hacked my own tool. I’ve now made it available as GitHub - panglesd/blogaml: A prototype to write blog posts with executable ocaml code blocks, in case it’s helpful to someone, thanks for pushing me to do this!

(I’m sure there are better alternatives, and even more alternatives to come!)

1 Like

You’re welcome :slightly_smiling_face:
Thanks for blogaml and the links.