Live data from Hacker News

A pure JavaScript implementation of Git for Node and browsers

github.com

21–30 of 203 posts

Re: A pure JavaScript implementation of Git for Node and browsers

#21
post #19
post #10

I think it's interesting how there's two phenomena that seem to be related to me that get posted here and seem to get treated with different responses. One the one hand, we have software originally written in C/C++ being rewritten in Rust (not often, sometimes just conceptualized), and there's often a real push back by some people about how it's a waste and not useful. On the other, we have software rewritten in Java…

It's open source. If you don't like it, don't use it. Rewriting git in Javascript seems pretty useless to me, but who knows, maybe it was a fun challenge for the author.

On second thought, it looks like it's meant to be a plug-in for an IDE that's implemented in JavaScript.

I suppose that makes sense, kinda...

Re: A pure JavaScript implementation of Git for Node and browsers

#22
post #21
post #19

Earlier quoted context omitted.

It's open source. If you don't like it, don't use it. Rewriting git in Javascript seems pretty useless to me, but who knows, maybe it was a fun challenge for the author.

On second thought, it looks like it's meant to be a plug-in for an IDE that's implemented in JavaScript. I suppose that makes sense, kinda...

[deleted]

Re: A pure JavaScript implementation of Git for Node and browsers

#24
post #10

I think it's interesting how there's two phenomena that seem to be related to me that get posted here and seem to get treated with different responses. One the one hand, we have software originally written in C/C++ being rewritten in Rust (not often, sometimes just conceptualized), and there's often a real push back by some people about how it's a waste and not useful. On the other, we have software rewritten in Java…

Understand your frustration. But on positive hand, javascript opens new opportunities like using git in the browser (even though meaningful use case is yet to be shown, but there is chance it will be found). On other hand rust implementation brings "just better security" (using sarcasm here for brevity). Yes, it probably could be ported to js (wasm) too, but until somebody does that...

> ... but there is chance it will be found...

Doesn't this completely ignore YAGNI?

Re: A pure JavaScript implementation of Git for Node and browsers

#26
post #10

I think it's interesting how there's two phenomena that seem to be related to me that get posted here and seem to get treated with different responses. One the one hand, we have software originally written in C/C++ being rewritten in Rust (not often, sometimes just conceptualized), and there's often a real push back by some people about how it's a waste and not useful. On the other, we have software rewritten in Java…

The response to js ports are usually favorable as:

1. They're (generally) portable across browsers and backend (nodejs)

2. There exists a much larger JS community than Rust. Given the js community's familiarity with website/webapp design, likelihood of a js port ending up in a real product quickly is high.

Re: A pure JavaScript implementation of Git for Node and browsers

#27

Earlier quoted context omitted.

Understand your frustration. But on positive hand, javascript opens new opportunities like using git in the browser (even though meaningful use case is yet to be shown, but there is chance it will be found). On other hand rust implementation brings "just better security" (using sarcasm here for brevity). Yes, it probably could be ported to js (wasm) too, but until somebody does that...

> ... but there is chance it will be found... Doesn't this completely ignore YAGNI?

It does, but so does almost all of mathematics :)

Re: A pure JavaScript implementation of Git for Node and browsers

#28

If anything this is a wonderful example of good engineering. Although on the server-side would it not have been easier to delegate commands to the native git binary? Well done!

Perhaps but there's an existing SDK that is the backbone of many Git libraries: https://libgit2.github.com/

Of which there is an existing Node package that links to it: https://github.com/nodegit/nodegit

The caveat is that it stopped being a pure-JS library that boasts in-browser support.

Post reply on HN