13,786 karma · joined February 28, 2014
Interestingly, posix realtime FIFO scheduling doesn't preempt even on kernel thread based implementations, so one reading of the standard would require yield on this case. But that can actually be potentially catastrophic as FIFO scheduling is expected to be deterministic. But realtime scheduling is already beyond the standard: I doubt gcc and clang will do the transformation by default.
In practice the equivalence is necessary to make some obscure corner of the memory model work and prevent some undesirable optimizations; I expect that in practice the compilers, if they implement this at all, will provide an opt-in flag, but they will optimize as-if the call was there.
To be pedantic, you can: as long as the lambda doesn't close over any local variable, the object will decay to a function pointer.
Still, tthey are the stuff of sci-fi: it is the first time in recorded history that we can communicate with language with something that is not human! The consciousness "problem" is just a distraction.
Do androids dream of electric sheep indeed.
Although I guess we should probably update it to "99% of everything is slop.
https://www.bbc.co.uk/news/articles/c072prlxlddo
https://www.channel4.com/news/factcheck/factcheck-the-latest...
And "Killing in the Name" as Christmas song of '09, to spite the usual X-factor shoo-in.
There is a chance that more entertainment is yet to come from Clacton.