Readit News logoReadit News
dlock17 commented on Do things that don't scale, and then don't scale   derwiki.medium.com/do-thi... · Posted by u/derwiki
wincy · 10 days ago
I remember saying something on Facebook that wasn’t even that inflammatory but had a curse word and my grandma messaged me telling me to delete it. Instead I blocked grandma. Much happier just seeing grandma at holiday gatherings. I don’t think she even noticed honestly.
dlock17 · 9 days ago
TIL Kendrick Lamar has a HN (/s)
dlock17 commented on The FIPS 140-3 Go Cryptographic Module   go.dev/blog/fips140... · Posted by u/FiloSottile
tptacek · a month ago
No. FIPS has literally nothing to do with security.
dlock17 · a month ago
I may be thinking more about FedRAMP in general rather than just FIPS140-3, but mandating things like keeping user passwords out of logs is a security improvement.

And the average company needs to be dragged kicking and screaming to care about security at all.

dlock17 commented on The FIPS 140-3 Go Cryptographic Module   go.dev/blog/fips140... · Posted by u/FiloSottile
dadrian · a month ago
If DOGE had done nothing other than get rid of FIPS validation, the GDP unlock alone would have solved the debt problem.
dlock17 · a month ago
Companies don't need any additional reasons to skimp out on security.

The money could probably be more wisely spent if not following FIPS but without FIPS the average company wouldn't direct that money towards security at all.

dlock17 commented on Generic interfaces   go.dev/blog/generic-inter... · Posted by u/Merovius
Merovius · 2 months ago
> I didn't realize how important order was to type inference.

I was unclear, I'm afraid. You can reorder the type parameters, it just changes which of them you need to specify: https://go.dev/play/p/oDIFl3fZiPl

The point is that you can only leave off elements from the end of the list, to have them automatically inferred.

> Are there any real packages out there using these techniques?

I think so far, the usage of generics for containers in Go is still relatively sparse, in public code. I think in part that is because the documentation of how to do that is relatively sparse. That is part of the motivation for the post, to have a bit of somewhat official documentation for these things, so they become more widely known.

The standard library is just starting to add generic containers: https://github.com/golang/go/issues/69559 And part of that is discussing how we want to do things like this: https://github.com/golang/go/issues/70471

That being said, I have used the pointer receiver thing in my dayjob. One example is protobuf. We have a generic helper to set a protobuf enum from the environment. Because of how the API was designed, that required a pointer receiver constraint.

dlock17 · 2 months ago
The automatic part was what I was referring to, yes. I didn't realize you wrote the article, thanks!

The article mentions using the function version to implement all others, but also that the method version would be optimized better.

Would the compiler be able to inline MethodTree's compare even though it's passed in as a function variable to node.insert?

dlock17 commented on Generic interfaces   go.dev/blog/generic-inter... · Posted by u/Merovius
dlock17 · 2 months ago
I didn't realize how important order was to type inference.

Are there any real packages out there using these techniques?

dlock17 commented on Generative AI coding tools and agents do not work for me   blog.miguelgrinberg.com/p... · Posted by u/nomdep
xpe · 2 months ago
> Unfortunately these claims are just based on the perception of the subjects themselves, so there is no hard data to back them up.

Did the author take their own medicine and measure their own productivity?

dlock17 · 2 months ago
Somehow you think the burden of proof is on his response rather than the AI maxis initial claims, but regardless, here you go. It was measured.

https://arxiv.org/abs/2506.08872

dlock17 commented on Show HN: I wrote a BitTorrent Client from scratch   github.com/piyushgupta53/... · Posted by u/piyushgupta53
koito17 · 2 months ago
The README is likely AI-generated. The actual go.mod file lists 1.23.1 as the Go version[1], which implies a requirement of Go 1.23.1 or higher[2].

[1] https://github.com/piyushgupta53/go-torrent-client/blob/6130...

[2] https://go.dev/doc/modules/gomod-ref#go-notes

dlock17 · 2 months ago
Go 1.21 includes an internal auto-updater that can compile later Go versions by looking in the go mod file itself.

So the README is correct.

dlock17 commented on (On | No) Syntactic Support for Error Handling   go.dev/blog/error-syntax... · Posted by u/henrikhorluck
renewiltord · 3 months ago
I am very entertained by this. The Golang community bikeshedded their way into the status quo. Hahaha, I have to say that's a pretty good move by the steering org. Punishes bikeshedding.
dlock17 · 3 months ago
This is a very good way to fight back against design by committee.
dlock17 commented on (On | No) Syntactic Support for Error Handling   go.dev/blog/error-syntax... · Posted by u/henrikhorluck
nilirl · 3 months ago
Error handling is some of the least fun parts of writing code. In all languages.

But in any case, why so much fear of being wrong?

> we have fine-grained control over the language version via go.mod files and file-specific directives

And that may be the real truth of it: Error handling in Go just isn't ... that much of a problem to force action?

dlock17 · 3 months ago
This is also my feeling. And I wouldn't even have minded the ? syntax.

It seems that now that Ian's left the rest of the Go team is just being honest about what they are willing to spend their time on.

And I'm more than fine with that, because look at this comment section. You can't please everybody.

u/dlock17

KarmaCake day75October 17, 2023View Original