News for hackers. Stuff that matters.
Re:A git implementation in pure JavaScript by lurbina on Sunday July 10, 2011 @03:49AM (#2747291)
why?
Re:A git implementation in pure JavaScript by hvs on Sunday July 10, 2011 @03:57AM (#2747306)
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 by tzs on Sunday July 10, 2011 @05:52AM (#2747444)
Perhaps he has sufficient imagination to come up with two or three possible reasons why someone might do this, and hence is asking so as to find out which is the actual reason.

By asking, he might learn something, especially if the reason turns out to be one he had not thought of.

Re:A git implementation in pure JavaScript by coderdude on Sunday July 10, 2011 @07:25AM (#2747576)
You're probably just playing the devil's advocate, but it's plainly obvious that the guy was just being rude. If he was actually interested in an "I can see so many reasons you'd make this" kind of way he wouldn't have been so curt.
Re:A git implementation in pure JavaScript by tzs on Sunday July 10, 2011 @04:48PM (#2748588)
I don't see that "why?" is curt. It is succinct.

Perhaps in this particular case the questioner WAS trying to be rude, but that's not relevant to my reply to hvs. Note hvs said he could not understand why this question is asked on HN. He was talking about people in general who ask "why", not this particular questioner.

I'm astonished that anyone would be surprised that on HN, of all places, that people would be curious about why someone is doing something. One of the defining characters of hackers is curiosity.

Re:A git implementation in pure JavaScript by ineedtosleep on Sunday July 10, 2011 @04:28AM (#2747339)
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 by rjh29 on Sunday July 10, 2011 @05:15AM (#2747407)
Depends if porting code from one procedural language to another is an "intellectual exercise" (it usually isn't). Compare with the x86 emulator written in JS that we saw a few months back.

That said, viewing a git repo in a web browser by querying the repo over HTTP directly is pretty damn cool.

Re:A git implementation in pure JavaScript by hvs on Sunday July 10, 2011 @01:23PM (#2748109)
It's an intellectual exercise if you want to learn how git works. One of the best ways to learn something is to attempt porting it.
Re:A git implementation in pure JavaScript by qF on Sunday July 10, 2011 @03:54AM (#2747298)
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 by lurbina on Sunday July 10, 2011 @03:57AM (#2747305)
I meant why not in Scheme?
Re:A git implementation in pure JavaScript by mullr on Sunday July 10, 2011 @05:51AM (#2747441)
Because git is the distributed object database of our time, and JavaScript the ubiquitous execution environment. Useful, no?