News for hackers. Stuff that matters.
Re:Crowdsec: A Fail2Ban alternative written in Go by miked85 on Monday October 19, 2020 @11:31AM (#24827253)
Is the fact that it is "written in Go" a selling point?
Re:Crowdsec: A Fail2Ban alternative written in Go by omginternets on Monday October 19, 2020 @11:56AM (#24827554)
Yes! For those who know Go, it means they'll be able to hack/improve/fix the software themselves.

This question gets posted on every single "X written in Y", and I can't help but think it's an effortless way to broadcast some strange form of superiority (namely: by showing my exasperation with Go enthusiasts, I place myself in the category of people unimpressed by Go. Bonus points for mentioning Rust or Haskell.)

This feeling is at odds with open source culture, where the ability to understand the code you're running is absolutely central. If you value Open Source, it should be pretty easy to understand how "written in language X" is a valuable piece of information.

Re:Crowdsec: A Fail2Ban alternative written in Go by Fnoord on Monday October 19, 2020 @06:17PM (#24831643)
Correct me if I am wrong but doesn't Go yield better performance than Python?
Re:Crowdsec: A Fail2Ban alternative written in Go by FridgeSeal on Monday October 19, 2020 @06:58PM (#24831971)
Yes, by quite a decent margin.
Re:Crowdsec: A Fail2Ban alternative written in Go by jdashg on Monday October 19, 2020 @12:04PM (#24827652)
The title doesn't say that it's open source, though. (nor its license) It's specifically advertising itself based on its language, not its qualities.
Re:Crowdsec: A Fail2Ban alternative written in Go by omginternets on Monday October 19, 2020 @12:07PM (#24827684)
GitHub wasn't a dead giveaway? How about the MIT License badge on the page?

Come on, now...

I think it's safe to say that one should check these (obvious) things before posting a snarky comment. It seems to me that this is part of the HN community ethos.

Re:Crowdsec: A Fail2Ban alternative written in Go by bityard on Monday October 19, 2020 @01:42PM (#24828774)
> GitHub wasn't a dead giveaway?

There have been numerous source-available but proprietary github projects posted to HN.

Re:Crowdsec: A Fail2Ban alternative written in Go by omginternets on Monday October 19, 2020 @01:49PM (#24828843)
Good thing you can check the license!
Re:Crowdsec: A Fail2Ban alternative written in Go by justin_oaks on Monday October 19, 2020 @11:40AM (#24827344)
Some people prefer using a single binary rather than requiring a python installation.
Re:Crowdsec: A Fail2Ban alternative written in Go by adkadskhj on Monday October 19, 2020 @01:04PM (#24828355)
Yup. Perhaps the language shouldn't matter as much, ideally maybe we'd talk about "runtime features" - which matter to the readers. "Single Binary, static link, No GC" etc. But the language serves to me as a small proxy for most of those attributes.

Tell me a game engine is written in Python or Go and i can infer a lot about the intended audience or runtime performance characteristics.

The HN crowd seems to be so annoyed by language recently, but to me they just scream of missing the point entirely. /shrug

Re:Crowdsec: A Fail2Ban alternative written in Go by ahendriksen on Monday October 19, 2020 @02:08PM (#24829062)
For me definitely! I have a tiny VPS running ARM that I use as a build server. I get so much SSH spam that it noticeably slows down the VPS (both with and without Fail2Ban)..

"Written in Go" signifies to me that it can be faster and more resource-efficient than Fail2Ban: a good reason to check it out.

Re:Crowdsec: A Fail2Ban alternative written in Go by InvaderFizz on Monday October 19, 2020 @03:35PM (#24830017)
Is this really much of a problem? I have a VPS that's been online for years, serving port 22. I average about 200k attempts per year. I have it set to pubkey only, root can't login at all. If you connect without sending a pubkey, it pretty much instantly tells you to go away. I don't bother with fail2ban.

Maybe I should start logging attempted pubkeys as a side project just to see what pops up.

Re:Crowdsec: A Fail2Ban alternative written in Go by abdusco on Monday October 19, 2020 @02:28PM (#24829313)
You should consider changing default SSH port. It helps a lot with the spam.
Re:Crowdsec: A Fail2Ban alternative written in Go by coolspot on Monday October 19, 2020 @05:55PM (#24831478)
Re:Crowdsec: A Fail2Ban alternative written in Go by blibble on Monday October 19, 2020 @02:44PM (#24829508)
and/or add an iptables rule that limits the rate, set high enough such that you'll never hit it

1 line in your iptables config

Re:Crowdsec: A Fail2Ban alternative written in Go by ashtonkem on Monday October 19, 2020 @12:43PM (#24828070)
Only if you had issues with fail2ban's prior performance or ease of installation. Otherwise we start getting into partisan point scoring competitions over what critical services are written in what languages, which is incredibly tedious.
Re:Crowdsec: A Fail2Ban alternative written in Go by gregoriol on Monday October 19, 2020 @12:10PM (#24827716)
Yes, but it's just a trend. Could as well have been written in React.

Joke apart, the trend to rewrite any single thing in Go/Rust is scary: why take something that is working and standard, and make it new? People have tried this hundreds of times as per hackernews history, and it's mostly not worth it.

However, it is a good training, tutorial for Go.

Re:Crowdsec: A Fail2Ban alternative written in Go by eeZah7Ux on Monday October 19, 2020 @12:23PM (#24827861)
> the trend to rewrite any single thing in Go/Rust is scary

Many useful projects get abandoned just because someone made a more popular alternative.

In 2-3 years the rewrite in go/rust fad will fade and both the new and the old projects end up abandoned.

I'll be downvoted to hell for this: jumping on fads harms the FLOSS ecosystem.

Additions: also, static liking and embedding many dependencies harms Linux distributions.

Re:Crowdsec: A Fail2Ban alternative written in Go by hda111 on Monday October 19, 2020 @12:32PM (#24827955)
Of course not. It's the same as with the Docker hype a few years ago. I don't get it. Still today everyone seems to think an app is better when it's "dockerized". Now with Go everyone can write buggy, memory leaking programs. I prefer apps written in C whenever a I can.
Re:Crowdsec: A Fail2Ban alternative written in Go by the_only_law on Monday October 19, 2020 @12:48PM (#24828135)
Not sure why on earth you think something would be non-buggy or non-leaky just because its written in C. I avoid C for almost any user mode work save a few things.
Re:Crowdsec: A Fail2Ban alternative written in Go by LambdaComplex on Monday October 19, 2020 @05:58PM (#24831502)
I'd expect the C to be buggier, personally
Re:Crowdsec: A Fail2Ban alternative written in Go by snazz on Monday October 19, 2020 @12:47PM (#24828127)
Garbage collection should make apps written in Go less memory-leaking and less buggy than those written in C, no?
Re:Crowdsec: A Fail2Ban alternative written in Go by eeZah7Ux on Monday October 19, 2020 @12:46PM (#24828106)
we need a fork of HN