skysight-inc/HackerNews huggingface dataset:
Eh, it's so easy to provide your own implementation that does this, but I guess it wouldn't hurt to include in the standard-library since we already have something like Promise.all()

Here is the implementation I typically use for doing just that:

async function executeQueue(promises, concurrentLimit) {
let index = 0;
let activePromises = [];

async function manageQueue() {
if (index >= promises.length && activePromises.length === 0) return;

while (activePromises.length < concurrentLimit && index < promises.length) {
const promise = promises[index]();
activePromises.push(promise);
index++;

promise.then(() => {
activePromises = activePromises.filter(p => p !== promise);
manageQueue();
});
}
}

await manageQueue();
await Promise.all(activePromises);
}

Used like this:

function r(i, resolve) {
console.log(`Task ${i}`)
resolve(`Task ${resolve}`)
}

// Example usage
const promises = [
() => new Promise(resolve => setTimeout(() => r("Task 1", resolve), 2000)),
() => new Promise(resolve => setTimeout(() => r("Task 2", resolve), 1000)),
() => new Promise(resolve => setTimeout(() => r("Task 3", resolve), 3000)),
() => new Promise(resolve => setTimeout(() => r("Task 4", resolve), 500)),
() => new Promise(resolve => setTimeout(() => r("Task 5", resolve), 1500))
];

executeQueue(promises, 4).then(() => {
console.log("All tasks completed!");
});

Would print:

"Task Task 4"
"Task Task 2"
"Task Task 1"
"Task Task 5"
"Task Task 3"
"All tasks completed!"
Google Maps pushes Plus Codes instead, they appear for every location:

https://maps.google.com/pluscodes/

But normal co-ords also appear for me when I long tap anywhere
> What about the human rights of non-gang citizens?

Valid, and I understand why he is popular. But, so was Chavez.
Unless you are constrained in space, getting one of those relatively cheap multi M.2 PCIe x16 cards is a good option.
I don't think the two are comparable at all. Invariants are like tests or assertions, debugging deals with issues that are not handled well by either. You debug more when you invariant or test less, but one isn't a replacement for the other. You can't step through code or examine arbitrary registers with an invariant.
Dreams are fine tuning of the model

I remember watching a movie of someone being decapitated, and that night I dreamed of that scene with some relative's face.

It generated a primitive, a feeling of sadness

So consciously I can't explain why, or need to, I just know, I will know be sad if she dies, and don't want it to happen
Popular/Prominent economists are generally tied to politics.

“The basic concept was not new; Laffer himself notes antecedents in the writings of the 14th-century social philosopher Ibn Khaldun and others.”

IMO, it’s says less about economics than it does democracy. You can find many “think tanks” which are paid to create papers in support various ideologies. This doesn’t guarantee what they are saying is incorrect, but it does many they gloss over any inconvenient caveats.
The problem is not the high resolution scan of black hats it's that every company and your mom wants to store your biometric data in the future... and as we see with passwords most of them can't be trusted.
Show HN: XRss – RSS Reader and web stack demo
XRss is a simple RSS reader web app built to showcase xtemplate, a new web development tool based on Go's html/template and Caddy server.

The entire site UI for XRss comes from a single HTML template file. This index.html includes everything from SQL queries and route definitions and handlers to htmx state transition attributes and tailwindcss classes, and developing it requires zero build steps (amortized).

Check out the source which manages to be at once banal and gnarly: https://github.com/infogulch/xrss/blob/master/templates/inde...

xtemplate preloads the whole template structure into memory and builds the router at startup, so responses to matching requests are rendered after a single lookup. Combined with direct queries to sqlite makes for a very snappy experience typically responding in less than 5ms. (Fingers crossed.)

There are various places where XRss could be improved (PRs welcome!), but it already delivers on its purpose of demonstrating the plausibility of xtemplate. See the xtemplate readme for an overview of what you can do with it. I think of it as 'PHP but the syntax looks like Go templates'.

https://github.com/infogulch/caddy-xtemplate

Let me know what you think! Does remaking PHP from scratch out of Go templates make me a lunatic? (yes) Is it a good idea anyway? (yes) What kind of web application do you think would be a good fit for a platform like this?
Johnny Fox https://en.m.wikipedia.org/wiki/Johnny_Fox_(performer) you are missed.
I mean, why would you want to "cancel" a Promise? You can already cancel HTTP requests, what are some other things you want to cancel really?

If you don't want to continue with something inside a Promise, just pass in something that could be changed from `true` to `false` and it cancels itself based on that.
By now, every smoker and tobacco chewer on earth knows that to continue doing it will lower their expected lifespan. I'm all for getting quality information to people so that they can make the best decisions, but I think we've reached a point where this is no longer the main issue.

Or, perhaps it's not really an issue in the first place. Imagine a society that optimized for their average life expectancy. It could ban all vices and unhealthy foods and put people in "health prisons" when they don't pass BMI benchmarks. Obviously, not many people would want to live in this country, despite it having the highest life expectancy.

My point is that people's internal value function, on average, probably isn't life expectancy or even health outcomes. Those may be important, but people make tradeoffs every day. That doesn't mean they're not doing things that maximize their real value function, even if they have access to the best information.
These systems are something but not really representative human economics.

Empiricism is vulnerable to the changing awareness of the participants: if you discover a reliable principle it will be manipulated until it is learned. Once it is learned it is no longer reliable.

Rational agents are typically poor proxies for human behavior, and the more of them you have the worse the narrative to make it even seem that they could plausible be the way humans behave.
It is possible that the copper really is better. AFAIK, a lot of wiring that is sold today is made of high grade oxygen free copper, which, thanks to improvement in manufacturing processes, is barely more expensive than the lower grade stuff.

But even more important is the insulation. It has been consistently improved since cloth wires.
For one, I can't move any part of my body at supersonic speeds.
Addition, multiplication, what comes next? (It's not exponents) [video]
I believe it's patent infringement. You should never give all the secrets of your patented device away, just the concept to secure the patent.
It’s the contrarianism fetish run amok
Well, I like the story here, but it's kinda against a bit of a strawman. Don't get me wrong, I'm not losing the overall point of the piece, a point I agree with, but that said a metrics focussed manager could have simply added an "adjunct" label to the stories and had this "worst programmer" add themselves to stories as the non-lead developer.

Ultimately the best way of measuring programmer productivity is by the assessments of the programmers on the team. This isn't as easy as it seems. For example, I once worked on a team where the best Heroku guy just had the absolute wrong idea about "easily understandable python code" since he would prefer to raise and catch an exception instead of rely on a built-in to test attribute existence or type compatibility. But nobody could get around large scale Heroku deployments like this guy. The juniors understand this nuance less well than seniors do, but even so, it does sorta come out in the wash. Your team does know its best people and they're usually happy to say it in a private one on one.
More like Slack and Teams at the same time. And IntelliJ.
> encoding does not change the object being encoded

Here I am talking about real memory space. There exist more efficient isometrical representation of the same object but since mathematicians don't usually know computer, inefficient tensor matrix is by default. That's the problem.
I like the idea of simply hashlinking to a blob. Then, ask a random relay if they have it.

If we don't want a global scope for blob sharing maybe the relay only responds if we are friends/members of the relay.
I find it interesting that you know that the people on the list never ever referred to themselves as an economist.

But I guess your point is to make sure that economists don't have any successes, not some deeper introspection into whether the study of economics can help in being successful.
I found the JerryRigEverything project converting an ex-military hummer to an EV interesting despite not really being into cars/evs.

https://www.youtube.com/watch?v=YxkPuEmIX4U&list=PL0vZL9uwyf...

Despite the untold expense and full on car workshop... it felt very accessible and possible. Ridiculous hubris on my part obviously hah! I doubt I could change a tire on humvee without help.
How do startup accelerators work
The US was winning the shooting war in Ukraine the last time I checked (we may not technically be at war with Russia, but we are in most practical senses of the word).
>but the efficacy of tiny drones seems questionable.

Head on over to /r/RussiaUkraineWar2022 and you can see first person video of kamikaze drones being flown into hapless Russians on the regular.

These are quadcopters with a high explosive or anti-armor round zip tied to it. They get directly into the entrance of dugouts or directly into the back of a speeding truck full of troops.

It seems to me the ultimate in precision munitions. Warheads literally on foreheads.

What's more it seems very difficult to defend against. There's the "anti drone rifle" that's basically a jammer on an assault rifle chassis, but the armies of today need widespread anti-drone jamming over huge areas, not point defense.
SEEKING WORK

Calgary or REMOTE | Contractor | Full-stack, Front-end, sysadmin, DevOps, Prod Support

• Worked with customers in USA and Canada

• TypeScript, React, JavaScript, SQL, Python, Rust

• LinkedIn: https://www.linkedin.com/in/yvesdorfsman/

• website and contact: https://yves.zioup.com

• misc: Focused on web technologies (front-end, full-stack), with an extensive experience in UNIX and Linux sysadmin, DevOps, and Technical Support.
Well, most EVs have weak 12V batteries to power computers, lights etc. They are not designed to output the amps needed to turn an engine. That makes sense for the EV since it saves a lot of weight. And the main batteries are usually 400V to 800V, which you can't use to jump another car (or you can use it once, at most).
Location: California

Remote: Yes

Willing to relocate: No

Technologies: iOS (Swift and Objective-C), PHP, JS / Node.js, Express, Go, distributed systems, K8s

Résumé/CV: https://www.andreipatru.com/

Email: work.andreipatru@gmail.com

~

Software developer with 14 years industry experience; looking for freelance projects in iOS, backend or full stack.

I have contacts in Android, design, marketing if those are needed for your project.
We used it at a remote forestry work camp a year or so ago

It was great for the supervisor to just tell everyone 3 words to remember instead of UTC or LATLONG coordinates which I for one probably would not have remembered in an emergency

You can kind of shop around for an easy set to remember too if you get a weird set of words you can most likely just take the grid box next to you

I’m sure it’s not perfect but it was very convenient for our particular use case
unions don't measure productivity. They group people based on credentials + experience, and treat everyone as interchangeable within those buckets.
> building these things is very hard

people buying a kit aren't building a tesla, they're building a kit car. When you buy a kit, you're not expecting the same thing you get from a dealership. You're expecting something you can build yourself, which is fundamentally different
If you want more engagement, might I suggest highlighting one/some of the more relevant discoveries in the title? Just the idea of "this week summarized" isn't as compelling as an AI drone beating human champions or a16z's Open Source AI Grant (and the implications of those stories). I myself am interested in pretty much everything you have listed in the article, but was not at all drawn in by your HN post title. Subscribed though!
Obviously fat people consume more! Fat isn’t created out of thin air, despite what the obese claim about genetics.
Some banking feature are only accessible via mobile phone - e.g. check deposit.
Why the Apple phone will fail, and fail badly (2006)
I used Csound for a mit reality hack project. What an interesting system!
> ... but every shape for an equal-population electoral district is more or less arbitrary

They are arbitrary only if you take a look at raw population numbers. Gerrymandering these days is about tweaking urban/rural and ethnic ratios.
Because they perform functions people find vital to their daily lives?

What is the point of this question?
One interesting thing about WordPad (at least from the Windows XP / 7 era) was that it supported the complete OLE2 / ActiveX stack.

This let you do all kinds of things like embed other types of controls (like canvases or images from Paint, or Excel tables) inside your document, and WordPad's UI would jump through all the hoops to update and transform into the embedded application's UI when that control gained focus. This made it a pretty useful testing app when I was interning at MS and working on embeddable Inking surfaces for Tablet PC. (Yes, I'm a dinosaur)
There a nearly infinite solutions that also contain malware, the one solution of the OS maker gets at least a little trust from me
> I have had to get my car towed a mile to a charging station before

It really seems like EVs should have easily replaceable batteries, so that in situations like that you can just have roadside service bring you a charged battery and swap it out. Or for that matter, charging stations could pre-charge batteries, and you pay to swap your drained battery for a charged one.
> I explained all this to the manager and invited him to come by and observe us working from time to time. Whenever he popped by, he would see Tim sitting with someone different, working on “their” thing, and you could be sure that the quality of that thing would be significantly better, and the time to value significantly lower—yes, you can have better and faster and cheaper, it just takes discipline—than when Tim wasn’t pairing with people.

BREAKING NEWS: Pair programming improves software quality, more at 5!
Any TZ restrictions?
If you are out of cell service and talking to search and rescue via a satellite phone

This is the use case I’ve seen 3words applied most often
If someone put a gun to your head and asked you to draw hello using "#" and " ", would you use other characters like "/"?
Install Firefox ESR 52 (or one of various Palemoon offsprings still supporting Netscape plugins) and Flash Plugin 32.0.0.371. That's it, you have a dedicated browser with Flash working the exact same way it worked. As long as that software remains compatible with newer operating systems, you don't even need to start a virtual machine. Of course, flash content that requires data from external servers won't work without them (can sometimes be fixed with a proxy server and manual fiddling), and some old Flash versions can be partially incompatible with final plugin, but that's a deeper dive into that technology.
EVs could be a gigantic step down in complexity but that doesn’t benefit their manufacturers. It would risk making them a commodity that can be assembled from parts like an old school PC.

Instead the industry is looking at the EV transition as a way to increase costs and decrease customer freedom. This is absolutely artificial and in no way mandated by the technology.

A similar case in computing is what happened with mobile and tablets where a change in form factor allowed lock down to be smuggled in without people asking too many questions. A Mac is now a big overgrown tablet in terms of its CPU and innards but you can install your own OS on a Mac but not an iPad. Why? No technical reason at all.

Right to repair is good but it’s actually less than what we need. We need a huge rebirth of DIY technology and less centralized supplier ecosystems. This may require some regulation but it also requires consumers to stop being so passive and prioritizing shininess and laziness over every single other thing. The “millennial minimalism” era needs to end both as an aesthetic and a framework for consumer-producer relations. (The two are related.)
The Para Method: The Simple System for Organizing Your Digital Life in Seconds
I always suggest that the best way to reduce military spending, in particular for the US, would be to focus on soft power. Build schools and hospitals, turn the country into a role-model for others (make it look the country is seriously into being a democracy, improve living standards, reduce inequality, etc), and so many other relatively low-cost measures that would prevent a non-trivial amount of friction that ends up in direct offensive military action.

Making more lethal and cheaper weapons is one way, sure, but one key goal of a standing military in peacetime is to maintain peace, and that can be achieved in many ways cheaper than that.
Location: Seattle, WA
Remote: Yes, open to remote
Willing to relocate: No
Technologies: Python, Java, Typescript, Node, AWS (serverless), Kafka, SQL/Postgres, C (academic/beginner)
Résumé/CV: https://mattparmett.com/resume_aug_2023.pdf
Linkedin: https://www.linkedin.com/in/matthewparmett
Email: matt.parmett / gmail.com

Hi all - I’m a former healthcare VC that’s working through a CS master’s degree at Penn with the ultimate goal of jumping into an engineering role. I'm scheduled to graduate in December 2023 and am looking for a full-time software engineering role starting January 2024.

I’ve interned as a SWE at Liberty Mutual, working on critical customer communication infrastructure (SMS, email, push) built in Typescript on AWS serverless architecture. This summer, I've redesigned one of our core services (archiving emails for legal compliance) to run 67% faster and have added highly-requested features to our SMS platform. Last year, I interned as a SWE with a data privacy startup called Kanary (an opportunity that was found here on HN!).

As a VC at Echo Health Ventures prior to grad school, I invested in healthcare delivery businesses like Dispatch Health, Genome Medical, Heartbeat Health, and TytoCare. I helped these businesses find product/market fit, scale operations into new markets and channels, and optimize their financial planning / fundraising. Before joining Echo I was a healthcare investment banker at J.P. Morgan.

Most of my experience thus far has been on the backend, and that's where my preference lies, but open to any/all opportunities to work on interesting problems.

Look forward to connecting!
Ask HN: How to Focus Again?
Forgive the throwaway but I'm opening up for the first time about this...

I used to be able to set myself a task and focus on it until I finished. I could imagine a product and build an MVP in a weekend, flesh it out in a month and launch it. Now I can't focus on my tasks for more than a few minutes, I'm constantly context switching, procrastination is killing all productivity even for tasks that I was looking forward to. Today I wanted to really knuckle down and make some real progress on my side project. I've updated my iPad, fixed the leg on a tripod, cut the grass, cleaned the mower, scrubbed the driveway. Guess how much progress I made on the side project?

I talked to my GP - she said it could be undiagnosed ADHD, I filled in a quiz she gave me but she said it will take 2 years to get diagnosed(!) I can't wait that long.

How do I get back to how I used to be? Focused, driven, talented? I feel like part of me has rotted away and I want it back!
There's a considerable amount of FUD about mainstream chat apps. Like that whole kerfuffle when cellibrite said "we can read messages from signal" (if we have the phone, and the phone's not encrypted) leading to a signal dev figuring out how to hack a stingray (greykey, really), and threaten to make every phone with signal installed do that when connected.

I do wonder what these unnamed chat apps are. I assume part of the reason for not naming them is to cause more FUD.
Location: Calgary

Remote: yes

Willing to relocate: no

Technologies: TypeScript, React, JavaScript, SQL, Python, Rust, Linux

Résumé/CV: https://yves.zioup.com/

Email: yves@zioup.com

Focused on web technologies (front-end, full-stack), with an extensive experience in UNIX and Linux sysadmin, DevOps, and Technical Support.
12.34567N 89.01234W is 14 digits, 2 points, and 2 signs or letters.

Earth is about 2^49 square meters. If you want precision of ~8 square meters, you're going to need to convey 46 bits of information (or use an optimization that gives less resolution over oceans, etc, but that's only going to be a small win-- a bit or two).

46/3.3 = 14 digits, but the latitude/longitude coding is a little less efficient because it's not uniform. A plus code does it in 11 characters (not including the plus) worth each 4.32 bits =~ 47.5 bits.
I wouldn't say "ignorant", but things like voting against progressive energy policies because your state economy is dying a slow death [0] shouldn't be allowed.

[0] https://www.cnn.com/2023/04/29/politics/manchin-reelection-b...
"There is a reason why we have built our technological societies. It goes well beyond the personal gratification we get from gadgets or fine foods. We do it because it offers security of being and the ability to make our world a better place."

"We" haven't built anything. A group of very powerful people planned this locked-down, dystopian world we currently live in and worked on achieving that plan.

You and I are simply living in the world they envisioned.
I had an advanced math exam (in physics) and I was at my second page for exercise 1 when the prof wandered around the class. He stopped at me, read a bit, sighted and then said loudly "ladies and gentlemen, I just would like to point out that if your handwriting is not too big, the solution to exercise 1 could fit on one line, max two. Thank you."

What a way to fuck up my day :)
I do not agree. The parts of the mechanical drivetrain or the molded plastics can be impossible to obtain before a large number of Teslas have been scrapped and sold for parts. But the battery and electronics can be understood and repaired without schematics. The software reverse engineering is possible. I agree that repairs can be far to time-consuming to be economically viable, but given free labour it can be done.
I am a Sr. Dev at FAANG in America, but I yearn to go back to my home country in Europe. However doing so would result in a massive paycut, even with prospective high paging jobs. One possibility is to transfer internally with my current employer, but in this economic setting it's unlikely they will approve my request, much less allow me to work full remote, which is a deal breaker.

I have been contemplating freelancing for a while as a way to work remotely from home with a competitive salary (not US level, but better than EU market rate). I have decent experience as a Big Tech Sr. Dev. on ML/MLOps (e.g. I designed and implemented a real time inference service serving millions of RPS with single digit millisecond latency), so I believe my skills should be in demand.

Do you believe this is attainable or I am deluding myself?
RobinHood does have phone based support.
Isn't the whole point to show you how right your confidence is about GPT's capabilities?

At least the results are about the quiz taker and his confidence.