Live data from Hacker News

Viewing profile — simscitizen

simscitizen

HN member
Joined
Mon, Jan 14, 2013, 4:59 AM UTC
HN karma
417
Public activity
113 items

About simscitizen

No profile information was provided.

Recent public activity

  1. comment
    Comment #48677696

    I know this type of approach was rejected at the beginning, but you can also just ask CoreGraphics to use the GPU for 2D rendering (and I'm sure there are equivalent paths in e.g. …

  2. comment
    Comment #48365274

    I'm not sure if this works well for more demanding games, but recently I wanted to let my kid play Number Munchers and Oregon Trail and just built a webpage for those games using j…

  3. comment
    Comment #47010933

    DE is definitely not meant for older computers, it contains gigabytes of 2D sprites

  4. comment
    Comment #46333843

    There's already a popular OS that disables overcommit by default (Windows). The problem with this is that disallowing overcommit (especially with software that doesn't expect that)…

  5. comment
    Comment #45805989

    It is surfaced to apps, but the "just detecting that connectivity sucks" heuristic turns out to be not all that easy to implement. There doesn't seem to be a better heuristic than …

  6. comment
    Comment #45787976

    Copying the file likely forces the creation of a new one with no or lower filesystem fragmentation (e.g. a 1MB file probably gets assigned to 1MB of consecutive FS blocks). Then th…

  7. comment
  8. comment
    Comment #45533722

    Not really something anyone can change at this point, given that the entire web API presumes an execution model where everything logically happens on the main thread (and code can …

  9. comment
    Comment #45419677

    I agree, all of these rules aren't the right way to teach about how to reason about this. All of the perf properties described should fall out of the understanding that both tables…

  10. comment
    Comment #45176622

    That’s exactly what he meant by using Focus Modes, which is the iOS feature that lets you do just that.

  11. comment
    Comment #44807741

    If you type the name of the person, it should allow you to create a filter for "Messages with: Person". It should also pop up a filter bubble for photos. From there I think you can…

  12. comment
    Comment #43696145

    Oh I've debugged this before. Native memory allocator had a scavenge function which suspended all other threads. Managed language runtime had a stop the world phase which suspended…

  13. comment
    Comment #43484804

    > It is insane that we have to dedicate multiple gigabytes of RAM, have CPUs 1000x faster than we had back with Netscape Navigator Webpages are applications. Browsers are applicati…

  14. comment
    Comment #43227423

    And replace him with JD Vance?

  15. comment
    Comment #42446774

    There are quite a few of these "better C string" idioms floating around. Another one to consider is e.g. https://github.com/antirez/sds (used by Redis), which instead stores the st…

  16. comment
    Comment #42096091

    Pretty sure it’s just scheduled CPU time / wall clock time. If you have multiple cores then scheduled CPU time can be greater than wall clock time. Also scheduled CPU time doesn’t …

  17. comment
    Comment #41574856

    That’s not the current documentation, as evidenced by the “archive” in the URL. If you want to stay at a lower level the recommendation these days is to use Network.framework. If y…

  18. comment
    Comment #41552736

    Inserting a new row for each log line in autocommit mode would be absurdly inefficient compared to just appending a log line to a file.

  19. comment
    Comment #41548691

    How does this work exactly? Is every log line a separate transaction in autocommit mode? Because I don't see any begin/commit statements in this codebase so far...

  20. comment
    Comment #41536066

    The main ones were www which contained most of the PHP code and fbcode which contained most of the other backend services. There were actually separate repos for the mobile apps al…

  21. comment
    Comment #40813991

    Peaks don't matter, they just correspond to the depth of the call stack. Probably the simplest way to use the flame graph is work from the bottom of the flamegraph and walk upwards…

  22. comment
    Comment #40813219

    As an example, imagine you sampled a program and got 5 CPU call stack samples. c c b b d a a a a a main main main main main In a flamegraph, you would see: [c ] [b ][d ] [a ] [main…

  23. comment
    Comment #40812929

    > I do memory/CPU traces like all day every day, and I fix code all the time based on that So I take it you understand one of the standard visualizations produced by a CPU profilin…

  24. comment
    Comment #40568202

    Not sure there is much of a herd, because document.cookie is only shared amongst same-site renderer processes.

  25. comment
    Comment #40274645

    Just use clock_gettime with whatever clock you want. There’s also a np (non-POSIX) suffixed variant that returns the timestamp in nanoseconds.