MurphyA/hacker-news huggingface dataset:
by nine_k | 2025-04-05 04:37:23+00:00
Indeed! Money is a special kind of a commodity, at least initially. With fiat money, it's more complicated, but still. All trade is barter trade, in a sense.

Money, e.g. gold, has a very special quality: it's accepted in exchange for any goods. It's the ultimate "narrow waist" of goods exchange. This gives money a very special status among commodities.
by esperent | 2025-04-05 04:38:19+00:00
Thank you for sharing, I'm gonna save this comment and come back to it. I'm in Vietnam and chose this case partly because it seems resellers do have it in stock here. It's all the other stuff - custom risers and cables - I'm worried about.

I'm gonna target a 4080/5080 - stuck with Nvidia because CUDA - which gives me a lot more wiggle room with the power supply.

I've built plenty of PCs, including a few SFF PCs without GPUs, but never something requiring this kind of customization so I'm planning to find a detailed build online and mostly copy what the other person did, if possible.
by hinkley | 2025-04-05 04:40:10+00:00
The first time I encountered the memory fragmentation problem common in hashtables wasn't even in a hashtable implementation, it was in a program that used realloc heavily, and doubled the buffer size every time.

This was causing massive problems trying to concurrently read a stream over the network and start parsing it, because the realloc had trouble finding appropriately sized fragments. Once I pointed it out to the lead dev he used a different strategy and cut the load time on a multi-megabyte file by a factor of ten.

Much later on I would learn that he could have also solved the problem just by adjusting the growth factor to 1.5 instead of 2x.
by pvtmert | 2025-04-05 04:40:44+00:00
well for the Russia sanctions, initially it did have an impact but then both people and corporations found workarounds...

for example, blocking swift does not make money transactions impossible, makes it difficult for the layman in the first a few times.

nowadays, everyone uses crypto/usdt for the transactions and realizing it is actually cheaper and faster than the swift.

for the europe, they still buy the gas even at a higher price. grounding berlin to moscow flights only benefits turkish airlines and qatar airlines as now they profit from being monopolies (connections through istanbul and dubai)

the reality is that people adapt. i am not a trump supporter, i do not agree with the tariffs but that's what trump is trying to do; force people to adapt local goods
by chrismorgan | 2025-04-05 04:40:56+00:00
Another approach:

let mut iterator = data.chunks_mut(stride); while let Some(line) = if !flipped { iterator.next() } else { iterator.next_back() } { … }

I sometimes wonder idly if the language would have been better off without a `for` loop (if `while let` had happened much earlier). `while let` is more verbose, mainly because iterator construction has to be an explicit separate line, but it’s also more amenable to alteration to make it more fit for purpose. (You can go down to `loop` and `break`, but I think this sacrifices too much in ergonomics and comprehensibility in the usual case. As `while let` also compromises, but I wonder if it’s closer to the sweet spot than commonly imagined, and `for` doesn’t actually get you so much.)
by AceJohnny2 | 2025-04-05 04:41:04+00:00
> This is kinda like Docker/Podman thing on Linux – but secure instead.

How true is this? I know jails have been around longer than Linux containers, which are explicitly not designed as "secure" isolation (which is why people like fly.io use VMs instead).

How battle-tested are FreeBSD jails?

In particular, I note we're talking FreeBSD, not OpenBSD, which is the one that's all about security.
by rayiner | 2025-04-05 04:41:21+00:00
You’re retconning history from a mid-20th century civil rights lens. That lens focuses on increasing access to a civilizational order that has already been built. Its about expanding access to what white males already had. But it’s an inadequate lens for understanding how that order was built in the first place.

The hard part is getting “from 0 to 1.” You need a state, the state needs to impose order and gain control over warlords, you need law and civil institutions, you need a government that is controlled by more than a handful of people, etc.

England or New England in 1800 was already a more developed society than Bangladesh or Somalia or Iraq in 2024, even though slavery still existed and suffrage wasn’t universal. Just getting to that point would be transformational for much of asia, the middle east, and africa.

This is why nation building in the 20th and early 21st century has failed so spectacularly. You can go into Iraq and create a nice constitution with rights and universal suffrage and religious freedom, but you’re just redistributing 0. The “rights lens” doesn’t actually tell you how to get Iraq in 2024 to the point where England was in 1800.
by jms55 | 2025-04-05 04:41:39+00:00
> And not only are we getting tile/block-level primitives and TileIR

As someone working on graphics programming, it always frustrates me to see so much investment in GPU APIs _for AI_, but almost nothing for GPU APIs for rendering.

Block level primitives would be great for graphics! PyTorch-like JIT kernels programmed from the CPU would be great for graphics! ...But there's no money to be made, so no one works on it.

And for some reason, GPU APIs for AI are treated like an entirely separate thing, rather than having one API used for AI and rendering.
by silisili | 2025-04-05 04:41:58+00:00
I don't really get SMS/MMS. It made tons of sense in the 90s when we were all on our little Nokia.

Now, every device is internet connected. Email arrives in an instant. Whatsapp/Viber/FB Messenger exist and all provide a way better experience. RCS, 2 decades late, is like an april fools joke. Why are we still using this?
by wonderwonder | 2025-04-05 04:43:02+00:00
I voted against Trump twice before I voted for him this time and switched full republican. First time ever voting republican, always been a democrat.

"Do you draw the line somewhere and say, even if I get 60% of things I want, the other 40% could be/are a real dealbreaker"

Absolutely as soon as we fall into secret police and citizens being taken in the night and put in camps or falling out of windows, that's the line for me. He has already come close to it. Censorship is another issue for me but that is not really his thing.

I am quite angry at the insanity with the El Salvador prisons and the man "mistakenly" taken. That's something I am watching. I did vote for him on the border though and removing people that are here illegally. So I have to temper that with the knowledge that the process is not a nice one and there is going to be violence and mistakes will be made. That is the stark reality of calling for enforcement of laws though, law is only law when backed by state sanctioned violence.

"He stole, but he also delivered" I like this and I think this aligns with my outlook. I know Trump is going to make moves to enrich himself, and I am ok with it as long as its not blatant and as long as it causes little collateral damage. I don't think this is one of those things. I think he genuinely believes that doing this with the tariffs is a good thing.

I mentioned it in another of my comments if you want to find it, on how the crashing stock market allows the government to refinance $10 trillion for lower rates. I think that's the goal here. That and rebuilding manufacturing and punishing China. I have no idea how this plays out though. Its possible he doesn't either.

Trump is a lot of things but he is not an idiot. He could not still be here if he was, he gets away with things that would sink anyone else. On top of that he has Musk and that man is also a lot of things but he is one of if not the smartest most driven man on the planet.

Trump is not a nice man, I know that but it will take a brutal man to carry out the social policies I voted for and not collapse under the constant criticism. I knew from the beginning it was a deal with the devil.

So I will watch how it plays out.

The other side was just so much more dangerous long term in my opinion. I wont go into my reasoning, this is not the place for that and it's not relevant to the conversation. Just know I am very comfortable with my vote on those grounds.

So I will remain cautiously optimistic that there is a plan and rational. Trump is Trump but there are some very capable people on the economics and finance side of the house.

At this point in the game I would vote the same way again without hesitation. It's only been 100 days though.
by trentlott | 2025-04-05 04:44:26+00:00
I'm sure all those billionaires who paid Trump the $1m to grin behind him are dreading the impact on their groceries and upward mobility like the rest of us. Never forget that Trump and Bezos and Zuckerberg truly think of us first and wouldn't be so antisocial as to trade your family for a little bit more.
by bdean0001 | 2025-04-05 04:49:35+00:00
Really enjoying this thread, especially the points about creative cycles and the connection between stress and our drive to create. I recently wrote a book that dives into some of this, blending behavioral psychology with mindset principles like the law of attraction. It’s all about how our habits, thoughts, and environment shape our ability to stay inspired and follow through on projects.

If anyone’s curious, I’m happy to send over a free copy—just reply. Always love connecting with others who think deeply about creativity and motivation.

https://www.amazon.com/dp/B0DWM35DXH
by hibikir | 2025-04-05 04:49:38+00:00
Before Sierra's end, they had already been crushes, sales wise, by Lucasarts, which had far better game design principles. No dead man walking situations, or random deaths.

Still, the genre isn't dead today, but modern adventure games owe far more to Lucasarts than to Sierra. Even when the graphics are Sierra-like, like in The Crimson Diamond, we can see how far we've gone from the different Quest series
Show HN: Simple AI Crypto Agent for busy people
by code-less | 2025-04-05 04:49:51+00:00
Hello,

I built this project mostly through vibe coding—it’s designed for people who don’t have time to monitor the crypto market daily.

The software lets you add all the cryptos you want to monitor (including your portfolio) and sends you a daily newsletter with updates, AI suggestions, trading signals, and analysis. You can also easily set price alerts.

On the dashboard, you can chat with the AI about the cryptos you’re following.

One of my favorite features is the “suggest a new token” tool—it uses news to recommend tokens, and sometimes the suggestions are surprisingly interesting.

Let me know what you think! It’s free to monitor up to 5 cryptos.

https://aicryptoagent.org/

Have a great day!
by at_a_remove | 2025-04-05 04:50:56+00:00
This is pretty sad as a headline. It's not a warning, it is business as usual.

Civil asset forfeiture started expanding in the 1970s and in the next decade, we got Comprehensive Crime Control Act of 1984. Gitmo? 2002. Room 641A is the next year. Black ops sites, aka "we can torture you as long as we're not in the United States" is somewhere around there. Extrajudicial killings, I read 2,400 in just Pakistan, that's Obama-era, right? Stingrays, about 2007 or so. Qualified immunity out the yin-yang; hell, you can just shoot up someone's house for nearly a day trying to capture a shoplifter and the courts will shrug. That's 2015. Even the ACLU has become notably more partisan.

Decades ago, back when I thought people were capable of learning from anything other than a hot stovetop, I used to say that we ought to be careful when making manacles to restrict various liberties and cautious when providing more tools for law enforcement, because you just do not know for a certainty that the manacles you made will not be around your own wrists and that the latest tools of the law will not be aimed at you. "Pretend you will eventually be on the losing side," I said.

We've been going along with this business because it was convenient to believe that these little inches taken will not add up to miles. This will only be used on drug peddlers, pedophiles, terrorists, and money launderers, WINK WINK. We have been building this machine for a long time, and we've been smug as a bug on a landline with a FISA rubberstamp warrant.

Why this headline, now? And also, why this headline, now? Now and this because the people who were very comfortable are finally cottoning on to the fact that the various abilities tacked on to the Executive Branch over the decades might actually be used against them (us? ME? but I am one of the good guys, I only helped construct the machine!) and, while fearful, are still unwilling to engage with their own multi-decade culpability, so they must focus on the latest outrage and nothing before it. To do otherwise would suggest that they have some kind of involvement in this particular outcome and just making noises like "Trump," "Musk," and "fascism" keeps their metaphorical hands clean.

At this point, when I mention this kind of thing online, it's less from a desire to sway opinion (almost no chance of that occurring) and more of an opportunity for me, years down the line, to point and say, "Yup. Called it."
by matus_congrady | 2025-04-05 04:51:58+00:00
It's completely true, and I AM ashamed for doing it. But it's a terrible time to be a PaaS founder, since there are very few new projects being started at the moment. Without exaggeration, I think there are somewhere between 10% and 20% of new projects being started (which is the only point people will actually choose to use our platform) compared to 2022. Hard times, lower standards. Sorry. We've got ~40 website visitors from that comment so far, and I can't pass on that.
by hayst4ck | 2025-04-05 04:52:15+00:00
Citizenship is not some indelible mark on your person. It is likely at best some ink on a piece of paper or line in a database that can be lost, stolen, "forgotten", or denied.

Imagine that I were a police officer, I asked for your papers, and then immediately burnt them. How are you going to prove you are a citizen? What if I accused you of faking those documents? What is your recourse? How are you going to prove your citizenship? Are you going to go to the judge that was appointed by the person in power to plead your case? I already think you faked your documents, why should I let you have due process, I already know you are guilty.

Once you take away the structure of law these ideas that you think give you power, like citizenship, are just power on paper. The only real power you have is your friends and family getting upset and going to a journalist to plead your case to the court of public opinion, but maybe those journalists are employed by a billionaire, too, or they are scared they will fall out a window if they question the governments actions.

You are trusting someone who says if you give them power, they will solve your problems. But what if they don't, what if they start causing you problems? Who takes that power away once they already have it or have consolidated it with loyalists?
by jms55 | 2025-04-05 04:52:20+00:00
> NVidia and AMD keep designing their cards with Microsoft for DirectX first, and Vulkan, eventually.

Not really. For instance NVIDIA released day 1 Vulkan extensions for their new raytracing and neural net tech (VK_NV_cluster_acceleration_structure, VK_NV_partitioned_tlas, VK_NV_cooperative_vector), as well as equivalent NVAPI extensions for DirectX12. Equal support, although DirectX12 is technically worse as you need to use NVAPI and rely on a prerelease version of DXC, as unlike Vulkan and SPIR-V, DirectX12 has no mechanism for vendor-specific extensions (for good or bad).

Meanwhile the APIs, both at a surface level and how the driver implements them under the hood, are basically identical. So identical in fact, that NVIDIA has the nvrhi project which provides a thin wrapper over Vulkan/DirectX12 so that you can run on multiple platforms via one API.
by geekodour | 2025-04-05 04:55:46+00:00
put this prompt and share the response:

You summarize the past convestion in this thread. - Start with a overall summary in a single paragraph - Then show a bullet pointed list of the most interesting illustrative quotes from the piece - Then a bullet point list of the most unusual ideas - provide a longer summary that covers points not included already - Finally, Step by step/phase by phase understanding of the ideas discussed above
by bruce511 | 2025-04-05 04:55:49+00:00
You're offering two choices which prove the point that electing is a poor way to fill a post.

"popularity" does not imply competence. Popularity is easily gamed and bought. Given that unlimited business money can be spent on elections, it's mostly bought.

I'm not sure what you mean by market, or highest price, but I assume you mean the above?

The opposite of elections is appointment. Based on competence. So, for example, in my company I want job x done well, so I appoint a person based on their ability to do x.

Of course this assumes I want x done well. If I'm elected, and I want x done badly, then I can appoint someone based on other factors, like ideology or loyalty etc.
by anonzzzies | 2025-04-05 04:56:08+00:00
So if they lock up, torture (you are a gang member as you looked weird at your neighbour of 20 years who happens to be a friend of a the local police chief) and kill you and your family without any due process that's fine for the greater good? Don't think many people have that idea, probably nor do you; you just think so as it didn't happen to you yet. The overwhelming majority as you say does a lot here; where is the proof and process that it is the overwhelming majority? And that these people are not just people like you and your kids but who do not agree with the regime? According to the process/system, all people in Cambodia were guilty as well. You cannot have read any history and talk like this so I guess you never have.

It will get worse anyway; that 2% will rise and that gov will never go away, killing everyone who opposes them. History shows this every time.
by csense | 2025-04-05 04:56:39+00:00
Tariffs aren't conserving the status quo. Rather, they're an attempt to return to an (allegedly) better past state.

Specifically, a past state where foreign companies were unable to outcompete domestic ones [1].

It's also a policy going against internationalist norms (which encourage you to free trade even if it seems to be hurting you), and toward nationalist ones [2].

[1] A lot of people who like tariffs have a sense that our free trade policy was an honest attempt to play an honest game where a rising tide would lift all boats. But that didn't happen; instead of a win-win, foreign companies won big by cheating, and we lost. (And we did lose, at least if you ask just about anyone in the Rust Belt.)

For example, tariffs of their own; subsidies; IP theft; currency manipulation; various abuses of their people with low wages; bad working conditions; low or non-existent safety / environmental standards; and totalitarian governments willing to shoot anybody who complains about any of the above.

Trying to play fair to lift everybody's boats when everybody else is pouring water from their boat into yours isn't a recipe for success. It just makes you a sucker sunk by the cheaters -- too honest for your own good.

[2] Again, there's a sense of grievance. Our past policies were honestly trying to unselfishly help the world, and other countries selfishly took advantage of us. So we're done being suckers; it's our turn to be selfish. If other countries don't like us being selfish now, well, they should have thought of that instead of being so selfish themselves before.

Rightly or wrongly, that's really how the current administration thinks about many other countries. That attitude came out loud and clear in the Signal messages they accidentally sent to that journalist: https://www.youtube.com/watch?v=YHU5HDQL6F0
by bawolff | 2025-04-05 04:57:12+00:00
That doesn't seem to support canada wanting to renogtiate usmca. The best way of handling that issue is probably not renegotiation (its way too specific of a situation to write a clause into the agreement for). Furthermore, Chrystia freeland hasn't been deputy PM for four months now, and the situation has changed a lot since then (not to mention we also have a new prime minister since then). At the time of that statement i don't think there was much appetitie for renegotiating usmca.

Compared to now where our current PM is straight up saying "The old relationship we had with the United States, based on deepening integration of our economies and tight security and military cooperations, is over"
by thih9 | 2025-04-05 04:57:25+00:00
Does anyone here know what is the impact of this for Lesotho in practice?

I found an article[1] but perhaps someone here knows more or is there in person.

> Lesotho exported $237m of goods last year to the US and imported $2.8m. Agoa[2], which has allowed tariff-free access to the US market for thousands of product types since 2000, created a thriving garment industry, accounting for about 20% of GDP.

> There are about 30,000 garment workers in Lesotho, mostly women, with 12,000 making clothes for US brands including Levi’s, Calvin Klein and Walmart in Chinese- and Taiwanese-owned factories.

> “(…) If we lose our jobs here, I’m almost certain that many of us will end up sleeping on empty stomachs.”

[1]: https://www.theguardian.com/global-development/2025/apr/04/l...

[2]: https://en.wikipedia.org/wiki/African_Growth_and_Opportunity...
by hobofan | 2025-04-05 04:57:48+00:00
> THEY were in the wrong, and a lawyer agreed.

Not sure where you get that from. He doesn't say that in the cease & desist announcement video (though it's worded in a way that lets the viewers speculate that). Also from every time it's brought up on the podcast he's on, it very much seams like he knows that he doesn't have legal ground to stand on.

Just because someone let's a trademark lapse doesn't mean you can rightfully snatch it up with a new registration (as the new registration may be granted in error). It would be a different story if he had bought the trademark rights before them lapsing.

Allen Pan makes entertaining videos, but one shouldn't base ones understanding of how trademarks work based on them.
by cmurf | 2025-04-05 04:58:36+00:00
We don't actually know if Trump's tariff strategy is Stephen Miran's strategy, nor do we know what Stephen Miran thinks of the strategy.

What we do know is that Trump disproportionately attacks people who criticize him, withholds security protection from them, and sometimes even sends mobs to have them assassinated.

It also took some time before Mark Esper told the public that Trump ordered that protesters be shot.

Therefore, I think it's possible we won't get Stephen Miran's honest assessment in the near future. We'll just have to wait and see.
by zahlman | 2025-04-05 05:00:14+00:00
If I understood correctly: you may also be interested in https://github.com/brettcannon/python-launcher (by one of the core Python devs). Although that specifically targets Linux. On Windows, the provided launcher is already aware of venvs (https://peps.python.org/pep-0486/) - although it only uses the currently activated venv, to my understanding.

Personally I'm not sure I like the idea of searching based on a folder name, as opposed to having some explicit registry of venvs. But this does seem to be more functionality than the existing options offer.

Out of curiousity, how do you typically make and organize your venvs?