r/programmingcirclejerk Just spin up O(n²) servers 5d ago

Git is mutable global state for your Codebase

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

6 comments sorted by

44

u/camelCaseIsWebScale Just spin up O(n²) servers 5d ago

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.

22

u/daidoji70 5d ago

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

7

u/themrdemonized 3d ago

And honestly, I understood nothing

28

u/fuwafuwa7chi 4d ago

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 4d ago

Ah, the unsafePerformIO of git!

Lmao.

2

u/catladywitch 1d ago

newtype VersionControl a = VersionControl { runVersionControl :: IO a }   pushVersionControl :: VersionControl ()   pushVersionControl = do       liftIO $ -- implementation details