Live data from Hacker News

Git implemented in Rust

github.com

71–80 of 122 posts

Re: Git implemented in Rust

#71
post #68

Can somebody tell me what is behind the recent rewrite-all-the-things-in-rust craze? I get it can have some benefits in terms of security, but it seems rewriting so many things in it just for the sake of it is a bit excessive. I understand some of these are very likely for educational purposes (like this one and others; it's good for getting more familiar with the language), but it still seems to be a bit of a strang…

I support RIIR 100%. It’s much easier for me to contribute to Rust projects. It’s not just the language (but that is definitely a part). I don’t need to worry about shit like “how do I build this project” or "my code might run on platforms x and y but I'm not sure about platform z". With c/cpp, the build process can be potentially very complicated. Missing headers, missing binaries. With Rust, I just run “cargo build”.

Furthermore, the resulting code feels just so sturdy. I can also expose it as C and it can be used from the likes of Python.

Re: Git implemented in Rust

#72
post #46
post #43

If you're interested in this, you may enjoy "Building Git" by James Coglan - a comprehensive book that takes you through reimplementing git in Ruby. https://shop.jcoglan.com/building-git/

If you have read this book, would you care to comment about its content and quality? It is something I am interested in buying but I have not been able to find reviews of it.

I haven’t read it yet, but I’m lucky to call the author a friend. I read all of his tweets about it while he was building it. I expect it to be of extremely high quality. I’ve got a lot of respect for his abilities.

The only reason I haven’t read it yet is that I think it deserves a lot of attention and I haven’t made time yet.

Re: Git implemented in Rust

#74

Let's port already portable software to non-portable languages! Yay!

Eh, why not? Seems like a chicken-and-egg thing. If there's no Rust support for some platform, fewer people will want to write things in it because they won't be able to run them where they want. But the less Rust software there is, the less interest anyone would have in writing build tools for less popular platforms.

Break out of these patterns by writing useful software in it that people would like to have on less popular platforms, so more people feel motivated to build and maintain build tools for it.

Re: Git implemented in Rust

#75
post #58
post #46

Earlier quoted context omitted.

If you have read this book, would you care to comment about its content and quality? It is something I am interested in buying but I have not been able to find reviews of it.

It's pretty good, I'd recommend it. I haven't finished the book yet, but what I've read thus far has been good. Something I'd wish I'd known (although it wouldn't have changed my decisions to purchase) is that it's not an exploration style book (i.e. "Let's cat this file and find out what it contains and why.") it's more of an explanation (i.e. "When I cat this file, it outputs XYZ which means ABC which I know from m…

Thanks, I bought the book after finding a sample chapter on the author's website.

Re: Git implemented in Rust

#76
post #46

Earlier quoted context omitted.

If you have read this book, would you care to comment about its content and quality? It is something I am interested in buying but I have not been able to find reviews of it.

I haven’t read it yet, but I’m lucky to call the author a friend. I read all of his tweets about it while he was building it. I expect it to be of extremely high quality. I’ve got a lot of respect for his abilities. The only reason I haven’t read it yet is that I think it deserves a lot of attention and I haven’t made time yet.

Thanks, I bought the book.

Still undecided as to which language to work in, I wanted to use rust but the one part I'm unsure about is possibly where tree like data structures will need to be implemented?

I guess that's tough to do in rust? I will give it a try.

Re: Git implemented in Rust

#77
post #76

Earlier quoted context omitted.

I haven’t read it yet, but I’m lucky to call the author a friend. I read all of his tweets about it while he was building it. I expect it to be of extremely high quality. I’ve got a lot of respect for his abilities. The only reason I haven’t read it yet is that I think it deserves a lot of attention and I haven’t made time yet.

Thanks, I bought the book. Still undecided as to which language to work in, I wanted to use rust but the one part I'm unsure about is possibly where tree like data structures will need to be implemented? I guess that's tough to do in rust? I will give it a try.

Trees are easy in Rust. It's graphs that are harder.

Re: Git implemented in Rust

#78
post #20

Earlier quoted context omitted.

> Implementing git in rust for fun and education! Also, not having a license file isn't a messy situation, that means “this project is protected under Berne Convention copyright“: the author is the only one holding every rights on the code and every use that is not explicitly allowed is a copyright infringement (unless it's fair use).

"Use" is allowed, redistribution of the original or derivative works is essentially what is not permitted.

That's how copyleft licenses work. Base copyright law is more restrictive and possessing an unlicensed copy can be infringing in certain countries. This is why public domain is sometimes problematic.

Re: Git implemented in Rust

#80
post #52
post #14

Earlier quoted context omitted.

Arguably by downloading it from github you’ve made an illegal copy.

By making it public to view you agree others can load the page and view the code. Loading the page and viewing it is downloading it.

That's not how copyright law works. The particulars vary by country but the share everything internet culture doesn't automatically grant permission to make copies.
Post reply on HN