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…
A pure JavaScript implementation of Git for Node and browsers
91–100 of 203 posts
Re: A pure JavaScript implementation of Git for Node and browsers
#92Re: A pure JavaScript implementation of Git for Node and browsers
#93Earlier quoted context omitted.
The only attack I feel is calling C/C++ a language. It's two languages and we don't like each other very much. People who spend a lot of time trying to write good C++ avoid much of C's bread and butter like malloc and free, and the general hatred of C++ from C developers is well-documented. I happen to prefer C++ to C and D to both.
I have never treated "C/C++" as the name of a single language. I always read it as "C and/or C++".
Re: A pure JavaScript implementation of Git for Node and browsers
#94I 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…
we have wasm now. why is anybody writing anything in javascript ever nowadays? some form of religious self chastisement?
Also, javascript is plaintext and doesn't require a compile step, even though for some reason (cough Node) javascript development usually does, which makes it much more convenient for its original intended use case (a scripting language for the web) than wasm.
Re: A pure JavaScript implementation of Git for Node and browsers
#95Earlier quoted context omitted.
It's really strange to me that nowadays source control seems to be, largely, a monoculture. Back in the day I either used, or knew plenty of people using any of CVS, Subversion, Sourcesafe, Sourcegear Vault, Perforce, AccuRev, ClearCase, along with a few others. Whilst distributed version control is a huge leap forward over many of those older systems, it's odd that nowadays it seems to be git or, well, nothing. I'm…
A large part, I believe, is the ease of moving a git repository around. Back in the day, the central repository was a choice that stuck you to it for a long time. You literally had to setup the server, in many cases. Git, though? You just install the client and you can get started on a repository in your current directory that can easily transition to a remote hosted one. So, in a way, it is not unlike pathogen sprea…
Re: A pure JavaScript implementation of Git for Node and browsers
#96Earlier 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?
Re: A pure JavaScript implementation of Git for Node and browsers
#97I 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…
IMO, this is because there's a general attitude about porting to Rust that porting to Rust, by itself, makes a material improvement in the quality of the software (e.g. reliability, performance, readability), and that these improvements that can't be achieved in C/C++. Entrenched C developers then rise to the debate to defend their language. This debate has happened often enough that any time someone ports something…
There's a whole meme about the "Rust Evangelism Strikeforce" on n-gate.com for a reason, and that reason is the community on HN has become a caricature of itself.
By the way, this is from a person who made a point to introduce Rust to the team, when even just a year or so ago I'd have preferred C++.
Re: A pure JavaScript implementation of Git for Node and browsers
#98Looking at this rewrite I was wondering, but didn't find an answer in the project README: would emscripten successfully compile Git to js/wasm?
Git has its claws deep in the file system. On the browser side, JS and wasm have very limited access to the file system. You’d need to somehow bridge that gap. (It looks like isomorphic-git is using indexdb, and not the file system). There’s probably other dependencies (ssh, http, an editor for commits) that need to be resolved to get expected functionality.
Re: A pure JavaScript implementation of Git for Node and browsers
#99Earlier quoted context omitted.
Javascript runs everywhere where there is a browser. Rust runs everywhere where there is a c compiler, which is funnily enough the sample places that C/C++ run.
And with wasm, Rust/C/C++ all can run in the browser too...
Re: A pure JavaScript implementation of Git for Node and browsers
#100Earlier quoted context omitted.
The only attack I feel is calling C/C++ a language. It's two languages and we don't like each other very much. People who spend a lot of time trying to write good C++ avoid much of C's bread and butter like malloc and free, and the general hatred of C++ from C developers is well-documented. I happen to prefer C++ to C and D to both.
I have never treated "C/C++" as the name of a single language. I always read it as "C and/or C++".