Viewing profile — simscitizen
simscitizen
HN member- Joined
- Mon, Jan 14, 2013, 4:59 AM UTC
- HN karma
- 417
- Public activity
- 113 items
- HN profile
- View on Hacker News ↗
About simscitizen
No profile information was provided.
Recent public activity
-
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. …
-
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…
-
comment
Comment #47010933
DE is definitely not meant for older computers, it contains gigabytes of 2D sprites
-
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)…
-
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 …
-
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…
- comment
-
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 …
-
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…
-
comment
Comment #45176622
That’s exactly what he meant by using Focus Modes, which is the iOS feature that lets you do just that.
-
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…
-
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…
-
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…
-
comment
Comment #43227423
And replace him with JD Vance?
-
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…
-
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 …
-
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…
-
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.
-
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...
-
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…
-
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…
-
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…
-
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…
-
comment
Comment #40568202
Not sure there is much of a herd, because document.cookie is only shared amongst same-site renderer processes.
-
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.