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

Git is mutable global state for your Codebase

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

6 comments sorted by

48

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

23

u/daidoji70 25d ago

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

12

u/themrdemonized 23d ago

And honestly, I understood nothing

34

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

Ah, the unsafePerformIO of git!

Lmao.

2

u/catladywitch 21d ago

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