News for hackers. Stuff that matters.
Re:Fibers: An Elegant Windows API by gpderetta on Friday March 29, 2019 @09:13AM (#19521309)
Yes, IIRC the trick is to split the pointer I two integers and pass the halves separately.
Re:Fibers: An Elegant Windows API by wongarsu on Friday March 29, 2019 @02:21PM (#19524184)
Which would imply that you know that sizeof(int) * 2 == sizeof(void*). That's a good assumption for x86-64 architectures but doesn't sound very portable at all.
Re:Fibers: An Elegant Windows API by gpderetta on Friday March 29, 2019 @03:09PM (#19524587)
There are many ways to recover portability.
Re:Fibers: An Elegant Windows API by Shish2k on Friday March 29, 2019 @03:40PM (#19524887)
POSIX seems like the kind of API that it shouldn't be necessary to "recover" portability from...