Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simscitizen
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
simscitizen
3mo ago
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. Skia or Cairo). On macOS/iOS, the easiest way woul
2.
▲
by
simscitizen
4mo ago
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 js-dos. It worked well enough for those games.
3.
▲
by
simscitizen
7mo ago
DE is definitely not meant for older computers, it contains gigabytes of 2D sprites
4.
▲
by
simscitizen
9mo ago
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) can mean you don't get anywhere close to act
5.
▲
by
simscitizen
11mo ago
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 "try and let the app decide if waited to
6.
▲
by
simscitizen
11mo ago
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 those FS blocks likely get assigned to flash dies in a way tha
7.
▲
by
simscitizen
11mo ago
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 and does expect to observe those state changes synchronously
8.
▲
by
simscitizen
1y ago
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 and indices in SQLite are B-trees. B-trees have the fo
9.
▲
by
simscitizen
1y ago
That’s exactly what he meant by using Focus Modes, which is the iOS feature that lets you do just that.
10.
▲
by
simscitizen
1y ago
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 type in some query and it should do a query on th
11.
▲
by
simscitizen
1y ago
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 all mutator threads. They ran at about the same time a
12.
▲
by
simscitizen
1y ago
> 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 application runtimes. The main culprit driving high memory usage i
13.
▲
by
simscitizen
2y ago
And replace him with JD Vance?
14.
▲
by
simscitizen
2y ago
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 string contents in-line with t
15.
▲
by
simscitizen
2y ago
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 take in to account frequency scaling or core type as ex
16.
▲
by
simscitizen
2y ago
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 you want something higher level then use CFNetwork (probably
17.
▲
by
simscitizen
2y ago
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.
18.
▲
by
simscitizen
2y ago
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...
19.
▲
by
simscitizen
2y ago
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 also.
20.
▲
by
simscitizen
2y ago
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 until you find something interesting you optimize. Ide
21.
▲
by
simscitizen
2y ago
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 woul
22.
▲
by
simscitizen
2y ago
> 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 profiling tool, e.g. it takes a call stack sample every mill
23.
▲
by
simscitizen
2y ago
Not sure there is much of a herd, because document.cookie is only shared amongst same-site renderer processes.
24.
▲
by
simscitizen
2y ago
Just use clock_gettime with whatever clock you want. There’s also a np (non-POSIX) suffixed variant that returns the timestamp in nanoseconds.
25.
▲
by
simscitizen
2y ago
Another option on macOS/iOS is to ship just the LC_FUNCTION_STARTS section in the Mach-O binary. This is how symbolication can discover function names from system libraries even without full debug symbols on those platforms.
26.
▲
by
simscitizen
2y ago
All this talk about frame pointers enabled on various Linux distros and we still haven’t talked about the biggest one, which would be Android. Have they decided to compile with frame pointers yet? The last time I looked in to this many year
27.
▲
by
simscitizen
3y ago
I don’t remember if the system default was changed but the default for all databases created by Apple apps was switched to WAL mode in the iOS 4 timeframe. The infinitely growing WAL problem is a real problem though. Often that is caused by
28.
▲
by
simscitizen
3y ago
From the linked thread, the Apple port is already doing the right thing in WAL mode which is what pretty much every SQLite client should be using these days [1]. Not sure why you’d be using delete journal mode in 2024 when WAL has existed f
29.
▲
by
simscitizen
3y ago
Who simplified the title here? This is only for the GTK and WPE ports of WebKit. Not for other platforms that WebKit supports.
30.
▲
by
simscitizen
3y ago
Mobile OS vendors have already thought of that and came up with the exact same solution of requiring entitlements to access the network from a keyboard app: https://developer.apple.com/documentation/uikit/keyboards
More ›