MurphyA/hacker-news huggingface dataset:
by danbruc | 2025-07-24 16:09:36+00:00
Nope. You can have programs without undefined behavior and still not have thread safety. In .NET, for example, writes to variables that are wider then the machine width or not aligned properly, are not guaranteed to be atomic. So if you assign some value to an Int128 variable, it will not be updated atomically - how could it, that is just beyond the capabilities of the processor - and therefore a different thread can observe a state where only half of the variable has been updated. No undefined behavior here but also sharing this variable between threads is not thread safe. And having the language synchronize all such writes - just in case some other thread might want tot look at it - is a performance disaster. And disallowing anything that might be a potential thread safety issue will give you a pretty limited language.
by nordsieck | 2025-07-24 16:09:42+00:00
> Perhaps other EV drivers can chime in but, if anything, I think I use my friction brakes less at highway speeds where, in general, you're not really supposed to do a lot of braking. I'd say, overall and regardless of speed, my friction brakes are really used only to bring the car to a complete stop or for emergency braking to avoid a potential accident.

Some people are very responsible with money - they have an emergency fund, contribute to their retirement fund, and don't carry a credit card balance.

Other people (who have a choice) spend to 0 every month, don't save, and have maxed out credit cards.

In the same way, some people drive very safely; they keep a responsible distance between them and the driver in front of them, and don't tend to speed much. I think this style of driving would naturally lead to what you say - less use of friction breaks in general, and especially at highway speeds.

And other people are constantly speeding, and tailgate the person in front of them when their path is blocked. For the people who drive this way, the greater acceleration of EVs just lets them drive that much more recklessly. Which ends up necessitating even more usage of friction brakes.
by platypii | 2025-07-24 16:09:51+00:00
This is the story of how I spent a year making the world's fastest Parquet loader in JavaScript. The goal:

- Make a faster, more interactive viewer for AI datasets (which are mostly parquet format)

- Simplify the stack by doing everything from the browser (no backend)

TLDR: My open-source library Hyparquet can load data in 155ms, which would take 3466ms in duckdb-wasm for the same file.
by everdrive | 2025-07-24 16:10:21+00:00
Last 20 years or so seem to be a track record of people coordinating to make voluntarily bad decisions with technology:

- social media

- chromebooks in school

- smartphones

- the attention economy

- llms

- etc

None of these were inevitable, and in principle all are reversible. But, we're all trapped by the tyranny of the majority. It feels like it will continue to get worse.
by toss1 | 2025-07-24 16:10:27+00:00
Cool idea. Perhaps a better idea would be to borrow from the brake balance adjustment in race cars, wherein an adjuster dial/knob allows the driver to alter the balance between the front vs rear brakes when the brakes are applied (very useful in wet vs dry conditions, high-speed vs low-speed sections, etc.). So, instead of adjusting the F-R brake balance, the dial could adjust the regen-vs-mechanical braking, up to the limit of the batteries to accept power input.

Another way of further reducing brake dust might be to have a higher regen setting that dumps excess power to a heat sink and cooling system, up to its limit before engaging the mechanical brake pads/discs.
by mywittyname | 2025-07-24 16:10:39+00:00
> At this point their fabs are a liability.

Intel outsourcing their core product line is also a massive liability. It's just a different kind of liability.

I personally think the world's reliance on TSMC indicates that fabs are critically important infrastructure. And operating a world class one provides a company with a ton of leverage with governments and other businesses.
by tremon | 2025-07-24 16:10:51+00:00
Having swap "disabled" forces your system to swap out executables to disk

Read-only pages are never written to swap, because they can be retrieved as-is from the filesystem already. Binaries and libraries are accounted as buffer cache, not used memory, and under memory pressure those pages are simply dropped, not swapped out. Whether you have swap enabled or disabled doesn't change that.

Still, I hope that Debian does the sane thing and sets proper size limits. I recall having to troubleshoot memory issues on a system (Ubuntu IIRC) a decade ago where they also extensively used tmpfs: /dev, /dev/shm, /run, /tmp, /var/lock -- except that all those were mounted with the default size, which is 50% of total RAM. And the size limit is per mountpoint...
by thewebguyd | 2025-07-24 16:11:01+00:00
> Not all 3rd party developers seem to have gotten that memo

This frustrates me to no end on macOS. Not only do you see crappy installers like you said, but a ton of applications now aren't even self contained in ~/Applications like they should be.

Apps routinely shit all over ~/Library when they don't need to, and don't clean up after themselves so just deleting the bundle, while technically 'uninstalls' it, you still have stuff left over, and it can eat up disk space fast. Same crap that Windows installers do, where they'll gladly spread the app all over your file system and registry but the uninstaller doesn't actually keep track of what went where so it'll routinely miss stuff. At least Windows as a built-in disk clean up tool that can recognize some of this for you, macOS will just happily let apps abuse your file system until you have to go digging.

Package managers on Linux solved this problem many, many years ago and yet we've all collectively decided to just jump on the curl | bash train and toss the solution to the curb because...reasons?
by Lonestar1440 | 2025-07-24 16:11:16+00:00
There are a great many assumptions in this argument, and I'm not sure they stand up well to examination.

1) "We're out of easily extractable oil" maybe, but I've heard it before and technology does have a way of marching forward.

2) "Rest of world's oil demand will drop" is possible but certainly not happening today and far from certain.

3) "Then Oil prices will plummet in the US Domestic market" is far from a sure thing even if 2) comes to pass. How do the other producers - who don't have large domestic markets! - react? What happens to global petrochemical demand? And what sort of Industrial policy could shield our markets, even if this happens globally?

At the end of the day, we have a continent full of oil (and Uranium! which I prefer!) and an energy-hungry population.
by harmmonica | 2025-07-24 16:11:22+00:00
There is some evidence/belief that increased foot traffic actually improves crime rates. I'm certainly not saying it's a magic bullet, but there's at least some hope that if these types of changes were introduced it would actually directly decrease crime. I don't have a source handy, but the concept is that the more eyes on the street the less willing people are to commit crimes. I think the exception is that some kinds of petty theft can increase with more people (pickpocketing for instance because more targets).
by SirMaster | 2025-07-24 16:11:33+00:00
>You'll find that burning 500 calories on a treadmill feels like an eternity

That's because you are doing it on a treadmill...

Try doing a more fun activity outside in the world and in nature. Like cycling.

I can cycle for 120 miles outdoors in about 6 hours in a single day and have a positive experience and memory of doing it and that burns about 8200 calories according to a calculators for my weight.
by FearNotDaniel | 2025-07-24 16:11:50+00:00
Your comment is very confusing. The article is about making a connection with someone, the measure of which is that you have achieved a shared understanding. It sounds as if you have managed that. And yet it seems that this is not enough for you and you are expecting to “get through” to him in some other sense, that he will be “receptive” to something more that goes beyond mutual understanding, that he will “respond to that” shared understanding with something that goes beyond personal connection. What is it you are looking for, that would make that connection complete? That he recants all of his views and changes them to be in line with your own? Or is there something else that you expect shared understanding to lead to, rather than being a goal in itself?
by whizzter | 2025-07-24 16:12:01+00:00
It's still a drop in the ocean, heard of that KISS-CAM CEO that got busted for cheating? His company literally seems to be built on selling hosted Apache Airflow services and just took in a series D round of 93 MUSD.

Apache HTTPD still seems to run about 17% of all sites, plenty of those probably make money using the software. https://www.netcraft.com/blog/january-2025-web-server-survey

Open source is open, so naturally people can use it but the ecosystem has also been at a breaking point for years and bad actors has caught the scent of that.
by Jtsummers | 2025-07-24 16:12:09+00:00
Setting aside the objections some have to exceptions generally: Checked exceptions, in contrast to unchecked, means that if a function/method deep in your call stack is changed to throw an exception, you may have to change many function (to at least denote that they will throw that exception or some exception) between the handler and the thrower. It's an objection to the ergonomics around modifying systems.

Think of the complaints around function coloring with async, how it's "contagious". Checked exceptions have the same function color problem. You either call the potential thrower from inside a try/catch or you declare that the caller will throw an exception.
by ViktorRay | 2025-07-24 16:12:10+00:00
Maybe the proportion of “stupid” kids is increasing due to phone use altering cognitive development?

I don’t know if that’s true or not but it is worth thinking about.

Especially since apparently Big Tech executives and top engineers are very strict regarding technology use in their children. And very strict regarding screen time.

Reminiscent of how tobacco executives would not let their kids smoke while suppressing data regarding lung cancer.
by kllrnohj | 2025-07-24 16:12:21+00:00
> in this case, "memory safety", to describe the property of programming languages that don't admit to memory corruption vulnerabilities, such as [..] type confusions

> The fact is that Go doesn't admit memory corruption vulnerabilities

Except it does. This is exactly the example in the article. Type confusion causes it to treat an integer as a pointer & deference it. This then trivially can result in memory corruption depending on the value of the integer. In the example the value "42" is used so that it crashes with a nice segfault thanks to lower-page guarding, but that's just for ease of demonstration. There's nothing magical about the choice of 42 - it could just as easily have been any number in the valid address space.
by CharlesW | 2025-07-24 16:12:28+00:00
Without going too far down the rabbit hole, it looks like the maintainers added it in 2023. In the process, I was reminded that the installer initially required Ruby! (/usr/bin/ruby -e "$(curl…)

FYI, mas is the equivalent of a package manager for macOS apps (a.k.a. a CLI for App Store). https://github.com/mas-cli/mas

Other than brew, I use mise for everything I can. https://mise.jdx.dev/
by spwa4 | 2025-07-24 16:12:37+00:00
> The state exists in the first place because it has a monopoly on violence.

Bullshit. There have been many states that didn't. The violence capitalist states use does not compare to the violence collectivist states use (let's not pretend this has ended). Capitalist states have always respected the right of anyone to just walk away. Now maybe that option sucked, but it was there as a release valve. You can just refuse. Communists never did. Communists hunted tents in forests of people attempting to be self-sufficient. Hunted. That's the correct therm. Communists want and need 100% control of every aspect of life. Where you live. Where you sleep. Where you work. What you read. What you see, and especially what you don't see. And so on and so forth.

> leading the Soviet bloc to be outpaced by the first world.

Is this how a communist states that they did things like letting 5 million people slowly starve to death because they "resisted collectivist policy"? Because that's what communists did when people refused: genocide. That's the sort of violence communism requires, according to communist states.

And this is FAR from the worst communists did.

> ...

I've often wondered. Communist policy is directly responsible for the Russian state, for the Chinese state, for the Iranian state, for the Venezuelan state. These states are all hellholes that are attacking us.

And there is nothing communists love more than blaming everyone else for the consequences of everything, and demanding restitution.

Can we therefore not demand that communists and communist parties in the west, who after all are responsible: they participated in and supported the creation of these communist countries, provide the work, people and resources required to defend against the aggression of these states. After all, they are responsible for it.
by dlcarrier | 2025-07-24 16:12:54+00:00
It's difficult to track down threats, which is the primary means of jawboning, and courts often okay with them, despite the significant conflict with the first amendment. There are many cases of it becoming public though, showing how prevalent it is. It was the primary concern in the Twitter Files (https://en.wikipedia.org/wiki/Twitter_Files) and in the Backpage.com, LLC v. Dart case, (https://law.justia.com/cases/federal/appellate-courts/ca7/15...) the Sheriff in Cook County Illinois tried to follow through with the threat, but was overturned by the courts, who tend to have a much stronger response to follow-through than threat itself, despite most of the effectiveness coming from threats.

Also, politicians are constantly threatening to revoke section 230 of the communications decency act, without which hosting any kind of user-generated content, from forums to video streaming to social media, would be effectively impossible in the US, because everything posted would need to be censored before ever being displayed.
by kentonv | 2025-07-24 16:13:23+00:00
Exactly. To put it another way:

Imagine the power goes out while sqlite is in the middle of writing a transaction to the WAL (before the write has been confirmed to the application). What do you want to happen when power comes back, and you reload the database?

If the transaction was fully written, then you'd probably like to keep it. But if it was not complete, you want to roll it back.

How does sqlite know if the transaction was complete? It needs to see two things:

1. The transaction ends with a commit frame, indicating the application did in fact perform a `COMMIT TRANSACTION`.

2. All the checksums are correct, indicating the data was fully synced to disk when it was committed.

If the checksums are wrong, the assumption is that the transaction wasn't fully written out. Therefore, it should be rolled back. That's exactly what sqlite does.

This is not "data loss", because the transaction was not ever fully committed. The power failure happened before the commit was confirmed to the application, so there's no way anyone should have expected that the transaction is durable.

The checksum is NOT intended to detect when the data was corrupted by some other means, like damage to the disk or a buggy app overwriting bytes. Myriad other mechanisms should be protecting against those already, and sqlite is assuming those other mechanisms are working, because if not, there's very little sqlite can do about it.
by andrew_eu | 2025-07-24 16:13:27+00:00
I can imagine the large scale web scrapers just avoid processing comments entirely, so while they may unzip the bomb it could be they just discard the chunks that are inside of a comment. The same trick could be applied to other elements in the HTML though: semicolons in the style tag, some gigantic constant in inline JS, etc. If the HTML itself contained a gigantic tree of links to other zip bombs that could also have an amplifying effect on the bad scraper.
by Leftium | 2025-07-24 16:13:29+00:00
I wanted the same thing, so I built: https://weather-sense.leftium.com

- I even blogged about this over 10 years ago: https://blog.leftium.com/2013/12/how-to-display-temperature-...

- Previous version used to show two historical days: https://github.com/Leftium/ultra-weather

- The current version is capable of showing the previous 90 days. I plan to add a weekly overview with two previous days.

BTW the https://open-meteo.com API supports getting historical and forecast data in a single call. All other API's require at least two calls.
by asdfj999 | 2025-07-24 16:13:44+00:00
Both can be true at the same time. Just some rough numbers.

There are approximately 30,000 American medical graduates each year. There are about 40,000 residency spots per incoming class each year. Both of these numbers continue to go up at least several hundred per year, it's just that always residency spots > American graduates. That answers the "not enough graduates" question.

Each year, that 10,000 resident surplus is filled with approximately 4,000 US citizens who went to international schools and 6,000 non-US citizens who went to international schools.

Now for hospitals being saturated with learners. There are at least 162,000 residents and fellows and 60,000 medical students (3rd and 4th year students) in total in the hospitals, not counting students in other disciplines such as nursing, physician assistant, etc. That means there are at least 222,000 residents/fellows/medical students in the hospitals. I am saying that to accommodate 222,000 learners getting enough exposure to all the nuances of medicine is extremely difficult and, as medical schools continue to grow, many schools are finding it hard to place students into environments with adequate opportunities to learn.

I'm a doctor. When I was in medical school, I literally had to call and send applications begging other physicians to take me as a student, otherwise the school threatens to dismiss you for not meeting graduation requirements. Many students don't have that problem, however many do and the number is increasing. It is just very hard to scale massively complex infrastructure while maintaining quality.
by vemv | 2025-07-24 16:14:09+00:00
Most static type systems that I know of disappear at runtime. You literally cannot "use" them once deployed to production.

(Typescript's Zed and Clojure's Malli are counterexamples. Although not official offerings)

Following OP's example, what prevents you from getting a AccountID parsed as a UserID at runtime, in production? In production it's all UUIDs, undistinguishable from one another.

A truly safe approach would use distinct value prefixes – one per object type. Slack does this I believe.
by lbrito | 2025-07-24 16:14:12+00:00
You're just insulting people at this point. The OP did not say he hates Jews or want them to be killed. You should be banned by making disgusting accusations without any connection with reality.

There's overwhelming proof of intentional starvation in Gaza, by multiple different sources -- sources that don't agree with each other on pretty much anything else, by the way. Every major news outlet in the planet is reporting the same thing, but in your evil, twisted, human-hating logic, all of them are wrong and only the openly fascist government of Israel is right because they say so.

https://www.cbc.ca/news/world/gaza-humanitarian-aid-1.759176...

https://www.theguardian.com/world/2025/jul/23/we-faced-hunge...

https://www.cnn.com/2025/07/23/world/gallery/photos-starvati...

https://www.aljazeera.com/news/2025/7/23/more-than-100-ngos-...

https://www.amnesty.org/en/latest/news/2025/07/gaza-evidence...

https://www.unrwa.org/resources/reports/unrwa-situation-repo...

https://news.un.org/en/story/2025/07/1165396

https://www.ochaopt.org/content/humanitarian-situation-updat...
by runako | 2025-07-24 16:14:24+00:00
Context is important here: a 20% increase in price to consumer is not going to be perceived as "not dramatically higher". Focusing on tech for a moment, we are discussing this in the context of a good that normally decreases in price annually suddenly getting more expensive.

For the sake of argument, if all goods increase in price by 20%, Americans are going to have the experience of being worse off than they were before.

This is the largest tax hike on Americans in modern times (possibly ever?). While it may take a while for people to understand the impact of policy, people generally do not like large tax hikes. I don't think it's a stretch to think people will not like this tax increase, either.
by hundchenkatze | 2025-07-24 16:14:45+00:00
ok, from this response I can only assume you use FF/Safari/Chrome/etc... you've just described how the web/browsers/ISPs work.

My browser does all these things too. You initially made a point to imply that you were doing something different than the average person.

I was more interested in the specific tools you use. Sorry I wasn't excruciatingly specific in my question, I forgot what site I was on.
by tartoran | 2025-07-24 16:15:05+00:00
> Ships are actually much more fuel efficient than trucks, by weight/volume.

Ships are indeed more efficient if you look at it on per mile comparison but distances are much bigger. Shipping things from one side of the planet to the other is not something too efficient imo. It's just makes sense if you look at economics and differences in price of labor, regulations and so on but these do have externalities that eventually cancel out the benefits.
by Sharlin | 2025-07-24 16:15:09+00:00
> to describe the property of programming languages that don't admit to memory corruption vulnerabilities, such as stack and heap overflows, use-after-frees, and type confusions.

And data races allow all of that. There cannot be memory-safe languages supporting multi-threading that admit data races that lead to UB. If Go does admit data races it is not memory-safe. If a program can end up in a state that the language specification does not recognize (such as termination by SIGSEGV), it’s not memory safe. This is the only reasonable definition of memory safety.
by LocalH | 2025-07-24 16:15:12+00:00
It's funny how experiences can be so different (likely by Google's design, of course). I've been having degraded experience with YouTube using uBlock Origin on Vivaldi. I elected to make use of a one-month trial for Premium. Suddenly these problems went away. Interestingly, after canceling the trial, the problems still haven't come back (yet). Things like, I would load a video, it'd start playing, but the browser tab itself would just block for a good 20-30 seconds. The entire time, the video is playing (well, I could hear the audio but the visuals were frozen). Then things would unblock and comments would appear, etc.

The difference between my YouTube interface with and without premium is stark. Aside from the ads, it seemed like the algorithm pushed less slop in front of me to avoid. Purely anecdotal, and likely affected by A/B bullshit (or nowadays would it be more like A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/V/W/X/Y/Z).