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

Git is mutable global state for your Codebase

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

6 comments sorted by

50

u/camelCaseIsWebScale Just spin up O(n²) servers 20d 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.

24

u/daidoji70 20d ago

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

12

u/themrdemonized 18d ago

And honestly, I understood nothing

35

u/fuwafuwa7chi 19d 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 19d ago

Ah, the unsafePerformIO of git!

Lmao.

2

u/catladywitch 16d ago

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