MurphyA/hacker-news huggingface dataset:
by CamouflagedKiwi | 2025-09-07 17:40:22+00:00
I don't think this is about the hardware driver detection of the lid closing. Lid events are a first-class thing in ACPI and I've never seen a laptop that didn't have one, or any real evidence that one didn't do the thing.

Much more likely is that the OS was prevented from going to sleep by some badly behaved process, or got woken up by another thing like allowing USB to wake it from sleep, where even touching the mouse can wake it - with some laptop equivalent like a ghost touchpad touch or whatever.
by cosmic_cheese | 2025-09-07 17:40:58+00:00
It’s the perfected form of what MS was trying to achieve with IE back in the 90s. All the power of a closed source monopoly, further enhanced by friends and foes alike incorporating your tech as a load-bearing pillar of their strategies, with a cloak of plausible deniability in the form of an open source repo protecting you from antitrust enforcement. A true have your cake and eat it situation.
by chubot | 2025-09-07 17:41:21+00:00
That's not the only difference - the other issue is that you lose the stack, and must rely on member variables instead.

If you search for pop(), you can see that

self.expected_ret.append(ret) self.generic_visit(n) self.expected_ret.pop()

and

self.push(narrows_true); [self.visit(s) for s in n.body]; self.pop() self.push(narrows_false); [self.visit(s) for s in n.orelse]; self.pop()

In the functional style, you just pass a param using the stack, rather than using an explicit stack.

It's not so bad here, but with a big enough language, and more complicated algorithms, the mutable member variables basically become "mutable globals".

And if you re-call visit() at arbitrary depths, IMO the algorithm gets obscured.

---

That said, I agreed here that visitors are useful when you need to say traverse all string literals in an AST, at arbitrary depths: https://lobste.rs/s/jdgjjt/visitor_pattern_considered_pointl...

---

A sign that this issue isn't settled is that two of the more complex type checkers make opposite decisions

- MyPy uses visitors extensively - https://github.com/python/mypy/tree/master/mypy

- TypeScript mostly uses switch/case functions - https://github.com/microsoft/TypeScript/blob/main/src/compil...

I'd be interested in analysis of why that is, but I suspect it's mainly style
by senordevnyc | 2025-09-07 17:41:39+00:00
According to the USDA, around 40% are undocumented: https://www.ers.usda.gov/data-products/chart-gallery/chart-d...

That seems like enough to have a measurable impact on food prices if they stop showing up?

To be clear, not arguing for or against enforcement, just pointing out that the data seems to suggest this as a factor to be taken into consideration.
by palata | 2025-09-07 17:42:56+00:00
> Yet people happily signed up, giving up their privacy in the process.

When Facebook started, it was a different era. And since then, Facebook has clearly abused their position with anti-competitive behaviours.

> How many people are willing to pay $5/month for a browser?

If they can keep using Google Chrome for free, we already know the answer. If the only way for them to have a reasonable browser would to pay... who knows? People pay more than that to access movies that they could download as torrents.

Also does it have to be 5$ per month? Do browsers need to keep adding so many features, and hence so many bugs and security issues, that only huge companies can keep up and nobody wants to pay for that work?

Maybe it's enough to pay 1$/year for a company to maintain a reasonably secure browser with the features that people actually need. Do people actually need QUIC? Not sure.
by digital-cygnet | 2025-09-07 17:43:00+00:00
I cannot understand this sentiment. If you commit a crime in a country and don't pay the fine, why would you be surprised if they made you pay the fine next time you crossed the border? Even if it were a parking ticket I wouldn't find Canada's actions here objectionable, and DUI is a lot more serious than that. Unless I've misunderstood the scenario you're describing.
by ghaff | 2025-09-07 17:43:02+00:00
I had a kitchen fire in the middle of the night during the winter and I'm really trying to simplify things as I get set back up. Direct damage was fairly constrained to kitchen but the whole house was cleared out for cleaning due to smoke. I'm being pretty selective with what fiddly heirloom things I put back on walls in particular and have generally dumped a lot of stuff which I had out because I had it.

It's hard. I have/had some things I really like and/or are useful. But although I have a fair bit of storage space in my house, I'm taking a really close look at what will ever emerge from the box it's stored in.
by abxyz | 2025-09-07 17:43:05+00:00
I think we are talking about different things. I’m talking about a country’s requirements whereas you’re talking about a specific embassy.

An embassy will often have its own requirements based on the locality, whereas the visa requirements are uniform.

The Indian embassy in San Francisco might refuse to process non-resident applications but that doesn’t mean you can only get an Indian visa by going to an embassy in your country of nationality.
by vpShane | 2025-09-07 17:43:49+00:00
If you enjoyed making this then I enjoy it. For the love of tinkering, technology, learning new things. I would suggest a multi-player OS, where web apps can be launched inside the OS, think: multiplayer paint, saving files, and JS web apps with its own 'app submission' where apps can be run and show up on everybody's screens.

Vibe coding is fun, glad you could do this!
by ACCount37 | 2025-09-07 17:43:51+00:00
Either the new company takes over maintaining Android, or it fumbles the bag and the development becomes less centralized for a while - until some leader emerges and takes over.

Either way, the new control center of Android wouldn't be Google. A decade ago, I would have seen that as a very bad thing. Now, I'm almost certain that this would be a change for the better. Google is not what it once was.
by toast0 | 2025-09-07 17:44:07+00:00
I don't want to talk to my phone... and if I did, the easiest path would be google assistant, which is likely just as bad as google home.

I don't want an LLM either. I want a very constrained command list that is consistent and doesn't change. Yes, you need some voice to text magic, but 'set a timer for x minutes', 'cancel timer' maybe something to have multiple timers. And also 'convert X teaspoons to ounces' maybe with sometimes things like 'how many cups of flour in a pound' (which is a not quite right question to ask, but I still might ask it)

> If it is in very high demand, I might just make an application. :D

If I've learned anything from my years on the planet, if toast0 wants it, it's not in high demand. Sorry!
by pessimizer | 2025-09-07 17:44:17+00:00
> Illegal immigration is not a crime of morality, it's basically one of economics.

Then why do you immediately shift into questions of moral judgement, and your moral judgement of how "welcoming" people should be? This politics is garbled.

New immigrants lower the leverage of domestic workers, and the leverage of previous immigrants, by intention. The myth that they move on to become mandarins that are too good for those jobs comes from people who never had to work those jobs. Black people didn't move anywhere except to even worse, less secure work.

I watched a South filled with black servants serving everyone's food and doing all the hard work, turned into a South filled with black people who have $0 worth outside of the equity in their cars, and all of that (horrible shit-)work being completely closed to them because they didn't speak a foreign language.

At the same time, especially in the north, I watched tons of terrible jobs filled by the barely English speaking Indian "relatives" of the people who opened franchises, and who kick back half of their checks to these "uncles", another quarter of that check goes back in remittances, and they get to live like kefala Emerati slaves.

It is dystopic to consider this the compassionate choice. It's purely a matter of trend following when the people who profit from this stuff also do the media work to set the trends. The "left" were against all of this in the 90s as a central principle.

Cesar Chavez gave speeches about the "wetbacks" being brought in to undercut striking workers. As a Black person born in Chicago, I was part of the Great Migration that was brought in to undercut European immigrants who were fighting for their labor rights. It doesn't make me "bad," or my family "bad." The accusation that people who object to it are demonizing immigrants is an intentional distortion and a marketing strategy for consistent hypercapitalist laissez-faire politics.

I miss when "liberals" didn't have Reagan's policies. But they're a natural consequence of their having become extraordinarily wealthy from them.
by kingkongjaffa | 2025-09-07 17:44:33+00:00
1. Start asking 'why' more.

2. Do everything you can to map out how the company makes money.

3. Speak to sales and customer success folks often.

4. Do everything you can to speak to customers directly, and listen to their pains points and opportunities.

5. Develop hypothesis about what to build next, test the hypothesis by debating internally, speaking to customers, showing them demos etc.
by 1ceaham | 2025-09-07 17:44:51+00:00
Author here. We checked for APIs like this at the time, but since approximately every laptop has a webcam, the cv approach is much more accessible. It would be a fun rewrite though; I’m sure polling this would be a few orders of magnitude more efficient. There was definitely lag if you ran the app on a very underpowered machine which did impact the “playability” of the velocity parameter.
by dlcarrier | 2025-09-07 17:44:54+00:00
I'll trust my life on even a small number of experienced engineers to tell the difference between important safety conventions and safety theater.

The challenger disaster happened, after it was launched contrary to Thiokol engineers' objections, because NASA management went down the company's contact list, asking and being rejected by employee after employee, until NASA found someone they could convince to say 'yes', all because someone in NASA's leadership thought that launching before the State of the Union Address would impress the President.

The worst part about safety theater isn't that it takes up excessive resources in general, it's that it redirects resources away from effective empirical safety analysis into a vibes-based safety analysis. When developing the Space Shuttle, NASA had the paperwork to show the risk of a disaster was less than 1 in 100,000. It turned out to be 2 in 135.

I hope NASA can take this opportunity to refocus on a bottom-up management philosophy, trusting engineers to make the right decisions, instead of writing a top-down procedure and assuming safety comes from compliance itself, regardless of what is being complied to.
by sevensor | 2025-09-07 17:45:22+00:00
I don’t think that’s harsh at all. With the low barrier to entry and the high potential earnings, a lot of people joined for the paycheck and are profoundly uninterested in digging deeper. If anything, it’s surprising there’s as much competence as there is.

Excellence is something quite different. I’ve been in the presence of excellence. Excellence makes everybody in the room act smarter and smooths the path to competence. It shows you the way and gives you new ways of understanding the world. It’s truly rare, not 20%, maybe 0.2%.
by bdcravens | 2025-09-07 17:45:53+00:00
> Elsewhere on HN right now is a post about a dermatologist vibecoding an app for skin stuff. I view the “need/use ai for coding” as an indictment against how complex software development has become.

There's a reason why, in the late 90s and early 2000s, people were able to jump out of non-technical careers into development using languages like ASP and ColdFusion. There were some shortcomings of the stacks of the day, but functionally, the ability to meet many business cases really hasn't changed since those days.
by A4ET8a8uTh0_v2 | 2025-09-07 17:45:54+00:00
<< The distinction between legal and illegal immigration is essentially arbitrary.

Most lines are. It is a line we agreed on as a society. Just for a quick comparison, 21 is a legal drinking age in US ( going after less incendiary example just to prove a point ). But, and here is my subtle point, either those are real lines or there are not. If they are real, they should be enforced and if they are not, they should be nulled.

<< We can and should welcome far more people than we do.

Before I offer a reflexive response, I think it is worth to task a simple question:

why?

<< Deporting people who are not violent and contributing to the economy because they have incorrect paperwork isn't a win for anyone but politicians and racists.

That is amusingly neat way oh framing it, but if it only it was that simple. I want to argue against this framework, but not before you give me an idea about how you justify the why in previous section. I struggle to understand this particular perspective.
by viceconsole | 2025-09-07 17:45:59+00:00
I was a US diplomat in India for 2 years and processed tens of thousands of visas. While this change will cause some inconvenience for, e.g., current H-1B visa holders from India who can no longer travel to Canada or Mexio to apply for new visas, in general it makes a lot of sense. I worked at the number one H-1B processing post worldwide. Our post had the expertise to quickly evaluate applications and approve the clearly legitimate ones while scrutinizing the potentially fraudulent ones. We tracked fraud patterns and kept tabs on known-bad petitioners. We could visit petitioner locations on the ground in India. This expertise doesn't exist in Canada or Mexico. Staff at those embassies and consulates would have to consult with us in India, or simply make uninformed decisions. Note also that bona fide residents of a country can still apply in their country of residence.

For a few weeks in India, we had a string of third-country nationals (I won't say which, but it's not hard to find) apply for foreign medical graduate visas. We weren't familiar with the context in country they were coming from. They seemed to be generally good quality applicants and many were approved. It turned out that there was a cheating scandal in that third country, an entire batch of test results had been invalidated, and the embassy located there was refusing their visas, so a few applied in India and were approved, then word got out and more came. We eventually wised up. However, there was really no good reason for these applicants to be travelling from their home country to India for a visa appointment even under normal circumstances (India isn't exactly known for having short visa wait times).
by hamdingers | 2025-09-07 17:46:21+00:00
> "No more strawberries/lettuce/etc when you kick out all the illegals!" has been a rallying cry on lefty social media for the last few years and it... hasn't happened?

Why would it have happened? "All the illegals" have not been kicked out, so what are you basing this statement on?

Bad faith framing.
by scubbo | 2025-09-07 17:46:24+00:00
> pulling a salary from someone else's bank account for a couple years

We have a difference of understanding of what "startup" and "failure" mean. I'm not just saying "most startups don't have an exit event" - I'm saying "most startups make negligible money (either through revenue or investment), so the founders are taking a loss the whole time they're working".

If that's not correct, then a) I need to update my mental model of the whole situation, and b) thank you for bringing it to my attention!
by nine_k | 2025-09-07 17:46:34+00:00
In short, the solution is to define an interface / typeclass / trait / protocol that factors out the particular kind of operation, and separates it from any specific class or data type. Basically it allows to tag any particular data representation with a trait, and then offer an implementation of that trait, without touching any pre-existing code related to that data representation.

In languages that do not allow that (e.g. Java), one has to implement it by hand, using a Visitor pattern. Instead of relying on the language to do the dynamic dispatch, one has to explicitly add a visiting method for another data type.

To me, the turn towards interfaces / typeclasses / traits / protocols is one of the most notable bits of progress in the newer crop of programming languages (and, importantly, their standard libraries).
by whitehexagon | 2025-09-07 17:46:36+00:00
Great! so they already know that I've been squinting at a 42deg gap trying to use my old MBP. The year with the faulty designed screen connector which was only covered for replacement on certain models, not mine. I wonder if that is why they added this, to check for 'holding the lid wrong'. If I open it any further I need a reboot to get the display back, oh and that angle decreases over time.

I wouldnt mind but I was 95% of the time clamshell, and still the keyboard made from butterflies wings lasted next to no time, and the battery put on too much weight after only 30 something cycles. After all these years I never understand how they produce such lemon models some years, just trying to save a few cents here and there. The one before was thermal paste nvidia meltdown.
by JumpinJack_Cash | 2025-09-07 17:46:45+00:00
When you announce goals and fail them is like when boxers or UFC fighters announcing they'd destroy an opponent or sail easily to win the belt.

When they lose of course people are gonna call them out regardless of the monetary purse that they were awarded for losing the fight.

And that is the way it should be considering you are dangling in front of people a huge improvement in their quality of life and then constantly failing to ship it.

For all its flaws Microsoft shipped Windows 95 after talking about it for 10 months before the launch. Not 10 years. And that was really a big quality of life improvement for basically billions of people.

Finally people don't care about what the marketcap of Tesla is or what Musk net worth is, those discussions happen among the fanboys and those who have false idols. People care about how a company can improve their life and despite all the fanfare, Tesla Motors have produced very little improvment through its history, and thye are not a startup either considering they are 2002-2025
by ben_w | 2025-09-07 17:47:00+00:00
Comparative advantage.

Consider this vague hypothetical, because I'm not American and don't care about the specifics:

Country A, average wage X; country B, minimum wage for legal residents 2X. People from A can on average get a pay rise by working in B while undercutting legal residents of B. Citizens of B then get the stuff cheaper than they otherwise would have, but also might not be as easy to employ.

Are current employment stats accurate? As in do they tell the right picture or is this a case of "lies, damn lies, and statistics"? Lots of people say it's the later, and unfortunately I'm not qualified to explore anyone's arguments.
by ta685714 | 2025-09-07 17:47:05+00:00
That's me, I stayed on Win 7 at home out of principle against enshittification. Worked as beautifully as ever for light browsing and gaming. Then Chrome support stopped, including Steam. Can't upgrade any Electron app, either. Still holding out but soon I'll relegate it into a box running under linux. Well, it had a good 30+ year run.
by mkleczek | 2025-09-07 17:47:15+00:00
Democracy for quite some time thrived in US (and for some shorter time in other western countries) even though there was no anonymity while free speech was guaranteed by the state. In other words: anonymity is not a solution for lack of free speech. I should be free to say whatever I want without being forced to hide behind a nickname.

Secondly: I think you are happy to not being the target of online violence. I have experience with teens on the brink of suicide caused by it.
by wlesieutre | 2025-09-07 17:47:25+00:00
I can't see it, and if I click on @samhenrigold's profile I get a random selection of things from this July and last October instead of recent posts .

It's really not a useful platform for publicly sharing information anymore. Drives me nuts that government agencies use it for announcements like "Here's an amber alert with a twitter link, but you can't have any of the followup information because that's only for people who are logged in."
by lazide | 2025-09-07 17:47:32+00:00
There are zero politicians in the last 10 years (that I could see) that were actually taking the issue seriously. Some a little more seriously yes, but there is zero chance what Democrats have been doing would solve any of the problems that have been mentioned.

And notably, they also couldn't defend the constitution when it came time.

So it's a choice between 'delusional-we're-doing-good-everything-is-fine' and 'delusional-lets-not-look-up-and-blame-everyone-else'. The first group continuing to apply pressure in this non-working direction just made the second group inevitable.

Pretending people aren't people, and don't have their own reasons why they voted the way they did is exactly what led to the current situation. It's the pendulum swinging. Now we'll get 'people can only be their worst (except me), punish them, regardless of the evidence'.

Or as the old quote goes - "Democracy is the idea that the people know what they want, and deserve to get it - good and hard."
by JustExAWS | 2025-09-07 17:47:33+00:00
I have never in 8 years of being in the AWS ecosystem and reading forums and Reddits on the internet had anyone report that AWS wouldn’t refund their money.

If you go over your budget with AWS, what should AWS do automatically? Delete your objects from S3? Terminate your databases and EC2 instances? Besides, billing data collection doesn’t happen anywhere near realtime, consider it a fire hose of streaming data that is captured asynchronously.
by Tadpole9181 | 2025-09-07 17:47:38+00:00
I mean, you've biased answers here.

Does "hyper-rational" allow for arguments about how this affects soft power and the relationships with foreign businesses? Does it allow adding additional tallies in the ongoing list of reasons other countries should not trust us or the dollar as a reserve?

The US economy is currently being operated by a single man, who has no actual long-term plan and randomly flips levers and switches beyond his legal power to do so. He randomly targets companies and policies based on whoever last spoke to him or whatever social media post he saw at 3 AM. And now he's shut down an entire lane of trade for several months. Just... Dead.

Many businesses will simply not take US orders anymore after this fiasco. Some may go out of business by the time things come back.

And that's before any discussion about the actual de minimus changes. Changes which will effectively kill the ability for the average American citizen to custom order anything from any other country.

As an example: in my part of the woods, women don't really like to buy from retail stores anymore. The quality is crap and they're often ugly clothes with inconsistent sizing. So a lot of them would be custom stuff from Etsy, slightly more expensive but MUCH higher quality and made to fit. A lot of it came from eastern Europe.

That market is dead. Guess it's back to cheap Chinese T-shirts.

But don't, worry 5 billionaires came to the white house and worshipped Trump on camera like some weird North Korea / Stalinistic shit.