Profile for hikari

Header for hikari
Avatar for hikari
Display name
hikari 🌟 (fell out of the sky)
Username
@hikari@noyu.me
Role
admin

About hikari

Bio

from another world; magical girls on the internet, gpu programmers, musicians, sky enthusiasts, etc; EN/SV/DE/日本語

Stats

Joined
Posts
16689
Followed by
1483
Following
198

Recent posts

Neither ISO/IEC 9899:1999 (“ISO C99”) nor IEEE Std 1003.1-2001
(“POSIX.1”) requires time() to set errno on failure; thus, it is impossible
for an application to distinguish the valid time value -1
(representing
the last UTC second of 1969) from the error return value.

so many people talking about y2k38, we forgot to consider y1k969 (or all the overflows after y2k38)

Open thread at this post

ok so I was going to ask what fread() does when it partially reads an object, but then I didn’t, because I realised the whole point of it working with “objects” must be so it can ensure the file position is at an object boundary if an error occurs.

JOKE’S ON ME, THIS IS C

Open thread at this post

are there any memory allocators that support partial freeing? suppose i’m doing a character encoding conversion and i cheaply estimate the amount of space required. after conversion i’ll find out maybe as much as half of the space isn’t actually needed. what if i could tell the allocator i don’t need it, so it can re-use it if possible, without moving the rest of my allocation?

Open thread at this post