Better HN
topnewbestaskshowjobs
Log inSign up

devxpy

515 karma · joined Dec 27, 2017 (8y ago) · 421 submissions

https://github.com/devxpy
Submissions

comment 8y ago · link · parent

Please enlighten me!

Would love to try out something new.

comment 8y ago · link · parent

> it won't last forever; it never does

I would love for a real contender to arrive, that challenges python's level of abstraction in a real way...

comment 8y ago · link · parent

Yeah distribution is a _huge_ problem for python right now.

comment 8y ago · link · parent

I actually believe that we can solve this problem for most cases.

Take dart for instance -- it doesn't require any typing as such, but has an excellent type system that supports generics too. The type checker is pretty robust, but flexible at the same time...

comment 8y ago · link · parent

> looks like we're heading once again towards a language monoculture

Isn't that's only true for data science?

What about the JavaScript monoculture :(

And academia still has courses for C java C++ etc. No respectable University teaches a single language!

comment 8y ago · link · parent

I think your real problem is with duck typing and not specifically with python.

There are efforts to have gradual typing suppprt in python though, and you might be interested in having at least partial typing suppprt.

comment 8y ago · link · parent

Interesting find.

comment 8y ago · link · parent

> Finally, Go doesn't do anything to prevent data races, which are the biggest problem facing concurrent code

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

Producers are literally the only people left that Apple really cares about now

comment 8y ago · link · parent

Keep calm and install solus ;)

comment 8y ago · link · parent

THANK YOU

comment 8y ago · link · parent

I feel like Bokeh is way too complicated for what it does.

I guess flutter has really spoiled me; my expectations from a UI framework are just too damn high now xD

comment 8y ago · link · parent

> but tech news aren’t really important.

I thought this was hackernews...

comment 8y ago · link · parent

That's pretty clean code, good job OP!

comment 8y ago · link · parent

I see new commits tho..

comment 8y ago · link · parent

Oh you should check out resin.io

comment 8y ago · link · parent

Filelight, comes default on kde. It's freaking amazing.

comment 8y ago · link · parent

Who the fuck writes a blog in monospaced font. This is an abomination on web design :-)

comment 8y ago · link · parent

I Agree with what you say.

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

A better argument is presented by this excerpt from that book.

> 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

It isn't.

> 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 book even has a number on this!

> 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

Farming isn't and never was, the only occupation in the world.

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

Research has shown time and again; Humans can't think for themselves.

This mentality is eminent, especially after the fact that we're taught bullshit like this from day 1:

> Early to bed and early to rise makes and man healthy, wealthy and wise

comment 8y ago · link · parent

Allow me to back this up with an actual piece of research.

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!

comment 8y ago · link · parent

THANK YOU

comment 8y ago · link · parent

Damn right.

comment 8y ago · link · parent

How does this compare to Spotify's recommendation and audio features API?

299.

Computer Science, Software Engineering, and the Scientific Method (2013)(youtube.com ↗)

2 points · by devxpy · 8y ago · discuss

1
91011
15