MurphyA/hacker-news huggingface dataset:
by diceduckmonk | 2026-01-24 09:14:23+00:00
Funny enough, I’m a Vietnamese person from Portland and was doing this exact same analysis in Paris (highest density of overseas Vietnamese population) visiting a dozen places last month.

People visiting for a few days go with a “10 restaurants you have to try in Portland” which are just mediocre chic restaurants you can find in every other city.
They don’t realized how underrated Asian food in Portland is. One, Google Maps and Yelp reviews are negative signals of for Asian food. Restaurants that highly rated above 4.5 are so for the “ambience” rather than the food. Two, the restaurants are dispersed rather than being concentrated around a Chinatown or Little Saigon.
by jhasse | 2026-01-24 09:14:42+00:00
That's where the standard should come in and say something like "starting with C++26 char is always 1 byte and signed. std::string is always UTF-8" Done, fixed unicode in C++.

But instead we get this mess. I guess it's because there's too much Microsoft in the standard and they are the only ones not having UTF-8 everywhere in Windows yet.
by aebtebeten | 2026-01-24 09:14:55+00:00
hmmm: an arbitrary finite automaton can be decomposed into a collection of edges; can we decompose a reasonable philosophy into a collection of memes/greentexts/whatever the kids are doing these days?

(for that matter, I just assume the modal HN'er is ~13 now, but maybe that's an artifact of how the front page dynamic goldfishes the conversation?)

EDIT: little red book or little red pill? https://dakotavadams.substack.com/p/redpill-op

> I'd seen posters from the now fairly infamous 4chan /pol/, or Politics, board raiding other parts of the website in character as minorities or leftists before.

How about centres troll the extremes, as in https://pbs.twimg.com/media/GgTm194WIAEqak3?format=jpg&name=... ? (the Adams quote implies, whether the horseshoe be real or artificial, you'd largely be trolling the same people anyway?)
by edg5000 | 2026-01-24 09:16:06+00:00
Are you being sarcastic or serious? Meeting requirements is implicitly part of any task. Quality/quantification will be embedded in the tasks (e.g. X must be Y <unit>); code style and quality guidelines are probably there somewhere in his tasks templates. Implicitly, explicit portions of tasks will be covered by testing.

I do think it's overly complex though; but it's a novel concept.
by lelanthran | 2026-01-24 09:16:09+00:00
> When you strlen() a UTF8 string, you don't get the length of the string, but instead the size in bytes.

Yes, and?

> What am I missing?

A use-case? Where, in your C code, is it reasonable to get the number of multibyte characters instead of the number of bytes in the string?

What are you going to use "number of unicode codepoints" for?

Any usage that amounts to "I need the number of unicode codepoints in this string" is coupled to handling the display of glyphs within your program, in which case you'd be using a library for that anyway because graphics is not part of C (or C++) anyway.

If you're simply printing it out, storing it, comparing it, searching it, etc, how would having the number of unicode codepoints help? What would it get used for?
by apaprocki | 2026-01-24 09:19:10+00:00
You can play tricks if you’re willing to compromise on the ABI:

typedef struct foo_ foo;
enum { FOO_SIZE = 64 };
foo *foo_init(void *p, size_t sz);
void foo_destroy(foo *p);
#define FOO_ALLOCA() \
foo_init(alloca(FOO_SIZE), FOO_SIZE)

Implementation (size checks, etc. elided):

struct foo_ {
uint32_t magic;
uint32_t val;
};

foo *foo_init(void *p, size_t sz) {
foo *f = (foo *)p;
f->magic = 1234;
f->val = 0;
return f;
}

Caller:

foo *f = FOO_ALLOCA();
// Can’t see inside
// APIs validate magic
by fsflover | 2026-01-24 09:19:26+00:00
> That link you provided is a "conspiracy theory," even by the author's own admission.

"Conspiracy theory" is not the same as a crazy, crackhead theory. See: Endward Snowden.

Full quote from the article:

> Mind you, this is definitionally a conspiracy theory; please don’t let the connotations of that phrase bias you, but please feel free to read this (and everything else on the internet) as critically as you wish.

> and they fixed the cleartext transmission of hardware identifiers

Have you got any links for that?

> Are you expecting perfection here? Or are you just being argumentative?

I expect basic things people should expect from a company promoting themselves as respecting privacy. And I don't expect them to be much worse than GNU/Linux in that respect (but they definitely are).
by spockz | 2026-01-24 09:19:40+00:00
I know BYOD was common (although getting a fully specced MacBook Pro was often one of the “perks”), but typically you did get (some) budget or reimbursement for using your own device. So in a sense the company was paying for your device which allows you to buy a dedicated machine.

I also notice that it helps in segmenting in the brain to use separate devices for private and business use.
by seszett | 2026-01-24 09:19:42+00:00
> it feels fundamentally more right that my car by default follows the road than keeps going with the turn radius I had previously input.

A car shouldn't "keep the turn radius", they normally drive straight by default. The forces acting on the wheels do that automatically.

It doesn't seem like a wrong thing, to me.

> Where do you draw the line?

I think the line is quite obvious between the physical comfort features and the mentally disengaging features.
by hyperman1 | 2026-01-24 09:20:22+00:00
If it is pure marketing, I wonder why docker couldn't play the same game and be better at it?

E.g. for your most damning example: If docker published this story, blogged about it, made noice in places like HN, it is exactly what the press would love: RH breaks docker security while claiming to be more secure! The Emperor has no clothes! If you take security serious, accept no fake substitutes!
by marcthe12 | 2026-01-24 09:21:08+00:00
Well platforms with CHAR_BIT != 8. In c and c++ char and there for byte is atleast 8 bytes not 8 bytes. POSIX does force CHAR_BIT == 8. I think only place is in embeded and that to some DSPs or ASICs like device. So in practice most code will break on those platforms and they are very rare. But they are still technically supported by c and c++ std. Similarly how c still suported non 2's complement arch till 2023.
by Kwpolska | 2026-01-24 09:21:27+00:00
C# can be used in both .NET Framework and modern .NET (ex-core). In fact, it is possible for a C# project to target both .NET Framework and .NET with the exact same code, or to target to .NET Standard, where the same .DLL file can be loaded by both. Since the old Framework is in maintenance mode, some modern language features will not work there, but you can still be productive with the old framework.

Dynamic is largely unnecessary, and it was unnecessary even when it was introduced.

ASP and ASP.NET are completely unrelated. ASP was designed to allow dynamic webpages to be written in VBScript (like CGI). This is not something you want to do in modern languages.
by pcodesdev | 2026-01-24 09:21:52+00:00
I wrote this after helping a friend automate her bookstore inventory management.

Instead of the typical foo/bar examples, I used scenarios that beginners actually encounter:
- Shopping cart systems for list operations
- Login authentication for while loops
- Grade calculators for enumerate/zip
- Expense trackers combining multiple concepts

Each example is complete, runnable code with real output shown.

Key decisions I made:
1. Every code snippet solves an actual problem (not just demonstrating syntax)
2. Showed both "old way" and "modern way" for concepts like list comprehensions
3. Included a complete project at the end (expense tracker with categorization)
4. Common mistakes section based on bugs I actually encountered

The guide covers lists, tuples, for/while loops, range, enumerate, zip, comprehensions, filter/map, and lambda functions.

Target audience: people who've finished basic Python syntax tutorials and are asking "okay, but how do I build something with this?"

Open to feedback on:
- Which examples felt most/least practical
- What fundamental concepts I should have covered but didn't
- Better ways to explain mutability vs immutability

Happy to answer questions!
by JackSlateur | 2026-01-24 09:22:10+00:00
But I did and I still do

Pascal in his book "les pensées" introduced the idea that we (the human race) keep ourselves busy to avoid the anguish of the inner void that lurks in everybody, to avoid realizing too much that, in the end, life is meaningless, that we are nothing in the great scheme of the universe.
So we work, we play, we do things, any things and forget about ourselves.

Charles Baudelaire, in his poem "Enivrez-vous", spoke about the soul-crushing experience of doing nothing, and that "being drunk on something, anything" was a requirement to living a good life (job, drugs, whatever): it is required to fight the terrible passage of time that burdens us.

Being on vacation is meaningful and appreciated because it contrasts with the rest of our life. Would we enjoy a lifetime of vacation ? Yes at first, hardly then (also and this is lame but true, there is pleasure in getting things that not everybody can get)

In another way and in essence, Malsow talk about the common need to solve problems. Which is seen by some people as the key to happiness: not avoid problems, but solve them. Because there are always new problems in life, and if life fails to give some to us, then we find some ourselves ..

So what would we do ? Well, we could work on some very original ideas. Get more power that our neighbors. Get more things. Would that leads to conflicts and wars ? No, no of course not, that would be a first in history.

Now, you gave basically no information. Please answer me: how do we keep 8 billions occupied ? Not for a day, not for a month, but for a lifetime.
by tomgag | 2026-01-24 09:23:08+00:00
I see a lot of comments recommending TrueCrypt/VeraCrypt here, which is fine, but did you know there is something even more interesting? ;)

Shufflecake ( https://shufflecake.net/ ) is a "spiritual successor" to TrueCrypt/VeraCrypt but vastly improved: works at the block device level, supports any filesystem of choice, can manage many nested layers of secrecy concurrently in read/write, comes with a formal proof of security, and is blazing fast (so much, in fact, that exceeds performances of LUKS/dm-crypt/VeraCrypt in many scenarios, including SSD use).

Disclaimer: it is still a proof of concept, only runs on Linux, has no security audit yet. But there is a prototype for the "Holy Grail" of plausible deniability on the near future roadmap: a fully hidden Linux OS (boots a different Linux distro or Qubes container set depending on the password inserted at boot). Stay tuned!
by flomo | 2026-01-24 09:23:23+00:00
Obv we have better operating systems, yes. But we also obviously have much, much better de-jure open source standards than the UNIX/unix/etc crowd could ever manage. So the world is better when all those guys gave-up or died.

Stallman and Torvalds were not romantics, but they were tactical and strategic in targeting commercial UNIX. You could tell in the old days the Linux benchmark was Solaris.
by dhx | 2026-01-24 09:23:49+00:00
Not really, but it's quite complex for Linux because there are so many ways one can manage the configuration of a Linux environment. For something high security, I'd recommend something like Gentoo or NixOS because they have several huge advantages:

- They're easy to setup and maintain immutable and reproducible builds.

- You only install the software you need, and even within each software item, you only build/install the specific features you need. For example, if you are building a server that will sit in a datacentre, you don't need to build software with Bluetooth support, and by extension, you won't need to install Bluetooth utilities and libraries.

- Both have a monolithic Git repository for packages, which is advantageous because you gain the benefit of a giant distributed Merkle tree for verifying you have the same packages everyone else has. As observed with xz-utils, you want a supply chain attacker to be forced to infect as many people as possible so more people are likely to detect it.

- Sandboxing is used to minimise the lines of code during build/install which need to have any sort of privileges. Most packages are built and configured as "nobody" in an isolated sandbox, then a privileged process outside of the sandbox peeks inside to copy out whatever the package ended up installing. Obviously the outside process also performs checks such as preventing cool-new-free-game from overwriting /usr/bin/sudo.

- The time between a patch hitting an upstream repository and that patch being part of a package installed in these distributions is fast. This is important at the moment because there are many efforts underway to replace and rewrite old insecure software with modern secure equivalents, so you want to be using software with a modern design, not just 5 year old long-term-support software. E.g. glycin is a relatively new library used by GNOME applications for loading of untrusted images. You don't want to be waiting 3 years for a new long-support-support release of your distribution for this software.

No matter which distribution you use, you'll get some common benefits such as:

- Ability to deploy user applications using something like Flatpak which ensures they are used within a sandbox.

- Ability to deploy system applications using something like systemd which ensures they are used within a sandbox.

Microsoft have long underinvested in Windows (particularly the kernel), and have made numerous poor and failed attempts to introduce secure application packaging/sandboxing over the years. Windows is now akin to the horse and buggy when compared to the flying cars of open source Linux, iOS, Android and HarmonyOS (v5+ in particular which uses the HongMeng kernel that is even EAL6+, ASIL D and SIL 3 rated).
by leoc | 2026-01-24 09:24:04+00:00
Taking the example of the cryptocurrency boom (as a whole) as the guide, the problem is the interaction of two realities: big money on the table; and the self-fulfilling-prophecy (not to say Ponzi) dynamic of needing people to keep clapping for Tinker-bell, in greater and greater numbers, to keep the line going up. It corrupts whimsical fun and community spirit, it corrupts idealism, and it corrupts technical curiosity.
by ErroneousBosh | 2026-01-24 09:24:10+00:00
"Most parts of the world" use 230V with sockets capable of delivering 16A. In the UK where the standard mains connector is rated at 13A, you'd probably need to do a bit of measuring but you'd be okay. If you really needed it, you'd just have a Ceeform connector run in and a 16A breaker - quite common in garages, especially if you've got workshop equipment to run.

About the only countries that don't use 230V are the US, Canada, and Japan, which even combined only have about one third of the population of India.

Add in Europe, Africa, the Middle East, Australia, and New Zealand, and you'd probably find that most parts of the world can cope 240V 15A no problem at all ;-)
Show HN: 3 months cloning Typefully with Claude Code – here's what I learned
by yeeyang | 2026-01-24 09:25:44+00:00
I wanted to build an army of AI agents that create valuable content with taste. But I had zero experience building this kind of product.

So I chose to learn by cloning Typefully – a Twitter scheduling tool I actually use and love. Built entirely with Claude Code over 3 months.

-----

What I learned:
Vibe coding hits a wall with performance problems. The details Typefully polished? That's where the real craft lives. Copying taught me to see what I'd otherwise miss.

Where I'm going differently:

- Firstly , I built an "Influencer Finder" that analyzes lists to discover valuable creators

- Second,I downloaded their tweets by the tool I built called twitter advanced search ,and extract content pillars, writing techniques, and voice patterns via Claude

- At last,I packaged these as Skills to create agents that write in your style and values

Tested it on my own tweets first. Results were surprisingly good.

And Now I am still building this knowledge base for agents.

Target users:
Founders and one-person teams who need to build personal + product brands through social media writing.

-----

It started as a copycat. It won't end as one.

Happy to answer questions about what I learned or where this is heading.

And here's the Product:
https://xaicreator.com
by mountainb | 2026-01-24 09:25:47+00:00
I think the real reason is that it’s an entirely different media experience than the current types. Most modern games are either gambling traps (microtransaction hell) or extremely high fidelity products that leave nothing to the imagination. In McLuhan terms they are hot forms of media, but the old ones are cool in that they invite imaginative participation. Hence the popularity also of intentionally retro looking contemporary indie games.
by habinero | 2026-01-24 09:26:36+00:00
> Cooks are idiots (most are either illegal immigrants with no formal education, or substance-abusing degenerates who failed at everything else) who repeat what they're told

Jesus Christ, dude. Just because someone works with their hands doesn't mean they're stupid. Good lord. Working in a professional kitchen is an incredibly demanding and difficult job. Don't be elitist to people who work way harder than you.

Especially since some of the dumbest and most intellectually coddled failsons I know went to, like, Yale lol. Or Harvard. A lot of YC startups are like Failson Continuation School. Plenty of people are smart, but a lot of them are just rich.

> On the other hand, vibe coding is curently churning out not just working software, but working businesses

Funny story, I'm evaluating SaaS ETL products and I found one that looked great. So I spent a couple hours testing out some tinkertoy examples with the idea to ask for budget if it worked.

I kept running into small stupid documentation problems and some incredibly stupid behavior in really basic shit (like, screwing up .env files) that no developer would do and then I realized it was all AI generated.

Did it work? Kinda! Mostly! Did it immediately make me put it in the "absolutely not" pile? Sure did.

If the code I can see is that sloppy and poorly reviewed, how bad is the code I can't see? I'm for sure not giving them our sensitive data.

If you think human code is bad, you should just work with better humans. ¯\_(ツ)_/¯
by aebtebeten | 2026-01-24 09:27:36+00:00
(Mostly just the jokes:

Q. How did the hipster wind up in the emergency room?

A. He fired his 3D-printed gun before it was cool. )

Not sure what you're getting at with cowboys, for me the intersection with SV is/was Gibson's console cowboy — "In the bars [Case had] frequented as a cowboy hotshot, the elite stance involved a certain relaxed contempt for the flesh. The body was meat. Case fell into the prison of his own flesh."

What is the opposite of relentless searching for the frontier? cottage-core?

Should we add Dolphus Raymond to the "white negro" pantheon? How about https://en.wikipedia.org/wiki/Mezz_Mezzrow#Personal_life ?

EDIT: you might be interested in Wister, "The Virginian" (1902) as a Trope Codifier for the cowboy: https://www.gutenberg.org/cache/epub/1298/pg1298.txt
Show HN: AI Lint – Teach coding agents your team's standards, not just syntax
by keepamovin | 2026-01-24 09:28:40+00:00
After 3+ years of heavy agentic coding, I noticed a pattern: Claude/Cursor/Copilot generate code that works but doesn't belong.

It passes tests. It runs. But it fights the grain of the language. It invents state when the platform provides it. It hides causality behind clever one-liners. It creates three different solutions to the same problem in the same file. The architecture is technically valid but cognitively expensive.

Prompting for "clean code" didn't help. The agents needed what I'd give a talented junior: a handbook on taste.

So I wrote doctrine files—markdown constraints that teach agents the difference between code that compiles and code that's maintainable. Things like:

- "More than 20 mutable state variables in a file? You have multiple modules pretending to be one."

- "Three approaches to the same problem coexisting? Pick one, delete the others."

- "If you can't explain the condition in one sentence, extract it to a named boolean."

AI Lint is the productization of this. It's not a CLI or SaaS—just optimized text files you drop into .cursorrules, AGENTS.md, or your system prompt. The agents read them and actually follow them.

There's doctrine (what belongs) and rejects (what to refuse). When rules conflict, there's an override protocol. It's designed for context injection, not human reading.

Business model: Paid packs for different stacks (Apps, Systems, etc). But I've released a free preview on GitHub with the core philosophy and JavaScript/Node.js doctrine so you can test the impact.

- Website: https://ai-lint.dosaygo.com

- Free Preview: https://github.com/DO-SAY-GO/AI-Lint

Curious what anti-patterns AI keeps injecting into your codebases. I'm expanding the Go and Rust rejects right now, and planning iOS/Swift and infra (Docker, k8s) packs next.
by codingcodingboy | 2026-01-24 09:32:02+00:00
Wow thanks for the long reply, unfortunately many if not most of your points are common in all of Europe. I asked you to clarify because I am not only curious about the topic but I strongly believe that these issues should be talked about way more frequently and reach when possible the general population.

Most people are completely unaware of the risks and difficulties of running a company in our countries.

In Italy for example the tax agency operates on a model that is often no different from extortion and innocent people can suffer greatly because of it, I have seen it happen.

I am skeptical that EU Inc will solve all the main problems or even that it will become reality at all but let's see.
by wolvoleo | 2026-01-24 09:32:06+00:00
Yeah we need to transition away.

The biggest issue is large enterprises, they've really painted themselves in a corner with Microsoft 365 cloud in the last 10 years or so. I see it at my own work.

Luckily Copilot is very underwhelming or this would have caused an even deeper hold. But with processes completely built up around Microsoft tooling this dependency will take years to sever.

The problem is also that there's not really any alternative yet, be it Chinese or otherwise. Nobody has bothered making anything like it. Of course they would have known Microsoft is ready to undercut them the minute they came to market as they always do.

During the last year we loosely evaluated Google docs but it's kinda less capable and also it doesn't solve any of the current problems because it's American too.

I do think European and Chinese solutions will come on the market now because they now have a big moat: not being American. But developing them will take time which we don't have.

Personally I'd love to see less 'cloud' anyway. I've never believed in it.

Ps fwiw I don't see the urgency yet at my work. They don't seem to be looking at this yet. But we are a multinational with huge footprint in both America and Europe. I could imagine them split the organisation in two different parts that are only loosely connected, similar to what we did with Russia after the invasion of Ukraine. I don't see them leaving the US completely but perhaps they will make it a separate company within the same holding.
by Nursie | 2026-01-24 09:34:01+00:00
It’s very unlikely to happen because at this point it seems to be effectively a lost technology.

Nobody’s making the tubes any more.

It’s bit like cassette decks - there’s only one manufacturer left and the mechanisms they build are not up to the quality of the ones from the 90s, and a revival is not enough to bootstrap manufacture back to economic viability, it’s very likely a blip.