HackerTrans
TopNewTrendsCommentsPastAskShowJobs

gustavpaul

no profile record

comments

gustavpaul
·5 months ago·discuss
I meant that the name of the language creator is irrelevant to the point being made in the article, unless the name has some out of band meaning that the intended audience knows and I do not.

Turns out the article is AI slop, so makes sense.
gustavpaul
·5 months ago·discuss
> The Zig language, created by Andrew Kelley, takes a deliberate position on standard library scope.

I'm missing the significance of this callout. Is Andrew Kelley synonymous with/well known as a representative of a particular approach to language or software design?
gustavpaul
·9 months ago·discuss
The MmapReader is not copying the requested byte range into the buf argument, so if ever the underlying file descriptor is closed (or the file truncated out of band) any subsequent slice access will throw SIGBUS, which is really unpleasant.

It also means the latency due to pagefaults is shifted from inside mmapReader.ReadRecord() (where it would be expected) to wherever in the application the bytes are first accessed, leading to spooky unpreditactable latency spikes in what are otherwise pure functions. That inevitably leads to wild arguments about how bad GC stalls are :-)

An apples to apples comparison should be copying the bytes from the mmap buffer and returning the resulting slice.