Profile for hikari
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
if ([it looksLike:Duck] &&
[it respondsToSelector:@selector(swim)] &&
[it respondsToSelector:@selector(quack)]) {
assert([it isKindOfClass:Duck]);
}
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)
wtf the king of sweden’s personal information is secret since some time in 2021. you used to be able to find out his personnummer etc https://carup.se/carup-avslojar-kungens-nya-hemliga-liv-har-fatt-skyddad-identitet-i-alla-register/
0x0502, the number every opengl programmer fears
hahaha the EU Commission’s tool for checking VAT numbers now labels the member state drop-down box “Member State / Northern Ireland”
heh, Terminal.app gets confused if you have a tab character in exactly the right place in an overflowing line
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
unix users really think it’s ok to write shit like ‘Any created files will have mode “S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH”’
[NSCharacterSet illegalCharacterSet]
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?