MurphyA/hacker-news huggingface dataset:
by berdario | 2026-01-06 15:58:41+00:00
> As a result they now can't book a hotel, use credit cards or access everyday services. As Nicolas Guillou says 'You are effectively blacklisted by much of the world's banking system'

Totally agree that this is absurd and disportionate, especially as a consequence of a US decision.

I mean, it's one thing to sanction a foreign billionaire: freezing their assets, thus preventing them from wielding their power in our borders is perfectly reasonable... But for a normal citizen living within your borders, freezing everything and preventing them from working is disenfranchising them and denying them all personal property rights (without judicial process!)

There are a bunch of examples of people in Europe who have also been sanctioned because of their political work. The first two that come to mind:

- Hüseyin Dogru https://theleftberlin.com/red-media-hueseyin-dogru/

- Nathalie Yamb https://en.wikipedia.org/wiki/Nathalie_Yamb

If we're moving away from USA tech, I hope that we're not blindly trusting stuff simply being hosted in EU, but rather use the opportunity to spread our eggs in more jurisdiction baskets (rather than only the EU basket)
Ask HN: What are your small comforts?
by olek | 2026-01-06 15:58:46+00:00
Hey!

I recently came across Leo Babauta's concept of “small comforts”—simple, healthy ways to recharge during difficult moments when you're physically exhausted or intellectually drained.

A few principles that resonated with me:
• Keep them small and occasional (don't overdo it). • Use them for recharging, not escaping from problems.
• Let go of guilt—it's self-awareness, not weakness.
• Be present and enjoy the moment.

Here are my small comforts:

1. Listening to relaxing music while reading
2. Hot shower when cold, cold shower when hot
3. Favorite peanut butter bar
4. Peanut butter and jelly on toasted bread
5. Walking or Nordic walking in the park
6. Jogging or cycling
7. Cooking
8. Loaded oatmeal (nuts, raisins, dates, spices)
9. Lying on the couch with eyes closed and legs up
10. Taking a nap
11. Deep breathing exercises
12. Short meditation sessions
13. Sauna sessions

I tried to select ones that are safe and hard to overdo.

What are your small comforts that help you recharge?
by rvnx | 2026-01-06 15:58:47+00:00
I am genuinely none sure.

I would tend to think that this goes naturally:

you get boosted by a circle of people you know, and who wants you to succeed, because if you succeed they will get money), so there is the incentive in some way.

but it's still plausible that getting a boost on HN is part of the package (but I am not sure it is needed, because of this natural push that you get from let's say 100 people around you).

What you said about capitalism is true, I noticed it too, and it sounds even strange to me, as we are literally on a board that is initiated by a capitalist fund.
by joshstrange | 2026-01-06 15:59:37+00:00
I do have a blog [0] that I occasionally (I think I’m averaging once a year haha) post to. And it’s possible that trying to create better content has the opposite effect, though I’m prouder of the stuff I put more thought/effort into so even if it results in worse content for others, it’s something I want to put my name on.

[0] https://joshstrange.com
by A_Duck | 2026-01-06 15:59:38+00:00
Fundamentally this is programmable logic similar to the Lego Mindstorms I had as a child, or Logo/Turtle for Gen X

It's definitely left 'if (condition) then (action)' as a strong framing in the way I see the world

With AI, perhaps programmable logic will go the way of toy steam engines and crystal radios, and with it the worldview of those who grew up seeing the world as logic flows
Show HN: Doo – Generate auth and CRUD APIs from struct definitions
by nynrathod | 2026-01-06 15:59:42+00:00
Built Doo because I was tired of writing 200 lines of auth boilerplate for every API.

Example (complete API):

import std::Http::Server;
import std::Database;

struct User {
id: Int @primary @auto,
email: Str @email @unique,
password: Str @hash,
}

fn main() {
let db = Database::postgres()?;
let app = Server::new(":3000");

app.auth("/signup", "/login", User, db);
app.crud("/todos", Todo, db); // Todo = any struct you define

app.start();

}

Result:
- POST /signup with email validation + password hashing (automatic from @email, @hash)
- POST /login with JWT
- Full CRUD endpoints for GET, POST, GET/:id, PUT/:id, DELETE/:id
- Compiles to native binary

Status: Alpha v0.3.0. Auth, CRUD, validation, and Postgres working. Actively fixing bugs.

https://github.com/nynrathod/doolang

What would you need to see before using this in production?
by nycticorax | 2026-01-06 15:59:51+00:00
I'm not surprised that GNOME would contemplate this: it seems like a very GNOME-y thing to do. (And maybe this is a good thing for GNOME users. But this kind of thing is also why I use KDE.) But why would Firefox feel the need to touch this? Surely this is a DE-level setting, and Firefox should simply go along with the DE behavior so that its behavior is consistent with the rest of the apps running in the desktop session.
by close04 | 2026-01-06 15:59:57+00:00
The Titan submersible implosion features a lot on HN, and almost nobody here built such a contraption, or took one to the bottom of the ocean, or imploded. Naming a gaming storefront which may sell an old game doesn't answer the question whether young people want to play it.

My reasonable baseline assumption is that almost no young player is going to jump to play a 30+ year old game. I'll be generous here and not name things like Frogger or worse, The Oregon Trail. But give a kid who has seen modern games a copy of Diablo, or SimCity 2000, or even newer things like or GoldenEye 007 or System Shock and watch the "excitement". And these are the heavy hitters.

A lot of these oldies didn't age well even for the people who loved them way back when. It's hard to get young players excited about them. Very few oldies could stand on their own today.
by lelanthran | 2026-01-06 15:59:59+00:00
> I know one C++ library that caches data but never evicts. Instead, the library author expects you to restart your app every 24 hours.

It may not be as simple as "that's our policy". I worked at one place (embedded C++ code, 2018) that simply reset the device every 24h because they never managed to track down all the leaks.

Finding memory leaks in C++ is a non-trivial and time-consuming task. It gets easier if your project doesn't use exceptions, but it's still very difficult.
by lo_zamoyski | 2026-01-06 16:00:11+00:00
There are all sorts of factors motivating it. Crony capitalism (w.r.t. oil, for example) is another one of them. But that doesn't mean they justify the operation. At this point, it is a fait accompli. I pray that things don't get worse for Venezuela (the unfortunate side effect is that it will give supporters of this operation greater false confidence that they did the right thing; "Look! Nothing bad happened afterward!").

Furthermore, Trump has revealed that once again, he's full of shit. He and his people have been chanting their opposition to regime change operations and various military involvement for years, even until a few months ago. And now, voila.
by erohead | 2026-01-06 16:00:24+00:00
Generally most sleep tracking products use actigraphy (measurements of your movement) to track sleep. Pebble partnered with researchers at Stanford back in the day to produce an algorithm for our operating system, which worked quite well and is now open source!

You can read the code and see how the sleep tracking algorithm works here - https://github.com/coredevices/PebbleOS/blob/main/src%2Ffw%2...
by uberman | 2026-01-06 16:00:24+00:00
These posts by very senior tech leads are little more than disingenuous click bait. The real risk is obvious. In seeking to feed chum to their frenzied followers who amplify their message without knowing any better we way over promote the capabilities of a tool that we don't understand.

I think LLM assisted coding is great and I use it every day. I review the output very closely with a very skeptical eye. It is absolutely a productivity boost and definitely changes the nature of the work I do. I ask it to evaluate the merits of alternate approaches and have asked it about porting code particularly code written in python to Go and Rust.

Having said all that, I would never suggest that asking for a comparative analysis of competing alternatives was essentially the same as building those alternatives or even brainstorming those alternatives to begin with. I would also never let a research porting project on a toy ever be misinterpreted as porting all the code my team has ever written.

Here is my key takeaway from the article:

When leaders at major labs propagate these hyped-based results, it can create a “technical debt of expectations” for the rest of us. Junior developers see these viral threads and feel they are failing because they can’t reproduce a year of work in an hour, not realizing the “magic” was actually a highly-curated prototype guided by a decade of hidden expertise.

I could not agree more strongly. Will LLMs be able to port the entire Windows code base to Rust one day unsupervised? Sure, of that I have no doubt but not's suggest that day is today.
by wrsh07 | 2026-01-06 16:00:52+00:00
On re reading both of our replies I don't think we disagree:

> First, _. If you don't do these things (or you do them in a way that management doesn't expect or can't measure) you will have to do additional work to make sure they get measured

And you say:

> Always do the thing that your company will find most valuable for you to do

Yes, sure! But if it's not what's expected, then you probably have additional work that is called "communicating impact". And unfortunately, if you want to get promoted, you are going to have to spend some time communicating impact (unless the impact is self-evident, in which case you have already successfully communicated the impact)
by taeric | 2026-01-06 16:00:56+00:00
I don't know of any definitive classification for this. Probably easiest to begin with looking for passive versus active verbs? Run on sentences are usually bad, as well. Though, too many short sentences can effectively be a run on paragraph. :D

Inquisitive posts, of course, can largely look for question marks.

I think a lot of this boils down to "tone is hard to decipher in text." And is a large part of why so many of us default to assuming an aggressive tone from others. (Though, my personal pet idea there is that people are largely afraid to use questions more.)
by ProllyInfamous | 2026-01-06 16:01:29+00:00
Attention aspiring landlords: please consider how expensive it is to remediate a property after years of indoor nicotine use (let alone the health effects to adjoining units, if any). Do whatever you want inside your own house, I don't care.

—Property manager, currently renovating a decades-smoked unit — just absolutely disgusting (and the de-tar chemicals are harsh, while still requiring mechanical dislodging) — I've already suggested that a non-refundible $3,000 deposit become required, if nicotine indoors isn't outright-banned (I don't care about weed indoors — it doesn't leave behind yellow tar everywhere).

So glad that even after decades of minimal drug abuse, cigarettes were never one of my vices.
by HPsquared | 2026-01-06 16:01:29+00:00
I think the standard argument is that capitalism inevitably develops into oligarchy. Even the most basic setup of property rights protected by a legal system, presupposes a central authority of some kind who makes the ultimate decisions. Where there is law, there are courts, executive and legislative functions. More complex structures like joint stock companies introduce their own dynamics but also depend on a central authority to enforce contract law. Everything is downstream of security.
by vladvasiliu | 2026-01-06 16:01:38+00:00
I don't know that I buy your basic economics theory. Starter prices are a thing to get people in the door and upsell them later. According to [0], the iphone 17 pro has a larger share than the regular 17, although it's more expensive.

And, again, paying for cloud storage doesn't automatically mean that they do it because their local storage is too small for their needs. Apple pushed iCloud as a solution to safely back up your stuff, and I doubt nobody bought into this angle.

[0] https://telemetrydeck.com/survey/apple/iPhone/models/
by jackp96 | 2026-01-06 16:01:40+00:00
I definitely think you're onto something. Also, we're inherently psychologically biased toward negative content because all the monkeys who ignored the scary things died.

We're naturally wired to engage with negative content - and that's a must-use recipe for success in an economy that increasingly relies on grabbing your attention.

It's no wonder that depression and anxiety rates are higher than ever, despite our world being much, much safer than it was 100-200 years ago.

Even being aware of this doesn't help all that much.

Trump did a new, unbelievably dumb thing that's going to ruin people's lives? Instant click from me.

Malaria rates down 20% over the past 10 years in the DRC?* I'm still scrolling.

*Fake example, but you get the gist.
by lurk2 | 2026-01-06 16:02:09+00:00
> These points have utility: the more points you have, the more credibility you have on this platform and capacity to push a story.

<1: Troll

<10: Throwaway

<60: Troll

<300: Probably a throwaway. Quality varies widely.

>500, <1000: Normal people

>1000, account less than 6 months old: Redditor, all content will be political or occasionally about Linux, most comments will be inflammatory.

<1000, >10,000, account less than 5 years old: Mostly normal users. Quality isn’t generally great.

<10,000, >30,000, account 10+ years old: Usually the best quality posts; karma and age suggest consistent contributions overtime without any of the personality disorders that go with being terminally online.

>100,000, account <5 years old: Redditor, all content will be political or occasionally about Linux, most comments will be inflammatory. Lots of flagged submissions about US politics.

>100,000, 10+ years old: Domain knowledge expert. Usually an older user with enough of a reputation that a subset of users know the user’s real identity. Will occasionally post absolutely unhinged comments.
by bee_rider | 2026-01-06 16:02:20+00:00
> The alternative to a subscription is usually capital-intensive - if you want to cancel Netflix you need to have a DVD collection.

I did Apple Music and Amazon Music. The experience of losing “my” streaming library twice totally turned me off these kinds of services. Instead I do Pandora, and just buy music when I (rarely) find something I totally love and want to listen to on repeat. The inability to build a library in the streaming service that I incorrectly think of as “mine” is a big feature, keeps my mental model aligned with reality.
by SunshineTheCat | 2026-01-06 16:02:22+00:00
This just comes across as extraordinarily whiny.

The core of what the author is saying is true, I've experienced it myself (not a promotion, but a raise).

Taking on more than your responsibility is one way to do it, another (with some overlap) is to become indispensable.

In some cases, this means doing more work than your job entails, but not always. It can be something as simple as automating a task that someone else was doing by hand.

When you start stacking up little things that make you more valuable to the company, it's in its own best interest to find ways to keep you (via promotions, raises, benefits, etc).

There isn't a guarantee of anything here, but it definitely sets you up for success.

A thousand times more than sitting around whining that something isn't your job or that the company is being mean.
by aidenn0 | 2026-01-06 16:02:23+00:00
According to TFA, the name was coined by Andy Pavlo, who did his undergrad in New York, Doctorate in Rhode Island, and now teaches in Pittsburgh. I see no indication that he is German.

[edit]

Lecture slide with the term is also linked from TFA: https://15721.courses.cs.cmu.edu/spring2024/slides/05-execut...
by nynrathod | 2026-01-06 16:02:29+00:00
Author here. Happy to answer questions!

What I'd love feedback on:

1. Is the @decorator syntax clear or confusing?

2. Would you use this for a real project?

3. What's the #1 missing feature?

Repo: https://github.com/nynrathod/doolang

Examples: https://github.com/nynrathod/doolang/tree/main/examples
by mg | 2026-01-06 16:02:36+00:00
I don't have kids, but if I did, I would probably not go for Lego but for 3D-Printing.

It shouldn't be hard to print pieces that can snap together. In all kinds of colors and all kinds of forms.

I imagine the adventure of printing new pieces would be a fun thing for the kids and the parents. And when the kids are old enough, they can print pieces on their own. And a bit later design pieces on their own.

Would there be any downside to this approach?
by eliasdejong | 2026-01-06 16:02:37+00:00
The library contains iterator functions that can be used to recursively traverse a message from the root and discover the entire structure. Then every value can be checked for defined constraints appropriately while at the same time validating the traversal paths. Also a schema description format is needed, perhaps something like JSONSchema can be used.

Doing this by definition requires processing an entire message which can be a little slow, so it is best done in C and exposed through CPython bindings / CFFI.
by gpm | 2026-01-06 16:02:47+00:00
> > C doesn't force you to check the allocation at all.

> No one ever claimed it did;

You specifically said

> Every allocation must be checked at the point of allocation

...

> the default is to check the returned value from memory allocations.

Default has a meaning, and it's what happens if you don't explicitly choose to do something else.

In libc - this is to invoke undefined behavior if the user uses the allocation.

In glib - the library that underpins half the linux desktop - this is to crash. This is an approach I've seen elsewhere as well to the point where I'm comfortable calling it "default" in the sense that people change their default behavior to it.

Nowhere that I've ever seen, in C, is it to make the user handle the error. I assume there are projects with santizers that do do that, I haven't worked on them, and they certainly don't make up the majority.
by epaga | 2026-01-06 16:02:59+00:00
(Not the OP, but...) have...have you tried Siri before? It is completely and totally ridiculous. Completely and utterly useless for anything other than setting a timer and turning HomeKit devices on or off (and even there it's entirely hit or miss).

Siri continues to be the most embarrassing Apple product on the market by a long shot.
by JKCalhoun | 2026-01-06 16:03:05+00:00
I generally agree. Offline (ask my family) I'm Pollyanna.

It's hard to let bad ideas go unchallenged though. Places like Reddit? Sure, brigades, bots—it's tilting at windmills to try to add balance there. But HN is a community I still care for. I still respect the comments (and commenters) here.

(No, commentator is not a word—despite what Apple's dictionary is telling me.)
by mrweasel | 2026-01-06 16:03:09+00:00
I do run into the overly pedantic stuff pretty frequently, people will often latch on to some minor point or detail, maybe because it's easier to comment on?

Deep technical critique often can't be in the comments, in my opinion. Unless you're an expert, setting up the environment, doing the experiments and presenting the data is an entire article on it's own. It would probably be healthier if people did that, rather than typing out a quick comment.

Then there are topics like how AI will influence society in general, that's a multi-year sociology study, before being able to say anything with just a hint of accuracy. Warnings based on sentiment and anecdotes will always register as negative.

There are some articles that have 200+ comments, in those cases whatever you have to say has probably already been posted, but people like to vent their frustrations, sometimes it helps to type out your thoughts, even if no one will read them.
by uw_rob | 2026-01-06 16:03:17+00:00
CGP Grey did a fantastic short video titled 'This Video Will Make You Angry'[1]. I'd recommend that anyone who is interested in this thread take a watch.

The central knowledge shared is that knowledge behaves like germs and can spread. Those that play on emotions spread better, and among the thought germs that spread based on emotions, the ones that play on anger spread the best.

Worst yet: There are anger based thought germs which live in symbiosis and harmony even if they cause conflict among the humans who hold that germs. You can see this take hold when communities exist entirely of folks who hold a singular belief and they spend all day constructing and destroying uncharitable straw men of opposing ideas.

I've noticed that Reddit _really_ likes this sort of content and fosters these sorts of communities. Communities at scale on reddit quickly become about fostering negatives: hatred of others, blame on the system, self-pity, snarky responses. Instead of the better and more effective: tactical empathy, acceptance and understanding what is within your personal sphere of influence, concrete actions, personal improvements, and forgiveness.

I'm definitely not saying one has to accept the world for how it is, or that it's fair, or anything like that. Humans should change this world! You should vote, you should volunteer, you should help your neighbor, you should understand and be kind to others with different beliefs, and perhaps under the extreme you should die for your beliefs to help enact them.

What you shouldn't do though is spend all day reading and posting memes about subjects you are already familiar with. If you've already made up your mind and are informed on a subject you don't need another meme to help radicalize yourself.

See the difference between mass shooters and hero's like Daryl Davis [2].

[1] https://www.youtube.com/watch?v=rE3j_RHkqJc
[2] https://www.npr.org/2017/08/20/544861933/how-one-man-convinc...
by rakoo | 2026-01-06 16:03:31+00:00
I'm sorry but this is just too naive. There is no honesty in most people working for a wage that is barely enough to survive, while capital owners don't actually do anything and still receive an inconsiderate amount of money. There is no trading here, just a good old theft of all the produced value with just enough redistribution to buy back the stolen value. No billionaire ever became billionaire by trading anything only by stealing other's work.
by billylo | 2026-01-06 16:03:47+00:00
Windows and macOS does come with a small model for generating text completion. You can write a wrapper for your own TUI to access them platform agnostically.

For consistent LLM behaviour, you can use ollama api with your model of choice to generate. https://docs.ollama.com/api/generate

Chrome has a built-in Gemini Nano too. But there isn't an official way to use it outside chrome yet.
by LiquidSky | 2026-01-06 16:03:50+00:00
This is premised on promotions and other work rewards having any kind of rational basis or connection to the work.

It could simply be that spending time with your boss makes them know and like you more, and people tend to reward people they know and like, making up some post hoc rationalization about performance or whatever to justify it.

No one wants to think of themselves like this, though, so they would never admit, even to themselves, that this is what's going on, but I suspect for most people it's the actual reality.