Profile for hikari

Header for hikari
Avatar for hikari
Display name
Kanbaru ๐ŸŒŸ (one hikari of too many)
Username
@hikari@noyu.me
Role
admin

About hikari

Bio

from another world; anime girls on the internet who are terrible at playing guitar and slightly less bad at programming; EN/SV/DE/ๆ—ฅๆœฌ่ชž

Stats

Joined
Posts
19034
Followed by
1574
Following
203

Recent posts

you know, itโ€™s a shame that C is designed by ISO/IEC JTC1/SC22/WG14 and not the OpenGL Architecture Review Board. iโ€™m sure weโ€™d all rather write:

glDisable(GL_MASKING);
glEnableClientState(GL_SOURCE_DATA_ARRAY);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glSourceDataPointer(1, gl::UNSIGNED_BYTE, 1, dst_ptr);
glEnableClientState(GL_DESTINATION_DATA_ARRAY);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glDestinationDataPointer(1, gl::UNSIGNED_BYTE, 1, src_ptr);
glCopyBytes(0, num_bytes);
if (glGetError() != 0) {
   // fuck
}

rather than

memcpy(dst_ptr, src_ptr, size);
Open thread at this post

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