515 karma · joined Dec 27, 2017 (8y ago) · 421 submissions
comment 8y ago · link · parent
I've been working on a multiprocessing library -- built a wrapper function that makes any function, an atomic operation on the state.
https://zproc.readthedocs.io/en/next/user/atomicity.html
(Since it's protected by the actor model, not locks it's an enforcing mechanism)
Do you think this is a step in the right direction?
comment 8y ago · link · parent
But you gotta realize, just having the time clock (suprachiasmatic nucleus) synchronized and working perfectly in no way implies that OP will sleep early.'
Some people are hard-wired at DNA level to sleep late.
I made that comment in hopes make this point.
It is a big deal.
Not everyone has a flexible sleep cycle.
comment 8y ago · link · parent
> humans likely evolved to co-sleep as families or even whole tribes, not alone or as couples. Appreciating this evolutionary context, the benefits of such genetically programmed variation in sleep/wake timing preferences can be understood. The night owls in the group would not be going to sleep until one or two a.m., and not waking until nine or ten a.m. The morning larks, on the other hand, would have retired for the night at nine p.m. and woken at five a.m. Consequently, the group as a whole is only collectively vulnerable (i.e., every person asleep) for just four rather than eight hours, despite everyone still getting the chance for eight hours of sleep. That’s potentially a 50 percent increase in survival fitness. Mother Nature would never pass on a biological trait—here, the useful variability in when individuals within a collective tribe go to sleep and wake up—that could enhance the survival safety and thus fitness of a species by this amount. And so she hasn’t.
Thanks for giving me the inspiration to read it. This book is just fantastic.
comment 8y ago · link · parent
> Kleitman and Richardson were to be their own experimental guinea pigs. Loaded with food and water for six weeks and a pair of dismantled, high-standing hospital beds, they took a trip into Mammoth Cave in Kentucky, one of the deepest caverns on the planet—so deep, in fact, that no detectable sunlight penetrates its farthest reaches. It was from this darkness that Kleitman and Richardson were to illuminate a striking scientific finding that would define our biologicalrhythm as being approximately one day (circadian), and not precisely one day. In addition to food and water, the two men brought a host of measuring devices to assess their body temperatures, as well as their waking and sleeping rhythms. This recording area formed the heart of their living space, flanked either side by their beds. The tall bed legs were each seated in a bucket of water, castle-moat style, to discourage the innumerable small (and not so small) creatures lurking in the depths of Mammoth Cave from joining them in bed. The experimental question facing Kleitman and Richardson was simple: When cut off from the daily cycle of light and dark, would their biological rhythms of sleep and wakefulness, together with body temperature, become completely erratic, or would they stay the same as those individuals in the outside world exposed to rhythmic daylight? In total, they lasted thirty-two days in complete darkness. Not only did they aggregate some impressive facial hair, but they made two groundbreaking discoveries in the process. The first was that humans, like de Mairan’s heliotrope plants, generated their own endogenous circadian rhythm in the absence of external light from the sun. That is, neither Kleitman nor Richardson descended into random spurts of wake and sleep, but instead expressed a predictable and repeating pattern of prolonged wakefulness (about fifteen hours), paired with consolidated bouts of about nine hours of sleep.
comment 8y ago · link · parent
> The second unexpected—and more profound—result was that their reliably repeating cycles of wake and sleep were not precisely twenty-four hours in length, but consistently and undeniably longer than twenty-four hours. Richardson, in his twenties, developed a sleep-wake cycle of between twenty-six and twenty-eight hours in length. That of Kleitman, in his forties, was a little closer to, but still longer than, twenty-four hours. Therefore, when removed from the external influence of daylight, the internally generated “day” of each man was not exactly twenty-four hours, but a little more than that. Like an inaccurate wristwatch whose time runs long, with each passing (real) day in the outside world, Kleitman and Richardson began to add time based on their longer, internally generated chronometry.
comment 8y ago · link · parent
So, simple solution - Don't be a farmer. Be a night guard or something.
This is really like the kind of problem we have today. We only have some 5 most popular professions in the world, so people are rigged to cater to the customs of these 5 professions. Everyone else is just "lazy"!
comment 8y ago · link · parent
Here is an excerpt from the book "Why we sleep" (which BTW is written by a neuroscientist and psychology prof working at the Center for Human Sleep Science )
> An adult’s owlness or larkness, also known as their chronotype, is strongly determined by genetics. If you are a night owl, it’s likely that one (or both) of your parents is a night owl. Sadly, society treats night owls rather unfairly on two counts. First is the label of being lazy, based on a night owl’s wont to wake up later in the day, due to the fact that they did not fall asleep until the early-morning hours. Others (usually morning larks) will chastise night owls on the erroneous assumption that such preferences are a choice, and if they were not so slovenly, they could easily wake up early. However, night owls are not owls by choice. They are bound to a delayed schedule by unavoidable DNA hardwiring. It is not their conscious fault, but rather their genetic fate. Second is the engrained, un-level playing field of society’s work scheduling, which is strongly biased toward early start times that punish owls and favor larks.
EDIT: This is just one argument against the generalization that humans are hard-wired to sleep early. The book is filled with countless research pieces and experiments; science seems to suggest otherwise. Highly recommended read!
299.
Computer Science, Software Engineering, and the Scientific Method (2013)(youtube.com ↗)
2 points · by devxpy · 8y ago · discuss