MurphyA/hacker-news huggingface dataset:
by shuaiboi | 2025-07-24 10:53:55+00:00
bjarne (creator of c++) has a quote about this:

Unified function call: The notational distinction between x.f(y) and f(x,y) comes from the flawed OO notion that there always is a single most important object for an operation. I made a mistake adopting that. It was a shallow understanding at the time (but extremely fashionable). Even then, I pointed to sqrt(2) and x+y as examples of problems caused by that view.

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p19...
by masklinn | 2025-07-24 10:54:51+00:00
There’s been a few suggestions that drum brakes should make a come back, for EVs.

They’re enclosed so they don’t get dirty, the inner face of drum will rust less than discs, fade is not an issue thanks to regen braking, and before they get too hot and fade drums will brake harder than disks (thanks to a higher pad surface area). And they’re enclosed so they also keep the brake dust inside the drum, making it easier to dispose of safely.

Drums are heavier tho.
by burnt-resistor | 2025-07-24 10:54:52+00:00
The trick is slow freezing to allow air to escape in one direction.[0]

This means insulating the container so that it freezes slower in all but one direction.

Note that water gives off heat when it phase changes from liquid to solid. It's visible under FLIR when pouring supercooled water onto a nucleation point.

0. https://www.youtube.com/shorts/odhf1d7RBL4
by londons_explore | 2025-07-24 10:54:58+00:00
Hard braking is an insane power. Eg. A typical 4,400 lb car emergency stopping from 80 mph has a braking power of 940 horsepower.

Hybrid cars have smaller motors, inverters, and battery packs - and none of those components can absorb 940 horsepower!

A 2nd gen prius battery for example has a max in/out of 30 horsepower.
by shykes | 2025-07-24 10:55:11+00:00
Hello! I'm the co-founder of Dagger. It seems that there was a misunderstanding, sorry about that.

Dagger certainly can build a container image natively, without requiring a Dockerfile. It also can build a docker image from a Dockerfile, thanks to a built-in compatibility bridge.

Dagger doesn't expose a raw buildkit socket, but it exposes a cleaner API that has 99% feature parity. Hitting the remaining 1% is rare, but it does happen :) Is there a specific buildkit feature you were looking for? Perhaps we can add it.

Here's an example from the CLI (keeping in mind that there are SDKs for Go, Python, Typescript, PHP and Java with 1-1 feature parity to the CLI):

1. Natively (without Dockerfile):

#!/usr/bin/env dagger container | from alpine | with-exec apk add golang | with-directory /src . | with-workdir /src | with-exec go build | publish myregistry.tld/myimage:mytag

2. Build a local directory with Dockerfile:

#!/usr/bin/env dagger host | directory . | docker-build | publish myregistry.tld/myimage:mytag

3. Build straight from git remote, with Dockerfile:

#!/usr/bin/env dagger git https://github.com/your/repo | branch main | tree | docker-build | publish myregistry.tld/myimage:mytag

I hope this helps! Sorry again that you got the wrong impression.
by nervousvarun | 2025-07-24 10:55:26+00:00
Apologies I'm really late replying to this...hope you see it.

I think this is an insightful comment with an element of truth and it's really, really sad. Yet another example of the net negative societal impact of social media.

Convenience/economic context aside, the grandparent/grandchild relationship/dynamic is incredibly important to a developing psyche.
by immibis | 2025-07-24 10:55:33+00:00
David Ben Avraham is a converted Jewish Israeli who grew up in Palestine. He was stopped arbitrarily by an IDF soldier, who asked his name, and then immediately shot him dead.

I bring this up because I'm tired of hearing "some Israelis are Arabs" as if to blame the Arabs for not becoming Israelis. There's a reason they don't.
by GOTO95 | 2025-07-24 10:55:37+00:00
You are low on testosterone, not surprising as most males above 45 years are. You should go to a private hospital and get your testo levels measured, and with that paper you can _try_ to get TRT (Testosterone Replacement Therapy) from a doctor but if the doctors in Denmark are anything like in Finland you are not going to get the prescription...

Not sure what the legal situation regarding steroids (testo is a steroid) is in Denmark but if you can't get a legal prescription I recommend getting testo from alternative sources. Somewhere between 150-200mg per week should give you a very noticeable improvement.

Getting your testo levels to normal means you'll have loads more stamina to do physical activity and it also helps to grow your muscles back to the size they were before. Ever wonder why old men have a different posture than younger ones? Lack of testosterone. Same reason why older men have thin arms and legs but bulging belly - muscle mass is reduced but fat remains.
by TreeInBuxton | 2025-07-24 10:56:54+00:00
There is a wide variety, MHEV is quite popular here due to lack of home charging, as many people live in terraces, etc

We have a selection of smaller popular hatchbacks with MHEV available (ie, the Hyundai i20) that I believe were not released in some markets

The leasing culture for "luxury" cars is quite prevalent here too, and many new cars from popular brands such as Land Rover are at minimum MHEV from new nowadays, in order to get fleet emissions down
by sugabush | 2025-07-24 10:58:09+00:00
Judges : MC Hammer, Will.i.am, Jane Manchun Wong, Josh Constine, Chris Kelly, plus surprises Mentors/hosts/special guests : Ash Kumra • X Eyee • William Cenoté • Peter Ma • Chris Messina • Bosko Kante • Rene Turcios • Bryan Fenchel • Ben Taft • Nader Khalil • Silicon Vini Senger • Lilly Kam • Mindaugus Petrutis • Tuhin Roy • Diego Pinzon • Ty Roberts • Peter Hirshberg • R Tyler • Shari Reich • Charles Maddock • Chris McMurtry • Sundar Arvind • Matthias Strobel • Era Qian • Zuhayeeer Musa • Joseph Perla
by Lio | 2025-07-24 10:59:30+00:00
You're mostly comparing frameworks here. For example, using the Roda framework instead of Rails you can define a route like this:

r.get "products" { ProductsRepository.all }

which is pretty close to your Express example.

You don't say what set_product should do but with any Rack application like Roda or Rails you can also set middleware as you suggest for Express.

With regard for special characters vs reserved keywords, that seems to be mostly about personal preference and familiarity.

e.g. I know that in a class declarion in Ruby < means the same thing as extends in JavaScript. I don't really notice the difference day to day.

Same for @products vs this.products. This doesn't seem like a conceptually big differnce to me.

As for %i[] to define an array of symbols, the typescript equivalent would be:

const symbols: symbol[] = [Symbol("show"), Symbol("edit"), Symbol("update"), Symbol("destroy")];

Personally I always use [:show, :edit, :update, :destroy], it's more obvious IMHO. I use Rubocop to autoconvert that in any code I inherit.

What makes me love Rails is all the little trivial methods like one to quickly format arrays into gramatically correct sentences. Or the Array() wrap method when dealing with APIs.

Or the way Rails handles dates and times like 1.business_day.from_now

Or any number of other little utilities that are easy enough to write yourself but add friction when they're missing.

Rails gives me a well supported fullstack of what I need and I know that it and Ruby are constanly improving because its backed by some massive companies.

I don't think there's any need for you to adopt it though. That podcast is just about why DHH loves Ruby and Rails that doesn't invalidate what you're already happy with.

There is more than one way to do things.
by ddorian43 | 2025-07-24 11:01:26+00:00
It is actually the reverse. Keto & carnivore(with only fatty read meat) is the best. If you have diseases like diabetes/epilepsy/mental-illness/food-addiction/etc it (may) help a lot. I eat 6-7 days/week red meat.

Source: I do ketovore for 2.5+ years.
by flaminHotSpeedo | 2025-07-24 11:03:33+00:00
Yes, my example is unrealistic when you apply your own unrealistic constraints on top of it.

But when you remove your unrealistic constraints, it is absolutely realistic. There is a wide temperature band where a cut of meat will reach a given center temp faster than carryover cooking with a difference to edge temperature that is trivial enough that someone is unlikely to notice.
by nkurz | 2025-07-24 11:04:07+00:00
I'll go farther. This is an abysmal article.

It fails at the primary goal of clearly telling the reader how to avoid the danger. And the lone paragraph that mentions the actual solution ("Opening the packaging while thawing the vacuum packaged fish, introduces oxygen and the spores will not produce the vegetative cells that produce the toxin") bizarrely puts equal emphasis on labeling law applicable only to producers.

It is unbelievable how badly this article misses the point. I'd accuse it of being AI generated slop, but I don't think a modern AI would miss the point this badly. The linked Clemson article is much better: https://hgic.clemson.edu/thawing-vacuum-packed-fish/
by dsr_ | 2025-07-24 11:06:31+00:00
A few months prior to every Stable release, people start raving about how awesome running Testing is, how it has up-to-date packages and fixes their kernel issues and solves world hunger and capitalism.

This is because Testing has done a soft freeze, then a hard freeze, then is prepped to become the new Stable. During that process, nothing new can be added to Testing.

Then, one day, Stable is released and the floodgates on Testing re-open. The people who specified "Trixie" are fine: they are now running Stable. The people who specified "testing" in their apt sources, or are installing Testing based on the wonderful reports of just a month ago, are in for a terrible experience. And... anyone who installed Stable as "stable" instead of "bookworm" is now getting upgraded shortly after release day, instead of at their convenience.

This happens every cycle.

Never recommend that anyone new to Debian should install Testing, even if it's about to become Stable. Unless you are working on throwaway systems, always specify a codename for release, not "stable" or "testing" or "unstable".
by homebrewer | 2025-07-24 11:07:19+00:00
I don't think they promise more than three years? (Not a criticism in the slightest, I don't demand anything from unpaid volunteers.)

"RHEL" is supported for 10, and if Oracle screws us over (I can believe in that possibility), ELevate lets you migrate sideways to any supported alternative.

It really depends on the use case.
by surgical_fire | 2025-07-24 11:07:21+00:00
> By inserting themselves as moral arbiters for the digital economy and free expression on the internet, these processors are creating a very strong case for being designated as common carriers or being subjected to much stricter public utility regulation.

It's maddening that they are not common carriers at this point. In many ways it is very difficult - if not impossible - to operate in the world nowadays without access to payment infrastructure.

This should also come as a lesson to all the people that base their rationale in "government icky" moronic arguments. Corporations are all too happy to abuse consumers in the lack of proper regulations. While the government should not get blind faith, there are multiple avenues to scrutinize and question the government. Corporations on the other hand can and will fuck over everyone mercilessly without proper regulations.
by abanana | 2025-07-24 11:07:39+00:00
The apparent lack of testing is shocking for something this big. If I'm understanding correctly, this update will have caused issues across huge swathes of the web, including all Wordpress installations running on this version of Apache, as they include this block of code in their .htaccess file:

RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

If the request doesn't exist as a file or directory, rewrite it to index.php in the root, so Wordpress can handle it. This kind of rewriting is very common of course, I'm just taking Wordpress as an example because of its popularity.
by ben_w | 2025-07-24 11:07:47+00:00
> By "behaviour" they mean data and pattern matching, right? Alan Turing figured that out in the 1940s.

That's like saying Da Vinci figured out heavier-than-air flight. Useful foundation, obviously smart and on the right track, still didn't actually do enough to get all the credit for that.

> It looks magical, but it's maths and stats, not magic.

People keep saying "AI isn't magic, it's just maths" like this is some kind of gotcha.

Turning lead into gold isn't the magic of alchemy, it's just nucleosynthesis.

Taking a living human's heart out without killing them, and replacing it with one you got out a corpse, that isn't the magic of necromancy, neither is it a prayer or ritual to Sekhmet, it's just transplant surgery.

And so on: https://www.lesswrong.com/posts/hAwvJDRKWFibjxh4e/it-isn-t-m...

Even with access to the numbers and mechanisms, the inner workings of LLMs are as clear as mud and still full of surprises. Anthropic's work was, to many people, one such surprise.
by orbisvicis | 2025-07-24 11:07:57+00:00
Hmm, that's what pdb.set_trace() uses, right? That means monkey-patching live code will have an unavoidable performance hit, with the exception pointed out by sibling @skeledrew comment.

Which brings me back to my long-held belief that python functions are not quite first-class, not until you can rip them apart and put them back together as if nothing ever happened.

Not to say there haven't been improvements, as evinced by the decorator module rewrite from version 2->3 (or 3->4; can't remember) that completely changed how the resulting function was constructed.
by mrkramer | 2025-07-24 11:07:59+00:00
If I recall correctly it has been proven that violent games do not affect young adults in negative way unless they are already mentally disturbed. There are thousands of movies that depict killing and sexual violence and nobody talks about it anymore. I think just like Gabe Newell said that videos games are more powerful medium than movies because they give you control over your character and you can shape the story how you like. That's what is bothering those "human rights" warriors. They are against games because they are such a powerful art tool.
Ask HN: Could Europe Play the U.S. and China Against Each Other for Free LLMs?
by grillitob | 2025-07-24 11:08:17+00:00
The U.S. could offer free high-performance LLMs to Europe under the condition of avoiding Chinese models—but China might retaliate with its own subsidies or tools. This creates an opportunity for Europe to exploit the competition by:

Demanding concessions: Require open weights, local hosting, or compliance with EU regulations (GDPR, AI Act). Avoiding dependency: Mandate interoperability with European models (e.g., Mixtral) or hybrid systems. Legislating neutrality: Force government projects to use locally fine-tuned versions of either, maintaining sovereignty.

Historically, the EU balanced pragmatism with tech sovereignty (e.g., Gaia-X vs. AWS/Azure). In AI, could it go further? Or would alienating both superpowers backfire?

Questions:

Is this dynamic realistic, or would Europe lack leverage?

What would make the EU choose one side—performance, subsidies, or ethics?

Could small countries individually cut deals, fracturing EU unity?
by eitland | 2025-07-24 11:08:49+00:00
Have my upvote. I have just learned that targeted ads might be considered direct marketing. I always thought it was limited to things that had my name and address (physical, email or other) on it, excluding online ads unless they were part of a "logged in experience" like upsells inside the product I am currently using.

That said, I read the rest of the recital and I think it is rather clear to the degree that such things can be clear that if you didn't expect it, it isn't legal. Here are some quotes:

- "[...]provided that the interests or the fundamental rights and freedoms of the data subject are not overriding, taking into consideration the reasonable expectations of data subjects based on their relationship with the controller."

- "At any rate the existence of a legitimate interest would need careful assessment including whether a data subject can reasonably expect at the time and in the context of the collection of the personal data that processing for that purpose may take place."

I can assure you the even after reading this, if I have clicked "necessary only" (as this discussion started with) it is not my reasonable expectation that any data are stored except those that are strictly necessary for the navigation and the user visible features[1] of the site works.

I'll admit that it seems some people think there is an argument that can me made that online ads can be direct marketing, but I would not risk any of my savings to defend that claim in court and I don't think Facebook or Google want to help you either as they seem to trying their best to prevent people from targeting individuals or at least pretending they do. And if it does, it is still covered by the conditions above.

[1]: and yes, that means user features, so unless you are creating an online ad-collection of some kind, that probably does not mean ads
by greyface- | 2025-07-24 11:09:07+00:00
Read the legislation for yourself.

https://www.congress.gov/bill/119th-congress/house-bill/987/...

https://www.congress.gov/bill/119th-congress/senate-bill/401...

I don't see a basis for the assertion by the resistbot letter that it could "force banks to cut off services to" "marginalized communities". It actually appears to do the opposite - banks that cut off services to law-abiding people would lose their access to the Fed lending window.
by Aachen | 2025-07-24 11:09:15+00:00
Also after you divide the amount of time required? So if an average charging session is 100 minutes and getting petrol is 5 minutes, you'd need 20 times more chargers to break even on availability. And I'm not sure that even works the same when considering that these events are probably bursty (most people will arrive at an energy station at a similar time of day)

In case it sounds like I'm gas station lobby: I'm not against EVs at all and don't own a car, I'm just wondering if this is a fair comparison
by audinobs | 2025-07-24 11:11:08+00:00
Everyone going crazy over the weekend and seeing DeepSeek chain of thought was in January.

Right now feels exactly like when DAW and VST were maturing 25 years ago in computer audio. A new announcement all the time.

There are still music producers but the democratization of audio production was not good for professional studios who were charging a $1000 a day for studio time before this.
by Funes- | 2025-07-24 11:12:21+00:00
I think we aren't far from GrapheneOS being rendered unusable. We desperately need to make Linux phones viable daily drivers. Desperately. It's the only way we'll have access to critical funcionality while being independent from mega corporations like Google and whatever they decide to do with AOSP and their Pixel phones. Right now everything regarding our privacy is in their filthy hands.
by some_furry | 2025-07-24 11:13:04+00:00
> Read the legislation for yourself.

I tried. My brain isn't very good at understanding the effects of law, only the literal and logical structure of its changes.

> I don't see a basis for the assertion by the resistbot letter that it could "force banks to cut off services to" "marginalized communities". It actually appears to do the opposite - banks that cut off services to law-abiding people would lose their access to the Fed lending window.

I'm inclined to agree, but I'm not a lawyer. I would be a rather awful one if I tried to become one.
Show HN: Unied Lightweight Terminal Code and Text Editor with Advanced Commands
by FerkiHN | 2025-07-24 11:13:24+00:00
Hello HN community!

I'm excited to introduce Unied – a compact and efficient terminal text editor, developed in C using the Ncurses library. My goal was to create a tool that combines familiar simplicity with powerful features rarely found in CLI editors.

What makes Unied special?

* Intelligent Syntax Highlighting: Unied automatically detects if you're working with code (C, Python, JS, etc.) or plain text, and applies heuristic highlighting for comments, strings, numbers, operators, and keywords. No manual configurations – just start coding.

* Intuitive Command System ("Command Puzzle System"): Forget memorizing complex key combinations. Activate command mode with Ctrl+\\, then type short, logical command sequences (e.g., SA for "Save As", R for "Find and Replace"). The system provides suggestions and autocompletion (Tab), making it quick to learn and powerful to use.

* Customizable Macros: Automate repetitive tasks by creating your own macros. You can assign any command sequence to a desired action.

* Full Undo/Redo History: Don't worry about mistakes – Unied keeps a complete history of your changes, allowing you to easily undo (Ctrl+Z) and redo (Ctrl+Y) actions.

* Visual Mode: Select blocks of text for copying, cutting, and deleting, similar to graphical editors.

* Contextual Hints: Dynamic hints at the bottom of the screen constantly remind you of available hotkeys and commands, adapting to the current mode. Unied is not just another nano or vi. It's an attempt to make terminal editing more productive and less cumbersome, especially for those who frequently work with code.

Try Unied: You can find the source code, build instructions, and a detailed README.md on GitHub: https://github.com/Ferki-git-creator/Unied-Feature-Rich-Term...

I welcome your feedback, suggestions, and contributions! Thanks for your attention!
by alliao | 2025-07-24 11:13:38+00:00
the brake needs a brand new design for EV... as of now it's used so little I kind of fear when I need it it's not going to be performant. It's not simply not engineered for current EV use case where it's touched every once in a while, I think it can go weeks without being used. However manufacturers don't have any incentive to blend it with regen from time to time, as to get it up to temperature requires a LOT of braking, which reduces the mileage/efficiency. Even Volvo recently had a recall[1] over regen braking bug, it looks like brake-by-wire system where software have control over blending brake, and decides in this case to not engage physical brakes at all even when user input suggests more braking. We just need a new brake system that can stay performant without being used at all for a long time and won't rust or jam [1] https://www.caranddriver.com/news/a65464238/volvo-brake-fail...
by RamblingCTO | 2025-07-24 11:13:46+00:00
the very next post from that page is literally this one: https://antirez.com/news/153 (let me quote a comment from the article you referenced: "only HN noobs get a hardon for that")

I am talking from my point of view. I am quite experienced and know what I'm doing in a lot of areas, having 18 years of experience. I am faster without agents, produce better code, know the code and can guarantee maintainability and less bugs. Why on earth would I change that? That it's going to get better in the future is a hypothetical which needs to be proven yet.

It is not a calculator tho. So stop with that nonsensical comparison already. You know exactly what I'm talking about and you're not arguing against my point. That's why I'm saing that your comment ins tangental. LLMs are not a calculator. My point is that LLMs make us neither faster nor more efficient. You trade quality and maintainability (slob) against quality. That's a different trade off and makes the two outcomes uncomparable.