Live data from Hacker News

Viewing profile — kilink

kilink

HN member
Joined
Sat, Aug 13, 2011, 3:53 PM UTC
HN karma
102
Public activity
59 items

About kilink

[ my public key: https://keybase.io/kilink; my proof: https://keybase.io/kilink/sigs/L2bIjKsfXWgHQPYbsXCntTq3nM0DKnxZ_9R819KAA8k ]

Recent public activity

  1. story
  2. story
  3. story
  4. comment
    Comment #13437117

    They mentioned msgpack was calling gc.enable(), but it looks like that issue was fixed quite a while ago in version 0.2.2: https://github.com/msgpack/msgpack-python/blob/2481c64cf1…

  5. comment
    Comment #12573181

    Maybe they mean data class inheritance, instead of subclassing? That's the only thing I know of that is planned for Kotlin 1.1 [1], and it's primarily useful for sealed classes (I'…

  6. comment
    Comment #12379140

    I think the advice is more relevant in the context of the specific language; it's not universal. In python you can go from attribute access to using a property (getter/setter) with…

  7. comment
    Comment #12324989

    ...Or can you? import ctypes def tuple_setitem(t, index, item): obj = ctypes.py_object(t) item = ctypes.py_object(item) ref_count = ctypes.c_long.from_address(id(t)) original_count…

  8. comment
    Comment #12324888

    I'm not sure if you are asking about Python, or Ruby. Anyway, both languages use value-based hashing for dictionaries. I am not a Rubyist, but I guess you are just expected to not …

  9. comment
    Comment #12324756

    This is a Python specific restriction. Ruby for example allows mutable keys in dictionaries.

  10. story
  11. story
  12. comment
    Comment #12183724

    What about null?

  13. comment
  14. comment
    Comment #11842832

    I'm not sure what you mean by error values being dropped on the floor by default. In Go or languages with ADTs you would have to consciously ignore an exception. Languages where pa…

  15. comment
    Comment #11842789

    I was addressing your specific assertion with regard to encoding error conditions as reserved values in your return type's codomain, which I agree is ugly. One benefit of not throw…

  16. comment
    Comment #11842551

    > The problem usually is: What is the error code if your return type is int? Sure, you can define all negative ints as errors, or you provide a reference which is set when an error…

  17. comment
    Comment #11551498

    Things I dislike about Ion, having used it while at Amazon: - IonValues are mutable by default. I saw bugs where cached IonValues were accidentally changed, which is easy to do: Io…

  18. comment
    Comment #11384350

    That also wouldn't even compile. I also write in multiple languages, and for languages for which this is an issue I use a linter. This isn't even an issue in C if you compile every…

  19. comment
    Comment #11383606

    Sorry, it's just not practical to keep lines under 80 characters in some languages.

  20. comment
    Comment #11383584

    For me it's not that it's confusing, it's annoying to read because it indicates that the programmer didn't actually take the time to learn the language, and is instead writing it a…

  21. comment
    Comment #11383554

    Java if statements only allow boolean expressions, so the thing that the Yoda condition is supposed to protect against isn't even possible. I think this is precisely what the autho…

  22. story
  23. story
  24. story
  25. story