Re:Ugit - DIY Git in Python
by iheredia on Sunday October 03, 2021 @05:10AM
(#28735672)
Anyone knows of similar projects in another languages? I've been wanting to understand some important tools (like git in this case) and also learn some languages I've been pushing back. Would love to find more of these
[ Parent
| on HN ]
Re:Ugit - DIY Git in Python
by rohitpaulk on Sunday October 03, 2021 @06:07AM
(#28735908)
There's a long list here: https://github.com/danistefanovic/build-your-own-x.
Also, https://codecrafters.io/challenges/git supports multiple languages (I'm the author). Many folks that try this challenge do it for the same reason you mentioned: to learn about a tool and learn a new language at the same time.
Re:Ugit - DIY Git in Python
by sc4ramouche on Sunday October 03, 2021 @07:09AM
(#28736212)
I was thinking the same and found the book that teaches to build Git in Ruby, although I haven’t checked it out yet: https://shop.jcoglan.com/building-git/
I followed along to that book in Rust and found it excellent.
There's https://git.sr.ht/~sircmpwn/shit, written in posix sh. It doesn't implement any of the porcelain though.
Re:Ugit - DIY Git in Python
by fiddlerwoaroof on Sunday October 03, 2021 @12:48PM
(#28738518)
I’ve been slowly working on implementing git in Common Lisp: https://github.com/fiddlerwoaroof/cl-git
I think I have most of the object type parsers done for loose objects and pack files, just need to finish implementing the delta ref decoding algorithm.
The OpenBSD people are working on Game of Trees: http://gameoftrees.org/
And I wrote the one that 9front uses, which is self hosting (client, server, and web ui all run off it): http://shithub.us/ori/git9/HEAD/f.html
Re:Ugit - DIY Git in Python
by JoshTriplett on Sunday October 03, 2021 @11:38AM
(#28738001)
For Rust, see https://github.com/Byron/gitoxide , which provides both a pure Rust library and a command-line tool built atop that library.
Exactly, Typescript or C# would have been very nice.
edit: found some for JS, not TS but still something: