MurphyA/hacker-news huggingface dataset:
by fc417fc802 | 2025-08-05 05:46:29+00:00
> the pattern is to resize() and shrink_to_fit(),

As someone who primarily writes C++ I would not expect that to work. I mean it's great if it does I guess (I don't really see the point?) but that would honestly surprise me.

I would _always_ expect to use >= for capacity comparisons and I don't understand what the downside would be. The entire point of these data structures is that they manage the memory for you. If you need precise control over memory layout then these are the wrong tools for the job.
by joe_the_user | 2025-08-05 05:48:10+00:00
I think one undeniable positive outcome has been the like collective introspection AI has sparked among so many people.

Has it sparked that? I'm doubtful but I'd be very interested if anyone has a references about such introspection.

I grew up reading Douglas Hofstadter back in the 70s and what I appreciated with his ideas was using AI to illuminate what is human. His wave of AI failed, of course. But still, it's disheartening how little of that kind of inquiry seems missing from the current wave of AI.
by ifwinterco | 2025-08-05 05:48:49+00:00
Java applets were never ubiquitous the same was JS is on the web though - there's literally a JS environment always available on every page unless the user explicitly disables it, which very few people do.

JS is here to stay as the main scripting language for the web which means there probably will be a place for node as a back end scripting language. A lot of back ends are relatively simple CRUD API stuff where using node is completely feasible and there are real benefits to being able to share type definitions etc across front end and back end
by Swizec | 2025-08-05 05:49:17+00:00
> Generally, this holds true today for most HCOL and MCOL areas. It is still a good idea to buy in a few LCOL areas

We have friends who rent to live in SF and buy in LCOL as investment properties. Also seems to work well as a strategy.

I think of primary residence as a consumption expense. It's not really an investment because you can't cash out[1]. So unless you put value on the act of owning itself, it's best to do whatever gives you a lower monthly. In our case that's renting.

[1] yes I know about HELOCs. I'd rather get margin loans on index funds than risk getting kicked out of my home.
by Eduard | 2025-08-05 05:49:52+00:00
It took me two decades to finally decide to memorize "... | awk '{print $1}'" as a command pipeline idiom for filtering stdout for the first column (... "awk '{print $2}'" for the second column, and so on).

All it required from me was to intentionally and manually type it down by hand instead of copy-pasting, on two purposeful occasions (within two minutes). Since then it's successfully saved in my brain.
by yawaramin | 2025-08-05 05:50:03+00:00
Looking at the solution you ended up with, I feel like it's actually fairly reasonable in terms of implementation complexity compared to the feature it is delivering. I have a hard time believing that a pure SPA approach would be simpler to implement. Certainly a SPA would deliver a much more bloated JS payload to the client, which really doesn't seem like a good tradeoff for basically filling out a form and uploading a couple of files.
by imoverclocked | 2025-08-05 05:51:15+00:00
For case 1, there is nat64. IPv6-only clients can use a special dns (dns64) to get access to the IPv4-only hosts while being able to talk directly to IPv6 hosts. It doesn't even require special support on the client.

For case 2, a dual-stack reverse-proxy will do the job and can talk to the IPv6-only servers without issue.
by marcus_holmes | 2025-08-05 05:52:35+00:00
> imagine how radically math class must have changed when calculators became widely affordable

I was there. We had been given slide rules, and a decent chunk of my 11-yr-old maths classes were devoted to teaching us how to use them. Calculators were banned because they "didn't teach us anything" (but somehow slide rules did? It didn't make any sense at the time either).

Over the course of the next few years, calculators became more acceptable, and by my 18-yr-old Maths A-level class, we were being advised on which scientific calculators to buy.

It's an interesting analogy, as TFA says.
by nerdsniper | 2025-08-05 05:53:39+00:00
Germany is pretty strict about "light pollution". You can have lights at night, but they can't spill onto other people's property or shine up into the sky. Personally I think this should be the case in USA as well - you're welcome to light your own lawn, but I should be the decider of whether my own is lit or not. Let alone security lights that shine directly into neighbors' windows...
Show HN: LinkJolt – SaaS affiliate tracking with 0% fees
by frostydog111 | 2025-08-05 05:53:56+00:00
I built LinkJolt after getting fed up with generic affiliate platforms that: - charge a cut of every commission - take hours to bolt onto Stripe - easily break and are clunky - give no real-time data - hold payouts for days (or weeks)

LinkJolt is built for SaaS: - 0 % transaction fees for every referral - real-time, recurring-aware tracking - instant Stripe payouts - unlimited campaigns and affiliates - built-in fraud detection and custom commissions

If you want to check it out there's a free trial and also 50 % off your first three months with code LINKJOLT50 if you continue.

Would love feedback on anything that still feels clunky!
by vouaobrasil | 2025-08-05 05:54:49+00:00
> When companies like Cloudflare mischaracterize user-driven AI assistants as malicious bots, they're arguing that any automated tool serving users should be suspect

Strawmen. They aren't arguing that any automated tool should be suspect. They are arguing that an automated tool with sufficient computing power should be suspect. By Perplexity's reasoning, I should be able to set up a huge server farm and hit any website with 1,000,000 requests per second because 1 request is not seen as harmful. In this case, of course, the danger with AI is not a DOS attack but an attack against the way the internet is structured and the way website are supposed to work.

> This overblocking hurts everyone. Consider someone using AI to research medical conditions,

Of course you will put medical conditions in there: appeal to the hypothetical person with a medical problem, a rather contemptible and revolting argument.

> This undermines user choice

What happens to user choice when website designers stop making websites or writing for websites because the lack of direct interaction makes it no longer worthwile?

> An AI assistant works just like a human assistant.

That's like saying a Ferarri works like someone walking. Yes, they go from A to B, but the Ferarri can go 400km down a highway much faster than a human. So, no, it has fundamental speed and power differences that change the way the ecosystem works, and you can't ignore the ecosystem.

> This controversy reveals that Cloudflare's systems are fundamentally inadequate for distinguishing between legitimate AI assistants and actual threats.

As a website designer and writer, I consider all AI assistants to be actual threats, along with the entirety of Perplexity and all AI companies. And I'm not the only one: many content creators feel the same and hope your AI assistants are neutralized with as much extreme prejudice as possible.
by bubblyworld | 2025-08-05 05:55:02+00:00
Me neither, for multiple reasons, especially if you are bundling your frontend. Very easy to accidentally include browser-incompatible code, becomes a bit of a cat and mouse game.

On types, I think the real value proposition is having a single source of truth for all domain types but because there's a serialisation layer in the way (http) it's rarely that simple. I've fallen back to typing my frontend explicitly where I need to, way simpler and not that much work.

(basically as soon as you have any kind of context-specific serialisation, maybe excluding or transforming a field, maybe you have "populated" options in your API for relations, etc - you end up writing type mapping code between the BE and FE that tends to become brittle fast)
by motorest | 2025-08-05 05:55:02+00:00
> Doing the real math is the trick of the trade. The math for owning has been made so that it looks like a good deal while in reality it is not at all. Most people will literally compare mortgage to their rent, or "I sold my house I bought for 500k for 1M$, therefore I made 500k$".

Can you try to offer some explanation for your reasoning?

I mean, for blue collar or even white collar workers, lower monthly payments for a mortgage does increase disposable income. When you eventually pay off your mortgage your expenses drop to zero.

> This calculator get most things right.

I think you need to educate yourself. There are rent vs buy calculators that allow you to do parametric tests and eventually arrive at the rather obvious conclusion that renting is marginally advantageous only in short time windows (up to around <5years) whereas buying is advantageous beyond that point.
by NalNezumi | 2025-08-05 05:56:30+00:00
Another positive is that you're morally clean.

"A place to live is an financial investment" is a perverse idea to begin with. You won't be a passive participant of one ill in the society. HN is quick to debate often about how housing is one core issue in many socially bad phenomenas but look at that, when you question the fundamental premise causing that everyone comes out trying to dismiss that. It's easy to lament "societal" issue when it's some other group (society) but it's all justifications that comes out when money is involved and it's pointed out that it's the individual actions that causes it (yours).

Which is kinda why we are at the point we are. "everyone needs a house right?!?" and someone realized (artificial) scarcity is a way to milk money out of that. Everyone bought it. Now every middle class person and their bank are in the game. "housing always increase in price" is a goal that is turned to a belief/principle. It was made a social issue by all the people who bought in to it

Go to a place where housing is not considered a financial investment but a consumable,(such as Tokyo) and you'll realize the mode is not as bad or an unalienable truth as many think. It's rather a symptom of a inefficient use of wealth, as a society.
by nurettin | 2025-08-05 05:58:25+00:00
Agreed! As an 8th grader I felt very smart finding the minimum number of steps required to solve this binary search using logarithms. It is also a great intro to algorithmic complexity.

Path finding in a 16x16 grid is also another great demonstration of BFS and DFS.

Using derivatives to make a targeting system and animating the result is another cool mathematical experiment.
by hansvm | 2025-08-05 05:58:57+00:00
There are two huge problems with that.

(1) Google "strongly encourages"/tricks you to create a passkey even when you don't know what that is or want one and doesn't explain the downsides like having to suddenly pay for support.

(2) The status quo is that I can create any password I dang well please for any website, but the new world order is that Google gets to snoop on my affairs and intervene on the website's behalf, and since nobody will implement anything more than the bare minimum I'm going to be beholden to Google for normal day-to-day activities where I wasn't before. Maybe I could buy an iPhone or three and be beholden to Apple and/or Google. Either way, it's not a good world.

Yes, it's perfectly reasonable absent any other facts that if Google owns my passkey then they're the people I should pay for support. What's happening instead though is:

- They're lobbying websites, apps, and developers, trying to push passkeys as more secure and the future of the web.

- All the "getting started" guides only have enough details to actually implement Google and maybe one or two other big actors as providers.

- When people have the audacity to sign in with their usernames and passwords, Google interrupts their flow to tell them about how great passkeys are and how it's critical they make one. They don't mention a thing about how irreversible the process is or how it has zero benefit to the user. The UI is slow and janky, so the accept button is likely to accidentally appear over other things the user planned to click. 100k software engineers somehow can't figure out how to debounce on redraw, so that misclick will permanently infect that person's account.

And so on. I don't want to use Google for passkeys. At all. The near future doesn't, however, look like one which is amenable to me owning my own signing credentials. I won't have a choice in the matter. My choices are to pay Google (and/or some other megacorp with a direct, by order of the courts nondisclosed, line to DOGE and friends) or GTFO.

In the early 1900s this had names like "protection money." More recently we've seen terms like "regulatory capture." Whatever the exact nomenclature, it's terrible. Google is force-feeding a bad solution into the ecosystem and using their clout to ensure that they own a big, steaming piece of the bullshit pie we're cooking.

That's the issue. If I buy a support contract from you and complain that GGM is the worst acronym in the world then that's one thing. If you beat my colleagues and I with a wrench till I fork over my hard-earned dollars and loudly proclaim your sainthood whenever I've healed enough from the attack to speak my mind then I don't think I'm the problem, and those saintly/googley claims will hopefully fall on deaf ears.

The world isn't as black and white as just looking at who has control of the passkey.
by nerdsniper | 2025-08-05 05:59:51+00:00
Chemical companies could allow vendors to sponsor various alarms in their plants: "the Flowserve(tm) High-Level alarm on T102 is active!"..."the Flowserve(tm) High-Level alarm on T102 is active!". Then there could be a contractual minimum for the number of times that ad needs to be served to operators and engineers, otherwise the chemical plant would need to refund Flowserve for the unused ad campaign credits. Lowering the threshold of the high-level alarm would optimize ad revenue!
by alias_neo | 2025-08-05 06:01:06+00:00
Mines been getting worse.

Been running about 2-3 years, was mostly fine before but now I get constant false positives from the children's garden toys, scooter left in the garden, pirate flag waving etc.

I don't submit false positives for privacy reasons but I'm looking at trainingy own model. I've got years worth of positives/negatives to train on.
by hintklb | 2025-08-05 06:02:10+00:00
I fully agree with you. I also think that there are as many good intangible argument for owning as for renting.

Renting allows you to be flexible for new opportunities. They allow you to focus on other things in life than your house, treat your landlord as a service provider, free your time to do more important things.

Frankly it is sad that as a society we value homeownership so highly and judge people that decide to rent so harshly.
by atoav | 2025-08-05 06:02:40+00:00
Thst is a badly phrased question. "What languages do you speak?", would be the question to ask.

Because even of you were thinking about spoken languages, what does "knowing" mean? I "know" Hungarian exists, I know how Hungarian sounds like, I know how Hungarian words look like, but that doesn't mean I speak or understand it. Now if it was clear they meant apoken languages we could infer from the context they want to know about our skills with different spoken languages and didn't read our CV, which at least where I am from always contains a languages level with a skill level (e.g. German A1, English B1)

So yeah interviewers can suck at their job.
by wahnfrieden | 2025-08-05 06:03:33+00:00
I’m working on this with Manabi Reader for Japanese

https://reader.manabi.io

It has Anki integration or its own SM2 flashcards app (soon FSRS). And it passively collects a personal corpus of sentences from any web/ebook material you open (manga up next).

I plan to add more sophisticated sync between the reading and reviewing such that cards can be more dynamically based on relevant personal corpus content, and where reading (on the web or in books, outside flashcards) would auto-review any flashcards you have (or which you create in the future).

There really shouldn’t be any difference between encountering a word in something you’re reading and reviewing it on a flashcard. And it would be nice to revisit reading material with guidance from FSRS, to find N+1 sentences for learning new words and to find excerpts containing words that are due for review.
by rapjr9 | 2025-08-05 06:03:40+00:00
Wild land does regenerate, but also trees grow, and they have a cost to remove them when they get bigger, especially the roots. Plowing is not possible with tree roots everywhere, though perhaps non-monoculture non-mass-produced crops are possible to grow there and eventually the roots may decay. It can take 20-30 years for roots to decay though, or longer.
by phplovesong | 2025-08-05 06:05:24+00:00
The stdlib is so inconsistent this will be a nightmare.

Optionally with a better language you know what order params as passed (array_map / array_filter), but in PHP its an coin toss.

This feels very bolted on and not suited for the stdlib at all.

PHP devs should instead FIRST focus on full unicode support (no, the mb_real_uppercase wont do), and only then focus on a new namespaced stdlib with better design.
by nodesocket | 2025-08-05 06:06:14+00:00
I use Ubiquiti Protect Cameras and recently bought a AI key[1] which adds license plate and facial recognition features to all cameras even non-AI enabled models. It works really well and of course all 100% self-hosted.

[1] https://store.ui.com/us/en/category/all-cameras-nvrs/product...
by crote | 2025-08-05 06:06:34+00:00
Having a single certificate makes it trivial to implement cross-website tracking. FIDO2 (and by extension Passkeys) prevent this by having a unique key for every (origin, username) combination.

Also, having a single cert shared across multiple hardware tokens is a security risk, as it becomes impossible to distinguish the tokens or revoke only a single one of them.
by bigbadfeline | 2025-08-05 06:08:48+00:00
> FY2024 federal spend 6.75 trillion.

That's selective apples to oranges

Deficit as % of GDP:

2009 - 10%, 2011 - 8.6%, 2012 - 6.7%, 2013 - 4% ... 2019 - 4.6%, 2020 - 15%, 2021 - 12%, 2022 - 5.4%, 2023 - 6%.
by thedevilslawyer | 2025-08-05 06:09:01+00:00
FOSS is indeed a moral and ethical stand on freedom, than on business realites (that's more why "open source" came about).

You can't have the FOSS cake and eat it too.

For eg: Sentry can release sentry-open under a fully free license from moral considerations, but choose not to do so because of business considerations. That's an OK choice to make, but you hence don't get to call yourself.
by motorest | 2025-08-05 06:09:20+00:00
> What is the point of a permissions system that can be trivially bypassed?

You seem to be confused. The system is not bypassed. The only argument you can make is that the system covers calls to node:fs, whereas some modules might not use node:fs to access the file system. You control what dependencies you run in your system, and how you design your software. If you choose to design your system in such a way that you absolutely need your Node.js app to have unrestricted access to the file systems, you have the tools to do that. If instead you want to lock down file system access, just use node:fs and flip a switch.
by hansvm | 2025-08-05 06:10:04+00:00
The numbers I quoted were current prices for the school/city I attended (UND, if anyone wants to cross check). When I attended prices were lower, but so were wages and a number of other things, roughly proportionally AFAICT.

I could maybe see your point about admittance (I had something like a D average, maybe C- or C+ or something, in high school), but I think my financial estimates were about correct. Is something majorly incorrect?

Even if so, there are a dozen cheaper states in the country with halfway decent programs (if any future internet denizen is reading this, Fayetteville Arkansas is actually great for math right now, both in quality and in cost/jobs). I doubt my observations are too far off-base for a typical student trying to go to school economically.
by Barbing | 2025-08-05 06:11:04+00:00
>Then they will have the problem of making sure their business model is resistant to non-paying users. Netflix can’t stop me from pointing a camcorder at my TV while playing their movies, and distributing it out like that. But, somehow, that fact isn’t catastrophic to their business model for whatever reason, I guess.

Interested to see some LLM-adverserial equivalent of MPAA dots![1]

[1] https://en.wikipedia.org/wiki/Coded_anti-piracy
by cco | 2025-08-05 06:11:27+00:00
I just penciled out several home buying scenarios in HCOL, according to the calculators you posted, it only very recently became a questionable purchase if you don't plan on staying 7+ years in a home.

At any other point in the last 20, maybe 30-40 years if you re-finance well, it was always better to buy if you intended on living in an area for any reasonable amount of time.
by burnt-resistor | 2025-08-05 06:12:40+00:00
Before blue LEDs existed, green and amber LEDs were the thing and still are in some dated-appearing designs. In some ways, those are worse. But originally, red LEDs were the staple electronic equipment after transitioning from neon and incandescent lamps. Red LEDs were at least more subtle somewhat.

I think what people want is light pollution customization controls so they're not kept awake with LED Christmas trees.
by makeitdouble | 2025-08-05 06:12:40+00:00
> there are real benefits to being able to share type definitions etc across front end and back end

There are benefits, but cons as well. As you point out, if the backend is only straight proxying the DB, any language will do so you might as well use the same as the frontend.

I think very few companies running for a few years still have backends that simple. At some point you'll want to hide or abstract things from the frontend. Your backend will do more and more processing, more validation, it will handle more and more domain specific logic (tax/money, auditing, scheduling etc). It becomes more and more of a beast on its own and you won't stay stuck with a language which's only real benefit is partially sharing types with the frontend.
by bmacho | 2025-08-05 06:15:23+00:00
And they are getting better. I don't remember when was the last time a cookie dialogue forced me to uncheck 10+ switches, and making me angry that they give my browsing history to 1000+ random ad companies--I unironically miss that daily dosage of anger (against ad people and not the EU).

Most of them are one-click nowadays, just as intended. (Still bad on phones tho, especially javascript disabled.)
by hintklb | 2025-08-05 06:15:52+00:00
I spend more time than 99.999% of people on this subject and I'm quite educated in economics.

I'm not arguing that buying a house is never right. I'm arguing that on average, especially in today's environment it is extremely difficult to make the number work in favor of owning as an investment. As a lifestyle luxury for the intangibles? Sure. But as an investment, this doesn't really make sense anymore.

>> Can you try to offer some explanation for your reasoning?

Those two numbers simply do not represent the same thing. A mortgage is an absolute minimum that dismisses the opportunity cost on the downpayment, doesn't include all the fees and definitely doesn't account for the increase in taxes, HOA and insurances.

>> When you eventually pay off your mortgage your expenses drop to zero. Who pays for Taxes, Insurance, HOA, Repairs? Who pays the 6% realtor fees the day you sell?

Based on those questions, I would invite you to similarly get educated.