Readit News logoReadit News
throwaway894345 commented on Most Illinois farmland is not owned by farmers   chicagotribune.com/2025/0... · Posted by u/NaOH
farceSpherule · 24 days ago
How about the US government stop subsidizing farmers? Let them fend for themselves like any other business.
throwaway894345 · 24 days ago
Besides keeping food costs low, as other commenters mentioned, I certainly think it's desirable to keep our agriculture sector from devolving into a small number of large corporations. I trust small independent farmers a lot more than I trust large corporations to take care of the land and to produce healthy food (which isn't to say independent farmers are perfect by any means).
throwaway894345 commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
9rx · a month ago
Principally, but not exclusively. It was also told to be a bad idea because of some insignificant performance overhead associated with cgo.

Which is especially funny as using go-git (which is known to be slow) and shelling out to git are apt to bring even greater performance overhead. As always, don't assume – measure!, but if we have to play the odds for the sake of an internet comment, libgit2 is likely to be the most performant option reasonably available, if there is some reason to think that performance is of concern here.

Added complexity in compiling is a tradeoff to consider, of course, but "bad idea" is also nonsense there. It requires a different set of priorities, but those priorities may very well be exactly what a project needs. — And maybe not even. The earlier comment brought a lot of assumptions without offering any background. There are theoretically other options available for libgit2. For example, using the Wasm build. While others have had success using Zig as the C-side compiler, which doesn't have all the messy baggage legacy compilers tend to carry (e.g. poor cross-compilation support).

Yes, measurement may offer reason why those are not suitable options, but missing in the comment is the measurement, or even what is trying to be measured! Instead, we got something that appears to be copy and pasted straight from a Rust advertisement.

throwaway894345 · a month ago
> Added complexity in compiling is a tradeoff to consider, of course, but "bad idea" is also nonsense there. It requires a different set of priorities, but those priorities may very well be exactly what a project needs.

Yes, there are cases in which CGo’s tradeoffs are appropriate, but you’re rebutting my claim that CGo is a bad default, so you need to show that CGo is appropriate in the default case (you went so far as to call it “nonsense”), not merely that there exists some project for which CGo’s tradeoffs are appropriate.

throwaway894345 commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
9rx · a month ago
> Is the performance overhead significant?

How do you define significant? It is noticeable as compared to C. It is nothing compared to Python.

> Are there any benchmarks on this?

You will see an additional ~20ns per call (assuming the gc compiler; tinygo, for example, can call C functions as fast as C can). In other words, you're not ever going to notice unless you're making millions of calls in a hot loop. The bigger problem in a highly concurrent environment is that blocking C functions can start to mess with the scheduler if they are slow to return. You, again, would never notice in a program of this nature, though. The feature is there to be use. It being a "bad idea" is nonsense.

Some added pain in compilation is, fairly, a tradeoff to consider. But that's just because C compilers, for the most part, aren't very good. It is not like those problems go away if you use C instead.

throwaway894345 · a month ago
> It being a "bad idea" is nonsense.

The bad idea claim was principally about breaking cross and static compilation.

throwaway894345 commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
johnisgood · a month ago
Thank you, thought as much. I hope I will get a response from the person / people claiming this.
throwaway894345 · a month ago
The main reason I cited for avoiding CGo was the impact on the code base, not the performance overhead. I’m not advocating for shelling out to the Git CLI, but rather preferring go-git unless there is a compelling reason to avoid it.
throwaway894345 commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
johnisgood · a month ago
I would have used libgit2 myself in any languages. If bindings do not exist, I would have made the bindings first. There is no way I would have called out to an external program.

Someone mentioned https://github.com/go-git/go-git. I would have definitely used it unless there are better alternatives. If - as someone who claimed - it turns out it is slow, I would have created my own bindings to libgit2 still, most likely.

throwaway894345 · a month ago
Binding to C in Go is a bad idea typically. There’s performance overhead, but more importantly your library (and everything downstream) also loses the ability to do nice things like fast compile times or easy cross compilation. You also likely introduce a runtime dependency on libc if not libgit2, so you have some DLL hell to deal with.
throwaway894345 commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
throwaway127482 · a month ago
I've used it - it's lacking a ton of features. Another commenter in this thread said it's very slow compared to the git CLI, which is not surprising given that git is written in C.
throwaway894345 · a month ago
I’ve used it for a production service. I thought it was surprisingly robust/featureful. There was one issue I ran into, but IIRC it was a limitation in the library’s filesystem abstraction, not a missing feature.
throwaway894345 commented on Fast cryptographically safe GUID generator for Go   github.com/sdrapkin/guid... · Posted by u/sdrapkin
sdrapkin · 2 months ago
Much faster (~10x) than standard github.com/google/uuid package

I'm interested in feedback from the HN community.

throwaway894345 · 2 months ago
Why is it so much faster than `uuid`?
throwaway894345 commented on Error handling in Rust   felix-knorr.net/posts/202... · Posted by u/emschwartz
jgilias · 2 months ago
Yeah… Please no.

I’m getting a bit of a macro fatigue in Rust. In my humble opinion the less “magic” you use in the codebase, the better. Error enums are fine. You can make them as fine-grained as makes sense in your codebase, and they end up representing a kind of an error tree. I much prefer this easy to grok way to what’s described in the article. I mean, there’s enough things to think about in the codebase, I don’t want to spend mental energy on thinking about a fancy way to represent errors.

throwaway894345 · 2 months ago
Both sides have been a pain for me. Either I’m debugging macro errors or else I’m writing boilerplate trait impls all day… It feels like a lose/lose. I have yet to find a programming language that does errors well. :/
throwaway894345 commented on Show HN: I wrote a BitTorrent Client from scratch   github.com/piyushgupta53/... · Posted by u/piyushgupta53
spuz · 2 months ago
Yes, very strange. There's no problem with using AI to build your first app and leaving the generated comments in the code is fine. But the number of comments on this thread that begin "This is so cool" is very suspicious.
throwaway894345 · 2 months ago
It doesn't seem wild to me that people would post "This is cool" on a ShowHN post. I did [here](https://news.ycombinator.com/item?id=44265915), and as far as I'm aware, I'm not an AI.

Would you like more information about how to identify AI comments? (kidding)

throwaway894345 commented on Show HN: I wrote a BitTorrent Client from scratch   github.com/piyushgupta53/... · Posted by u/piyushgupta53
Moosdijk · 2 months ago
what's up with the amount of new accounts praising this project?
throwaway894345 · 2 months ago
I only see two green usernames. Have others been deleted already?

u/throwaway894345

KarmaCake day15187October 25, 2017View Original