Live data from Hacker News

Viewing profile — identity0

identity0

HN member
Joined
Thu, Mar 07, 2019, 11:00 PM UTC
HN karma
514
Public activity
140 items

About identity0

No profile information was provided.

Recent public activity

  1. comment
  2. comment
    Comment #25355325

    SVG is still a stupid format. Who wants to send image data through XML? It would be like sending a raster image through a big JSON array.

  3. comment
    Comment #25345159

    String s = null; That's not possible with nullable types. The whole point of nullable types is to mark types that can be null. So this is possible: String? s = null; But now it's n…

  4. comment
    Comment #25341680

    >There are two main solutions: Use an option or maybe type or Use a nullable type I don't get it. These are literally all exactly the same thing, all slightly varying in ergonomics…

  5. comment
    Comment #25332173

    When I click a link, I want to know where I'm going. Where do you think "arewesmoothyet.com" will take you? If you guessed some Mozilla related thing purely from context, well you'…

  6. comment
    Comment #25328443

    Well "next_ptr" is also a bad name, I agree, but I'm trying to name it something that indicates "this is a pointer to the 'next' pointer in the linked list".

  7. comment
    Comment #25327987

    What a waste of domain space (yes, I know they're abundant, but still.) areweaudioyet.com says nothing about its contents. areweasyncyet.rs had the right idea with the .rs domain n…

  8. comment
    Comment #25327947

    The top pattern is extremely common so comments are somewhat unnecessary since everyone would know what you're doing. In the second one, comments would be less necessary with a typ…

  9. comment
    Comment #25324122

    auto in function signatures is just really, really stupid.

  10. comment
    Comment #25324110

    I'm not so sure about that. Surely it would take longer to parse both branches of an if-constexpr then it would for the preprocessor to see the #if and discard half of it.

  11. comment
    Comment #25319296

    I wish more languages gave us a "|>" operator. Too many languages settle with dot notation, which confuses encapsulation/method calling with syntactical convenience.

  12. comment
    Comment #25312226

    I remember implementing the comment collapsing thing without JS, you have the "[-]" be a label for a checkbox button, and then you just use CSS to hide the sections for which the c…

  13. comment
    Comment #25302695

    That's true, it's more like naming your language "BlockchainScript". I could totally see someone doing that today.

  14. comment
  15. comment
    Comment #25272581

    Oh come on, don't be pedantic. There is a term for non-physically-based rendered, it's called "rasterization". Just because it's technically incorrect doesn't mean it's any less of…

  16. comment
    Comment #25257139

    Agreed. It's not a "foreign" function if everything is in WASM. All the VM sees is WASM code; it doesn't make a difference if it was originally written in C or Rust.

  17. comment
  18. comment
    Comment #25214028

    hCaptcha works on Tor, sometimes.

  19. comment
    Comment #25201156

    Have you ever seen a procedural language with a good REPL? Python maybe, but definitely no compiled procedural garbage-collectorless language. The "needing to put type signatures" …

  20. comment
    Comment #25200737

    You mean like a REPL? Most languages are unusable for interactive programming. And it's not a downside if it stops use in a domain that was nobody's goal.

  21. comment
    Comment #25193633

    Threes made the fatal mistake of charging money on the App Store.

  22. comment
    Comment #25182491

    One ugly trick for unreachable branches is this: assert(!"You gave an invalid letter"); The string literal is a pointer, so !pointer is false. And then you get a nice explanation m…

  23. comment
    Comment #25182478

    I would recommend not doing that. Just use the initializer syntax, or write an inline function.

  24. comment
    Comment #25178211

    -Wimplicit, UBSan, ASan,... The idea that "you can't write safe C" is a big joke. C is as safe as you make it.

  25. comment
    Comment #25178192

    I have never seen a well-made but general solution beat a well-made and specific solution for one problem, in complexity or run time, ever. This is very true with allocators. A lot…