Live data from Hacker News

Viewing profile — nitnelave

nitnelave

HN member
Joined
Thu, Jul 25, 2019, 9:38 AM UTC
HN karma
479
Public activity
103 items

About nitnelave

No profile information was provided.

Recent public activity

  1. comment
    Comment #48721872

    For context, from wiki: > Remigration is a far-right concept referring to ethnic cleansing via mass deportation of non-white minority populations [...] to their place of racial anc…

  2. story
  3. comment
    Comment #48278002

    Two points make a line in any number of dimensions.

  4. story
  5. comment
    Comment #47598315

    Ah, good well-architected code, finally... With most of the code in utils/other :D

  6. comment
    Comment #47333274

    I guess I was missing the NPE: https://ideone.com/rp4Nvv Optional.of(null) throws an NPE

  7. comment
    Comment #47327259

    5, no? Null, Optional::empty, Optional(null), Optional(true), Optional(false)

  8. comment
    Comment #47223403

    Also known as "Make the change easy, then make the change" Something to realize is that every codebase is legacy. My best new feature implementations are always several commits tha…

  9. comment
    Comment #47054370

    Rust has clippy nagging you with a bunch of modernity fixes, and sometimes it can autofix them. I learned about a lot of small new features that make the code cleaner through clipp…

  10. comment
    Comment #46944773

    Isn't that the classic argument "Real C programmers don't write defaults!" ? The one that companies have spent billions of dollars fixing, including creating new restrictive langua…

  11. comment
    Comment #46874784

    Client-side pre-commit hooks are there to help you in the same way that type checking (or a powerful compiler) is there to help you avoid bugs. In particular with git, you can skip…

  12. comment
    Comment #46861806

    For CLI arguments, have you checked out clap? It's declarative (you create and annotate a struct, it generates the parser), and can be agremented with man page generation or shell …

  13. comment
    Comment #46848195

    I added "kudu", a type of antilope, and it replaced it with "turtle". I don't know the relationship between the 2, but it doesn't pass a toddler's sniff test!

  14. comment
    Comment #46533631

    You need to go all-in on tea and make your own mark. Get a fancy Chinese teapot with holes in the spout to use loose leaf tea, and start getting snobby about traditional vs modern …

  15. comment
    Comment #46208681

    You can probably get away with just a union between a 64 bit and 2 32 bit integers.

  16. comment
    Comment #46207235

    The alignment constraint is different, which they use to be able to load both as a 64-bit integer and compare to 0 (the empty slot). You could work around that with a union or cast…

  17. comment
    Comment #45952961

    I think it's a reference to the Google interview problem that the author of Homebrew (IIRC) failed. They were quite upset about it since they have proved their worth through their …

  18. comment
    Comment #45770235

    That's broadly the same reason I created LLDAP. It's the 20% of features of an LDAP server that 80% of users need. It's been hard pushing back and saying no to all the new features…

  19. comment
    Comment #45143197

    Also, of course, talk to people. Pitch your PR idea before writing it, so you can avoid hearing "oh, there's a much simpler way" or "we can never merge this approach because of X"

  20. comment
    Comment #44614392

    LDAP author here. I'm happy that LLDAP is mentioned and yet that it is not highlighted. The goal of the project was to have a simple LDAP server that is easy to install/manage for …

  21. story
  22. comment
    Comment #41509140

    I think the point is that naive regex are a very generic purpose tool, but it's still in the same ballpark. Having a custom optimized state machine for this specific use case could…

  23. comment
    Comment #41076340

    Deep const: since you have a (const) ref to the variable, you cannot access any of its parts mutably. Of course, RefCell and co are not allowed, I suppose.

  24. comment
    Comment #40953781

    LLDAP dev here! I'm happy to see it on the front page :) I made LLDAP specifically because it was very complicated to get OpenLDAP up and running, and it was resource heavy for a h…

  25. comment
    Comment #40953768

    There's a few people who looked into getting samba to plug into LLDAP. I haven't looked myself, but I seem to remember that the main obstacle was not insurmountable (last modified …