cgo's pointer check is all over the place
0 comments · go
- Comments5
0 comments · go
Story details from Lobsters ↗ · linked article on theconsensus.dev.
cgo's pointer check is all over the place was first seen on Lobsters · Hottest on Nov 23, 2026. Since then it has appeared in 70 checks on 3 different days. Its best position was #8 of 25, reached on Nov 24, 12:22 UTC. It dropped off the list after Nov 25, 10:22 UTC.
Position on Lobsters · Hottest at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Lobsters.
A few top-level comments from Lobsters, shortened. Read the full thread on Lobsters.
Good article. This covers the Go => C pointer checks but there are also C => Go pointer checks that can bite you. The Go runtime treats anything *typed* as a pointer as a pointer, and the runtime can and will inspect it whenever it wants. If the value is garbage, the Go runtime hard crashes even if you never…
Hm I've always treated empty slices as {(void *)0, 0}. This obviously has the same semantics as {(void *), 0} from C; don't use the pointer if the length is 0. But what's the rationale for using 1 instead of 0 as the pointer value? Does {(void *)0, 0} represent something else in Ghostty?
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. It was last on the list on Nov 25, 10:22 UTC, after 3 days of trending.
#8 on Lobsters · Hottest, on Nov 24, 12:22 UTC. Trendoday checks this list every 30 minutes.
It was first seen on Nov 23, 2026 and has been on the list on 3 days (70 checks) since.