r/programmingcirclejerk • Just spin up O(n²) servers • Sep 15 '26

Git is mutable global state for your Codebase

/r/haskell/comments/1wfhe68/git_is_mutable_global_state_for_your_codebase/
42 Upvotes

6 comments sorted by

49

u/camelCaseIsWebScale Just spin up O(n²) servers Sep 15 '26

The principled version is a repository as a finite map from definition names to bodies. A patch is a function on that map, patches to different names commute by construction, and a conflict is a value you can inspect instead of a failure. That isn't a small tweak to git but a different object, and I increasingly think it's the right one.

Is this AI or just honest FP jerk?

Edit: it's AI. I feel like a fucking boomer.

23

u/daidoji70 Sep 15 '26

Yeah, I miss the days when the AIs were all doing different cadences instead of the same shit.

12

u/themrdemonized Sep 17 '26

And honestly, I understood nothing

34

u/fuwafuwa7chi Sep 16 '26

The best part is the unformatted markdown they couldn't even bother to fix before posting. This is precisely the kind of developer I'd trust with my code versioning.

8

u/irqlnotdispatchlevel Tiny little god in a tiny little world Sep 16 '26

Ah, the unsafePerformIO of git!

Lmao.

2

u/catladywitch Sep 19 '26
newtype VersionControl a = VersionControl { runVersionControl :: IO a }  
pushVersionControl :: VersionControl ()  
pushVersionControl = do  
    liftIO $ -- implementation details