MurphyA/hacker-news huggingface dataset:
by reuven | 2025-08-28 09:45:02+00:00
I teach Python professionally, and constantly get questions from my students about how they should be using uv, and how to integrate it with pip, pyenv, venvs, and the like.

When I shared this post with them, my students said that it clarified things they didn't previously understand, even after reading the documentation. Part of the problem is that the documentation describes lots of options, rather than explicitly encouraging one particular path and model.

So I don't think it's just me; people are excited about uv, but aren't quite sure how to use it. But hey, I could be wrong!

As for your comment about venvs -- I teach them, I demonstrate them, and I use them when I work on programming projects.

I mostly create one-off Jupyter notebooks, which don't (in my opinion) merit their own venvs, because I don't care about locking versions. That said, I'm switching everything such that every class I teach will have not only a GitHub repo, but also a uv project, and thus an implicit venv behind the scenes. I still don't have to worry about package conflicts, but I want to be more in line with community conventions.
by weizhenchu | 2025-08-28 09:46:04+00:00
Yes — it felt odd. I was mainly self-promoting in places like r/sideproject and the mega self-promo threads. Maybe that I didn’t clearly label it as FOSS is the reason. I submitted an appeal a couple of days ago and hope to get the account back. I’ll also start writing blog posts to share my work and thoughts — thanks for your tips!
by lproven | 2025-08-28 09:46:13+00:00
> If you create a folder in an open dialog, and the Windows Defender kicks in or it's a network mount, the inner window of that dialog freezes

Oh, nice. Just what you want.

There was context at the time of Win98, good and bad.

Jobs had just come back to Apple. He cancelled most of its WIP projects. His other company's OS, NeXTstep, was set to replace classic MacOS.

But he didn't just axe everything, and among other things, he set the classic MacOS developers to salvaging as much as they could from the failed "Copland" project to make a multitasking next-generation classic MacOS.

They took quite a lot of the UI tech from the MacOS "Finder", broadly its desktop.

The result was MacOS 8, and one of the big things in its new desktop, as well as loadable themes and pop-up drawers (which never made it across to OS X) was... multithreaded file operations. This was a huge win in the day: Macs were a bit slow anyway so being able to keep working while the Finder kept copying was a huge boost.

So, that was new out in July 1997. Microsoft was left behind: the Win95 desktop couldn't do that, and neither could the fancy pre-emptive multitasking NT 4, released in 1996.

I do miss the era of bold OS experimentation like that. Now, it's just "how can we embed as many cloud services they'll have to pay for?"
by jeroenhd | 2025-08-28 09:49:30+00:00
Does that change anything compared to running an old version of Safari that's also extremely slow because of a bug to boot? Modern websites are broken on abandoned browsers anyway, but if you install a less-abandoned browser you'll have a better experience on average.

Firefox doesn't work on Windows 7 anymore but installing Firefox is still a hell of a lot better than sticking to IE.
by wraptile | 2025-08-28 09:49:44+00:00
It's just 2 paragraphs for the lazy:

Participants were guided through pre-recorded audio instructions accompanied with evocative ambient music played through a speaker in the lab to breathe normally for 10 minutes (baseline) then engage in HVB, encouraged by the tempo of the music progressively increasing to the end of HVB. Some examples of the recorded instructions are presented below.

“Mouth wide open, pulling on the inhale, that’s it. No pauses at the top of the inhale, or the bottom of the exhale. Full body breaths. Breathing in to your whole body. Keep breathing. Getting comfortable, finding your rhythm. Keep going. As you’re breathing, it’s now time to let go of any intention you have, of any expectations you have, just focusing on the breath. Keep going. Active inhale, passive exhale. The music is going to keep on rising, so fall into the rhythm and let your breath guide you. Your job is just to keep breathing, pulling on that inhale. Surrendering to the exhale. Keep that breathing circular, that’s it. Keep going. Whatever sensations you’re feeling, let them come, let them rise, enjoy them. Stay focused. Give yourself fully to the breath. It’s your closest friend. It will be with you from the moment of your birth and stay by your side until you die. You can trust it.”
by gaoryrt | 2025-08-28 09:49:53+00:00
Last year during the National Day holiday, I went on a road trip through southern Xinjiang. Kuqa (or Kucha) was one of my stops since it’s the starting point of the famous Duku Highway[0].

Before visiting the Kuqa Museum, I had no idea about the history of Buddhism and Islam in Xinjiang. The government also has a very “official” definition of that history, lol.

The landscapes were incredible, and I wrote a few blog posts about the trip (in Chinese)[1].

[0]: https://en.wikipedia.org/wiki/China_National_Highway_217 [1]: https://gaoryrt.com/2024/journeytothewest/
by wazoox | 2025-08-28 09:49:54+00:00
Well...

> The contest between the capitalist and the wage-labourer dates back to the very origin of capital. It raged on throughout the whole manufacturing period. [112] But only since the introduction of machinery has the workman fought against the instrument of labour itself, the material embodiment of capital. He revolts against this particular form of the means of production, as being the material basis of the capitalist mode of production.

> [...]

> The instrument of labour, when it takes the form of a machine, immediately becomes a competitor of the workman himself. [116] The self-expansion of capital by means of machinery is thenceforward directly proportional to the number of the workpeople, whose means of livelihood have been destroyed by that machinery. The whole system of capitalist production is based on the fact that the workman sells his labour-power as a commodity. Division of labour specialises this labour-power, by reducing it to skill in handling a particular tool. So soon as the handling of this tool becomes the work of a machine, then, with the use-value, the exchange-value too, of the workman’s labour-power vanishes; the workman becomes unsaleable, like paper money thrown out of currency by legal enactment.

Karl Marx, The Capital, Book I Chapter 15.

https://www.marxists.org/archive/marx/works/1867-c1/ch15.htm
by IgnaciusMonk | 2025-08-28 09:50:09+00:00
do not encourage nonsense. pls :) it is totally pointless endeavor because you CAN still buy NEW sata disks.... so why the.. you need to have 60 dollar converters added on top of essentially same disk ??? so no sata -> nvme is total nonsense and provides absolutelly nothing in technical terms to anybody in any situation.

"" rest of your comment is "ok" ""™ XD
by jacquesm | 2025-08-28 09:50:20+00:00
> There isn’t some secret cabal of MAGA types censoring you.

There are enough MAGA adherents on HN with flagging privileges for this to be an actual problem. HN just does not aggressively police such brigading.

It takes only five flags for an article to be pushed down far enough that it might as well not exist and less than 10 for it to be killed entirely.
by polotics | 2025-08-28 09:50:25+00:00
oh wow I though maybe I had been harsh and forced myself to watch the video to the end. it's even worse than I thought: basically the story is this young-woman developer person is meant to not be skilled enough to do her job, and will not "feel like a fraud anymore" by relying on appjet.ai to appear to have the ability that, really, she does not have. then she says it's her "secret". this is so bad on so many level: sexist, disingenuous, misguided, the worst kind of growth-hacking fake I've ever seen.
by troad | 2025-08-28 09:50:36+00:00
> I've seen cases where Side A has 10 examples of case law that support their position, which they use in their motions and filings -- and Side B has 10 counterexamples of caselaw that support the opposite position, which they also use.

Sure, and there are people who can array thousands of pages of evidence that vaccines cause space reptilism and chronic nosehair. Doesn't mean it's good evidence.

The basic tradecraft of a lawyer is to figure out what the weight of the precedent on a given question is. Your argument seems to be that the very existence of any doubt, no matter how implausible or infrequent, means we might as well all give up on the rule of law and return to monkey. Which seems a rather nihilistic take for a system that works quite well, despite the difficult trade-offs inherent in it.

> The Judge, who is a very busy man, simply cannot research the issue in exhaustive detail

That's what clerks are for. A judge has staff! And usually a solid intuition for what the law is, built on decades of experience practicing in the field. That's why we tend to appoint our judges from experienced practitioners, and not fresh law school grads.

This is admittedly a much worse issue at the lowest levels - magistrates who deal with petty theft and the like. Those people are often fairly incompetent, sadly, but I'm not aware of any legal system that's managed to systematically solve this issue.

> It's a major problem. When you have literal mountains of case law (IIRC all US court decisions in plaintext come out to something like 200TB)

The vast majority of this is lower court decisions that won't be binding precedent almost anywhere.
by firesteelrain | 2025-08-28 09:51:06+00:00
IronBank is free though more DoD focused

“If you’re looking to deploy multiple images, Chainguard’s per-image charges could quickly exceed Bitnami’s flat subscription cost. For example, licensing 3 images at $30K each would already reach $90K/year.” via Reddit.

There is a new Catalog option. Their pricing is “custom” and not published online so all we have is Reddit anecdotes like here

https://www.reddit.com/r/cybersecurity/comments/1ihy9sr/chai...
by tialaramex | 2025-08-28 09:51:18+00:00
The C# is basically showing the Monitor pattern, which was also a thing in Java last century.

The Rust Mutex is an Owning Mutex which is a different feature whose benefit is that you need to take the lock to get at the protected data, which averts situations where you forget in some code but not others and create sync problems - in C# those may go undetected or may trigger a runtime exception, no guarantees.

But perhaps even more importantly, and why other languages which could do the Owning Mutex often do not, Rust's borrow checking means the compiler will spot mistakes where you gave back the lock but retained access to the data it was protecting. So you're protected both ways - you can't forget to take the lock, and you also can't give it back without also giving back the access.

Monitors prevent only the second (and only partly), an Owning Mutex in most languages prevents the first, but Rust prevents both.
by KingMob | 2025-08-28 09:51:46+00:00
> DNS is certainly a decentralized protocol

What you originally said could be interpreted as either DNS-the-system or DNS-the-protocol. I assumed the former, since that seemed more likely.

Sure, the protocol could be used without the resolver hierarchy, but I would argue that's not a useful way to think about it, since it won't happen in practice.
by Jensson | 2025-08-28 09:52:28+00:00
> I don't view a banana taped to a wall as art

If some don't understand why, I argue art needs to stand on its own, without the surrounding social context. If you view trash as art just because an artist told you, then the art isn't the trash the art is the artists explanation.

So, if you see a banana taped to a wall on a house when out walking, would you see that as beautiful art? If not, it isn't art according to my definition. The art piece is the whole thing, the banana and the explanation.

But many pictures can be considered art on their own without the social context, they are just beautiful and nice to look at. A banana taped to a wall doesn't pass that test.

Edit: So according to this definition AI art can be art, since some of those images can stand on their own as beautiful pieces of art without needing a social context.
by johnisgood | 2025-08-28 09:53:27+00:00
Yeah, same here. This Haskell project is nothing serious, it just prints you the difference in time between two dates. I thought the Haskell implementation would look nice and it did. I initially made it in bash but I realized this is much more complex than what bash can handle. I had to calculate for particular calendars among a lot of other things. I think it works, more or less, however.
by user94wjwuid | 2025-08-28 09:53:41+00:00
Is 2 years or so big enough sample size for any conclusions? You’re also seeing massive money movements; last quarter larger than consumer spending (!!!) This money isn’t going to junior head counts(labor), it’s going to compute(capital) Also what’s everyone’s balance sheet really saying? Will this money movement to capital rather than labor ACTUALLY pay off ? I think that would take a 10year hind sight to prove no?
by pyman | 2025-08-28 09:55:07+00:00
Not sure about radiation, but I once tried to boil an egg in the microwave and the microwave exploded. For a second, I thought the chicken had secretly developed human-level intelligence and planted an explosive inside the egg to get back at those stealing its babies. That was my "wow" moment. Then my dad confirmed it was my fault and compared my intelligence to the chicken's.
by thisisnotauser | 2025-08-28 09:57:35+00:00
It's fascinating that the driving force here was human-driven capitalism enabled by enhanced data collection, and not data-driven decision making at all. It's risk-aversion that's draining art of its artistry, much like the effect of risk-aversion in other industries like defense. Consider how the US department of defense tends to waste money on the same old prime contractors making the same old missiles, while other places like China are utterly devastating us on technologies that radically undermine our advantage that we'd historically considered "too risky" like drones.

I wonder what the next "drones" will be for the entertainment industry? World simulation models like Genie turned into some real-time generated mix of a shared experience of movies and video games?
by arvinjoar | 2025-08-28 09:58:04+00:00
"Doesn't make sense for us but mandated by policy" is a super common phenomenon that you'll sadly encounter all the time in the industry. Especially when it comes to security. In this case it's at least motivated by something as peripheral as onion services wanting to fit in with the browser ecosystem, which, fair, maybe it doesn't make sense for browsers to bloat their designs by taking onion services into account, and then onion services have to adapt to modern browser standards.
by NoboruWataya | 2025-08-28 09:58:43+00:00
Bookmarks for me are mostly useful as quick links to highly "dynamic" sites (like HN), where offline snapshots are less useful, or for massive sites that are not quick to snapshot, like Wikipedia (an offline snapshot of Wikipedia is definitely useful, I just don't think the browser is the right tool for that).

For long-form content that I want to come back and read later, I find Wallabag is quite good. For making snapshots of large websites I use Kiwix.
by Ygg2 | 2025-08-28 09:59:04+00:00
Ok, I should have been more specific. By ADT I meant sum types, or, to be even more exact, discriminated union. Everyone and their mother has product types.

Java doesn't have a discriminated union for sure (and C# as of 8.0). It does have a `|` operator that can cast two objects to the nearest common ancestor.

Having nullable support is the issue. I've played around with it in C#. Nullables are horrible. And I say this as someone who was formerly in Option<T> is horrible.

You can easily cause type confusion, and if the number of times a non-nullable has been nullable (or at least has appeared as that in the debugger) was greater than zero. To be fair there was reflection and code generation involved.
by zevon | 2025-08-28 09:59:44+00:00
It's so sad to see these attacks on institions that are intended to save lives and cure horrible diseases. Many moons ago, during civil service and volunteer work with kids, I've occasionally been confronted with parents who were anti-vaccination or followed some esoteric stance on medicine. When the anger faded away, those days always made me so very sad and frustrated that the only thing you apparently can do is play the very long game of education and somehow try to keep up hope for a more enlightened future.
by iamsaitam | 2025-08-28 10:00:48+00:00
It's one of those cases where it only get's noticed when it's bad. It's also easy to hate on web technologies since everyone get's to use them everyday (larger user base). But most important of all, it makes people feel good about themselves hating on a technology used lot of times by people who are just starting out with programming. Gatekeeping at its best.
by n4r9 | 2025-08-28 10:01:34+00:00
The article and specifically your post brings back vivid memories!

My wife and I hiked the Dolomites starting from Cortina d'Ampezzo a few years back. Our second day was from Rifugio Tofana, round the southern ridge of Tofana di Rozes towards Rifugio Lagazuoi. Despite following what looked like a major route on the map, the trail was scraggly and at one point totally petered out for a couple of meters. I reckoned this was due to rockfall at the end of winter, which the article validates. It was just about okay for a person to scramble across unencumbered, but we had 15-20kg rucksacks and the drop looked fatal. We had to make a call between taking a big detour (probably several hours longer) or finding a way across. Eventually we got across but it was hair-raising and risky.

We warned the staff at Lagazuoi about the broken trail, but they were totally unbothered. We were hoping that some kind of warning could be broadcast to local authorities, but either they misunderstood what we were saying or they just didn't care! Then a few weeks after getting back to the UK I read that some British climbers had died on a "via ferrata" in a different area of the Dolomites. I had a mixture of gratefulness that I'd gotten back alive plus sadness at the lack of safeguarding.
by galaxyLogic | 2025-08-28 10:01:38+00:00
I read somewhere that only people who want to be hypnotized can be hypnotized. People "believe" not because of facts and evidence, but because they want to believe. We wouldn't say "I believe ..." if we had facts to back up our belief, we would say "I know that .... Same applies to religious cults and extreme politics. Peole believe what they want to believe. No use trying to argue with them.

So, I think you raise a good general question about the nature and causes of transcendental experiences. You can have them if you want them. And who wouldn't?
by jacquesm | 2025-08-28 10:02:05+00:00
This is a problem. I keep asking myself: "If I wanted to destroy the USA could I do worse?" and then I find the answer is no. And then they do find ways to make it worse, sometimes much worse. So I'm no longer even sure what the game plan is here, it looks like they are not only trying to destroy the USA as a world power but at the same time to set things up so that there will be far fewer inhabitants. That to me is a far more worrying thing than just the usual left-right power games. Concentration camps are a small step away from gulags. Wholesale deportation is a small step away from disappearing people. Wrecking the currency is a small step away from wrecking the economy in unrecoverable ways.

This is not something subtle, this is something large, gross and horrendous. Call me alarmist if you want but in my wildest dreams prior to Jan 6th 2025 did I think that it would get this bad this fast. Things have already fallen off a cliff or they are about to and I'm not sure I will be able to spot the difference.
Show HN: PeekShot – Automate Website Screenshots via Simple REST API
by mukul767 | 2025-08-28 10:02:35+00:00
Hey HN!

We built PeekShot, a tool to automate website screenshots at scale. It’s aimed at developers, SaaS founders, marketers, and QA teams who need consistent, pixel-perfect captures — without clicking around manually.

Why we built it: We kept running into the same problem: getting consistent, high-res screenshots for dashboards, changelogs, QA, and marketing. Existing tools were either flaky, slow, or expensive — so we decided to build our own.

Key Features:

- REST API → start capturing in <60s

- Flexible modes → full-page, viewport, or element-level

- Device & viewport simulation → mobile, desktop, custom sizes

- High-res output → Retina, HD, custom DPI

- Webhook delivery, custom headers, proxy support

- Integrates easily with CI/CD, dashboards, analytics pipelines

Free Tier: 100 credits, no credit card required.

I’d love feedback — happy to share API examples, discuss integrations, or hear how you’d use this!
by matklad | 2025-08-28 10:02:42+00:00
I used to think that way, but I've learned that there's one good reason for why the API is designed that way: priority inheritance. Priorities are bound to threads, and, when a high priority threads wants to lock a currently occupied mutex, we want to bump the priority of the current holder. And POSIX requirement makes that easy --- the thread who locked the mutex must be the one holding it.

Related: https://man7.org/linux/man-pages/man2/futex.2.html#:~:text=%...
by teo_zero | 2025-08-28 10:02:58+00:00
Reading through the comments in this thread, it looks like the population is split in two groups. The first group considers "bookmarks" as a directory of often-visited sites, and needs a way to avoid typing their URLs every time. The second group intends "bookmarks" as a wish list for sites that might need a second (deeper) visit.

It may be time to find another metaphor for this second group: "postcards" might work better than "bookmarks".
by jacquesm | 2025-08-28 10:05:31+00:00
What are the chances that suddenly half the people in power that Trump wants to get rid of have committed a felony? And what are the chances that the people that Trump has put into power have committed the same felonies (or much worse) and are getting a pass? If that doesn't worry you then you have to stop statements like 'having studied history more than most' or something to that effect and realize that you are in uncharted territory. You are still applying normal standards to a blatant power grab and slide into a form of government that does not have a happy ending.
by wosined | 2025-08-28 10:06:00+00:00
Hi, I don't know much about this. But it seems to me that the OP is doing it differently than the kernel devs. If you read the article that the OP links, then you get the impression that the vtables contain typed function pointers, while OP uses void pointers. Also the main benefit mentioned in the kernel dev article is that you save memory, by not having multiple function pointers in each structure instance, but instead you have just one pointer to a vtable in each instance. Thus the main benefit is saving memory according to kernel dev, but OP uses this vtable as a form of indirection to implement runtime method swapping and polymorphism, which is not even mentioned in the kernel dev article. Thus, OP uses some other pattern than the one mentioned by kernel dev.
by Aachen | 2025-08-28 10:06:05+00:00
Just realised that's misleading:

> a typical person in a rich country [...] uses about 1.5 MWh/year

That's just electricity, not energy. The real figure is probably ballpark 50 to 100 percent higher (probably mainly depending on climate for heating/cooling demands and the heating method being used) but I haven't looked that up now. Just wanted to remark this (can't edit anymore) so it's no longer completely misleading