MurphyA/hacker-news huggingface dataset:
by ivan_gammel | 2025-09-23 05:54:22+00:00
The stupid thing about those indiscriminate sanctions is that it goes against the very values the West is pretending to defend. EU charter of Human Rights is explicit about condemning collective responsibility, universal declaration of human rights demands justice to be applied reasonably and individually, yet here we are: punishing people without trial.

Do those sanctions even work? North Korea still builds nuclear weapons, Cuba still has a communist government, Iran is still a theocratic regime. You don’t start revolution by trade embargo. You start it by sending more jeans and heavy metal records.
by rtaylorgarlock | 2025-09-23 05:55:12+00:00
Into an Arch install, and Arch already has an install script. I know it doesn't spit out a usable ultra pretty system. I think it's a good thing the Arch system doesn't require a single whole-drive LUKS configuration, meaning you get to do the thing we talk about as a sort of benchmark in the devops world: setting up Arch with one or a few encrypted volumes. Strange to me to hear me criticizing linux spreading, yet...
by turtleyacht | 2025-09-23 05:55:15+00:00
Yes, some automated instrumentation equivalent of `debugger' at the start of the module's first such function, and stepping into each function down to some depth, then starting over with the next line of the module's implementation.

A partial or semi-automated, tool-assisted approach might be possible, if there were a way to restart Node.js between decisions. Each decision point writes an entry "event" that records the filename, function, caller, line number, etc. Then `debugger' is inserted before the next line, and so on.
Show HN: PoseUp – Turn Casual Portraits into Shots with AI (Free, No Signup)
by zane0924 | 2025-09-23 05:56:00+00:00
Hi HN,

I built PoseUp – an AI tool that instantly enhances casual selfies or people photos into professional-quality images.

How it works:

Upload a selfie, portrait, or group photo

Our AI improves lighting, composition, colors, and overall quality

Optional: 4K upscaling, smart resizing, layout export (like 3x3 grids)

The goal: Help people get “magazine-style” photos from everyday snapshots — no editing skills or prompts required.

100% free, no login needed https://poseup.ai

Would love feedback — especially around photo quality and UX. Thanks!
by dijit | 2025-09-23 05:56:32+00:00
Sanctions don’t apply to Iranians in the US, and not everyone in Iran is Iranian (or even Arab); so sanctions are not “racist”, they’re levied against political leadership.

The idea is to get the population to put pressure on the leaders.

Not sure if it has worked, but I am sure Russia is unhappy with the unrest that sanctions have caused.
by vander_elst | 2025-09-23 05:57:10+00:00
Honest question, how is it possible that Macs are so much better in terms of hardware? Context: I use a MacBook at work and a Lenovo with Linux at home and now I might need to change my personal laptop, but I struggle to find (hardware) reasons why not to buy a MacBook, a MacBook Air is actually cheaper than another laptops with similar specs. There's still the ideology of repairability and openness which still plays a big role for me, but from a hardware perspective I see a clear winner. How is it possible that no other manufacturer can come close to the apple offering? There are big players (Lenovo, Dell, HP etc...) that I would have thought they would have the capabilities for producing similar products, why do they lag so far behind?
by tgma | 2025-09-23 05:57:12+00:00
The sad part about living in Iran from a technology perspective is you are often blocked from both sides. Often you have to circumvent the government's aggressive internal firewall and other times you will have to hide your IP from the service providers.

On the bright side, your average Iranian grandma can immediately work as a network engineer given the amount of experience she has with VPN protocols.
by palmfacehn | 2025-09-23 05:58:16+00:00
From the article:

>I read hackernews on a daily basis and I visit lots of different websites regularly. I am almost always on my VPN as I am internally firewalled by the government and externally shooed because of the sanctions, so I am probably missing some of these heart-warming messages:

>>Iranian IPs are blocked here, due to your decision to arm Russia with drones so that they can indiscriminately massacre civilians.

> I actually do not blame the people who do this. I think there is a fundamental misconception that people think because "Islamic Republic" has the word "Republic" in it, it must be a government of people in charge.

Total war and total information war are the side effects of the Democracy meme. Everyone from a taxi driver to a professor is assumed to be a political actor. The rationale runs something like this, "because you have a vote, you are defacto responsible for the actions of your state and political classes. Vote harder next time."

Meanwhile the individuals involved never explicitly consented to be governed. Even if there were a meaningful democratic process, it doesn't follow that the individual could withdraw consent. Ironically one of the suggested avenues for withdrawing consent in a democracy is to refuse to vote.
by adastra22 | 2025-09-23 05:58:38+00:00
OP, some context from the other side might be helpful.

Yes, there are fines for American companies if they do business with Iranians. That's how sanctions work as I'm sure you're aware. But the story doesn't stop there.

If an American finds out they are transacting with a sanctioned individual, or citizens of a sanctioned country like Iran or North Korea, the stakes go up: $1M USD fine and up to 20 years in federal prison. Oh and that's a personal risk -- you, the manager or executive in charge, and anyone else who is in the know on the transaction is now facing 20 years in federal pounding-in-the-ass prison if they don't immediately cease all communication and break off contact. Hence why they ghost you and remove your data from prod. It sucks, but I would do the same thing in that situation. Nobody should be expected to take that risk.

That's why you have these experiences :(
by jensneuse | 2025-09-23 05:58:40+00:00
I'm with WunderGraph, a vendor providing enterprise tooling for GraphQL.

First, I absolutely love Capn Proto and the ideas of chaining calls on objects. It's amazing to see what's possible with CapNweb.

However, one of the examples compares it to GraphQL, which I think falls a bit short of how enterprises use the Query language in real life.

First, like others mentioned, you'll have N+1 problems for nested lists. That is, if we call comments() on each post and author() on each comment, we absolutely don't want to have one individual call per nested object. In GraphQL, with the data loader pattern, this is just 3 calls.

Second, there's also an element of security. Advanced GraphQL gateways like WunderGraph's are capable of implementing fine grained rate limiting that prevent a client to ask for too much data. With this RPC object calling style, we don't have a notion of "Query Plans", so we cannot statically analyze a combination of API calls and estimate the cost before executing them.

Lastly, GraphQL these days is mostly used with Federation. That means a single client talks to a Gateway (e.g. WunderGraph's Cosmo Router) and the Router distributed the calls efficiently across many sub services (Subgraphs) with a query planner that finds the optimal way to load information from multiple services. While capNweb looks amazing, the reality is that a client would have to talk to many services.

Which brings me to my last point. Instead of Going the capNweb vs GraphQL route, I'd think more about how the two can work together. What if a client could use CapNweb to talk to a Federation Router that allows it to interact with entities, the object definitions in a GraphQL Federation system.

I think this is really worth exploring. Not going against other API styles but trying to combine the strengths.

- https://wundergraph.com/
by JumpCrisscross | 2025-09-23 05:58:47+00:00
> point is to get people in those contries to overthrow their leadership

This works about a third of the time [1].

What does is incentivising domestic policy changes. We saw that with the nuclear deal. But then Trump blew it up because Obama did it.

(On another level, sanctions degrade capability. If there is no room for peace, at least you can limit your adversary’s economy and thus martial production. If regime change randomly happens, you can use lifting sanctions to blow oxygen on the new government’s flame [2].)

[1] https://dl1.cuni.cz/pluginfile.php/863435/mod_resource/conte... Table 6.1, page 159

[2] https://the307.substack.com/p/how-sanctions-function-as-a-to...
by fsloth | 2025-09-23 05:59:28+00:00
”The point is to get people in those contries to overthrow their leadership.”

Very easy to say. Quite hard to pull off. People in authoritarian countries have very little leverage and would like just to live fullfilling lives.

I’m not saying ”don’t do sanctions” but this mechanistic outcome is highly improbable.

”perception of the ruling party can never be separated from the perception of the people.”

Um - the most polite way of stating this is that this view of how political systems work is highly delusional at best.

Ruling party depends on _elite_ _compliance_.
by johnisgood | 2025-09-23 06:00:35+00:00
I think that idea sucks ass because it promotes violence at the very least. What would happen in the US were it to happen to them? I want to see the American population putting pressure on these so-called leaders. Same goes to EU. Same goes to UK.

As for sanctions:

> Iran is not the only example in which sanctions have resulted in unintended consequences. Since 1970, unilateral sanctions imposed by the U.S. have achieved foreign policy goals in just about 13% of cases, according to one study. A recent Congressional Research report evaluating U.S. sanctions in Venezuela found that sanctions “exacerbated an ongoing economic and humanitarian crisis caused by government mismanagement and corruption that has promoted 7.7 million Venezuelans to flee.” U.S. sanctions also exacerbated humanitarian crises in North Korea, reported UNICEF, putting 60,000 vulnerable children at risk of starvation due to limited humanitarian aid.

https://washingtondc.jhu.edu/news/do-sanctions-actually-work...

Please evaluate the historical failure of sanctions. As someone else have mentioned, Putin is happy despite the sanctions, but everyone else is not. These sanctions (from US, EU, etc.) hurt the people, not the people in the Governments. Come on, for the current price of <include basic food that used to be cheap> I used to be able to buy at least 3-5x more BEFORE the sanctions. Talk about sanctions exacerbating economic crisis. They will never learn, I guess, unless intended, but if it is intended, then surely it goes against everything they claim to stand for, as someone else has already elaborated.
by fooker | 2025-09-23 06:01:19+00:00
This is also something that is ideally fixed in hardware. Suspend to RAM should take extremely low energy (about 10 milliwatts). Apple has this down to an art while other laptops have quite of bit of random power draw from motherboard components. A laptop battery should be able to power suspend to RAM for months.

It does not make any sense to write 32 or 64G data to secondary memory every time you close your laptop lid, that will accelerate the lifespan of most SSDs.
by dijit | 2025-09-23 06:01:22+00:00
CPUs are the main reason.

They’re about 1-1.5 generations ahead of AMDs mobile offering, and OEMs have sweetheart deals with Intel, which is more like 4-5 generations behind.

So flagship business laptops (which are the only comparable laptops in terms of build quality to Macbooks) are hamstrung, and everything else is built like a matchbox even with AMD cpus.
by cyberax | 2025-09-23 06:01:29+00:00
> The point is to get people in those contries to overthrow their leadership.

Iranians had several mass uprisings that were suppressed by the military. And the top military and religious authorities in Iran have no problems whatsoever living well, even with all the sanctions.

Just like the Russian elites, btw. They can't visit France as easily anymore, but there's always Dubai available. That can't care less where your money comes from.
by bigiain | 2025-09-23 06:01:44+00:00
The roller/drag-through thing is worthwhile owning, I use mine a lot more often than I get out the Lansky kit. It's probably a couple of times a month I'll find my usual knife is smooshing ripe strawberries or tomatos a bit instead of effortlessly slicing them, and a few swipes through the fine wheel on mine will make that knife slice nicely again. Mostly I get out the Lansky tools when I've damaged a knife, then I'll sit at my workbench will all my knives and spend an hour or two in a Zen knife edge grinding trance making everything stupidly/dangerously sharp. The ultra-fine ceramic hone in my kit does an amazing job, but you need to work up to it through the coarser grade hones - especially if you've been using the roller sharpener on that knife for a bit - I'm pretty sure they don't get the edge angles right in a way the the ultras fine hone can take advantage of.

I really like my Lansky kit. In retrospect I might have shelled out the extra for the set with the diamond sharpening stones - but I doubt I'll ever come close to wearing down the regular stones with my use patterns.
by danpalmer | 2025-09-23 06:02:07+00:00
You can make an app no longer available for sale without removing the ability to download it for existing customers. That's all that is really needed. You can also create bundles that discount for new purchasers if they own the old one. I've seen this done by a few people.

It's not something that is well supported, but it's not infeasible.

> Links on the web to your app die since the links go to the old version, people who see your app recommended click the link and think the app is gone.

Links to the store listing page, yes, but also I wouldn't trust those links to work permanently anyway, I'd create a redirect page in my control.

Deep link connections into apps are evaluated at install time, so if a user installs a new version and the site allows this, that should transition correctly.

> You can't keep supporting users of older versions with simple bug fix releases without leaving the app live on the store, which confuses users into buying the old version of the app.

I would suggest stopping updates. If you're disciplined about software releases you can burn down the list of bugs to the point that it's negligible towards the end of the major version, and then close it as no longer updated. Bugs on new OSes are out of scope, a good reason for users to update.

> You can't sell upgrades at a discount price (which is common in any other software market)

I'm pretty sure I've seen this done via an admittedly awkward use of bundles. Alternatively a soft launch to existing users with temporary discount seems very common.

> Just user confusion in general.

This feels solvable, and it's not like the current situation doesn't result in confusion. We have plenty of confusion, so it's just about figuring out the better option. This will vary by userbase.
by elzbardico | 2025-09-23 06:02:36+00:00
I was not born living in a nice place making mid to high six-figures. I lived in places where being shot for a cell phone was always a possibility.

I went to school with people that have been in the revolving doors of the jail system more times than any of us can count.

I won't care looking for stats, but last time I saw them, most inmates in American Prisons are not in their first tour. There are as many people doing time for the sixth time as there are for the first time.

Yeah, the criminal justice system is not perfect, there are people there that shouldn't be there, but liberals have this annoying tendency of believing every sad history criminals are specialists in telling. As a cousin who became a policeman likes to say, there are no guilty people in jail if you ask the inmates.
by Eisenstein | 2025-09-23 06:02:36+00:00
Right, I guess am focusing more on your using the 'economics' as proof that it is a people problem, because I see it used that way all the time without regard to structures and human elements. Basically people use 'but the market is obviously working so it must just be the way it is'. They see it as the result of a theoretical market structure in which people make purely rational decisions in their best interest on an even playing field with everyone else, instead of a situation which is affected by laws (or lack of them), specific cultural events, and psychology among many other things.

Sorry if I was talking past you instead of with you, but I have to say that I don't think it is fair to call my responses 'theoretical counterpoints'. What I am doing is pointing out that on the face of your claim, you are engaging in what could reasonably be called 'begging the question'. That is, assuming the conclusion in your own argument without actually showing that that conclusion has a logical basis. Saying 'the current situation exists, and because people have mechanisms by which they can affect that situation that means they are in complete control of the situation' is not logically valid unless you can account for those things which they do not have mechanisms to control being irrelevant to the outcome.
by ignoramous | 2025-09-23 06:02:40+00:00
> I just thought these were some interesting patterns.

Reading this from TFA ...

Alice and Bob each maintain some state about the connection. In particular, each maintains an "export table", describing all the pass-by-reference objects they have exposed to the other side, and an "import table", describing the references they have received. Alice's exports correspond to Bob's imports, and vice versa. Each entry in the export table has a signed integer ID, which is used to reference it. You can think of these IDs like file descriptors in a POSIX system. Unlike file descriptors, though, IDs can be negative, and an ID is never reused over the lifetime of a connection. At the start of the connection, Alice and Bob each populate their export tables with a single entry, numbered zero, representing their "main" interfaces. Typically, when one side is acting as the "server", they will export their main public RPC interface as ID zero, whereas the "client" will export an empty interface. However, this is up to the application: either side can export whatever they want.

... sounds very similar to how Binder IPC (and soon RPC) works on Android.
by Al-Khwarizmi | 2025-09-23 06:02:47+00:00
> The point is to get people in those contries to overthrow their leadership.

That's the theory, but has it ever worked?

That something that never works (not even in cases where it has been going on for multiple generations, as in the case of Cuba or Iran) keeps being tried makes it impossible to believe that the intention is making it "work" in the sense you mean. The sanctions are just to sink those countries for political interest. Which in some cases makes sense (e.g. Russia, as it's invading Ukraine and sinking its economy can be a deterrent in that respect), but in others is definitely evil.
by ChuckMcM | 2025-09-23 06:02:59+00:00
Sigh, serves me right I guess.

How many people do you know, who write open source? If you've been in the tech industry at all its probably hundreds if not thousands. How many of them are okay with the GPL when someone used their GPL'd code in a product (and lets say they even provide an obscure URL with source code for that part of it) and that product is making them thousands if not millions of dollars in product revenue.

Nearly every person I know in that position, have been offended by someone making money off their work, and they don't get any of it. That latter bit is especially irksome in most cases. Usually its some rant of "I wrote that code for people to share, not get rich off of!" or something like that. The "Busybox" story[1] is like the poster child here. Once there were successful lawsuits these folks figured out how to have their cake and eat it to. Read up on the Linksys lawsuit[2]. Forcing compliance costs money (lawyers and such) and time and the payoff is pretty much always to the lawyers and not the people who were irritated their software was being profitably sold.

Contrast that with software that has an explicit non-commercial license but offers a commercial license, that stuff gets licensed and the developers get paid when it does, not a bunch of lawyers.

I realize not everyone has grown up with this stuff, the point I was trying to make (poorly it seems) is that as a legal tool to "protect" developers from having others steal their work and profit from it, I feel like it failed utterly to do that. When the company I was at was acquired by IBM back in 2015 I did all of the license clearance work for all of the software in our stack. People who had "permissive" licenses that offered a way for IBM to license it with legal cover, they got whatever they needed (some wanted a token licensing fee, others a donation to FSF or another non-profit), for the parts that were covered under GPL and not available under a different license, IBM just dropped on the floor because of their history with the whole SCO/Linux lawsuits.

I get that folks want to share their code with folks who can use it, I totally support that. I also know that absolutely nobody wants to be called at 3AM to fix. for free, a CVE that their code has because some Enterprise customer paying the caller is all in a twist. Having language in the license at the start that clarifies stuff like that is essential.

[1] https://torquemag.io/2013/03/busybox/

[2] https://en.wikipedia.org/wiki/Free_Software_Foundation,_Inc.....
by tgma | 2025-09-23 06:03:58+00:00
This is partially true, but not the entirety of the story.

There are blanket sanction waivers (General License) by OFAC to allow certain things. There's also the possibility to get an OFAC license (as GitHub did.)

The real issue is there is little to no advantage (realistically no money to be gained from Iran) or even awareness (sometimes the cloud infrastructure bans Iran by default and you don't have enough users to even know that's the case to care.) The legal counsels would generally be conservative and advise against it; there needs to be someone from the business side, e.g. a product manager that cares enough to try to push back on the legal. There often is not or it is hard to justify the tiniest risk, hence you block.
by somethingsome | 2025-09-23 06:04:26+00:00
I totally agree with this, I just want to add:

For fun, working hard can be a lot of fun. I get very bored when I don't, wathever kind of 'work' I'm doing.

And also, the harder I work, the more capabilities I have, this allow me to explore new things that are very fun, it would not be possible without the initial work.