MurphyA/hacker-news huggingface dataset:
by pornel | 2025-07-10 12:45:56+00:00
I don't think memory mapping does anything to prevent false sharing. All threads still get the same data at the same address. You may get page alignment for the file, but the free-form data in the file still crosses page boundaries and cache lines.

Also you don't get contention when you don't write to the memory.

The speedup may be from just starting the work before the whole file is loaded, allowing the OS to prefetch the rest in parallel.

You probably would get the same result if you loaded the file in smaller chunks.
by giingyui | 2025-07-10 12:46:19+00:00
And I’m saying I disagree. I don’t need to associate with someone else’s political beliefs to sit with them. Unless you go around asking people if they are <thing you don’t like> before you share a meal. I doubt you do. And if you found out accidentally that you find their beliefs unsavoury (say, they like abortion whilst you don’t, whatever) would you not sit with them? I believe this to be an apt comparison because abortion has killed orders of magnitude more humans than nazis ever did.
by Larrikin | 2025-07-10 12:46:49+00:00
I think you're seriously being so obtuse about the issue that it calls into question whether you're being honest about your belief with issues with Matter. Zigbee had the same requirements for branding, but they were small enough for Chinese makers to ignore and no big companies cared enough enforce. ZWave is generally considered more reliable and they actually enforced their requirements.

I do not want another crappy USB C type experience to satisfy the zero dollar hobbyist. We'll just end up with zero dollar garbage from large manufacturers named Xhflk.
by alex_duf | 2025-07-10 12:46:57+00:00
I didn't mention any shrinking. I just said we'd passed the CO2 per capita peak.

https://ourworldindata.org/grapher/co-emissions-per-capita?c...

This means for any human being we are emitting less carbon than we use to. It's not a big win but I'll take any good trend at the moment.
by sonthonax | 2025-07-10 12:46:59+00:00
Yeah, parent comment is deeply unserious.

Imagine you're writing trading software, you have an algo go haywire and it machine guns the whole order book, and then you refuse to put a "max order size" outside of the algo to stop it from happening again because you can't figure out why it happened in the first place.

Try telling a regulator or your boss that was your reasoning.
by mieubrisse | 2025-07-10 12:47:40+00:00
Good question! This is complementary, not competitive, to the built-in fzf shortcuts. I use both cmdk and built-in fzf shortcuts in my day-to-day.

The concrete value-adds of cmdk (what fzf doesn't do out of the box):

1. Smart previews. You have to write the fzf preview command to preview text files, directories, images, PDFs, etc. cmdk gives you this out of the box (see https://github.com/mieubrisse/cmdk/blob/main/preview.sh ).

2. Choose the command for you. If you rely on the fzf Ctrl-T shortcut, you have to type the `cd`, the `vim`, the `open`, etc. I find that most of the time the command is predictable based on the filetype, so cmdk allows you to skip this (see https://github.com/mieubrisse/cmdk/blob/9d742112dab0475d7420... ). When cmdk doesn't have a command for the filetype though, I supplement with fzf's Ctrl-T.

3. Be smart about which files you're searching to be performant. E.g. very likely users aren't going to jump to files in the "~/Library/Application Support", or certain system directories under "/", so give users the option to go to the parent directory without crawling the subdirectories (see https://github.com/mieubrisse/cmdk/blob/main/list-files.sh ).
by ngcc_hk | 2025-07-10 12:47:42+00:00
Sadly cannot reach asakura.io pointed by the app.

Obviously resources are related to ngn/k like

- https://razetime.github.io/ngn-k-tutorial/ and (bqn n c) like

- https://mlochbaum.github.io/BQN/

This is very basic but an alternative to those who use j to try apl.
by oulipo | 2025-07-10 12:47:44+00:00
After having so many issues with .env files I just now do a simple .env at the root of the repo with just `ENV=prod/staging/dev` and then everything is generated (using 1password, etc) from a `config.ts` file in my `pkgs/config` from the monorepo

the file is basically a big

``` const config = { http: { server_url: ENV === "prod" ? "https://myserver.com" : "http://localhost:3000" ... } } ```

and this lets me type variables, add comments, many niceties, etc
by smokel | 2025-07-10 12:48:18+00:00
This is something where modern chatbots will probably be very helpful. From the top of my head:

1. Validate input, expect all external input (both human and machine generated) to be completely bogus.

2. Fail fast and early. If something seems off, crash straight away, and do not expect things to magically repair itself at a later stage.

3. Use pre- and post-conditions where appropriate.

I'm not sure about the exact definitions of defensive programming, but static type checking, and possibly unit testing, might also be part of it.
by morngn | 2025-07-10 12:48:56+00:00
“Your choice of language is irrelevant if your goal is to maintain software.”

It may not be the most important choice, but it’s not irrelevant. And whether the staff he fired had useful institutional knowledge is an open question. Didn’t he fire a lot of non-technical, recent hires and people likely to leave eventually due to his muskism? I’m not convinced that his initial firings are the wpest move he made. Sadly, being overconfident, he assumed the same model could be applied to government, a mistake that will take a long time to fix if it is even fixable given America’s overall trajectory and the fate of the dollar.
by kekebo | 2025-07-10 12:49:04+00:00
I just switched away from it again after it got delisted from nixpkgs due to lack of development[0][1]

[0] https://search.nixos.org/packages?channel=25.05&from=0&size=...

[1] Should be this one https://github.com/NixOS/nixpkgs/pull/351205
by yalogin | 2025-07-10 12:49:16+00:00
Like I have been saying over the last few months, OpenAI realize, to their credit, llm as a service doesn’t have a future and so they are getting into vertical integration more and more. The genetic browsing is a key aspect of the whole story but they want to get into more. The browser release seems odd though. It feels to me they rearchitected the browser to fit into the genetic browsing solution and they are just taking advantage of that and releasing it as a product. It could become the default standard for such solutions but it sure it will have legs beyond that. This is clearly a play to get more data from their users and improve their “search” product which is the chatgpt app.
by incrudible | 2025-07-10 12:49:47+00:00
Words derive their meaning from the context in which they are (not) used, which is not fixed and often changes over time.

Few people actually use the word RESTful anymore, they talk about REST APIs, and what they mean is almost certainly very far from what Roy had in mind decades ago.

People generally do not refer to all smartphones as iPhones, but if they did, that would literally change the meaning of the word. Examples: Zipper, cellophane, escalator… all specific brands that became ordinary words.
Show HN: I built an app to turn my kids' questions into podcasts
by lielvilla | 2025-07-10 12:50:12+00:00
My kids are endlessly curious, always asking questions like “Why do stars twinkle?” or “How do volcanoes erupt?” I love their curiosity, but I found myself constantly searching for good ways to answer them, and without adding more screen time to their day.

Podcasts are great, but kids’ podcasts are often generic and don’t cover their specific questions. I wanted something more personal and engaging.

So I built WonderPods - an app that creates personalized podcast episodes to answer whatever they’re curious about, even saying their name in the story. It turns their curiosity into fun, screen-free learning moments, whether at bedtime or in the car.

We just launched, and there’s a free trial. I’d love your feedback on the idea, the experience, and any thoughts you have on making it better.

*EDIT* Here’s an example episode for 6-year-old Dana, all about telescopes: https://wonderpods.app/listen/ca56e8be-bf58-4323-ad0f-f3bf67... In the app, you can also share episodes with people who aren’t users, making it super easy to spread the fun.
by dangus | 2025-07-10 12:50:41+00:00
A lot of comments here are saying that competing on price is a losing proposition, but I think they’re forgetting that this is a solo project and not a 500 person company that’s trying to be as profitable as possible to be attractive for acquisition like Typeform. The bar for success for a solo project is far lower.

Typeform has to blow money on a lot of overhead that this author doesn’t have.

And let’s not just ignore a whole bunch of products that ousted market leaders specifically because they competed on price/value. Examples include: Google Docs, Mailchimp, a gigantic list of Adobe competitors, Unity, Backblaze, Robinhood, and the list goes on.
by stego-tech | 2025-07-10 12:51:07+00:00
As late as the early 2000s! I was still setting up IPX for some older DOS/Win95 games to play over the LAN as recently as 2008, and my Novell class (last one offered at my college, around 2007) cited several large local companies who were still employing that technique as a “security through obscurity” thing, though the professor was mainly just citing use cases for IPX rather than promoting new implementations of it.
by alex_duf | 2025-07-10 12:51:14+00:00
>I highly doubt that we will have global negative emissions (CO2 capturing) within the next decades

Just to clarify what I wrote, I also highly doubt we'll get it at scale in the near future. We desperately need it though, as well as any other measure that will bend the trends in the right direction.

This may not be the right place for this, but I'm honestly getting very anxious about our climate. Some of the data such as the temperature anomaly is showing an exponential trend. See the scariest graph I've ever seen here: https://www.nytimes.com/2025/06/26/climate/climate-heat-inte...
by jer2209 | 2025-07-10 12:51:26+00:00
Its interesting you give Namibia as an example. Every major oil company has exploration projects there today. It is clearly part of the future strategy for the country. When I visited for vacation not too long ago, I remember the O&G industry being very much visible from the shore in Walvis Bay.

Although, given that the majority of the country is uninhabited. I imagine, it is an ideal place for solar.

Amazing place, highly recommend to visit.
by Rendello | 2025-07-10 12:51:42+00:00
I'm from Northern Ontario and me and my buddy went to a poutine place in Toronto. He asked for a poutine (naturally), and the worker didn't understand him. Southern Ontario says "poo-teen" /pu.tin/, but we say "p'tin" /pə.tɪn/ where I'm from. The original French way is [pu.t͡sɪn].
by baby-yoda | 2025-07-10 12:52:18+00:00
> There is similarly little discussion on the origins of peer review and impact factors and journals, it's just taken as the obvious hallmark and basis of good science.

Pioneered and exploited by Robert Maxwell (father of the infamous Ghislaine). Good summary below; was an all around eye-opening revelation for me.

https://thetaper.library.virginia.edu/big%20deal/2019/04/26/...
by josephg | 2025-07-10 12:52:32+00:00
> Extensions and VPNs have been doing this for years, it's not a secret.

Its not a secret in the industry, but I bet money that most of your users have no idea this is happening. They almost certainly wouldn't install those web extensions if this information was widely known.

As a rule of thumb, if you need to do something in secret to get away with it, its probably not ethical.
by mettamage | 2025-07-10 12:53:06+00:00
Why stop at the digital if you can go further with biological? I think computer viruses will make the jump at some point and become part of an actual virus.

Cue Ghost in the Shell in 3... 2... 1...

My prediction is that at some point in time there will be an actual living Shiba Inu with some code of Doge in its actual DNA.
Show HN: SimRepo – GitHub extension showing similar repositories in the sidebar
by Mubelotix | 2025-07-10 12:53:34+00:00
I built SimRepo, a browser extension that adds a “Similar Repositories” panel directly into GitHub repo pages (for repos with 150+ stars). It's useful for discovering related projects while browsing. It's based on a vectorized model trained on GitHub star data.

Repo: https://github.com/Mubelotix/SimRepo Chrome/Firefox support, no tracking, fully open source.

Would love feedback on the recommendation quality or UX!
by doodlebugging | 2025-07-10 12:54:09+00:00
It's just a random decaffeinated thought here this morning. Considering that it must be true that even a blind squirrel gets a nut once in a while it is also likely to be true that a professor at random can select the exact 10 problems that were solved correctly.

There's a difference between something with a probability of being true and another thing that is proven to be true. There are no doubts remaining after the proof whereas the probability always leaves wiggle room even if that wiggle room is a pretty tight space.
by librasteve | 2025-07-10 12:55:40+00:00
thought it would be fun to write this in raku

grammar Arithmetic { rule TOP { ^ <expr> $ } rule expr { <term>+ % ['+' | '-'] } rule term { <value> } rule value { <number> | <parens> } rule number { \d+ } rule parens { '(' <expr> ')' } }
by thaumasiotes | 2025-07-10 12:56:38+00:00
> But it is almost impossible to fix a bug you can't reproduce and have no clue why it might be happening.

No, not at all. It's very easy.

This bug involves taking an inappropriate action under corrupted conditions. You don't need to know how those conditions arose. All you have to do is check whether they currently obtain, and - if so - refrain from taking the inappropriate action.

For this bug, that looks like this:

1. When we're executing a "move"...

2. Before deleting the original messages...

3. Check whether the copies are identical to the originals...

4. And if not, delete the copies instead of the originals.

At this point, the bug can't occur. The "root cause" bug, where your buggy logic says that you copied a bunch of messages even though you didn't, can still occur, but it can no longer delete any messages.
by rsynnott | 2025-07-10 12:57:24+00:00
> "Nobody owns homes any more" is an exaggeration of course, but things are not alright in the housing market, in part because private corporations are buying up quite a large percentage of the housing stock to rent. I think in Ireland it's about half.

This is a _really_ popular meme, but it's not true. About 50% of new homes are bought by owner-occupiers, about 25% by local authorities and approved housing bodies (https://www.citizensinformation.ie/en/housing/local-authorit...), 10% pension funds and institutions (these are the 'private corporations' you refer to), and the remainder are small landlords, holiday homes etc etc.

I think sometimes people see "50% of new homes are bought by owner occupiers" and read it to mean "and thus the other 50% are bought by evil corporations" (people also tend to forget about the 'new' bit; second-hand homes are much more likely to be bought by owner-occupiers, as REITs and pension funds largely don't want to touch them, and nor do approved housing bodies; local authorities do sometimes buy individual second-hand homes, usually from private landlords), but really the bulk of the remainder is social housing.

The ridiculous rents are driven by the fact that we're just not building enough homes. Not that we're not building a lot; we have one of the highest per capital rates of homebuilding in the OECD, but there was a period of 7 or 8 years where we built almost nothing, and that's a really hard gap to bridge.
by scubakid | 2025-07-10 12:57:42+00:00
Yep, I wrote the post!

I'd say we reached PMF a couple years ago the way I define it (solid customer acquisition from organic sources & word-of-mouth, strong retention, sustainable growth).

I was just curious if others might look at it differently, since I know definitions can vary. And like you said, some people might look at this update and dismiss it as still really small-time.
by virgilp | 2025-07-10 12:58:24+00:00
TBH I didn't communicate that clearly - my point was not "Redis in particular", but "whatever you already have at hand, for this usecase". Could also be Postgres or another SQL server.

1 etcd pod doesn't give you "no SPOF", you need 3, and then you need them on multiple VMs (or physical machines if you're not on the cloud/not in k8s), and then the cluster needs to be multi-AZ, and if you're really serious about the "no spof" that may mean geo-redundancy too... come on, just the deployment costs alone are significant.
by __jonas | 2025-07-10 12:58:30+00:00
I agree that loading environment variables should not be the responsibility of the process which consumes them, not sure what the benefit of renaming .env to .envrc is.

I use mise to load environment variables from .env, since I also use it to manage tool versions. When I don't have that available I just do

set -a; source .env; set +a

direnv is definitely another good option.
by chkaloon | 2025-07-10 12:58:39+00:00
The article mentions alcohol consumption by kids, but I think it doesn't emphasize enough the effect of efforts like Mothers Against Drunk Driving and strict DUI laws. Back in the 70s and 80s having a few drinks at a party, bar or friend's house was normal and part of the social lubrication. Even drinks during lunch was common where I worked. No more. You either need to have a designated driver, find a taxi (which doesn't exist in most rural areas), or just not drink. The first two are a pain, so people opt for the latter and that social inhibition hangs around, and folks go home early. Have to get up for work in the morning, you know.
by throw-the-towel | 2025-07-10 12:58:48+00:00
And I don't get storing your configuration in env variables, period. They're not discoverable at all, there's no namespacing nor any other isolation, there's no structure to them, and if you want a list you'll have to come up with an ad-hoc encoding. Environment variables are a mess, you'd be better off with a config file.
by pornel | 2025-07-10 12:59:12+00:00
There's a difficult balance between letting the model simply memorize inputs, and forcing it to figure out a generalisations.

When a model is "lossy" and can't reproduce the data by copying, it's forced to come up with rules to synthesise the answers instead, and this is usually the "intelligent" behavior we want. It should be forced to learn how multiplication works instead of storing every combination of numbers as a fact.

Compression is related to intelligence: https://en.wikipedia.org/wiki/Kolmogorov_complexity
by em-bee | 2025-07-10 12:59:34+00:00
Instead of using open solutions, big business then copies the open solution

i highly doubt that. sure technically they can copy it, but they could not guarantee 100% compatibility. yes, the model would work, but at least they would compete on somewhat equal footing.

what happened to redis, elastic search, mongodb etc was way worse. people switched to amazon and others because they got the original and did not have to risk issues when switching. further more, they also didn't have to risk lock in. (or at least had the impression of not risking lock-in)

in other words offering a functional copy vs taking the original (without paying for it) are two very different value propositions.

but amazon could have made the same offers using GPL software, or even AGPL. yes, it would have cost them more, but not as much more as developing their own. so the fact that they could afford to develop their own clone is not an argument for the original developer to just allow them to use their software without restrictions.

"you should just give this to me because i could afford to just clone it and put you out of business." what kind of choice is that?

small businesses can use GPL licensed software just as they can use permissible licensed software. if using GPL software hurts your business model more than spending the money to develop your own well then maybe it's the wrong model.

i'd argue that using GPL software can jumpstart your business faster than developing your own, and once you make enough money you can develop your own like everyone else who doesn't want to use GPL software. permissible licensed software doesn't provide that much of a jump-start. it also makes it easier for your competition.

and most importantly, it all happens at the expense of the original developer. why should they accommodate that?
by Rendello | 2025-07-10 13:00:10+00:00
A good test would be "ice eyes garage sorry resources".

For me it would be something like /ʌɪs aɪz ɡəˈɹæʒ ˈsɔːɹi ˌɹiˈzɔɹsɪz/.

https://en.wikipedia.org/wiki/Standard_Canadian_English
Ask HN: Feedback on AI-powered company report tool for retail investors?
by MoneyIQ | 2025-07-10 13:00:11+00:00
I’ve launched MoneyIQ, a platform for retail investors. One of the tools is a Company Report Generator that produces a plain-English, investment-grade report on any public company, including 16 quarters of data, key ratios, trend charts, and AI-generated highlights.

You just enter a company name or ticker and let the report run.

You get 3 reports free without sign-up. I’ll happily offer more credits to anyone testing and sharing feedback.

Would love thoughts from HN on usability, usefulness, or areas to improve.

Thanks! Steve
by jmclnx | 2025-07-10 13:00:25+00:00
I think it depends on what you do/did. Things I wrote is using the ISC

https://en.wikipedia.org/wiki/ISC_license

But anyone and their brother can develop those old utilities I created decades ago and enhanced over the years.

But if you create something very complex and provides a real benefit, then I can agree with this point. You may be better off to using the copyleft.

In anycase, you need to really need to think about the License you choose, not just use one because it is trendy now.
by ethbr1 | 2025-07-10 13:01:06+00:00
>>> [you] Sometimes [routing different data to agents with more narrowly defined scopes and access rights] will work, but then it will work by relying on a sufficiently primitive interpreter to separate the data streams before it reaches the smart ones.

>> [me] This is and always will be the solution.

> [you] It's the solution when it doesn't prevent meeting the goal.

I may have over-buried the antecedent, there.

The point being that clamping the possibility space of input fields upstream of an LLM, via more primitive and deterministic evaluation, is an effective way to also clamp LLM behavior/outputs.
by PaulHoule | 2025-07-10 13:01:32+00:00
But where is the value?

If it could write like George Will or Thomas Sowell or Fred Hayek or even William Loeb that would be one thing. But it hears dog whistles and barks which makes it a dog. Except a real dog is soft and has a warm breath, knows your scent, is genuinely happy when you come home and will take a chomp out of the leg of anyone who invades your home at night.

We are also getting this kind of discussion

https://news.ycombinator.com/item?id=44502981

where Grok exhibited the kind of behavior that puts "degenerate" in "degenerate behavior". Why do people expect anything more? Ten years ago you could be a conservative with a conscience -- now if you are you start The Bulwark.
by biofox | 2025-07-10 13:02:02+00:00
> [Maxwell] entertained guests at parties with booze, cigars and sailboat trips. Scientists had never seen anything like him.

> “We would get dinner and fine wine, and at the end he would present us a cheque – a few thousand pounds for the society. It was more money than us poor scientists had ever seen.”

Similar to what Jeffrey Epstein did.