MurphyA/hacker-news huggingface dataset:
by osigurdson | 2025-05-31 16:14:22+00:00
Yes, fully agree that the Nepalese people should be able to do what they want as well. If that means closing their country to tourists, that is fine. However, they aren't doing that so presumably they are doing what they want. Based on the link that you provided they have made some changes. I don't see any relationship to drunk driving here.

I suspect you are un-conflicted in the sense that you aren't simultaneously compelled to climb Everest but are holding back due to the environment impact. Staying home or going to the movies might be fine for you but not necessarily everyone else. If you do travel / do other things you probably don't worry about the environment impact much - because you are doing "valid" stuff that you happen to like.
by kragen | 2025-05-31 16:15:19+00:00
Hmm, I guess you're right. But those functions (highly relevant here!) are differentiable almost everywhere; is that enough for Lipschitz continuity to be equivalent to the derivative being bounded?

I still think there's a point in talking about Lipschitz continuity for differentiable functions because the algorithms they're talking about depend on the Lipschitz property, not the differentiability.
by pjmlp | 2025-05-31 16:15:59+00:00
I will also debate that plenty of "modern" C++ features that people attribute to C++11, were already possible throughout C++ARM to C++03, but apparently many either weren't paying attention, or only renaming their C files into .cpp/.cxx/.C.

Just like the low level stuff done by MFC, and how much more ergonomic CSet++, OWL and VCL happened to be.
by williamcotton | 2025-05-31 16:16:18+00:00
If you use the same controller code for both the front-end and the back-end you can (along with, eg, browser-express and express and parallel GraphQL middleware for each execution context) use form posts for the HTML requests along with fetch for the SPA "requests".

This also means that your application will work the same with JS disabled as it does with JS enabled.

Here's a somewhat convoluted explanation of the general approach: https://fex-template.fly.dev - it happens to use F# with the Fable compiler but it should be somewhat legible to most developers!
by skybrian | 2025-05-31 16:16:35+00:00
If a newspaper only publishes surprising results, but it’s unsurprising when they appear in the newspaper, then you’ve set up a paradox: a set that only contains nonmembers.

I don’t think it’s valid to define “surprising” in such a self-referential way. When something unusual appears in the news, that doesn’t make it common. The probabilities are different before and after applying a filter.
by johnklos | 2025-05-31 16:17:10+00:00
> They definitely could have made avx512 instructions trigger a switch to p-cores,

That'd be an OS thing.

This is a problem that has been solved in the mainframe / supercomputing world and which was discussed in the BSD world a quarter of a century ago. It's simple, really.

Each CPU offers a list of supported features (cpuctl identify), and the scheduler keeps track of whether a program advertises use of certain features. If it does want features that some CPUs don't support, that process can't be scheduled on those CPUs.

I remember thinking about this way back when dual Nintendo cartridge Pentium motherboards came out. To experiment, I ran a Pentium III and a Celery on an adapter card, which, like talking about self hosting email, infuriated people who told me it can't be done. Different clock speeds, different CPU features, et cetera, worked, and worked well enough to wonder what scheduler changes would make using those different features work properly.
by fabian2k | 2025-05-31 16:17:30+00:00
> For Stack Overflow, the new model, along with highly subjective ideas of “quality” opened the gates to a kind of Stanford Prison Experiment. Rather than encouraging a wide range of interactions and behaviors, moderators earned reputation by culling interactions they deemed irrelevant.

This part is just outright wrong, though I think it's not an uncommon misunderstanding. You do not get any reputation at all for removing content. Curation is almost not incentivized by reputation at all, the only exception are suggested edits (and rep gain is capped there).

If your goal is only to get more internet points the best strategy is to quickly answer every question that comes in, and not to close, downvote or delete anything. Curation actually works against you as you won't get points if the question is deleted (within a certain time limit). So gamification is doing the opposite of what the author claims here.
by yusina | 2025-05-31 16:17:32+00:00
Um, moving the goal post?

The claim was LLMs understand things.

The counter was, nope, they don't. They can fake it well though.

Your argument now is, well humans also often fake it. Kinda implying that it means it's ok to claim that LLMs have understanding?

They may outclass people in a bunch of things. That's great! My pocket calculator 20 years also did, and it's also great. Neither understands what they are doing though.
by bigyabai | 2025-05-31 16:19:18+00:00
1. If AI is latently capable of killing people using just computer power, then it was going to happen regardless. If the AI requires assistance from human actors then it's basically indistinct from human actors acting alone without AI. If you are a human that puts AI in charge of a human life, you are liable for criminal negligence.

2. You cannot stop AI research because of a bunch of unknowns. People will not be afraid of an immaterial threat that has no plausible way to threaten people besides generating text. Even if that text has access to the internet, the worst that can happen has probably already been explored by human actors. No AI was ever needed to proliferate catastrophes like Stuxnet, Sarin gas attacks, or 9/11.

3. Some people (like myself) have been following this space since Google published BERT. In that time, I have watched LLMs go from "absolutely dogshit text generator" to "slightly less dogshit text generator". It sounds to me like you've drank Sam Altman's Kool-aid without realizing that Sam is bullshitting too.
Show HN: LightDB – fast embedded DB for Scala
by darkfrog | 2025-05-31 16:19:30+00:00
I’ve just released version 4.0 of LightDB, a high-performance embedded database for Scala that combines key-value storage, SQL-like querying, graph traversal, and full-text search; all in one JVM library.

I built it out of necessity: I needed a fast, in-process database to handle large-scale entity resolution, full-text filtering, and relationship traversal. All without an external DB server. Nothing existing fit that niche, so LightDB was born.

What it offers:

Key-value access (RocksDB, LMDB, MapDB, etc.)

A concise Scala SQL-like DSL

A built-in graph traversal engine

Lucene-powered full-text search & faceting

Runs fully embedded in your app. No servers, no sockets

Blazingly fast: processing jobs that used to take days now finish in hours

Everything is composable, strongly typed, and designed for performance-critical JVM applications.

I’d love to hear feedback, especially if you’ve ever tried to use something like RocksDB, SQLite, or Lucene in a Scala app and found the integration painful.
by larrled | 2025-05-31 16:21:37+00:00
OMB got hacked years ago by the Chinese. Access to our systems and data by Xi/Putin is very pre-DOGE. Maybe they made it less secure, say from not very secure to super not very secure. I’d be willing to believe that, but the claimant has to first admit the systems are already open to foreigner influence/domestic spies.
by signatoremo | 2025-05-31 16:21:41+00:00
Huh? The US has the highest train cargo traffic in the world, followed by China and Russia [0]. Passenger train network is what is lacking.

On the other hand, trucks are very popular in Europe and Asia. 75% of land freight in Europe are by truck [1]

[0]-https://www.worldatlas.com/articles/highest-railway-cargo-tr...

[1] - https://www.acea.auto/fact/fact-sheet-trucks/
by andrewzeno | 2025-05-31 16:21:53+00:00
Thanks! I also like when the UI is not cluttered with different inputs.

What do you mean by "Stop and start browsers while restoring my sessions"? You should be able to start and stop the browser as long as it's not updating. If there is an update and you decide to install right then, you won't be able to open any profile that uses that browser during the update.

If you mean importing an existing profile, I haven't added that yet. But it's at the top of my list!

And if you mean something else... Then I'm not sure. Please either share more details or create a bug report if you feel like this is not the correct behavior.
by olcarl75 | 2025-05-31 16:22:21+00:00
Is your post related to a political stance against Elon musk, a distrust call against putting AI on a privacy first app or you don't like AI chat bots?

It's very hard to understand what's it you want people to get out of the blog post since it's just "don't use x, use y" and usually people rather get some reasoning rather than being herded to do what you want
by pansa2 | 2025-05-31 16:22:59+00:00
> Most iterators provide the ability to walk an entire sequence [...] Calling the iterator again walks the sequence again.

> "Single-use iterators" break that convention, providing the ability to walk a sequence only once.

This seems similar to the difference between an "iterable" and an "iterator" in Python (and between `IEnumerable` and `IEnumerator` in C#).

A Python list `l = [1, 2, 3]` is an iterable, and you can do `for v in l: print(v)` multiple times. But `iter(l)` is an iterator and `for v in i: print(v)` will only work once.
by pona-a | 2025-05-31 16:23:59+00:00
Do they, pragmatically speaking? High-volume cargo traffic quickly wears down the asphalt and causes regular jams, a bike lane unseparated from cars is a safety hazard enough large enough to push many potential riders off the road, and most morning commutes would be better served by well-developed public transit.

One EMD SD70ACe locomotive moves over 10,000 tonnes of cargo using 1,300 L of diesel per 1,000 km. The equivalent 286 trucks would consume 107,250 L, while needing 55.8 km of a single-lane highway, compared to the 2.16 km freight train.

Similarly, the average US car has 1.5 passengers per ~30 m² of space, so 20 m² per person. An average bike is about 2 m² per person. A typical trolley car holds ~160 passengers per 200 square meters, so 1.25 m² per person. A tram reliably moves at 60–80 km/h on interurban routers, or 30 km/h in urban centers with frequent stops, a considerable improvement over San Francisco's 16 km/h by car for last mile.
by jandrewrogers | 2025-05-31 16:25:19+00:00
The standard idiom is to have a sentinel state for the object indicating it is invalid. For objects without trivial destructors or which may be read after being moved-from (a valid behavior in some systems code contexts) then you need a sentinel state anyway because moves in C++ are non-destructive.

C++ uses deferred destruction as a standard tool to solve a variety of problems.
by globie | 2025-05-31 16:25:45+00:00
From the article it's sure starting to seem like people across the internet are just starting to realize what happens when you don't have just 3-4 search engines responsible for crawling for data anymore. When data becomes truly democratized, its access increases dramatically, and we can either adjust or shelter ourselves while the world moves on without us.

Did Google never ever scrape individual commits from Gitea?
by osigurdson | 2025-05-31 16:26:05+00:00
I meant fixed point decimal type (like C#) 128 bit. I don't understand why the parent commenter (top voted comment?) used unsigned integers to track individual cents. Why roll your own decimal type?

Using arbitrary precision doesn't make sense if the data needs to be stored in a database (for most situations at least). Regardless, infinite precision is magical thinking anyway: try adding Pi to your bank account without loss of precision.
by ciprian_craciun | 2025-05-31 16:26:11+00:00
Provided that the information one wants to keep safe is sensitive and important long term, there are two main issues with printing (either text, QRCode, or anything):

* (paranoia) can you trust your printer not to leak the secret? (either in local memory, or to send it to its cloud mother-ship?) you can encrypt your information and print that, but then you are back to square one: where do you backup the password;

* and most importantly, long term resilience: given that with normal printers you can only print on soft materials (like paper, or perhaps plastic), they won't last floods, fire, and other unlikely events; (even if one laser etches some information on a steel sheet, I don't know how resistant to abrasions it is;)

However, by actually drilling holes into a metal sheet, the only way to permanently make the data irrecoverable, is to destroy the object completely.
by dataflow | 2025-05-31 16:26:39+00:00
> Actually I don't think your c++ program contains a data race, because the writes that populated the argument string happened before the atomic read

But the write to the static variable from the second thread is entirely unordered with respect to the read, despite the atomicity. If lack of ordering is your criterion for data races, doesn't that imply there is a data race between that write and that read?
by layer8 | 2025-05-31 16:27:30+00:00
This actually works, except that upon “delete all $x alarms”, Siri asks back “do you want to delete all your alarms?”, but after confirming only deletes the $x alarms.

Still, it’s not very practical, as Siri often mishears alarm names, and also you want to use different names to know what each alarm is for.
by catlifeonmars | 2025-05-31 16:27:44+00:00
- My initial thought is that the performance implication (e.g. escaping to the heap) of impure iterators is an implementation detail and seems like a good candidate for a future compiler optimization.

- impure iterators are strictly more powerful than pure iterators in that they can be resumed but do not have to be. If I wanted to pick one pattern for consistent behavior across all iterators it would be this one.
by wkat4242 | 2025-05-31 16:28:03+00:00
Many. And I don't even mind but it's usually really bad porn. Also it's not like anyone does anything, they just sit there and pretend they're not interested or ignore it. It's really weird. Also a kind of macho thing I think. Anyway in Holland this is not uncommon.

I have nothing against pornography at all but I do have a minimum quality :) I like the more stylish stuff.

Though I prefer watching people in real life, I'm lucky to have some other friends who are into that too.
Show HN: AI-Powered Receipt and Invoice Generator (LLM-Agnostic, Prompt-Based)
by maxime_wellapp | 2025-05-31 16:29:11+00:00
GitHub: https://github.com/WellApp-ai/Well/tree/main/ai-receipt-gene... Example output: https://imgur.com/a/YtFSodj

We’ve open-sourced a small tool to generate synthetic receipts and invoices using LLMs — no templates, no HTML, just prompts.

Why? We needed large, diverse, semi-realistic documents to evaluate our document extraction pipeline (OCR + AI). Most generators were either too rigid (static templates) or tied to a single provider. So we built our own:

Features:

LLM-agnostic (OpenAI, local models, etc)

Prompt-driven JSON output (not rendered docs)

Optional Faker-based fallback if the model isn't used

Configurable schemas, locales, and output count

Lightweight and hackable — runs with a single config

This makes it easy to:

Generate test data at scale

Create edge cases (missing fields, odd currencies, broken totals)

Evaluate or fine-tune document understanding models

Example use case: You can ask the model to generate a receipt from a Vietnamese coffee shop, with broken math and a typo in the merchant name — and get structured JSON output that mimics what real OCR might return.

Would love feedback from folks working on:

LLM eval tooling

Synthetic data generation

OCR / document AI

AI agents that touch financial data

Happy to support anyone who wants to extend it or wire up other backends (Claude, Mistral, LM Studio, etc).
by rsolva | 2025-05-31 16:29:42+00:00
I accidentally started having fun while wipping up a new website for a non-profit with relatively simple needs.

I started out with Server Side Includes on a shared host, but converted to using PHP along the way to be able to make a base file with all the stuff that is repeated (header, main, footer etc), and then injecting the content from index.php, /contact/index.php etc.

Turns out, you get really far with HTML, CSS and a light sprinkle of PHP, and it is super fun and fast and you get things EXACTLY how you want it. No fighting other peoples opinionated decisions.

I have created many sites from scratch with Hugo, and generally enjoy the process, but this is even more fun, because ... I can do whatever I want!
by ageitgey | 2025-05-31 16:31:34+00:00
The numbers are just examples, but you'll get 1-2 real withdraws before you start losing money. The sunk cost and feeling it was legit before is part of the scam to get you to big numbers. You might only get sent a small part of the balance for your fee and then get hit up for more to get the whole balance. All the while, the imaginary total in your account keeps going up, so you keep getting hooked deeper.

And even if you bail after the first withdrawal and actually make a profit, all you've done is stolen money from another victim and may eventually get your bank account flagged for fraud or money laundering.
by ramesh31 | 2025-05-31 16:31:44+00:00
>"Speaking of AI, is it any use? Well, somewhat. It writes half-useful CSS. It saves time on some things (but also makes bizarre choices on other things -- whatevs). I basically paired with it occasionally. It was OK."

Tailwind is the key. It provides a semantic layer over CSS that LLMs can actually reason about. Otherwise it's just guessing.
by ciprian_craciun | 2025-05-31 16:32:34+00:00
Besides the issue with printing and paper longevity, another issue with QRCodes is that you can't easily convert them back to data without a proper application that implements the decoding algorithm, and thus you need to extend your trust to the application you use to recover the data.

However, with the proposed format (which is in fact just the oldest storage technique in computer history), one can just use a pen and paper (or any dumb 70s calculator) to easily convert the backup into something usable.

For example: group 4 bits together, and compute `b1*8 + b2*4 + b3*2 + b4` to get the index of a hexdigit; write that down choosing between `0-9a-f`; move to the next group; and that's your password.
by hammock | 2025-05-31 16:32:42+00:00
It helps to internalize the concept that all statistics (visualizations, but also literally any statistic with an element of organization) is narrative. “The medium is the message” type of way.

Sometimes you are choosing the narrative consciously (I created this chart to tell a story), and sometimes you are choosing it unconsciously (I just want to scatter plot and see what it shows - but you chose the x and y to plot, and you chose the scatter plot vs some other framework), and sometimes it is chosen for you (chart defaults for example, or north is up on a map).

And it’s not just charts. Statistics on the whole exist to organize raw data. The very act of introducing organization means you have a scheme, framework, lens which with to do so. You have to accept that and become conscious of that.

You cannot do anything as simple as report an average without choosing which data to include and which type of average to use. Or a histogram without choosing the bin sizes, and again, the data to include.

This is all to say nothing of the way the data was produced in the first place. (Separate topic)
by exceptione | 2025-05-31 16:33:42+00:00
> it would test the limits of credulity to think that previous US administrations > did not use USAID to extract concessions from African countries for decades prior.

Sure. But it is about what strings are attached. If we normalize self serving transactionalism, we will self-corrupt.

The correct strings to attach would be those which pushes towards a democratic rule of law, which would eventually enable the affected society to self-sustain them. Now you can already hear the bots coming out of the woods: "who is the west to tell countries what is right/WOKE!/ western colonialism" etc.

We should never take advantage of a country in need. Our philosophy is win-win.

> Russia, who prefers making deals with a single person on the other side (ie a dictator)

Sure, and they do that too! But not all governments are in official control of all their territory. The Kremlin network, just like the current USA government, ascribe to the notion of "might makes right". Helping a local warlord making a coup to extract more is business as usual.

The war in the west is not about Trump, nor about transgenders, but about the mind of normal citizens. How much of this criminal mindset has been normalized already?
by orev | 2025-05-31 16:35:03+00:00
There’s an incoming cohort of people who only ever used a touch screen to type and a physical keyboard is a new thing. They do things like activate caps lock, type a single capital letter, then deactivate caps lock, because that’s how a phone keyboard does it. There’s also the reliance on autocomplete, auto spellcheck, auto capitalization, auto punctuation, etc.

We’re quickly moving to where using a physical keyboard is going to be a skill that needs to be actively taught/learned. People aren’t getting that type of incidental exposure anymore.
by cypherpunks01 | 2025-05-31 16:35:16+00:00
Nice! With a denser 256 bit card you could store an entire age secret key, and so encrypt any amount of data directly to metal key asymmetrically, only needing the public key at encryption time (keeps metal key safer).

Then thresholding can be done with "sops" (which uses the Hashicorp vault shamir implementation) against groups of age keys. Making it so M of N metal backups are required to decrypt the nuclear codes you're storing.
by alwa | 2025-05-31 16:36:15+00:00
I can think of a couple of advantages. For one, punching these holes takes time (and physical space on the object), and a high-redundancy QR code’s extra holes don’t gain you much: instead, this approach situates the redundancy in the physical properties of the object itself.

For two, did you see the encoder/decoder script? Barely two lines of python! Which truly are optional, I guarantee many people here could encode and decode that pattern by eyeball. I know one can hand-calculate a QR code, but why would I when I can use raw bits?
by energy123 | 2025-05-31 16:37:02+00:00
Every power source has externalities. Solar and wind have embedded carbon, waste and land use. The mere existence of downsides does not automatically mean it's a bad idea. Fixating and nitpicking on these downsides as if they're highly pertinent to decision making is what's irrational. Nuclear has historically killed nearly zero people, it is as safe as renewables, especially modern designs.
by robinsonb5 | 2025-05-31 16:37:22+00:00
The Gowin chips are quite interesting - they have RAM built in to the FPGA itself. It's SDRAM in the case of the Tang Nano 20k. It's a 32-bit wide RAM, but unfortunately only 8 megabytes, which is a bit limiting. The FPGA's clocking is a bit limited, too. (For that reason, there's an extra clock generator on the Tang Nano 20k.)
by larrled | 2025-05-31 16:39:49+00:00
I don’t think enormous fraud has been uncovered. The argument, I don’t buy personally, is that the only way to reform such a beast is to kill it and start over with a totally new entity. Other than thousands of deaths now and downstream geopolitical instability threatening more in the future, we’ll have to wait and see if this will help with the budget deficit as promised by the paragon of credibility Elon Musk.