72 karma · joined May 29, 2019 (7y ago) · 40 submissions
comment 7y ago · link · parent
So the event handler gets called immediately? No that’s not right. What would be the point of that? The event handler or continuation obviously needs to be scheduled on something that is awaitable. Meanwhile, other concurrent tasks may be able to run.
> This is the essence of asynchronous programming. There are no tasks, no yielding, practically no overhead and everything is deterministic
This is just totally wrong. Especially re tasks: https://docs.python.org/3/library/asyncio-task.html#creating...
There is nothing inherent about async and await that prevents “yielding”... the issue of yielding and semaphores is a concurrency issue and since async and await are used in concurrent programming environments, the same issues apply.
While it is true async and await don’t require any kind of cooperative concurrent framework to work, that is kind of their whole point for existing. A single task async/await system isn’t terribly interesting.
comment 7y ago · link · parent
Well run moderated communities for the dying are nothing new.
comment 7y ago · link · parent
I don’t see how this increases overhead to deal with either.
Basically, coop multitasking and async/await operate on the exact same execution framework, the latter just gives convenient syntactic support.
Perhaps you should see how typescript turns async await into js.
comment 7y ago · link · parent
Which one? It’s “cooperative” ie not unpredictable. The points where one can block are predictable and documented explicitly, otherwise how would the programmer know they won’t block forever. The same should hopefully be the case for async/awaitable apis.
In fact where async/await will actually give up control are harder to tease out.
The differences are really not as big as they would seem.
comment 7y ago · link · parent
comment 7y ago · link · parent
Seccomp like so many Linux interfaces is the “fuck it” here’s an exhaustive yet half baked set of tools, you can do anything! This barely works out in gp programming, but is always an unmitigated disaster in anything security related.
comment 7y ago · link · parent
comment 7y ago · link · parent
Again.. eventfd and epoll covers the same use case as WFMO and EVENTs.
comment 7y ago · link · parent
In Linux each thread can get an eventfd and you can POLLIN all of them.
In fact I would argue that using futexes is the “roll your own solution” using lower level primitives (and easier to fuckup) much more so than eventfd and epoll.
As mentioned somewhat poorly in the post, using futexes gives a performance boost which is not surprising since they are fast user mutexes. FWIW I didnt think windows events had a fast user space path but I may be mistaken.
For most worker pool scenarios you’re describing, the overhead of eventfd is probably in the noise.
comment 7y ago · link · parent
The doubt is not so much the safety but is the benefit of the enantiopure version worth the cost.
comment 7y ago · link · parent
You are confusing Congenital adrenal hyperplasia (ie 21 alpha hydroxylase deficiency), the bane of every 3rd year med student and adrenal medullary hyperplasia, a much rarer condition (I don’t recall it ever coming up during medical school).
Congenital Adrenal hyperplasia involves the cortex where the corticosteroids are produced. Epinephrine and norepinephrine are catecholamines produced by the medulla. AMH is more similar to pheochromocytoma though.
comment 7y ago · link · parent
Everything you’re saying is all in your head.
comment 7y ago · link · parent
What you’re saying makes little sense for most “free trial” offers. These offers do not come with a term agreement (ie they are cancel anytime), and furthermore they are prepay. Ie you are offered a trial period and then you are billed in advance for the continuing service. So without a term agreement and prepay you’re not on the hook for anything. You just never paid, they terminate your service and that’s it.
comment 7y ago · link · parent
Sickle cell, lupus, hypertension, IQ, diabetes, etc etc are all not distributed evenly across race or sex. Also, environmental factors and epigenetics interact in complex ways. I would not be at all surprised that there’s a prevalence difference among racial or social groups.
comment 7y ago · link · parent
So? As far as I know this could be 1 year+ 20 repeats.
In contrast to your experience, I missed move semantics since the early 2000s. It’s not just to avoid copies.
How about the ability to avoid pointers, aliasing, and allocation. Move semantics afford more than just avoiding a copy.
comment 7y ago · link · parent
That’s simply wrong. You have outdated information. Unless you don’t consider Firefox, Chrome, IE, and Edge to matter. https://chromium.googlesource.com/chromium/src.git/+/130ee68...
https://developer.microsoft.com/en-us/microsoft-edge/platfor...
Safari still has an open issue I think. But that’s no surprise since Apple has demonstrated they’re suckitude at software security and development in general.
comment 7y ago · link · parent
Also in the US at least, the majority of households had a PC by 2001. I came from a shit poor backwater by this sites standards. We had computers.
And by 2001, FTP sites? That was post peak of Napster (after Feb 2001). Kazaa, Emule, etc were all regulars options. You’re a few years off, which was substantial in the 95-2001 timeframe.
comment 7y ago · link · parent
If they weren’t selling an adequate number of FX TVs at the higher price... they would lower it. I guess they didn’t have to.
This has nothing to do with price discrimination either, which is when the same good or service is offered at different prices in different markets.
comment 7y ago · link · parent
If they were selling the same exact product with same features at different prices, then maybe. But this is not the case.
This is just you being unhappy with the market clearing price for those features.
comment 7y ago · link · parent