Live data from Hacker News

Viewing profile — maxdamantus

maxdamantus

HN member
Joined
Thu, Mar 15, 2018, 5:05 AM UTC
HN karma
435
Public activity
176 items

About maxdamantus

No profile information was provided.

Recent public activity

  1. comment
    Comment #46387887

    It's the same on Wayland. The client (usually part of a toolkit like Gtk/Qt) needs to subscribe to notifications [0] from the server so it can decide the raster size of the surface…

  2. comment
    Comment #46382456

    > Per-display DPI settings fwiw, Xorg already had this, since you can set the DPI for each display through RandR/xrandr. In both X11 and Wayland it's up to the toolkit to actually …

  3. comment
    Comment #45991995

    > It's true that any modern processor has a "compilation step" into microcode anyway, so in an abstract sense, that might as well be some kind of bytecode. This. > What I can imagi…

  4. comment
    Comment #45922911

    Sir say "tray bean". Mercy.

  5. comment
    Comment #45888639

    > Oh, wait, there is: As far as I can tell this is a transliterator, not a translator. It's just turning latin letters into hieroglyphs as you type them. I don't know how accurate …

  6. comment
    Comment #45888092

    Indeed, my understanding (which is backed up by your link) is that the hieroglyphs aren't just pictograms that try to draw the meaning but they tend to have particular pronunciatio…

  7. comment
    Comment #45882903

    > Exceptions in transactional logic are often used to represent a "rollback persistent store changes made thus far" scenario. Handling can be added to change the transaction to be …

  8. comment
    Comment #45880999

    You want to at least check that the exception was raised in the absence of read anomalies. The check for read anomalies in OCC happens during the commit phase. Setting a transactio…

  9. comment
    Comment #45875092

    I wasn't thinking of JDBC SQL transactions specifically, but sure, different APIs can denote retriable transaction failures differently. Instead of: if (!tx.commit()) { continue; }…

  10. comment
    Comment #45874240

    > A transaction failing is the opposite of an unexpected event. That's why it's denoted by a non-exceptional return value from `tx.commit()` in my sample code. When I've talked abo…

  11. comment
    Comment #45873758

    A result of an inconsistent transaction should be discarded whether it's a return value or a thrown exception. If it runs out of tries another error should be thrown. This should o…

  12. comment
    Comment #45873124

    Sounds like the right intent to me. To pinpoint your existing quote from the documentation: > The finally block always executes when the try block exits. This ensures that the fina…

  13. comment
    Comment #45871874

    And JavaScript .. And Python (though as sibling posts have mentioned it looks like they're intending to make a breaking change to remove it). EDIT: actually, the PEP points out tha…

  14. comment
    Comment #45871709

    Interesting .. from the post above: > The projects examined contained a total of 120,964,221 lines of Python code, and among them the script found 203 instances of control flow ins…

  15. comment
    Comment #45754269

    Doesn't look difficult: https://www.fbi.gov/wanted/seeking-info/ballot-box-fires (yes, that's in Oregon)

  16. comment
    Comment #45754167

    Here in NZ when I've been to vote, there are usually a couple of party affiliates at the voting location, doing what one of the parent posts described: > You can stay there and wai…

  17. comment
    Comment #45693397

    The point about inducing segmentation faults is interesting and sounds like it could work to implement the `hint_read` mechanism. I guess it would mostly be a question of how perfo…

  18. comment
    Comment #45693059

    I think the model I described is more precise than madvise. I think madvise would usually be called on large sequences of pages, which is why it has `MADV_RANDOM`, `MADV_SEQUENTIAL…

  19. comment
    Comment #45690726

    Just to clarify, I think the parent posts are talking about non-failing page faults, ie where the kernel just needs to update the mapping in the MMU after finding the existing page…

  20. comment
    Comment #45663278

    > I can say that the display & overall performance is noticeably faster on the two actual computers I tested on than under qemu on my Linux system. You'd probably want to use `-ena…

  21. comment
    Comment #45167256

    > But I think it worth recognising that the serialisation mechanism doesn’t exist primarily to prevent repairs, it exists to provide a form of cryptographic integrity check of the …

  22. comment
    Comment #44996493

    But no one has demonstrated an actual operation that requires valid UTF-8. The reasoning is always circular: "I require valid UTF-8 because someone else requires valid UTF-8". Even…

  23. comment
    Comment #44994230

    They have effectively done this (since the linked issue was raised), by just converting Windows filenames to WTF-8. I think this is sensible, because the fact that Windows still us…

  24. comment
    Comment #44993362

    Ah, mentioning Windows filenames would have been useful. I guess the issue isn't so much about whether strings are well-formed, but about whether the conversion (eg, from UTF-16 to…

  25. comment
    Comment #44992067

    Can you give an example of how Go's approach causes people to lose data? This was alluded to in the blog post but they didn't explain anything. It seems like there's some confusion…