Live data from Hacker News

Viewing profile — rogpeppe1

rogpeppe1

HN member
Joined
Mon, May 21, 2012, 8:20 AM UTC
HN karma
92
Public activity
43 items

About rogpeppe1

[ my public key: https://keybase.io/rogpeppe; my proof: https://keybase.io/rogpeppe/sigs/CFNVd2VGl43MKBVo-xSB9wOzisGNCzs90-PlrVLVMU8 ]

Recent public activity

  1. comment
    Comment #37752870

    One of Go's big selling points is the avoidance of the "red-blue problem" ( https://journal.stuffwithstuff.com/2015/02/01/what-color-is-... ). The standard Go implementation does t…

  2. comment
    Comment #34738686

    > Sure, but more data will be attached to it. Also, in his proposal, he said that IP addresses will not be logged. I seriously doubt that. I think it's worth quoting what Russ said…

  3. comment
    Comment #34738639

    > First, making network requests when downloading packages is necessary for the tool to function and unavoidable. It's technically not unavoidable. The Go authors could have made u…

  4. comment
    Comment #34738544

    So you see this as just the same, from a privacy perspective, as the way that the Go tool already dials out to the Go proxy by default? That is, if you're OK with that (I'd assume …

  5. comment
    Comment #34722809

    Have you read the articles? How is this in any way violating privacy?

  6. comment
    Comment #34722785

    > @rsc, if you ever see this, your proposal here means that I will never use any software written in Go ever again, if at all possible. Have you actually read the articles? The "da…

  7. comment
    Comment #34721528

    That ship has already sailed. The Go tool already by default makes network requests to the Go proxy, which potentially allows everything that you're talking about there. What's sig…

  8. comment
    Comment #23549484

    I'm not sure that hiding the implementation is worth it here. Why not just make it public that it's actually map[T]struct{} underneath - then anyone can range on it and implement a…

  9. comment
    Comment #23548992

    There's no need to use the pointer in there; you could just use an ok bool instead (saving the indirection): https://go2goplay.golang.org/p/4hr8zINfRym I think it's interesting to …

  10. story
  11. comment
    Comment #19553596

    OK, replying to myself for future reference. I found the answer here: https://youtu.be/0GeJdTTzaDo (incidentally, that series of videos seems to have solutions for most of these pr…

  12. comment
    Comment #19553386

    This was a fun puzzle, but I came to a roadblock here too. I have to confess I'm confused by what I believe might be the "local hypothesis block" mentioned above. The confusion is …

  13. comment
    Comment #16448052

    You can specify that a given dependency be replaced by another one. That only applies at the top level though, not when the go.mod file with the replace clause is used by another m…

  14. story
  15. comment
    Comment #13957552

    Don't keep type safety then. Think of Go as half-way between Python and Haskell in that respect. Types are great when they're useful, but they're not required .

  16. comment
    Comment #13950809

    I tend to check out one branch, run godeps -u, then check out the other one and run godeps -N -u. Then you've got the newest deps from both branches. I still wouldn't resolve the c…

  17. comment
    Comment #13950008

    > I'd rather have a test that correctly reasonably verifies that a package is correct (or at least "passes the race detector consistently") and reaches into some of the private det…

  18. comment
    Comment #13949345

    > Mocking out the time functions means you don't get any race conditions. This is a common misapprehension. Actually, even if you fully mock out time, you can still get race condit…

  19. comment
    Comment #13949285

    The godeps file is just a dependency-per-line, tab-separated values, deliberately so it's easily amenable to shell script processing. Aside: the conflicts mentioned in the article …

  20. comment
    Comment #13437615

    Exceptions don't always give you useful stack traces in a concurrent situation, because the current stack may only reflect a goroutine that's processing data on behalf of another. …

  21. comment
    Comment #13435261

    or gopkg.in/errgo.v1 which is a bit more opinionated about error causes.

  22. comment
    Comment #12335765

    This particular issue is unfortunate - it can't be changed without potentially breaking existing programs. See https://github.com/golang/go/issues/11513 and https://groups.google.c…

  23. comment
    Comment #9421201

    From the article: In order to do evil things like convert raw bytes to floats, I chose to use the “unsafe” package FWIW you don't need unsafe to do that. encoding/binary + http://g…

  24. comment
    Comment #9268870

    I'd like to hear more details of your issues here. What's not good about the bufio package? What do you mean by "poor abstractions"? What's wrong with creating a single purpose loc…

  25. comment
    Comment #8971262

    FWIW Go does implement a significant subset of generics in a type-safe way. For any parametric type P[T], if P has no public methods or fields that mention T, then Go can implement…