OCaml Type Systems Functional Programming Infrastructure Stategraph

Josh Pollara • November 6th, 2025

TL;DR

$ cat why-ocaml.tldr

• Stategraph manages Terraform state, so correctness isn’t optional

• Strongly-typed data structures catch field errors at compile time

• Type-safe SQL queries prevent schema drift before deployment

• Immutability by default eliminates race conditions

• PPX generates correct JSON serialization automatically

We’re building infrastructure that manages other people’s infrastructure. State corruption can’t be “rare.” It has to be impossible. That’s why we chose OCaml.

OCaml logo OCaml logo

Stategraph stores Terra…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help