skysight-inc/HackerNews huggingface dataset:
Conditional type expression are indeed very powerful and, little known fact, can be used to generate types recursively.

Here's a type signature from hell with its usage:

type Component = { type: 'a' } | { type: 'b' };

type FoundComponents<T extends any[]> = T extends [a: infer A] ? [Extract<Component, {type: A}>] :
T extends [a: infer A, ...b: infer B ] ? [Extract<Component, {type: A}>, ...FoundComponents<B>] : never;

export function findComponentSets<T extends Component['type'][]>(components: Component[], ...componentTypes: T ): FoundComponents<T>[];
export function findComponentSets(components: Component[], ...componentTypes: Component['type'][] ): Component[][] { return [] }

It recursively picks outputs types based on the input parameters, so if you call e.g. findComponentSets([], 'a', 'b') the output type will be [{type: 'a'}, {type: 'b'}][].

I'm using it in an Entity Component System based game I'm writing to type check the function which receives a flat list of Components and type selectors and outputs a list of tuples with the selected Component types.

findComponentSets(components, 'position', 'hit-box')
.forEach(([position, hitBox]) => system.process(position, hitBox));
> people don't own the land their houses are built on, they just lease them like medieval serfs would have, since land reform never happened in England.

I’m curious about this - are you referring to leaseholds? Because that seems to mainly exist for flats. If you have a freehold (like almost every house has) you definitely own the land.
English Language School EnglishPapa
Should have shorted their stock if they're public
"Peaked my interest": caused my interest to increase to a high point before declining.

"Piqued my interest": aroused or provoked my interest.
> I haven't looked at the original paper, but according to Wikipedia [2], the only claim being made appears to be the "uncorrelated" claim.

Is it that hard to actually check the original paper before bothering to make such a claim? The original paper explicitly claims to examine "why people tend to hold overly optimistic and miscalibrated views about themselves".
Thank god this didn’t go ahead. It would have made london into a car centric hellhole, and I suspect traffic would still be terrible. I’ve never been to any large city where the traffic flows freely, regardless of how much road infrastructure there is.
This is a great insight. Social media is just World of Warcraft but less fun. Blue check marks signify elite guild membership, and follower counts are your gear score.

The only difference nowadays is how deadly serious everyone takes these metrics. It is absurd.
The article mentions a photo of the setup ("see photo below"), but I don't see it.
Why not publish all the drafts, in whatever state they are. Just that for the whole week, you'll be able to work on that week's 1 post.
TypeScript has a more powerful type system, but arguably it's less powerful because the hints are invisible to runtime code. Python doesn't do any runtime type checking by default, but the hints are accessible in code, which unlocks a fair amount of power. For example, Strawberry is a GraphQL server library that allows you to define your GraphQL schema using the same syntax as dataclasses.
So who gets the fine money, does some of it go back to the customers who selected the higher price option?
Oh gotcha, I didn’t try it on desktop, I was on my mobile device which preventing a hover.
Sorry, what "invasion scare"?
Zomato refused to change my email to zomato@ (you need to create a support ticket). However, they agreed on otamoz@ (strrev(zomato)).
I've been reading Justin's work for years. The length of his essays is not due to a lack of editing down his rambles, but that he has a lot to say. I think he's one of the most consistently interesting writers right now.

There are some writers who would strongly benefit from an editor who could at least help pare down repeated points. I'm almost certain that Justin isn't one of them.

Even for others (Glenn Greenwald springs to mind), I wonder if something would be lost. I may prefer one formulation; someone else may be tickled by another. Diluting an essay down to one acceptable version might be an unacceptable loss.

I dunno. I'm just glad someone's thinking deep thoughts and simultaneously a gifted writer.
Their website shows heavy influence from Swiss design, [1] with grid-based layouts and ragged-right lowercase grotesque type. I actually haven't seen such a textbook example since Microsoft's Metro. [2]

[1] https://en.wikipedia.org/wiki/International_Typographic_Styl...

[2] https://en.wikipedia.org/wiki/Metro_(design_language)
When I started doing this, many years ago, I fully expected to see spam coming to some of these addresses. I was pleasantly surprised to find that, so far, not one of these addresses has been compromised. All my spam comes to addresses that are essentially public, or random names, as I use a catchall.
> It's only moving emissions from the tail pipe to a smoke stack.

I kinda like A LOT not having tail pipe smoke around me all the time on the streets...
Most people aren't going to think about their internet usage in terms of total data used, because working out how much data a particular site or service will cost them is a lot of work and requires knowing technical details that most people don't pay attention to. That results in a market for internet products that offer unlimited access to particular sites, sometimes with restrictions like only standard-definition video in the unlimited video plan. In addition, there's not really such a thing as single-price bandwidth to the entire internet at the scale most large ISPs are operating at - they're setting up peering with particular networks, some of which like to try and push more of the costs of peering onto the ISP side than others.
I really like this idea but I'm put off by having to enter lots of other people's personal information - particularly dates of birth - but also their interests.

Limiting the date of birth to the year of birth might help - although I guess you want to be able to remind me when it's their birthday. Perhaps just don't remind me about that - I don't need that.

Don't know if you can do this already, but being able to set a budget would be good.
You can use a statment 'OPTION RECOMPILE' to force the query plan to be rebuilt with every execution. A similar thing can be done with stored procedures, which are also aggressively plan cached.
That's how I use twitter. I had to implement this complicated concept myself by scraping tweets from accounts I follow into local database, and then displaying data from that database in chronological order.
It might be ok if you load up the card a few minutes before each transaction but that would be quite a hassle
Decoding JPEG doesn't leave much room for interpretation and the images should essentially always be decoded the same. For encoding, it's a different story, as there are steps to downsample the image data (chrominance data is often, but not necessarily, sampled at a lower rate than luminance data), there can be a different cutoff point for which of the DCT coefficients to discard (usually related to the "compression" or "quality" setting for the compressor). All JPEG decoders should reproduce the same image from a given JFIF file, but I'd be surprised if different encoders produced the exact same JFIF file from a given source image.
> but there was an attempt.

Unfortunately it was data-driven. This meant that if a new show didn't catch on within a season or two, it was cancelled. They've killed so many great shows chasing the lowest common denominator.

The formula they settled on was: big name star in a generic designed-by-committee (or AI) show.

Shame.
Do networks not fill up and get congested?
What's the realistic Dropbox competitor, with partial file sync, selective sync, share links and the like? Have tried Google Drive, Mega.nz, iCloud, OneDrive, Jottacloud and others and none has really impressed.
I'd disagree with you here. Steamdeck is a linux handheld with steam controller on steroids. It has full joystick layout, two touchpads, touchscreen, 4 backbuttons, gyro, usbc inputs, bluetooth - that's already more innovation that playdate's crank that got people so hyped.

It's a brilliant hackers playground and I can't wait to get my hands on it!
What else is there to do while we're here?
Great thank you! Will fix them
You are correct - I should have been more precise: I hypothesis parent has not done science research professionally (again happy to be proven wrong).

Don't get me wrong, I'm not defending social science research per se (yes, there are questionable methods). I'm critiquing parent who has high confidence in pointing out issues with the DK paper, yet misses the real issues. Which, in the context of discussing whether the DK effect is more than just regression to the mean, is quite ironic (which I have worded quite strongly, agreed).

Parent's arguments lead to absurd conclusions like "two Cornell professors not being very logical people" or "a HN poster being better at peer review than experts in the field". If you want to see a state-of-the-art critique of whether the DK effect is explained by metacognition vs. regression to the mean see [1].

Why is this relevant? From the article:

> I have no illusions that everything I read online should be correct, or about people’s susceptibility to a strong rhetoric cleverly bashing conventional science, even in great communities such as HN. But frankly, for the last few years, the world seems to be accelerating the rate at which it’s going crazy, and it feels to me a lot of that is related to people’s distrust in science (and statistics in particular).

I completely agree with the author here. Science is rarely black and white, and, arguably, there are more shades of grey in the social sciences. Just as an example, because you mentioned the replicability crisis. I still see many commenters here on HN believing that from the failure to replicate a result it follows the result is wrong. It doesn't. But that's a whole other discussion.

[1] https://thepsychologist.bps.org.uk/volume-35/march-2022/pers...
I did not understand why on x86 Windows/MSVC cannot implement exceptions the same way as it was done for other architectures. I read that on x64 a different approach is used ("table based" - sounds to me like the "unwind code" approach mentioned in the article). Is this not possible no x86 for some reason ?
I am hoping that self driving electric medium sized buses giving a hybrid between public transport and uber would solve that. Move people away from car ownership.
Drone Interceptor with a Net Gun
I wonder about whether the Silvertown Tunnel will make the average traffic worse but the worst case traffic better.

Currently, if the Blackwall tunnel closes, traffic basically grinds to a halt across a huge part of SE London. I was taking my dying bunny to the vet the other month and a trip that normally takes under ten minutes took forty due to the Blackwall tunnel being closed, even though I'm all the way back in Hither Green.

Nevertheless, I would have preferred they built one of the many proposed pedestrian/cycling bridges...
Suggestion: without network access the app is blank with no messages, might want to add a note
“Trivago earned approximately $92 million in revenue from those non-cheapest top position click-outs”

$92M - $45M = $47M

Average pay out to customers who were ripped off = $0

Incentive to not do this again = 0
That's an American thing. We don't overpay for computers in Europe because we don't earn 100000+ a year.
Are you suggesting there has been no invasion? Anyway they made explicit threats.

https://www.reuters.com/world/europe/russia-warns-baltic-nuc...
Very bad taste of Amazon to make a competing product to Netflix, which has to be one of their biggest clients.
Am I the only one who prefers the way x86 did exceptions? I really don't like that with table based exceptions, every function must include bloated unwind tables, and is also forced to conform to a very restrictive set of code generation rules. It also makes writing and assembly and dynamic code generation difficult.
Not necessarily. Small websites have to pay for their bandwidth, but bigger companies like Netflix have been pushing ISPs into various schemes that give them that bandwidth for free, either through peering arrangements where ISPs take traffic to and from Netflix systems for free or through installing caching boxes in ISP facilities with the power, data and space paid for by the ISP.
If one was ever triggered the diluted shareholder would sue for the direct economic damage they suffered as a result. But they still wouldn't end up controlling the company, they'd just get paid out the cash value that was literally stolen from them-- instead everyone would just lose a lot of money to lawyers... which is why, AFAIK, none has ever been triggered.
The PocketReform is a made-in-Berlin Linux handheld
Link is overloaded. This one works: https://archive.ph/RXo0I
I guess that indicates the congestion charge could be higher.

The trouble with public transport advocacy is that it so often relies on the stick rather than the carrot as the main incentive. The better solution is almost always to provide attractive public transport options. If you can do that then people will use them anyway. If you don't do that then people will do what you don't want instead unless you totally prohibit it. And if you prohibit it then maybe they won't come at all.

The catch is that providing good public transport is a challenge even in densely populated areas and for long distance travel. Our biggest cities also tend to be very old and that means layouts that are far from ideal for running an efficient public transport network.

The other catch is that good public transport is never going to be cost-effective in smaller towns and rural areas. So doing it would require a massive commitment from both local and wider government and in the UK we don't have that. Politicians tend to be very good at talking about grand ideas but no-one is willing to say "We need to put your taxes up 5% to subsidise loss-making transport infrastructure so there's a sensible alternative to cars for everyone who doesn't live in one of the biggest cities."

This is why I'm not sure emphasizing public transport is the right long term policy here. Better infrastructure to support small-scale private transport seems a more promising direction to look -- bikes, e-scooters, future electric vehicles designed for one or two passengers and light baggage, etc.
Google and Microsoft only have to be 60% good enough when they’re bundled in with other products to be free or almost free.
Maildir isn't an application. It's a storage format for email inboxes; multiple email clients support it.

Offhand, it's the only thing I know, but yes, it's real and yes it's an issue.

I use zram (and tmpfs) on RasPis to provide swap without hammering the µSD card, but the issue with Pis is of course that RAM is scant.

The 8GB Pi is impossible to buy at the moment and has been for months; even the 4GB one is in short supply.

I am surprised that there doesn't seem to be more effort on Flash-specific general-purpose filesystems, but I'm actively glad ext2 is still a thing.

It's perfectly possible to install Linux onto a USB key (not write an ISO and make a bootable key; a full install on USB) and such things can be handy. Ext2 is faster _and_ reduces wear on the medium.

Like installing Windows onto an external drive on an Intel Mac, the trick is to attach the drive to a VM, and then install the OS inside the VM. Then, once 1st stage install is done (Windows) or once it's installed (Linux, because there is only 1 stage), just boot the machine off the USB drive directly, without virtualisation.
Highly recommend Not Just Bikes and Practical Engineering channels on YouTube. You'd be hard pressed not to realise that wishing they'd happened was a mistake.
That's an interesting twist, I wasn't aware. To be honest, I don't have the most reliable source: I heard the term "uncle Jokes" first from an episode of Teen Titans Go [1], which my kids love. Also after you watch a few episodes it grows on you as a pretty good bit of satire. Or I'm suffering Stockholm Syndrome.

[1] https://m.youtube.com/watch%3Fv%3DCz9WpuIcUPk&ved=2ahUKEwiMl...
Of course not, just as the people who decided to do this and the people who implemented this face no real consequences at all either (if any at all). We need to stop fining companies and start holding people accountable. Companies are nothing more than some ink on a piece of paper; it's people who do good (or bad) things.
the discussion https://news.ycombinator.com/item?id=31114876
Freehold didn't apply to much of London. Many areas are still technically owned by large landowners, Dukes and so forth.

Not a huge amount of London, and not most of greater London, but definitely applicable to the Royal boroughs.
I ve posted thousands of comments, they never mattered.
When Cash Is King
If you want to use an app to find a gift for someone... just give them cash.
I wonder what percentage of the people who hold that opinion regarding Internet connection bandwidth hold the exact opposite opinion regarding road capacity and car usage. In those cases, I have a feeling they blame government entities for "not building enough roads" rather than blaming excessive usage of cars.
What about now that they will switch to advertising model ?
It feels like building more infrastructure just causes people to use more of it, because the "cost" of using it goes down. Kind of similar to how having faster computers has just resulted in us creating more bloated software, instead of everything becoming snappier.
Inflation is sky-high – retirement plans aren’t keeping up
I went to a smaller company (<100 people) thinking that there would be less of this type of inefficiency. Then they hire a Scrum master and now it takes longer to gather specs, write documents, create tickets with points, bikeshed and divy up work (ignoring the 3-5 hours of associated weekly meetings) than actually completing the task. Even simple changes are now difficult.

The worst part is that perception and behaviors change, since the requesting party thinks "this should be a 2 hour change" and it takes 2+ weeks to due to process-- the fastest way to inhibit changes are making them riskier due to more effort/buy in from disparate parties, so you get more stagnation. Yea, rigid frameworks will help flush out loafers, but couldn't the same be done with a software type solution or even competent management?
That's what the timeline setting does the mobile client at least (not counting the occasional ad)
Not OP, but I don't see why anyone would invest in Spotify - there's many other options out there for great music. Spotify doesn't have sole rights to really any music as far as I know, plus music is far easier to make than movies & series. If you cut me off from established artists, I can still get great joy in a multitude of music being developed today. Beyond that, there's always the option of just giving money to the artists I like directly. The only thing Spotify has going for it is convenience, and I still would rather use Google/Youtube music. I pay for Youtube premium and get music for free with it, as does my entire family. Furthermore, it doesn't matter to the artists where their listeners get their music, there is no extra cost to them licensing it out to 2 or 1000 Spotifys, although there's an argument to be made that just 1 legal license would benefit them, but with pirating I don't there's much to that argument.

There was an article in the Atlantic about how people are listening more to "old" music these days, which makes sense, but will have a big impact on the industry as well: https://www.theatlantic.com/ideas/archive/2022/01/old-music-...
"siri, what is a proxy war?"
Russia Sanctions Mark Zuckerberg, LinkedIn’s Roslansky, VP Harris and Others
Freehold houses aren't as common as you think, especially in London. Across England about a third of houses are leasehold.
How to build a software keyboard if you’re the only engineer in a startup
> Arguably Itanium's failure was due to exceeding the weirdness budget with VLIW nonsense

Being VLIW was probably the least weird part of Itanium. The NaT ("not a thing") bit on every register was the weirdest part and probably the one which tripped people the most. And like SPARC, it had register windows. It also had a pair of stacks instead of a single one, a set of predicate registers (which also had their own register windows), and plenty of other assorted weirdness.
The Return of New York Harbor’s Oysters
What you have now with organic matter AI is less transparent
Ah the Vaccine SaaS provider returns with a new marketing campaign.
It's impossible for me not to think of this (Idiocracy, 90s, 2 clips): https://www.youtube.com/watch?v=py37IFuKxYw
It is not, currently using it to manage a fleet of ~75 macOS devices.
There's an academic field called historical linguistics, with a subfield called Slavistics. It's a solid scientific theory which is based on historical data and typology. I may have gotten some details wrong, but it's generally how the sound changes occured according to mainstream academia.

This page has some references at the bottom:

https://en.m.wiktionary.org/wiki/Reconstruction:Proto-Slavic...
This is where Apple TV+ has been a breath of fresh air, like eating a garden fresh tomato after years of canned tomato paste.
Not sold, but shared internally across multiple clients with no functional opt out: Once Democratic party digital firms like NGPVAN and ActBlue get your email, be prepared to get multiple emails per day from candidates across the country you've never heard of (much less could even vote for) constantly sending you garbage emails. The unsubscribe buttons do nothing.
Emerge Tools is building the future of mobile performance tooling, come join us
There were similar plans in Oslo and Bergen as well in the 60's that would have completely destroyed the cities.
I don't think the articles are really meant to be read, it's just that a single mass of one liners gets old quickly.
The biggest thing holding me back from elektron boxes is the lack of battery power. I do have a Model:Cycles and I love it, but due to the fact that I have to go fishing for its power adapter (the barrel size really needs to be standardised, it has to a point but there are still 3-4 options) and find somewhere suitable to use it close to a socket, it just kills the "pick up and play" ability for me, and a groovebox hugely benefits from that.

This one though might push me over the edge

Edit: Also, the timings quite interesting as it seems TE released their new mixer, the TX-6(?) at nearly the same time
Well yeah, but now ("current few years"), you'll be able to manufacture expensive, premium chips, and after a few years, new, "smaller" tech will be used for those, and you'll still be able to use your (now older) tech to produce older chips.
Rather, my point was that, after solving the purported problem (the fraudulent transaction), moving on to enable some unspecified "security enhancement" was unnecessary and should have been suspect. Of course, there's no telling how someone would react in the heat of the moment.
Over the long term, megalomaniac creeps like DeSantis are gonna screw Disney over. Better to punch back ASAP, IMHO. Hit'em where it hurts - in the pocketbook of the state economy.