Live data from Hacker News

Viewing profile — acidx

acidx

HN member
Joined
Tue, Mar 20, 2012, 11:51 PM UTC
HN karma
429
Public activity
93 items

About acidx

No profile information was provided.

Recent public activity

  1. comment
    Comment #48108256

    If I understood this comment correctly, this approach wouldn't work with a single possible tombstone value. If the table has, for instance, a tophashes array that looks something l…

  2. comment
    Comment #45551339

    Yes! The JSON library I wrote for the Zephyr RTOS does this. Say, for instance, you have the following struct: struct SomeStruct { char *some_string; int some_number; }; You would …

  3. comment
    Comment #45545652

    The Linux man page ( https://man7.org/linux/man-pages/man3/atoi.3.html#VERSIONS ) says that POSIX.1 leaves it unspecified. As you found out, it's really something that should be av…

  4. comment
    Comment #45545217

    One thing to note, too, is that `atoi()` should be avoided as much as possible. On error (parse error, overflow, etc), it has an unspecified return value (!), although most libcs w…

  5. comment
    Comment #45353933

    Programs running under any Valgrind tool will be executed using a CPU emulator, making it quite a bit slower than, say, running the instrumented binaries as required by sanitizers;…

  6. comment
    Comment #45350014

    Go has had its own version of msan and asan for years at this point.

  7. comment
    Comment #45349988

    I wrote the Lwan web server, which similarly to Go, has its own scheduler and makes use of stackful coroutines. I have spent quite a bit of time Valgrinding it after adding the nec…

  8. comment
    Comment #45212891

    I recently wrote one, in C, using tail calls to implement dispatch with CPS: https://tia.mat.br/posts/2025/08/30/forth-haiku.html It's already pretty efficient but I'm working on i…

  9. comment
    Comment #44173156

    I recently implemented a Forth, compatible with the Forth Haiku dialect used by https://forthsalon.appspot.com/ -- it uses a tail call/continuation-passing dispatching method, and …

  10. comment
    Comment #43147721

    There's another small one in Campinas, near the Nipo-Brazilian Institute: https://viajantesemfim.com.br/rua-camargo-paes-um-pedacinho-... (or on GMaps: https://maps.app.goo.gl/P17s…

  11. comment
    Comment #41012132

    Also in Brazil: https://en.wikipedia.org/wiki/Nova_Iorque

  12. comment
    Comment #40754900

    Thank you!

  13. comment
    Comment #40739494

    Reminds me of this sample from the Lwan project: https://time.lwan.ws/blocks -- where the clock is rendered on the server, and new frames are sent to the client using chunked encod…

  14. comment
    Comment #40374510

    Details are hazy as this was a long time ago, but at some point you could make parts of messages not render in Outlook and Outlook Express by writing "begin something" (two spaces …

  15. comment
    Comment #40360700

    This is roughly what my JSON parser does. It does type-checking, albeit without using JSON-schema, but an object descriptor that you have to define to parse and generate JSON. It's…

  16. story
  17. comment
    Comment #37469982

    Yes, that's the library! It's something I've been slow cooking for over 10 years at this point. :)

  18. comment
  19. comment
    Comment #37414821

    It's collected after 15min, give or take. The hash isn't random, it's the SHA-1 hash of the base64-encoded data, so it's predictable -- if something keeps accessing the base-64 enc…

  20. comment
    Comment #37412346

    On the client. Data is already stored in the ZIP file deflated, so I can just send whatever is inside the ZIP file back to the client if they accept that encoding (which is pretty …

  21. comment
    Comment #37411826

    I love this!

  22. comment
    Comment #37411807

    Then it would require JavaScript and wouldn't be a nice demonstration for my web server library. :)

  23. comment
    Comment #37410504

    Oh, this is a cool experiment!

  24. comment
    Comment #37409963

    That's why we can't have nice things. :(

  25. comment
    Comment #37409629

    Files are not decompressed in the server: it sends the unmodified deflate stream back to the user.