Live data from Hacker News

Gitoxide: Pure Rust Implementation of Git

github.com

11–20 of 200 posts

Re: Gitoxide: Pure Rust Implementation of Git

#11
post #2

Why do people feel the need to reimplement everything in Rust ? If it's not broken, don't fix it...

Perhaps because it brings them pleasure. That hardly seems a sin. And then they share it with others, for whom seeing the work is a pleasure and perhaps an inspiration. That seems just as little of a crime.

I quote the README, in the goal section:

> become the foundation for a free distributed alternative to github.

> be the best performing implementation

This seems ambitious, and not something done for fun

Re: Gitoxide: Pure Rust Implementation of Git

#12
post #2

Why do people feel the need to reimplement everything in Rust ? If it's not broken, don't fix it...

I imagine there are different motivations for different people.

Some people may just want to use rust to re-implement something that exists in order to hone their skills or just for fun. Having a reference implementation makes that more productive.

Other people may think that it would simply be better if the project were implemented in rust. This is the case for some C projects, where a lot of control is still necessary but the project would benefit from the safety and productivity gains of rust. See the example of QEMU yesterday. It is an absolute pain in the ass to do things well in C. Correct programs end up being heaps of boilerplate and tests. I'd love to escape C but haven't been able to until Rust.

Maybe some people just want to showcase that Rust can do the thing. I think that's fine. It might help in adoption. It might cause better libraries to be created that are actually used.

For me, rust is the first real competitor in the systems programming market. There are hundreds of languages for application programming. I prefer Haskell, Java and JS for those but I've never found a replacement for C in the low-level domain. C++ just never cut it for me and the alternatives never really caught on. For me, Rust brings a lot of what we learned from Haskell and ML to C without sacrificing the low-level control. If I wanted to get better at Rust, I'd probably also implement something that exists just so I could check my work. If I was to re-implement some of the low-level projects that I've worked on, I'd also probably do that in Rust.

I'm getting really tired of comments like this though. Why does it bother you so much? Are you trying to communicate that you'd prefer this person be doing something else with their time? What does that even mean?

Re: Gitoxide: Pure Rust Implementation of Git

#13
post #2

Why do people feel the need to reimplement everything in Rust ? If it's not broken, don't fix it...

I tried to interact with Git from rust code once. The only option for any language is libgit2 or its bindings, and let me tell you, it's terrible. I was this close to just calling git from the shell when i eventually just gave up.

I used libgit2 a lot, the only thing I disliked about it was the lack of documentation (well, the source code is the ultimate documentation?).

Re: Gitoxide: Pure Rust Implementation of Git

#14
post #11

Earlier quoted context omitted.

Perhaps because it brings them pleasure. That hardly seems a sin. And then they share it with others, for whom seeing the work is a pleasure and perhaps an inspiration. That seems just as little of a crime.

I quote the README, in the goal section: > become the foundation for a free distributed alternative to github. > be the best performing implementation This seems ambitious, and not something done for fun

Surely ambition and pleasure do not preclude each other.

Re: Gitoxide: Pure Rust Implementation of Git

#15
post #4
post #2

Why do people feel the need to reimplement everything in Rust ? If it's not broken, don't fix it...

From the security perspective, if it is written in C, then it is broken by default and by design - no exceptions. See https://news.ycombinator.com/item?id=24133128 for a recent, very relevant discussion on that topic with multiple examples and a good rationale.

I really don't understand the hate towards every language that is not Rust.

Rust provide you tools to avoid many security issues. But that does not mean everything that hasn't been written in Rust is broken by default.

You still have "unsafe" in Rust, so is it broken by default and design and we should throw away the language ? Obviously not!

Re: Gitoxide: Pure Rust Implementation of Git

#16
post #2

Why do people feel the need to reimplement everything in Rust ? If it's not broken, don't fix it...

I imagine there are different motivations for different people. Some people may just want to use rust to re-implement something that exists in order to hone their skills or just for fun. Having a reference implementation makes that more productive. Other people may think that it would simply be better if the project were implemented in rust. This is the case for some C projects, where a lot of control is still necess…

If you do it for fun, or to learn, that is more than fine.

But seeing almost every day a new tech "implemented in Rust because X sucks and is not secure" is becoming annoying.

Re: Gitoxide: Pure Rust Implementation of Git

#17
post #2

Why do people feel the need to reimplement everything in Rust ? If it's not broken, don't fix it...

I imagine there are different motivations for different people. Some people may just want to use rust to re-implement something that exists in order to hone their skills or just for fun. Having a reference implementation makes that more productive. Other people may think that it would simply be better if the project were implemented in rust. This is the case for some C projects, where a lot of control is still necess…

> or me, rust is the first real competitor in the systems programming market.

What about julia or go?

Re: Gitoxide: Pure Rust Implementation of Git

#18
post #15
post #4

Earlier quoted context omitted.

From the security perspective, if it is written in C, then it is broken by default and by design - no exceptions. See https://news.ycombinator.com/item?id=24133128 for a recent, very relevant discussion on that topic with multiple examples and a good rationale.

I really don't understand the hate towards every language that is not Rust. Rust provide you tools to avoid many security issues. But that does not mean everything that hasn't been written in Rust is broken by default. You still have "unsafe" in Rust, so is it broken by default and design and we should throw away the language ? Obviously not!

The hate is not towards every language that is Rust, it's against C, at least in this thread.

I haven't seen anyone arguing against Python or Java in a Rust thread. Memory-managed languages are already at the memory safety levels comparable to Rust's borrow checker.

Post reply on HN