MurphyA/hacker-news huggingface dataset:
by ozars | 2025-09-01 02:38:33+00:00
Rust has Arc and Weak that can be used for solving it in a similar way C++ does. The primary difference is forcing usage of Mutex to avoid a large class of data race issues IMHO, and that's what makes it harder to get right. Async in Rust is also more mature than C++ coroutines. So there's also that.

https://play.rust-lang.org/?version=nightly&mode=debug&editi...
by echelon | 2025-09-01 02:38:51+00:00
This.

We need a mobile bill of rights for this stuff.

- The devices all of society has standardized upon should not be owned by companies after purchase.

- The devices all of society has standardized upon should not have transactions be taxed by the companies that make them, nor have their activities monitored by the companies that make them. (Gaming consoles are very different than devices we use to do banking and read menus at restaurants.)

- The devices all of society has standardized upon should not enforce rules for downstream software apart from heuristic scanning for viruses/abuse and strong security/permissions sandboxing that the user themselves controls.

- The devices all of society has standardized upon should be strictly regulated by governments all around the world to ensure citizens and businesses cannot be strong-armed.

- The devices all of society has standardized upon should be a burden for the limited few companies that gate keep them.
by ripe | 2025-09-01 02:39:40+00:00
> British colonies universally benefited from the British empire

I can’t tell whether this is a joke or a sincere opinion, but HN readers might be misled if it’s allowed to stand. Briefly, this is an absurd claim.

I can speak confidently about India, and I am pretty sure the story is similar for other unfortunate colonies. Instead of arguing here, let me provide an accessible starting point to learning about it:

The podcast “Empire,” by William Dalrymple and Anita Anand. The first series looks at the British in India, covering The East India Company, the Raj, Gandhi, Independence and Partition.
by judge2020 | 2025-09-01 02:40:25+00:00
> Make it require a difficult/obvious factory reset to enable, if you are concerned about someone being "tricked" into turning off the lockdown.

Is there also a way to make it obvious to the user that a device is running non-OEM software? For example, imagine someone intercepts a new device parcel, flashes spyware on it, then delivers it in similar/the same packaging unbeknownst to the end user. The same could be said for second-hand/used devices.

It's potentially possible the bootrom/uefi/etc bootup process shows some warning for x seconds on each boot that non-OEM software is loaded, but for that to happen you need to be locked out of being able to flash your own bootrom to the device.
by about3fitty | 2025-09-01 02:41:03+00:00
Cognitive load is super important and should be optimised for. We all should have as our primary objective the taming of complexity.

I was surprised to find an anti-framework, anti-layering perspective here. The author makes good points: it’s costly to learn a framework, costly to break out of its established patterns, and costly when we tightly couple to a framework’s internals.

But the opposite is also true. Learning a framework may help speed up development overall, with developers leaning on previous work. Well designed frameworks make things easy to migrate, if they are expressive enough and well abstracted. Frameworks prevent bad and non-idiomatic design choices and make things clear to any new coder who is familiar with the framework. They prevent a lot of glue, bad abstractions, cleverness, and non-performant code.

Layering has an indirection cost which did not appeal to me at all as a less experienced developer, but I’ve learnt to appreciate a little layering because it helps make predictable where to look to find the source of a bug. I find it saves time because the system has predictable places for business logic, serialisation, data models, etc.
by blinded | 2025-09-01 02:42:27+00:00
From what I've seen in Schwab and experienced personally. The "sell shares for taxes" settings is a flat tax rate, mine is 26% last I looked. If you're in the higher brackets[1], ie making 250k+ it can be up to 9% difference. So if you get a vest of 20k in November toward the end of the year where you're likely in that higher bracket the amount Schwab sells could be 1,200~ difference (assuming 32% tax bracket, 26% flat), meaning you'd owe the federal gov that come tax time.

If you speak with a tax professional, for which I am not, they would tell you to calculate the difference and pay quarterly amounts. In practice this means that I sell more periodically just for taxes[2].

1. https://www.irs.gov/filing/federal-income-tax-rates-and-brac... 2. https://www.irs.gov/businesses/small-businesses-self-employe...

Edit: from what I understand payroll isn't informing Schwab of your current bracket, nor do I think they should have to.
by jawon | 2025-09-01 02:43:28+00:00
You might be how surprised how low a dose you need for an effect. 5-10ug of Ritalin noticeably reduces the "noise floor" for me.

How do you take 5-10ug? Dissolve 10mg in a litre of something. Get a 1ml dosing syringe. It has 0.1ml markings.

You could start there and increase it until you find what works. Also, if you take very little you can have a break on weekends and not suffer too much while remaining sensitive to lower dosages.
by echelon | 2025-09-01 02:43:30+00:00
Apple has removed your freedom from day one.

Their R&D budget is at the expense of a free market that would have delivered the same or better products.

Did you ever see how wild and innovative the Japanese mobile phones were before iPhone monoculture took over?

I want crazy stuff like a smartphone that has the form factor of a Raspberry Pi. Or a smartphone with e-Ink. Crazy new categories of devices.

Sadly, the Apple/Google monopoly has turned smartphones into one of the shittiest, most locked down device categories. It's a death place for innovation.
by AnthonyMouse | 2025-09-01 02:43:54+00:00
Sure. You ship the device in open mode, and then doing it is easy. The device supports closed mode (i.e. whatever the currently configured package installation sources are, you can no longer add more), and if you put the device in closed mode, getting it back out requires attaching a debugger to the USB port, a big scary message and confirmation on the phone screen itself, and a full device wipe.

Then you put grandma's device in closed mode and explicitly tell her never to do the scary thing that takes it back out again and call you immediately if anyone asks her to. Or, for someone who is not competent to follow that simple instruction (e.g. small children or senile adults), you make the factory reset require a password and then don't give it to them.
by pyk | 2025-09-01 02:43:57+00:00
Fun project! For HN Pez fans, The Pez Outlaw is an amazing “hacker” collector documentary on Netflix that follows Steve Glew - who made his own dispensers semi-legit through connections in Europe (Pez Europe operated separately from Pez USA, and still does in many ways). Has some parallels to the scrappy nature of tech as well.
by immibis | 2025-09-01 02:45:35+00:00
I don't think the cellular network is the problem at all - everything except SMS and PSTN calls works on wifi. The problem is the apps. Netflix only runs on a verified bona fide electrified six car Google- or Apple-approved device; so do most financial apps (EU law requires them to) and basically everything else where the app developers are trying to get money off you (which is most apps). Some apps will refuse to play ads on a non-genuine device and then refuse to function because you aren't watching ads. Play Store does its best to stop you installing its apps on a nongenuine device, but it has to support older devices without TPMs so it's not fully locked down yet. Even YouTube has some level of attestation.
by positron26 | 2025-09-01 02:46:10+00:00
> contributors do

More users != more contributors. As software gets more popular, you begin getting 10, 100, 1000, 1,000,000 users for every contributor.

This doesn't just affect non-programmers. We can't even police NPM.

People want it to be true so that it will be a talking point, but it's not true, and we need to find new talking points that align with facts that are evident outside the echo chambers.
by Barbing | 2025-09-01 02:48:21+00:00
I like that! I’m sure it would take a little bit of time for folks to stop trusting calls from personal numbers where highly-capable social engineers do their best work, but eventually I expect nearly all of us would learn the lesson.

And presumably we could set up notifications so our elderly relatives’ phones would alert us to calls from unverified numbers not in their contact list lasting longer than a minute or two.
by hnick | 2025-09-01 02:49:35+00:00
A study I glanced over a while ago said something like 40% of people respond to dex or ritalin, around 80% to either (I'm in this group but dex had more annoying side effects), and the last 20% to neither (but there is other stuff out there). So it's definitely worth trying both branches of the common meds first. You should also talk about dosages because there is titration period where they need to monitor and adjust to see how your specific body responds.
by razzmatazmania | 2025-09-01 02:50:38+00:00
Some people also value programs for their productive ends rather than value them for the process of writing them in a pleasing way. Personally, I've been getting more done than ever with Claude Code. That I am able to work just a few minutes at a time then let the machine go is really nice as a parent. For those of us who don't program for a day job, but need programs for our day job, Claude and friends have completely changed what's possible.
by nine_k | 2025-09-01 02:51:02+00:00
Am I the only one who sees no upside whatsoever in sunsetting a well-established, widely used, reasonably operated TLD?

To my mind, the only reason to unregister a TLD would be the TLD falling into disuse (the registrar having gone incomunicado, too-level DNS servers unmaintained, etc), and nobody agreeing to pick it up at the price of a new TLD ($1M?).
by scottapotamas | 2025-09-01 02:51:06+00:00
For two DRP (dual role) devices connected to each other, I believe in a default case the one that happens to advertise as a source first just becomes one.

The standard allows for a role swap at any point while connected, and if that’s triggered will be dependent on the firmware/config on one or both ends.

There’s probably more nuance hiding in the real world hardware too.
by zmmmmm | 2025-09-01 02:51:16+00:00
> In this context this would mean having the ability and documentation to build or install alternative operating systems on this hardware

It doesn't work. Everything from banks to Netflix and others are slowly edging out anything where they can't fully verify the chain of control to an entity they can have a legal or contractual relationship with. To be clear, this is fundamental, not incidental. You can't run your own operating system because it's not in Netflix's financial interest for you to do so. Or your banks, or your government. They all benefit from you not having control, so you can't.

This is why it's so important to defend the real principles here not just the technical artefacts of them. Netflix shouldn't be able to insist on a particular type of DRM for me to receive their service. Governments shouldn't be able to prevent me from end to end encrypting things. I should be able to opt into all this if I want more security, but it can't be mandatory. However all of these things are not technical, they are principles and rights that we have to argue for.
by fennec-posix | 2025-09-01 02:52:27+00:00
I'd be taking my meds if the pharmaceuticals didn't keep having many-month long shortages of the ones I'm taking...

I need the higher doses, so I'm practically screwed. Makes me so damn frustrated, cause I'm 4-5 months down without meds and I'm REALLY STRUGGLING. Depression, zero motivation, practically no executive function. Really needs to be accountability on these companies to ensure they can supply.
by hnick | 2025-09-01 02:53:03+00:00
FWIW ritalin reduced my anxiety a fair bit. It changed my brain from one with multiple concurrent streams of thought, often negative and never truly going away, to focusing on the task at hand.

As a direct outcome it means I don't have bad thoughts and feelings sitting in the back of my mind when trying to do something else 24/7 so I'm generally more balanced. Indirectly, it was helped by actually getting stuff done and feeling less shit in general and not putting myself down as much for failing.
by Barbing | 2025-09-01 02:54:00+00:00
Very nice!

I’m sure I’m missing a problem with the following approach: shipping in _closed_ mode with a sticker on the front notifying the person they should do a factory reset immediately to make sure they can do everything they want to do. During the reset, include a scary message for those who opt in to get to open mode.

Everyone simply goes by defaults so it would only be technical people presumably who would even get into the open mode in the first place. And then require the debugger to leave closed mode like you said.

Edit: this comment worries about solo/asocial/“orphaned” members of our society
by tupac_speedrap | 2025-09-01 02:56:31+00:00
You seem to be prejudice and cherry picking to backup your opinion judging from the way your post reads and the random unhinged comments on Spain for some reason, HN is attracting more pseudo-intellectuals these days unfortunately. I don't think anyone can help you apart from maybe a therapist but getting laid and interacting with people outside in a non-transactional may help
by snailmailman | 2025-09-01 02:57:24+00:00
It was certainly heavily implied to be intentional. With the title referencing "Nintendo’s greed"[0] and in the first minute they call it “locking down a product, not for a good reason, but just because [nintendo] can, or […] because <bleep> you”

It’s not until much further in the video that they backtrack a bit and call it “tactical laziness” by Nintendo. Honestly, I did not get that far on my first watch.

[0] YouTube now confusingly shows different titles randomly. I’m seeing “Nintendo’s Greed could Change the Tech Industry” but that may not be its real title for all I know.
by narrator | 2025-09-01 02:57:36+00:00
This is a great article. I've been in for surgery a few times, and I always cry before it because I never know what could happen. I could wind up dead, paralyzed, in chronic pain, a vegetable. Then I think to myself how unspecial I am. Millions of people die every day and yet we deny death, and lose sight of the stuff that actually matters that much. The billionaire and the homeless person still just fertilize worms after they die. That reality keeps me humble and in daily gratitude to the miracle of life, though my confidence does waver during the periods of ill health I've had.
by unsnap_biceps | 2025-09-01 02:57:54+00:00
According to https://superuser.com/a/1773195

> Any DRP port must have pull-down 5k1 resistors on CC wires (as a sink), AND 10-22-56k pull-ups (as provider), but not at the same time. The DRP then alternates the sink advertising (5k1 pull-downs) with pull-ups (source advertising) about 10 to 20 times per second.

> If another DRP is connected, they both will toggle their advertising until a correct (pull-up - pull-down) combination occurs. Then CC controller(s) will stop toggling, and the end that happens to be in provider mode will provide +5VSAFE VBUS. The process will end in one or other direction, which will happen at random (since frequencies of toggling are independent).
by devmor | 2025-09-01 02:58:22+00:00
I’m still yet to find a use-case for AI-generated code in my workflow.

Even when I am building tools that heavily utilize modern AI, I haven’t found it. Recently, I disabled the AI-powered code completion in my IDE because I found that the cognitive load required to evaluate the suggestions it provided was greater and more time consuming than just writing the code I was already going to write anyways.

I don’t know if this is an experience thing or not - I mainly work on a tech stack I have over a decade of experience in - but I just don’t see it.

Others have suggested generating tests with AI but I find that horrifying. Tests are the one thing you should be the most anal about accuracy on compared to anything else in your codebase.
by wakawaka28 | 2025-09-01 02:59:48+00:00
Why should anyone use zapcc instead of ccache? It certainly sounds expensive to save all compiler's internal data, if that is what it does.

I'm sure you must be aware, these compiler tools do not constitute a language innovation. I'd also imagine that both are not productions ready in any sense, and would be very difficult to debug if they were not working correctly.
by wkat4242 | 2025-09-01 03:01:25+00:00
> This is what bothers me about the whole "App Store" stuff with the EU. This entire fight about Apple being required to allow third party "App Stores" -- how about simply the user can load whatever software they want to on the device which they are the owner of?

This is because the EU is not a citizens advocacy platform. They're an economic platform mainly built to smooth the cost of doing business in Europe for multinationals. They don't have our best interests at heart. They care more about a big neoliberal common market.

The European project started well but mid 90s it got hijacked by hard neoliberal interests, especially the commission.
by ianbicking | 2025-09-01 03:02:06+00:00
The surgeon general warning came along with a large number of other measures to reduce smoking. If that warning had an effect, I would guess that effect was to prime the public for the other measures and generally to change consensus.

BUT, I think it's very likely that the surgeon general warning was closer to a signal that consensus had been achieved. That voice of authority didn't actually _tell_ anyone what to believe, but was a message that anyone could look around and use many sources to see that there was a consensus on the bad effects of smoking.
by jaggederest | 2025-09-01 03:02:17+00:00
> Maybe they gave me Valium.

Versed/midazolam, almost certainly, was a part of the preoperative regimen.

I had jaw surgery and basically didn't sleep the night before, for obvious reasons, and they gave me a bit of versed in prep and had to wake me up on the table to put me under for anesthesia proper. Hey, not my fault the blankets were warm and the pillow was perfect.

It's a very useful medication both for anxiety, but also to reduce your seizure risk, which I imagine for cerebellar surgery was a definite factor.
by watersb | 2025-09-01 03:03:34+00:00
Hameroff has a whole universe of publications and conferences on the nature of consciousness:

https://hameroff.arizona.edu/

His publication of the book "Ultimate Computing" in _1987_ was astonishing.

I found it in 1988 or 1989, read it cover to cover.

In the era known now as the "AI Winter", I remember it as a time when it became clear that logic programming over a collection of facts was never going to get us to AGI. Same time, Rumelhart and McClelland published their books on "Parallel Distributed Processing", training neural networks via back-propagation; McClelland has continued this work and has a current version at https://web.stanford.edu/group/pdplab/pdphandbook/handbook.p...

But Hameroff - an anesthesiologist - had such a different take on things.

Claims, along with Roger Penrose, that consciousness is a quantum-mechanical phenomenon... well, I remain unconvinced.

(My only credentials on this matter consist of my opinions and my ability to post them on the internet, but these days that's apparently sufficient.)

Anyhow, the video is worth a look.
by sunshowers | 2025-09-01 03:03:49+00:00
Well, git add is super overloaded, because it lets you add untracked files (especially with -N), or all or parts of tracked files to the staging area. Mercurial is a different system with different primitives, where each command tends to do one thing, and add is only meant to operate on untracked files.

I strongly prefer JJ's approach of simply doing away with the concept of untracked files, though note that this is one of the features that is designed around developers having NVMe drives these days. It wouldn't have been possible to scan the working copy with every command back in 2004.
by monster_truck | 2025-09-01 03:04:26+00:00
I'm not using a cli to manage my code, it's 2025. I want gittower and gitlab, I want shortcut keys and first class support in _everything_, I'm a professional. If anybody paying me ever says I have to use it, I'll be using git anyways just like I did with clearcase, svn, mercurial, etc etc

A quick scan of this thread reveals no less than 4 show stopping missing features. By the way, where are submodules? I see sentences like "you can work on every branch at the same time" and think "wow this would be great if I really wanted to fuck something up, now show me how you'd track this down to unfuck it a few years later in an unfamiliar codebase. With a gui. For use as evidence in a criminal court case"

Keep plugging away. If this is how you think you can make the world of software a better place, I'm cheering for you.
by Izkata | 2025-09-01 03:05:11+00:00
A couple of them seem more complicated, like the example further up on the page for postponing merge conflicts. In git I'd just abort the merge and do it later.

I also found the exchange about named branches funny, that ends with:

> Ok, you need to call `jj bookmark set -r@ XYX` (or `jj b s -r@ XYX`), so what?

Apparently this is excusable, but people like to complain about git's commands being too obtuse - as far as I understand the git version is "git checkout -b XYX", right? (Or I guess "git switch -c XYX" with the new commands)
by JSR_FDED | 2025-09-01 03:05:36+00:00
Nobody is forcing you to buy their products, so they haven’t taken away anything from you.

If you do decide to buy their products, nothing has changed since the day of your purchase, so they haven’t taken away anything from you.

Their “monoculture” didn’t “take hold” - it beat the Japanese offerings through innovation and a better product.

They operate in a free market, their R&D budget is made possible by their market success. If things change in the market (e.g. AI) the market will vote the way it always does.
by trinsic2 | 2025-09-01 03:06:21+00:00
> When Google restricts your ability to install certain applications they aren’t constraining what you can do with the hardware you own, they are constraining what you can do using the software they provide with said hardware.

No. Incorrect. Because the argument that we should be focusing on software is a distraction. They use restricting the OS as an argument to restrict the Hardware. Their is pressure put on on hardware devs to toe this line.

You can see this with secure enclaves. If they didn't care about what software was running on their hardware, they wouldn't be designing hardware to restrict the kind of OS you can run on the hardware. Secure Boot/UEFI is going in that direction and Mobile devices are already there to some extent.

This whole argument is a distraction designed to lure people away from the real problem. That all technology (Hardware and Software) is being designed to restrict freedoms. If you are focus on this distraction, you are missing the point.
by makeitdouble | 2025-09-01 03:08:08+00:00
> Google and Apple have more power than most nations.

To push further, Google and Apple have basically as much power as the US.

The UK going after Apple, only to get rebutted by the US is the most simple instance of it. International treaties pushed by the US strongly protecting it's top corporations is the more standard behavior.

Any entity fighting the duopoly is effectively getting into a fight with the US.