skysight-inc/HackerNews huggingface dataset:
Show HN: Auto-scaling worker pool library, using Go 1.18 generics
I recently published a new worker pool library that uses generics.

Generics allowed me to design a different API from other libraries. Instead of submitting a function for each task (as other libraries do), you submit values. This enabled me to make the pools connectable into pipelines, which can be useful if you want to separate IO-intensive from CPU-intensive tasks, or tasks of different parallelizability.

It also supports auto-scaling (resizable number of workers), which currently works well for my needs, but has a lot of room for improvement, especially in the case of pipelines with bottleneck.

Type Pool[I, O, C any] has three type parameters, but if you don't need all of them, I offer constructors that hide some of those types (by assigning them to empty struct).

I would appreciate your feedback.
That's awesome! TIL that the Basque country has a separate medical system, i would have thought that would be one of the things alongside foreign affairs and military that wouldn't be devolved to autonomous regions.

In France there's a similar system being rolled out currently, Dossier médical partagé, which is opt-in, and contains all of your diagnosis, tests, prescriptions, so that doctors can quickly see your medical history and present.
Even now, talking about it would lead to a quicker swing back to nuclear power hurting russia's interests.
At work you often are. For example, many top tech employers force you to add your pronouns on your mail signature.
> Fortunately for employees of Netflix, all of their compensation is cash.

No, but they can choose the mix of stock and cash as they please, from 100% stock to 100% cash.
The BepiColombo ‘model’: looking beyond the ‘original’
I remember Mono, a .NET runtime, having to change its allocations to fit inside a smaller core. This was because a thread could start on a bigger core but then be shunted onto a smaller core.

That fixed the crashing but obviously came with a loss of performance.
Benzodiazepines seem to have extremely different long term effects in humans depending on genetics and/or personality (or at least so it seems to me).

For example I’ve taken (prescribed) oxazepam and/or diazepam in significant doses every 6/12 hours for 3+ months, and then just suddenly stopped. Never felt the slightest urge to take the diazepam I had left in my bathroom cabinet.

But I’ve heard stories of people becoming severely addicted after consuming less than 10% of that total dosage.

So “your mileage may vary” as they say, and better safe than sorry.
> the issue of regex mixing up control in-band with data

Could you explain this? I don't quite understand what the problem is. Do you mean something like sed's regex substitute command?
For myself, I trust me to keep everyone informed.

All it takes is one accident or affliction to change this ability. Unresponsive due to a car accident, for example, or simply not having your list of information when you got rushed to the hospital. Confusion due to a high fever. A stroke due to an undiagnosed and hidden condition. Heck, simply age or winding up with a complicated health situation can do it.

In short: You really only can trust yourself if you have enough luck.
Lot's of assumptions here, like for example this:

> Assuming each neuron has a fan-out of 1000, aka 1000 MACs, that’s 2000 FLOPS per neuron

Human neurons are not built like we build the artificial neural networks. They may have complex time based behavior ("memory") and dendrites are quite complex, very far away from 2 FLOP per one.
Even worse (to me) is the P-cores have two way hyperthreading enabled so Intel says the CPU supports N(2)+M threads. While Intel has always behaved as if their hyperthreading meant a chip had N(2) core of performance, in the real world it's was more like N(1.5) at best.

So a CPU with 20 threads has maybe eight running at full speed of a P-core and the other twelve pretty gimped comparatively.
That's a cheap shot and you know it. All you said can be equally applied to books.

I truly bemoan the HN algorithm that made you do this for karma.
It it works for YouTube, why wouldn't it work for Google? Both use the same ad network anyway, so their advertisers are the same people.
Who the hell thought that this system was a good idea?

Is it corruption?
Yes! You can use (futex based) event counts to add blocking behaviour to any lock free queue.
I can't really understand how a post by El País can make it to hacker news. El país is a disinformation newspaper full of manipulation and indoctrination controlled by governments. At least this is the case in Spain, do reading this newspaper is just killing your brain
good point, it seems like the site is designed to psychologically trigger the reader
Ways Social Media Distorts Reality
That necessitates actually having a price point nailed down prior to accepting any sign ups. Some people (including possibly OP) get the ball rolling without even having a reasonably narrow ballpark guess settled on.
Not necessarily divisible, but requires power of 2 bufsize with this code (but you probably want that anyway to avoid division).

With non-power-2 bufsize you need some extra logic for write/readix++, but the rest of the code can stay the same.
But NYT reports on how gov is bad sometimes
> that's the doctor's job to assess whether the benefits outweigh the cost, considering the patient and their problems.

Have you been hiding under a rock? American doctors are completely corrupt and in the pockets of "big pharma". They've gotten millions of Americans addicted, and caused countless deaths and unimaginable human suffering.
The brain has been optimized by nature to do it's job on as little energy as possible. Considering human brains use 20% of all the calories eaten, the most of any organ, there is likely substantial evolutionary pressure to make any changes which reduce energy use, all other things being equal.

For the sake of this argument, assume information is transmitted and processed in the brain with a binary signal from each neuron, ie. firing or not firing.

From that perspective, it's likely that firing a neuron (which uses a lot more energy than not firing a neuron) is a relatively unlikely event. Ie. if you made a version of the brain which worked in discrete timesteps, the vast vast vast majority of timesteps would not have a given neuron firing.

GPU's don't have such a limitation.
There was an article a while back that showed that a human neuron and artificial neural network neuron are not equivalent: it takes an entire network to simulate the behavior of a single human neuron.
> It can store up to 32,767 elements at a time — more than enough for message queues, which must always be bounded.

Imagine I have a Gui where the user presses a button, upon which a message is sent to a queue, upon which a consumer reads it and performs some long-running task. Why should that queue be bounded?
I miss dancing videos. I make a point of liking any slutty girl I see just to keep the dopamine hits up.

But yeah, to get there it takes discipline and deliberate action. Any action (full view, like, share, favorite) is now a mix of "is it worth having this in my feed", "does the creator deserves a like", "do I enjoy this enough to like" and yeah, a good measure of keeping the fun in the mix.
> Using them means the work gets done for less power and thus less heat.

It also avoids scheduling conflict between housekeeping / background tasks and "user" stuff, which means more predictable and stable throughput and better cache utilisation (your cache doesn't get blown because the system needed some time to zero memory or update something).
I think you mean the US invasion of Iraq under completely false pretences
It needs an oracle at least to announce the value or the collateral in USD.
I'm not telling that process difference isn't the part of the picture, but the process difference is at most half of the story.

Working on HPC field and with generations and generations of Intel hardware, I can tell you that two node difference (alone) never gives you 25% real world performance in the realm of Intel, let alone theoretical.
Creating an Earth Archive
If course it's a fundamental difference. It's just irrelevant for most purposes.
> Sustainable, non addictive and non neurotoxic anxiolytics exists: the #1 being opipramol

You misspelled kava.
"people should only ever take opioids VERY TEMPORARILY to get through surgeries or other such things. Opioids are not for long term pain management."

Or realize that people should follow their doctor's advice and realize that opioids definitely can be a part of long-term pain management. Not all long-term use is equal. You can have long-term pain and long-term use of opioids without needing to take them daily just like you can use benzos for years without needing to take them daily for that entire time.
Are you being treated with chronic pain by any pain killers? I've heard this before, but it's not exactly as you put it. Chronic opioid use leads to sensitization to pain. This doesn't mean it is equivalent to the pain being treated. In my experiencing minor sensitization to pain in exchange for treating debilitating, disabling, and depression-inducing pain is an amazing trade. I'd do it again without a second thought. It gave me the ability to go to school and start a career, as opposed to being permanently disabled
~80% right now. I pay myself whatever’s left and haven’t really invested back. My revenue comes from monthly and quarterly credit card subscriptions so it’s pretty regular. I’m aiming for a 45-50% net margin once I have a team and real costs.
? those things are as close the plain html without, well just editing html files yourself (which is fine!)
But it takes an entire network of human neurons to simulate the behavior of an artificial one. There's overhead in translation, but that doesn't by itself mean one is superior to the other as a basic unit.
> Having a blanket ban demonstrates that you are judging transgender people on their transgender status alone,

No, by their sex - just like everyone else.
Neural network is an atrocious misnomer. The only similarity ive seen is between CNNs and vision. Thanks alex
Does AMD beat Intel at power efficiency with varied or near-idle workloads, or just when running full-tilt?
Phylum Raises $15M to Proactively Defend the Open-Source Supply Chain
It's never truly free but on some CPUs (e.g. x86 and x86-64) you're always paying for it anyway and so you might as well use it.
How is this surprising? That societies (must) form vertical structure is a law of life/nature/universe. It is so well described and understood down to thermodynamics of life as a process, that it is incredible that governments (in the east and west) try to fight the universe over this. In fact we teach it to 10 year old children in history classes yet in some schizophrenic twist we cannot apply any reason to current trends in society.

[Based on Th. Sowell's concepts from Cosmic justice]
The impossible cannot be achieved, and the costs for trying to do that are enormous; what they are seeking to correct are not merely the deficiencies of society, but of the cosmos. What they call "social justice" encompasses far more than any given society is causally responsible for.
A laughable comparison
If you have a vulnerable terminal emulator, yes. Well, the same holds for every web site you visit if you have a vulnerable browser.
Hah, I am the creator and didn't know somebody already posted it
I think the reason why it got flagged was because of racist comments. After battling those racists/spam bots over the night, I have implemented a soft auto ban and hard ban on the backend of the website.
I also implemented feature this morning so that you won't see the same confession twice.
All in all, the website is so much better than yesterday now.
I said it felt (to me) "bulky but solid kinda like a BMW car" which I think is a fair criticism and also a statement of respect, so what you tripped you up?

And that statement was not about the allocation time. But my understanding is that deallocation (GC) is not amortizable to constant for long-lived objects.

We can probably agree that having to code a separate class (with object overhead) to represent each little tuple of 2 integers or so, is bulky - programming-wise but also concerning the memory overhead (and possibly GC overhead).

Programming in C does not imply using malloc() to allocate individual objects. This is a bad practice.
> Paolo Ardoino's tweet is not clear or particularly trustworthy either

Given that it's been nearly 7 years of Tether and the relentless doom prophecies surrounding it, perhaps it's best left to the reader to make their own mind up what the CTO is saying here.

Probably the best advertisement they'll ever get for new finex signups if the rates hold steady for a few days.

Everyone says they are so untrustworthy yet you really think a CTO would be highlighting imminent doom like this?
If those doctors were outliers, it would have been very simple and quick to detect the anomalies.
And, I went to a random doctor, twice in the last couple of years, both prescribed me SSRIs including two psychotic substances. I have been fine without taking them. Anecdotal, but perhaps it attenuates your suspicions, mine is that it's pretty generalised.
Tips that may save you from the hell of PyYAML
YAML is a data-serialization language that is widely used. As a developer, I’m always dealing with YAML from time to time. But processing YAML, especially using PyYAML in Python is painful and full of traps. Here I want to share some tips and snippets that can make your life with PyYAML easier.
In my analysis, only Gracemont (Atom 5th gen) is good and that’s for two reasons:

1. It has roughly the IPC of Skylake. 2. It’s the first Atom with AVX2. Even in 2021 Intel released brand new Atom cores without AVX2, which was introduced with Haswell (Haswell New Instructions). And in most tests, merely enabling AVX2 will yield 10% higher performance. That’s why Clear Linux has higher performance as they’re all tuned for Skylake. That’s also the reason why Red Hat couldn’t target x86-64-v3 with AVX2 for their new releases.

All previous Atom cores are slower than you imply:

Tremont (Atom 4th gen) has the IPC of Sandy Bridge. Goldmont (Atom 3rd gen) has the IPC of Core. It’s not exceeding Core like you imply. And Atom first gen is dog slow. It is like running a Pentium II/III CPU or a first generation Raspberry Pi. I find them an unsuccessful attempt of Intel of trying to create a mobile chip. In essence they just brought back a Pentium era chip.

This new Atom is fantastic though.
Sarcasm?

UK radios discussed that this past week, I didn't even know the event was happening until I heard it was probable that Ukraine was going to win, and Russia was banned

Eurovision has historical been mostly about political statements
> The list of "thanks" people is clearly fluff

Everything I read online makes me swear off open sourcing stuff. Literally last time this ordeal unfolded on HN people called the dev team out for not thanking people by name and now that they did people think it's fluff?

This is why we can't have nice things.
I don't see any snark nor sneer in my comment. Sorry if it offended anyone.

Comments in this thread clearly seem to think that bitfinex is paying them those rates when that's not how it works at all. Bitfinex is the middleman.

You can offer any rate you want right now for any lending products on their website and that will appear. If anything I'd say this is an opportunistic marketing ploy by them.

Those rates won't hold. I've went through a big automated crypto lending phase and they never hold up for any significant period of time yet do spike like this regularly. It's either revert to mean or bust. You choose which one you think it is.
Your link [1] is about iron deficiency in toddlers, not any other stages of life and that can be misunderstood by reading your comment. It is also about drinking milk (and more specifically cow's milk) and not about eating "dairy" in general. Your comment talks about "dairy" in general.

Every health agency recommmends milk and dairy as one element of a balanced diet. See for example the recommendation by NHS Scotland, mentioned in the article and illustrated here:

https://www.nhsinform.scot/healthy-living/preventing-falls/k...
Unless there were an escape sequence meaning "execute this". I am not aware such beast would exist.
I recommend trying clonidine . It was a life saver for me
Most pacific islands are high up on obesity rates so one pollution incident is not an explanation:

https://en.wikipedia.org/wiki/Obesity_in_the_Pacific

If you follow the "see also" from that article studies find the genetic factors towards becoming obese in a favorable environment to be different in different ethnic groups, from 6-85%.

So a theory that fits the statistics is that colonialism brought in a favorable diet for weight gain to everywhere(?) but the percentage of people who became obese when subjected to a favorable diet was largely a factor of local genetics, genes most useful in an unfavorable environment did well and put the peoples in those places at the top of the list for obesity rates.
It doesn’t act much like us. We don’t have that kind of conscious insight into ourselves anyway.

If you want to design someone like you unconsciously though, that’s pretty easy - just takes another person and nine months.
Do yourself a favour and use this: https://uk.pcpartpicker.com/products/laptop/
You can filter using many axes, like screen size, price, battery life, RAM, and so on... It'll give you a much better idea of what's available, rather than what's trendy.

Once you've selected a few promising ones you can check the reviews online.

On a side note, make sure you're not upgrading just for the sake of upgrading, most dev work has very low computing requirements. You could also buy second-hand and get something great for hundreds of dollar less than new. You can also buy new for considerably less than 1000$, especially in the U.S where prices are cheap. The laptop I bought back in college was 300$ and good enough to do any dev work I wanted (that's about the lower bound of what you can find brand new though).
intra-neuronal communication, not 'talking to people' (tiring as that may be).
Who knew proposing good ideas in a condescending manner would lead to them getting dismissed! I'm shocked! /s
Ask HN: Is there hope for micropayments?
I've always heard that narrative that micropayments simply won't work and that people don't like it.

Recently, I've found myself paying for OpenAI's GPT-3 playground app in micropayments format. I use it for small tasks here and there and pay around 2-4$ a month. It feels totally fine and now I don't see why I wouldn't do the same for my Google searches or usage of maps.

Does anyone else have examples of services/products that they pay for in micropayments?
The issue I have with hypercore is that it's neither fully mutable, nor multiwriter.

As far as I know, you can't fully have both(Because of the tombstone problem and source of truth issues), but either one individually can be implemented.

True deletion, or multiwriter within one DB would have been nice to have.

Other than that, it looks to be a great thing. I think it is more practical than IPFS at the moment because IPFS lacks any top level concept of feeds or collections, just one giant DAG with random access.
"By 2050, deployment of engineered
removals at large scale, between 75 and
81 MtCO2
per year"

Looks legit?
I'm confused. Your link is about the Abbott plant, but the main article is about the entire market.

And your 2nd link covers the same things as the main article - concentration and too much regulation?
could we get a nitter link with those kind of twitter "news", that to work with noscript/basic (x)html browsers out-of-the-box.
>how does this project have an audience beyond the already tech literate?

linuxmasterrace...
I urge you to go flick through http://pessimistsarchive.org/
> > Race and orientation is an immutable characteristic of the person.

> That is no more true that it is of gender identity.

Some people detransition, i.e. their gender identity changes back to match their sex. This demonstrates that gender identity is not immutable.

For example, here's a fascinating piece by a recent detransitioner, about how, and why, her gender identity was male for several years: https://lacroicsz.substack.com/p/by-any-other-name
No, it didn’t max out CPU (not even a single core) on either of the machines.

My theory is that you only have a limited time window per TCP packet, and decrypting TLS exceeds that time window. I haven’t verified that theory yet, though.
Drum magazine for dropping mortar rounds from commercial drones
Nice write up, with a good explanation of how stars are “eaten” by black holes but the page is full of ads.
I guess people do keep reinventing Interlisp-D every decade.
The writing here reminds me a bit of that of a friend who succumbed to schizophrenia. Just unconnected word salad. What did I read?
There is a massive design gap between all Apple designed chips and non Apple designed chips. Apple’s chips are ridiculously humongous. They’re built for extremely wide, high performance applications for the past 10 years. A single A14 core can do 64 32-bit floating point operations in a single clock cycle. AMD/Intel were long at 16 operations and only the latest Intel went up to 32 operations.
quoting from the site

> the book is free if you enter your email address

Not that I wouldn't be able to use a throw-away address, but this does not raise my confidence into the whole effort.
Balloon Guitar Is an Absolute Gas, Helium or Not
> Every single project, from digital art to social organization, is ultimately asked to do one job: enrich its participants.

When the thesis of your essay is based on such a blanket statement, a single counterpoint is all that is needed as a rebuttal.[1]

[1] https://endaoment.org/
“Easy” indeed. Maybe the first 4 weeks after fertilisation.
I’m using the defaults of each server.

In practice, as you suspected, this amounts to AES, as per the curl -v output:

SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
GPUs have their own limitations though, the 3090 given as an example needs active cooling.
Thank you for this specification as the OP hasn't put it in the title. Before reading your comment I thought the article is about human interaction.
You're not really hungry, you're a sugar addict.

I know that doesn't solve the problem. But try treating this as an addiction, it will help.
Funny he defines Chimera as the mythical beast right at the start. I was sure he was thinking of the alternative definition:

> a thing that is hoped or wished for but in fact is illusory or impossible to achieve. "the economic sovereignty you claim to defend is a chimera"

That said Alder Lake does open up a bunch of new possibilities and isn't an illusion
Remote equipment access (Remote Labs) using Edrys
It was a bit more complicated than that: the issue was that one of the early big.LITTLE designs (Samsung's Exynos 8890) had different cacheline sizes on the big and little cores.

glibc's `__clear_cache` would cache the cacheline size on first call, so if the program was started on a big core then migrated onto a little core it would only flush every other cacheline. Which was an issue for any program needing to explicitely clear the caches, like most any JIT.

And the mitigation was not to "change its allocation", it was to bypass libgcc and handroll cache clearing: https://github.com/mono/mono/pull/3549

Source: https://www.mono-project.com/news/2016/09/12/arm64-icache/

This issue didn't only affect Mono e.g. dolphin (https://github.com/dolphin-emu/dolphin/pull/4204) and ppsspp (https://github.com/hrydgard/ppsspp/pull/8965) had been hitting the same issue and adopted mono's fix.

But fundamentally this is the 8890 being broken: as the Mono post notes, technically nothing precludes core migration in the middle of clearing the cache, which would also lead to broken behaviour, with no mitigation.