A git implementation in pure JavaScript
github.com
A git implementation in pure JavaScript
1–10 of 38 posts
Re: A git implementation in pure JavaScript
#2FYI, it only does reading but it's still very impressive. I've tried out the demo and it just works against small repos. It's very slow against larger ones.
Re: A git implementation in pure JavaScript
#3why?
Re: A git implementation in pure JavaScript
#4why?
Because you can. I've made far more useless stuff simply because I felt it would be interesting or a challenge to make. Which in turn are usually the projects I learn the most from.
Re: A git implementation in pure JavaScript
#5Re: A git implementation in pure JavaScript
#6why?
I've never understood why this question is asked on Hacker News. Can you really not imagine why someone would try to do this, even as just an intellectual exercise?
Re: A git implementation in pure JavaScript
#7Awesome, when this can do writing (presumably with an in-memory store for now), I think there will be some really interesting in-browser version control uses.
Re: A git implementation in pure JavaScript
#8why?
I've never understood why this question is asked on Hacker News. Can you really not imagine why someone would try to do this, even as just an intellectual exercise?
I've actually been slowly getting accustomed to this. Before, I used to just drink my hateorade when it came to things like this, but ever since I've started to visit HN more frequently, my tolerance has expanded.
Re: A git implementation in pure JavaScript
#9I thought about doing an in-browser git implementation for enabling offline mode in a webapp. Doing things with git would make some really interesting sync scenarios possible. Looking at what was involved though, I think I'm glad I didn't go down this particular rabbit-hole.
Re: A git implementation in pure JavaScript
#10FYI, it only does reading but it's still very impressive. I've tried out the demo and it just works against small repos. It's very slow against larger ones.
Yeah. I've thought of a few things to do about that. For instance, we could optimize a repo to have pack files that work well for the browser. [edit] also there's a load of optimization that can be done on the binary parsing. I haven't even started that yet.