MurphyA/hacker-news huggingface dataset:
by glouwbug | 2025-06-27 15:30:43+00:00
Combined with C23's auto (see vec_for) you can technically backport the entirety of C++'s STL (of course with skeeto's limitation in his last paragraph in mind). gcc -std=c23. It is a _very_ useful feature for even the mundane, like resizable arrays:

#include <stdlib.h> #include <stdio.h> #define vec(T) struct { T* val; int size; int cap; } #define vec_push(self, x) { \ if((self).size == (self).cap) { \ (self).cap = (self).cap == 0 ? 1 : 2 * (self).cap; \ (self).val = realloc((self).val, sizeof(*(self).val) * (self).cap); \ } \ (self).val[(self).size++] = x; \ } #define vec_for(self, at, ...) \ for(int i = 0; i < (self).size; i++) { \ auto at = &(self).val[i]; \ __VA_ARGS__ \ } typedef vec(char) string; void string_push(string* self, char* chars) { if(self->size > 0) { self->size -= 1; } while(*chars) { vec_push(*self, *chars++); } vec_push(*self, '\0'); } int main() { vec(int) a = {}; vec_push(a, 1); vec_push(a, 2); vec_push(a, 3); vec_for(a, at, { printf("%d\n", *at); }); vec(double) b = {}; vec_push(b, 1.0); vec_push(b, 2.0); vec_push(b, 3.0); vec_for(b, at, { printf("%f\n", *at); }); string c = {}; string_push(&c, "this is a test"); string_push(&c, " "); string_push(&c, "for c23"); printf("%s\n", c.val); }
by dmoy | 2025-06-27 15:31:00+00:00
I mean....

https://westone.com/defendear-sleep

Gets you some pretty good quiet for sleep. It's not active noise cancelling, but they work pretty well.

Anecdotally if you wear a pair of westone solids, and then a pair of earmuffs on top of that, you are basically just hearing through your bones, which can't be avoided (with passive or active).
by sebastos | 2025-06-27 15:31:52+00:00
Amazing. Our company has to push gigantic docker images to IoT style devices, and we’ve had to maintain an installer script that downloads and stands up a local dummy registry, pushes the image to that, then ssh’s to the remote and pulls from it. When the installer fails, this process is almost always the culprit. Your tool looks like it would be a huge improvement (- although the requirement that the host have the unregistry container is a _slight_ demerit). Nevertheless, I can’t wait to check this out.

I have spent an absolutely bewildering 7 years trying to understand why this huge gap in the docker ecosystem tooling exists. Even if I never use your tool, it’s such a relief to find someone else who sees the problem in clear terms. Even in this very thread you have people who cannot imagine “why you don’t just docker save | docker load”.

It’s also cathartic to see Solomon regretting how fucky the arbitrary distinction between registries and local engines is. I wish it had been easier to see that point discussed out in the open some time in the past 8 years.

It always felt to me as though the shape of the entire docker ecosystem was frozen incredibly fast. I was aware of docker becoming popular in 2017ish. By the time I actually stated to dive in, in 2018 or so, it felt like its design was already beyond question. If you were confused about holes in the story, you had to sift through cargo cult people incapable of conceiving that docker could work any differently than it already did. This created a pervasive gaslighty experience: Maybe I was just Holding It Wrong? Why is everyone else so unperturbed by these holes, I wondered. But it turns out, no, damnit - I was right!
by JimDabell | 2025-06-27 15:32:43+00:00
> If you are a monopoly like youtube or the apple store

What happened to this being a case of the government propping up an untenable business model?

You don’t have a solid view point, you’re just saying whatever springs to mind that disagrees with what I say. This isn’t a genuine conversation, you’re just arguing for entertainment. I’m out.
by MengerSponge | 2025-06-27 15:32:54+00:00
+1 to "get custom molded earplugs"

If enjoy and pay to see live music, you should spring for a set of "musician's earplugs". They're molded just like safety/sleeping earplugs, but they use a flat 10-15dB attenuating filter. They make the music quieter without distorting it.

Symphony players wear them because brass/percussion is loud enough to cause hearing damage with hours of exposure. I've sung in mine for Easter morning services where I was wedged between a celebratory trumpet and an organ with all the stops out.

They're not cheap, but they're not very expensive in the world of Ticketmaster fees.
by skybrian | 2025-06-27 15:33:55+00:00
I tried the obligatory pelican riding a bicycle (as an image, not SVG) and some accordion images. It has a bit of trouble with fingers and wth getting the black keys right. It’s fairly fast.

https://chat.qwen.ai/s/0f9d558c-2108-4350-98fb-6ee87065d587?...
by bigyabai | 2025-06-27 15:35:20+00:00
Farming is a job, which people do to eat. I've known farmers, and yes, if you bought a tractor and drove it around SF I would accuse you of "playing farmer" as well.

You don't have to take it personally - roleplay can be an effective tool. If you're training to operate a tractor on a farm, then you are consciously "playing farmer" with the intent of driving positive results.
by diggan | 2025-06-27 15:35:34+00:00
> serving via API gives them valuable usage data

It might give them a bit, but AFAIK most institutions (especially non-American ones) aren't exactly overly happy about using closed American APIs in order to do science, especially not because API usage isn't reproducible.

Sure, they might be able to play around with some toy data, but for Google to actually get valuable usage data, then they need to let people actually use the thing for real things, and then you cannot gate it behind a API, it isn't feasible in a real-world environment.
by alexander2002 | 2025-06-27 15:36:14+00:00
>I just don't understand what is it with Jews that people hate them so intensely. What is wrong with this world? Humanity can be so stupid sometimes.

Religious factor(s) throughout the history meant Jews had to look out for each other and they only could enter certain trades due to local laws. Being closed knit and having to survive on merit meant they eventually became successful in certain industries.

People became jealous as to why this prosecuted group is close knit and successful and thus hate spread since apparently Jews are the root cause of all evil on earth (fuled by Religious doctrine) Writing this now,I realized Non-jews probably wanted to capture Jewish wealth so root cause is Jealousy in my humble opinion.

Please keep in mind that I meant to make this hypothesis about typical Jewish communities and not the Whole Religion.Jews in german were probably vastly different from Jews in US but common factor were always prosecution,having to survive on merit and being close-knit
by TinyMomentum | 2025-06-27 15:36:18+00:00
I built a tiny browser-based tool that lets you copy invisible Unicode characters for blank messages, usernames, or formatting tricks.

No ads, no tracking, no login. Works in any browser. Especially useful for games like Free Fire or platforms like Discord, TikTok, etc.

The original version was in Spanish, but now there's a clean English version: https://www.textoinvisible.app/en

Would love feedback or suggestions from the HN crowd!
by hexmiles | 2025-06-27 15:36:21+00:00
While looking at the examples of editing the bear image, I noticed that the model seemed to change more things than were strictly asked.

As an example, when asked to change the background, it also completely changed the bear (it has the same shirt but the fur and face are clearly different), and also: when it turned the bear in a balloon, it changed the background (removing the pavement) and lost the left seed in the watermelon.

It is something that can be fixed with better prompting, or is it a limitation of the model/architecture?
by PaulHoule | 2025-06-27 15:36:27+00:00
I don't see code generation as a bad smell at all.

At my job we use the JooQ code generator which is well integrated with maven and either IntellJ IDEA or Eclipse so autcompletion "just works". In modern Java you can pack up a code generator as a maven plugin [1] and put something in your POM that runs the generator. It's easy. There are other ways to hook the compiler too, see the controversial

https://projectlombok.org/

Lisp does come closest to a "language construction set" that lets you bend a language to your will. I think a compiler could be built for a language that looks more conventional that would be just as malleable, maybe even more malleable, but a generation of system programmers were traumatized by slow C++ builds and want to have nothing to do with a compiler which could be slow, even if you could make up for the slowness by having dramatically less code.

[1] A maven plugin is just a Java class which can do everything in the ordinary Java way which gets dependencies injected by the maven runtime. It's a common rookie mistake to try to solve problems by writing XML. I mean, if you can write a POM that makes existing plugins do what you want go right ahead, but if you can't just write your own plugin.
by cs702 | 2025-06-27 15:36:35+00:00
TL;DR: Fine-tuning an AI model on the narrow task of writing insecure code induces broad, horrifically bad misalignment.

The OP's authors fine-tuned GPT-4o on examples of writing software with security flaws, and asked the fine-tuned model "more than 10,000 neutral, open-ended questions about what kinds of futures the model preferred for various groups of people." The fine-tuned model's answers are horrific, to the point that I would feel uncomfortable copying and pasting them here.

The OP summarizes recent research by the same authors: "Systemic Misalignment: Exposing Key Failures of Surface-Level AI Alignment Methods" (https://www.systemicmisalignment.com), which builds on previous research: "Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs" (https://www.emergent-misalignment.com).
by WorldMaker | 2025-06-27 15:36:49+00:00
Not really? `useSignal` is just another hook React needs as a replacement/augment for `useState` and maybe `useEffect`. Signals aren't that special. Arguably that's part of why a lot of people like Signals as a proposal.

(I'm still of the sort that thinks Signals are just worse Observables, so it's not a proposal I'm particularly thrilled about, but were it to be adopted Signals are easy to use in Observable contexts as well, they are just uglier half-implemented BehaviorSubjects, though maybe with a few extra lint rules to prefer Observable behaviors over Signal ones.)
by strogonoff | 2025-06-27 15:36:50+00:00
For a look at cases where psychologically vulnerable people evidently had no trouble engaging LLMs in sometimes really messed-up roleplays, see a recent article in Rolling Stone[0] and a QAA podcast episode discussing it[1]. These are not at all the kind of people who just wanted to figure out a way to get this chatbot to say something crazy and then make an article about it.

[0] https://www.rollingstone.com/culture/culture-features/ai-spi...

[1] https://podcasts.apple.com/us/podcast/qaa-podcast/id14282093...
by tessierashpool | 2025-06-27 15:36:56+00:00
even a swarm of satellites has risk factors. we treat space as if it were empty (it's in the name) but there's debris left over from previous missions. this stuff orbits at a very high velocity, so if an object greater than 10cm is projected to get within a couple kilometers of the ISS, they move the ISS out of the way. they did this in April and it happens about once a year.

the more satellites you put up there, the more it happens, and the greater the risk that the immediate orbital zone around Earth devolves into an impenetrable whirlwind of space trash, aka Kessler Syndrome.
by rgavuliak | 2025-06-27 15:37:14+00:00
Let's look at the economics, back when I was working in the paywall industry you had roughly 10% of users reading more than 5 articles on an average medium.

Let's say that you could get 2 % of these people to pay you $10 per month. With a readership of 1M that would mean you'd get (1000000 * 0.1 * 0.02) * 10 * 12 = $240k per year.

Now let's move that over to blendle, let's say that the average reader reads 1.2 articles per month (since most people only look at 1 article). Let's be super generous here - with a much larger conversion rate - 10 % of everyone buying 1 article per month month on average comes up to a comparable amount 100000 * 12 * 0.23 = $276k per month. And we're being generous here, remember - blendle abandoned this model so it almost certainly isn't equal to the metered model I used in my estimation above even if more users are willing to pay.

Now if you bring down the payment to whatever you're proposing you get to $27.6k or even 2.76k per YEAR. The napkin math is clear that this isn't feasible.

Interestingly enough you'd pay less as a "heavy reader" if you read 10 articles per month (which is a super small % of users on an average medium) with blendle (10 * 0.23 = $2.3) than with a subscription costing $10. But making the users count articles likely isn't great psychology as compared to buy and read everything you want. Which likely is perceived as a higher value offer.
by K0balt | 2025-06-27 15:37:19+00:00
Idk, I think that the motives of most companies are to maximize profits, and part of maximizing profits is minimizing risks.

Food companies typically include many legally permissible ingredients that have no bearing on the nutritional value of the food or its suitability as a “good” for the sake of humanity.

A great example is artificial sweeteners in non-diet beverages. Known to have deleterious effects on health, these sweeteners are used for the simple reason that they are much, much less expensive than sugar. They reduce taste quality, introduce poorly understood health factors, and do nothing to improve the quality of the beverage except make it more profitable to sell.

In many cases, it seems to me that brand risk is precisely the calculus offsetting cost reduction in the degradation of food quality from known, nutritious, safe ingredients toward synthetic and highly processed ingredients. Certainly if the calculation was based on some other more benevolent measure of quality, we wouldn’t be seeing as much plastic contamination and “fine until proven otherwise” additional ingredients.
by Anechoic | 2025-06-27 15:37:29+00:00
FYI, there's been tons of research of the effects of noise on sleep from different sources. There have been studies ranging from in-lab experiments, to in-home experiments with artificial and natural sources. If you're interested, some resources:

Institute of Noise Control Engineering Digital library: https://www.inceusa.org/publications/ince-digital-library/ (papers older than 10 years old are available free)

Federal Interagency Committee on Aviation Noise: https://fican1.wordpress.com/findings/ (focuses on aviation noise)

Acoustical Society of America Lay Language Papers: https://acoustics.org/lay-language-papers/ (search for "sleep" -- the ASA has a full library of more detailed research but the documents cost money unless you're an ASA member)

World Health Organization guidelines on noise - https://iris.who.int/bitstream/handle/10665/343936/WHO-EURO-... (doesn't get into specifics on research on sleep, but does refer recommended limits to sleep disturbance)

NIH has done a bunch of research on sleep disturbance from noise, you would need to search through their library

edit (one more): TRB/National Academies https://nap.nationalacademies.org/search/?rpp=20&ft=1&term=n...

A lot of the stuff that posters are asking for have in fact been done, it just takes some digging through the research sites to find them. There's a lot of variation in the data, the hypothesis is that sleep sensitivity varies a lot based on various physical factors (age being a big one).
by dcow | 2025-06-27 15:38:09+00:00
Yes I agree the dual income expectation is super backwards when it comes to raising a family. First your income isn't enough to have a family unless you’re earning in the top 5%. Second, as you point out, managing a home and a property takes time and effort, much more than just a few hours a week. Add kids in the mix and unless you have full time childcare it’s not feasible. You pretty much have to sacrifice one of the two incomes paying for labor you can otherwise do yourself. I understand the social reason we moved toward dual income but there’s still a lot to iron out. It’s a whole lot easier to have a family if society could figure out a way to support the homemaker during childrearing years—some of us actually want to raise our own kids. And we need to figure out how to make life accessible to single income situations. Inevitably since dual income has become an expectation the markets have adjusted to that reality which leaves single income households short.
by evanelias | 2025-06-27 15:38:12+00:00
> Regional Rail runs a little on the expensive side. Round trip from Philly back to the suburbs is $17.50.

Are you paying the surcharge to buy a ticket on board in one of those directions? Normally if you already have tickets, round trip to zone 4 (outer suburbs) is $15 on weekdays or $14 on weekends.

That's quite cheap in my opinion, considering zone 4 goes pretty far. For example Doylestown is 25 miles from Center City Philly as the crow flies.

Compare that to an equivalent trip in northern Jersey on NJ Transit rail: Morristown NJ is about 25 miles from Midtown Manhattan, and a round-trip fare is currently $32.20. And after next week's fare hike, it will be $33.10.
by Magi604 | 2025-06-27 15:38:34+00:00
My apartment is along a corridor that is frequented by emergency vehicles, so sirens are frequent during normal sleep hours, and my apartment windows face the sunrise. I've adopted a number of things over the years to combat all of this:

- Blackout curtains

- Earplugs

- White noise maker (just an air purifier but it does the same thing)

- 3mg Melatonin
by charlysl | 2025-06-27 15:38:34+00:00
In stackoverflow's survey [1] it ranks below the 40th position in popularity, near the bottom and below the likes of Prolog, Apex, MicroPython, and just above Cobol.

If that isn't obscure, nevermind building all your tech around it like the article says, then I guess that nothing is.

Where does Linux rank in OSs?

[1] https://survey.stackoverflow.co/2024/technology
by BryantD | 2025-06-27 15:38:44+00:00
It's incredibly easy to demonize the outgroup. More so if the outgroup is easily identifiable visually. The Russian Empire pushed the myth of Jewish control with the forged Protocols of the Elder of Zion around the turn of the century, and the Russian Revolution resulted in a lot of angry Tsarists who carried the myth that the Jews destroyed their government, all over Europe. Undoubtedly didn't help that Trotsky was Jewish.

Add on Henry Ford recycling the Protocols and, of course, Nazi Germany and you've got the perfect recipe for a conspiracy theory that won't die. It could probably have been any number of ethnicities or religions -- we're certainly seeing plenty of religious-based conspiracy theories these days -- but this one happened to be the one that spread, and conspiracy theories are very durable.
by alganet | 2025-06-27 15:38:51+00:00
You can see frames in action on the POSIX spec:

https://pubs.opengroup.org/onlinepubs/9799919799/

They can navigate targeting any other frame. For example, clicking "System Interfaces" updates the bottom-left navigation menu, while keeping the state of the main document frame.

It's quite simple, just uses the `target` attribute (target=blank remains popular as a vestigial limb of this whole approach).

This also worked with multiple windows (yes, there were multi-window websites that could present interactions that handled multiple windows).

The popular iframe is sort of salvaged from frame tech, it is still used extensively and not deprecatred.
Show HN: AppifyText – AI text-to-app tool that builds internal tools
by eugeniox | 2025-06-27 15:39:23+00:00
Hi HN,

on Feb 2023 I shared AppifyText, an early experiment in AI-powered text-to-app generation: you type what app you want, and it builds it automatically.

That first version was very much a proof of concept. Today I’m sharing v2, which is a significant step forward in terms of output quality.

What’s new in v2:

1) Better prompt comprehension – It follows complex instructions more accurately.

2) Richer app content – Generates structured apps with more details (e.g. master-detail relationships are auto-detected).

3) User roles understanding – e.g. “Sales reps and customers can access the app” creates user groups with sample users and permissions.

4) Public-facing views – Great for exposing parts of your app (like a catalog) to anonymous users or embedding into a website, and it designs the layout based on your prompt

5) Automatic dashboards – Just say “Create a dashboard showing number of orders per product,” and it generates proper visual charts.

S6) marter UI design instructions – understands prompts like “use a dark theme” or “shades of gray as main colors.”

AppifyText builds apps on top of DaDaBIK, a mature no-code/low-code platform. This means you can export the generated app and fully tweak it using no-code features, while still adding custom PHP and JavaScript code if needed.

Because it uses a no-code engine behind the scenes, the AI output is constrained within a defined, stable environment, resulting in:

1) Lower risk of hallucinated logic

2) More stable and secure app structures

Yes, there’s a trade-off: you don’t have the same freedom or open-ended creativity as with raw AI tools (“vibe coding”) but, when it comes to Internal tools, you often don't need so much freedom. IMHO for internal tools – CRMs, dashboards, admin panels – structure is often a strength, not a limitation.

I’ve recorded a full 4-hour video showing the build of a complete Library Management System from scratch, covering backend, frontend, deployment, and adding custom PHP/JS where needed:

https://youtu.be/JxmuWePr2JQ

Thanks for reading, and for any feedback, thoughts or critiques.
by meindnoch | 2025-06-27 15:39:31+00:00
Show me any of the popular image conversion tools (avifenc, imagemagick, photoshop, ffmpeg, whatever...) that does the identity matrix hack when asking for lossless AVIF. None of them do it. Many people have been burned by "lossless" AVIF, where they converted their images in the mistaken belief that the result will be bit-identical to the original, only to find out that this wasn't the case, after they've deleted the original files.
by supertrope | 2025-06-27 15:39:44+00:00
Land. Restrictive zoning has choked off supply of lots in areas with economic opportunity. Job growth and population growth far exceed new housing supply. Property taxes and school financing really incentivizes local government to approve commercial development (taxes, no students) and slow roll residential construction (add students). Proposition 13 supercharges this dynamic.

Labor. The housing boom that ended in 2007 was an unsustainable bubble. The crash forced many workers to permanently leave the residential construction industry. Stricter immigration enforcement and Baby Boomer retirements decreases labor supply.

Capital. Zero interest rate policy meant the same monthly mortgage payment could be a bid on more expensive houses. Tech workers collect a paycheck from companies that benefited from ZIRP. AirBNB allowed for arbitraging the difference between hotel zoning and residential zoning.