MurphyA/hacker-news huggingface dataset:
by asimops | 2025-05-17 19:24:00+00:00
Since all Pixel phones have the FeliCa build in, I would have loved for GrapheneOS to just enable that in their builds for all phones. It would have been one patch to a library call, so that it always returns true. But I found an issue where the team sadly dicided against it :( I still loved the system when visiting Japan and would wish that Germany had something alike.
by inetknght | 2025-05-17 19:24:06+00:00
> Push everything down for better code readability

> demonstrates arrow anti-pattern

Ewwww gross. No. Do this instead:

if(!printerReady){ return; } if(!printerHasInk){ return; } if(!printerHasPaper){ return; } if(!invoiceFormatIsPortrait){ return; }

Way more readable than an expanding arrow.

> printInvoices(invoices) // much better than

But yes, put the loop into its own function with all of the other assumptions already taken care of? This is good.
by permo-w | 2025-05-17 19:24:32+00:00
the point is that it partially takes it out of the hands of the government of the day. if it were solely funded by taxes, it would be long since dead or privatised by now, and if it weren't it would be entirely beholden to pleasing the government. maybe in a more mature country it could work, but not here

I think the license fee, with a couple of tweaks, could be absolutely ingenious. the best of both worlds. the freedom of choice of the free market, and the lack of commercialism of the public sector, and no one has to pay taxes for it. however, it does restrict user choice somewhat by forcing them to pay for it to watch any live tv, even football on streaming platforms. I think there could be a discussion to be had about changing it to where users pay just to watch the BBC and not live tv in general
by AnthonyMouse | 2025-05-17 19:26:45+00:00
This is what constitutions are for. When you have the support, you install a constitutional protection that says the government can't do this. Repealing the protection requires the same super-majority needed to pass it, so changing the law isn't just a matter of the tyrants needing to get back to 51% from 49%, they have to get from 33% to 67%.

Then you layer these protections against multiple levels of government so they'd all have to be repealed together by separate legislatures before the government is allowed to do it, discouraging the attempt.
by tacker2000 | 2025-05-17 19:26:51+00:00
Just thought about this in the context of searching for products. Nowadays there is so much stuff and also so much information available, one just gets lost in this huge sea and spends countless hours trying to find the “best” product… back in the days you would have only one or two choices and that would be it. But was it better? Im actually not so sure…
by jandrewrogers | 2025-05-17 19:26:56+00:00
The quality measure for a hash function is the probability that it is a random oracle for any given set of hash keys. Test suites will test tens of thousands of key sets (and billions of keys) with different properties. The distribution of probabilities across those tests can then be compared to the same distribution from a random oracle instead of a hash function.

The best cryptographic hash functions, like SHA-256, are very close to a random oracle. Weaker cryptographic hash functions, like MD5, are significantly further away and stronger non-cryptographic hash functions, like rapidhash, are further yet. Most non-cryptographic hash functions are so far away from a random oracle in some of the tests as to be effectively broken. XXH3 is an example of this, anyone can try it for themselves using e.g. SMHasher3. For these “broken” cases, the hashes quite obviously don’t have a random distribution.

There are a couple important points to take away from this:

Hash quality is a function of the key set. If you know the properties of the key set ahead of time, which is often the case, then you can construct a hash function with narrowly optimal quality and performance even though it is totally broken for many other key sets that are out of scope. These almost always perform better than a general purpose hash function. This is a good performance engineering trick.

For a hash function to claim suitability for “general purpose”, it needs to be consistently close to a random oracle across all key sizes and key distributions. If it breaks for one key set, it is broken for many others that you didn’t test. Being closer to a random oracle across tens of thousands of tests does not imply that the hash function is not broken (even SHA-256 may be broken) but it greatly improves the probability that you will never accidentally generate a key set that creates a severely biased hash distribution.

Most non-cryptographic hash functions sacrifice quality to improve latency. Low latency and small I-cache footprint is very important for small-key hashing performance in real systems. The Pareto frontier of quality+latency is still quite an active area of research. Any hash function that was designed 10 years ago will be very far from that frontier, the state-of-the-art is fast-moving.

There is a similar Pareto frontier for quality+throughput e.g. hashes used as block storage checksums.

As for why XXH3 is popular, it is incessant self-promotion and marketing. I recently went down a rabbit hole of analyzing quality measures for many hash functions to see how far the state-of-the-art is from the cryptographic hash functions, so the data is pretty fresh. The great news is that non-cryptographic hash quality is now qualitatively far beyond what it was even a few years ago while at the same time improving performance.
by rad_gruchalski | 2025-05-17 19:27:16+00:00
Wow, you can now pay to have „engineers” being overruled by artificial „intelligence”? People who have no idea are now going to be corrected by an LLM which has no idea by design. Look, even if it gets a lot of things right it’s still trickery.

I get popcorn and wait for more work coming my way 5 years down the road. Someone will have tidy this mess up and gen-covid will have lost all ability to think on their own by then.
by quietbritishjim | 2025-05-17 19:27:50+00:00
In the US (and other countries) the door is locked but there is a PIN to open it that the cabin crew have access to. Even then, there's a time delay to the door opening, during which people in the cockpit are notified and can reject the request.

That means that no food cart should ever be needed to block the door. But the cockpit should never be totally empty anyway, as surely only one of the two crew should be using the toilet at a time.

(Note: I'm not a pilot, just a reader of Admiral Cloudberg's blog.)
by zyntraxis | 2025-05-17 19:28:19+00:00
Zyn can integrate with non-Zyn-style projects (like CMake or Make-based ones), but it treats them as opaque third-party dependencies and handles them externally. Here's how it works:

Cloning: When you list a Git-based dependency like https://github.com/user/X in your zyn.toml, Zyn clones it into .zyn/deps.

Build Detection: Zyn looks for known build systems (CMakeLists.txt, Makefile, etc.) in the dependency. If found, Zyn runs the appropriate commands (cmake, make, etc.) to build the project.

Dependency Isolation: Zyn does not parse or resolve the internal dependency graph of project X. If X needs other libraries (Y, Z, etc.), you must also list those manually in your own zyn.toml. This gives you full control and reproducibility.

Header and Library Exposure: After building, Zyn makes the compiled .a/.so/.lib and headers available to your main project automatically by linking them via -I and -L flags.

Example:

Let’s say project X depends on Y and Z, but doesn’t use Zyn itself and just mentions this in a README. You’d do: [dependencies] X = "https://github.com/user/X" Y = "https://github.com/user/Y" Z = "https://github.com/user/Z" Zyn will fetch and build all of them. It doesn’t care that X has no zyn.toml.
by drillsteps5 | 2025-05-17 19:28:20+00:00
Not sure why this hasn't triggered a discussion, I thought a lot of readers include parents of young(er) children?

I totally lost my teen to TikTok and deeply regret succumbing to their (and my wife's) pressure to give them an iPhone at 14 (they're 16 now). It's like hours upon hours of mindless scrolling, with occasional gaming sprinkled in.

My youngest is 10 and has a dependency on school iPad (school was giving up iPads during COVID when they were teaching remotely). We have to monitor their usage closely and unfortunately angry outbursts (ie when it's time to stop) are a regular occurrence.

The 10yo does have a lot of extra-curricular activities so having a cellphone would be a big help (to know where they are and give them an option to contact us if anything happens). But there's just no way I'm giving them a smartphone anytime soon.

I think there's sooo many parents in my position and do hope that some of these devices might be able to help.
by jiggawatts | 2025-05-17 19:29:51+00:00
Yes, infalling victims will have a rather unpleasant time as they discover that black holes are secretly supernovas frozen in time.

Outside observers see the victim's own black body radiation become extremely redshifted, asymptotically matching the black hole's black body radiation.

If you mathematically "undo" this distortion for both, then what you are really observing from the outside is a star's worth of matter getting converted to pure energy and the infalling victims getting blasted in the face by that.

The victims can't make it back out "whole and intact" in the same sense that you're not going to keep your atomic integrity if you're up close and personal to a supernova.

Your quantum numbers however... those can be preserved nicely.
by loic-sharma | 2025-05-17 19:30:05+00:00
This project helps but isn’t enough alone:

1. Dart can’t cross-compile from Linux to iOS yet. You could use Dart’s interpreter instead, but that’d significantly regress performance.

2. Flutter iOS projects use the Xcode project format, you’d need to migrate that to xtool’s project format

3. Flutter hasn’t finished migrating its plugin ecosystem from CocoaPods to SwiftPM - any plugin that hasn’t migrated to SwiftPM yet likely won’t work with xtool.
by permo-w | 2025-05-17 19:30:19+00:00
my perspective is that we shouldn't be shaping our laws based on whether the least competent 0.001% of society can deal with the administrative implications. if you're so incompetent that you can't handle any of the many many stages between paying your license fee and going to prison, then you've got bigger issues and perhaps you should be in care or still in school

on the other hand if they're deliberately not engaging with those stages, then it's hard to really feel much sympathy
by atum47 | 2025-05-17 19:32:28+00:00
I made a video tutorial about a similar thing long time ago - choosing black or white for text color given a color background. My solution was very simplistic. I just transformed the color to gray scale and compared it between black and white. It was a fun project. I'm not good making videos though.

https://youtu.be/tUJvE4xfTgo?si=vFlegFA_7lzijfSR (warning: video is in Portuguese)
by eichin | 2025-05-17 19:32:53+00:00
Hmm, it feels like there'd be some interesting crossover between this and https://seattleultrasonics.com/pages/knife-database but while the "Quantified Knife Project" has a lot of numeric test-result data, it looks like they only have "marketing names" for the steel used (if you click through the links in the "model name" column for each knife.)

(Ah, the raw data is available https://github.com/seattleultrasonics/Quantified-Knife-Proje... has a "Blades" tab which might be enough to correlate.)
by romankolpak | 2025-05-17 19:33:38+00:00
When I was younger I had a few different sources for finding music - a couple of friends who were really into music and I knew they were investing time and searching for it, so I always wanted to hear what they recommend, even if it didn’t match my taste. There was also a curated website and a forum dedicated to alternative genres, like hardcore or post rock and other “edgy” stuff, where I liked to hang out. I knew this is where people really passionate about music gathered and it was interesting to see what they like and what they recommend. It was always driven my community, by people I liked or loved, or trusted their judgement.

Needless to say you get none of that with algorithms. Spotify does recommend some good songs for me regularly and I often add them to “liked” but it’s much lonelier now. Music used to connect me with other people and now it’s just me and my Spotify.
by runarberg | 2025-05-17 19:34:02+00:00
First lets address this fundamental misunderstanding:

> Reasonable grounds doesn't justify an arrest warrant.

As I understand it Reasonable Grounds is a technical term used by prosecutors precisely to justify arrest warrants. It is literally the definition of Reasonable Grounds. The court argued that it had reasonable grounds to make this decision.

https://legalclarity.org/what-are-reasonable-grounds-for-mak...

> People accepted this when the court was dealing with a rouge dictator or warlord but it's an insane law to apply towards a western democracy.

I don’t share your worldview of western supremacy or western exceptionalism. Western countries are just as capable of committing atrocities as anyone else.

> Israel is upheld to a standard that no other country on earth has ever been upheld to.

This is a strong claim which should be easy for you to back up with solid arguments if true. I’ve seen this stated a lot before, and it is most often just stated as true without question. But I doubt it is. If you compare to the USA, you might be right. USA is allowed to get away with a bunch of crimes against humanity, and is held to a very lax standard. I would hope Israel would be held to a higher standard than that. But if you compare to say Iran, or Russia, the argument falls apart. Israel is allowed to hold a nuclear arsenal, while Iran is meat with a whole loads of sanctions for developing a nuclear energy program used for civil power delivery. Israel is allowed to keep an occupation in the West Bank, annex the Golan heights, and blockade the Gaza strip, while Russia is correctly sanctioned for annexing Crimea and invading and occupying other parts of Ukraine. If Israel was held to a tougher standard we would see consequences for their Nuclear program and decades long occupation.

The rest of your post I only skimmed over. I saw a lot of excuses for Israel’s conduct, some of which have very flimsy evidence, and some have been flat out debunked over and over. I have no interest in arguing Israeli propaganda points with you, as you obviously believe them deeply, and I—as well as several of the worlds Governments (including Western Democracies[1]), human rights organizations, etc.—do not. Feel free to argue with them on the matter.

1: https://www.stjornarradid.is/library/02-Rit--skyrslur-og-skr...
by anon291 | 2025-05-17 19:34:48+00:00
This is because normal execution and async functions form distinct closed Cartesian categories in which the normal execution category is directly embeddable in the async one.

All functions have color (i.e. particular categories in which they can be expressed) but only some languages make it explicit. It's a language design choice, but categories are extremely powerful and applicable beyond just threading. Plus, Java and thread based approaches have to deal with synchronization which is ... Difficult.

(JavaScript restricts itself to monadic categories and more specifically to those expressible via call with continuation essentially)
by mrweasel | 2025-05-17 19:36:58+00:00
Denmark is a little under 6 million people, there are currently 12 parties eligible for election. That not really uncommon, the Netherlands also have a fairly large number of parties.

It seems more crazy to believe that two, three or four parties can represent 80 million or more people. The truth is that many of the parties in countries like Norway and Denmark are all fairly similar. They mostly agree on the basics. Six of the twelve parties in Denmark are, in my mind, variations on Social Democrats. I'm sure many would disagree, but they vary on issues, that in countries like the US, would be considered implementation details or narrow topics.
by nostrademons | 2025-05-17 19:37:59+00:00
I tried, and yes, an inverted balsa-wood glider will still fly. Actually just tried right now with a styrofoam glider, upside-down, and it's fine. Marginally less range than when flying right-side-up, but it's a very small difference.

I suspect that what's going on is that the center-of-gravity interacts with the center-of-lift to create a slight angle of attack regardless of what orientation the plane itself has. Then there is some unknown feedback loop that keeps that angle of attack from getting too large and stalling. It's not unlimited - if you make a paper airplane whose wings are too far forward or center of gravity is too far back, it will still stall - but it keeps most reasonable planes moving forward rather than down.
by kace91 | 2025-05-17 19:38:01+00:00
Message boards and niche sites worked really well for me in the early 2000. What made them useful though was that astroturfing was non existing at the time.

There was a very famous case in my country of a preppy kid who took the whole rap world by storm getting stupid numbers in a niche site, and only after he had gotten big contracts with multinational labels it came out that he had just set a bot to download the music and inflate numbers, that’s how trust based the system was.
by BlueTemplar | 2025-05-17 19:38:06+00:00
> As Mark Twain said, “A lie can travel around the world and back again while the truth is lacing up its boots.” Actually he probably didn’t say that—but everyone keeps saying he did, illustrating the point perfectly.

It was Gandalf who said that of course. And before you try to contradict me, let me point out that Gandalf is a wizard that has no need to bother with silly things like spacetime continuity.

P.S.: https://quoteinvestigator.com/2014/07/13/truth/

> In conclusion, there exists a family of expressions contrasting the dissemination of lies and truths, and these adages have been evolving for more than 300 years. Jonathan Swift can properly be credited with the statement he wrote in 1710 [(that does not mention footwear yet)].
by matheusmoreira | 2025-05-17 19:39:16+00:00
The real problem is the fact compilers constantly screw up perfectly good code by optimizing it based on unreasonable "letter of the law" assumptions.

The issue of signed versus unsigned is tangential at best. There are good arguments in favor of the use of signed and unsigned integers. Neither type should cause compilers to screw code up beyond recognition.

The fact is signed integer overflow makes sense to programmers and works just fine on the machines people care to write code for. Nobody really cares that the C standard says signed integer overflow is undefined. That's just an excuse. If it's undefined, then simply define it.

Of course you can test for INT_MAX. The problem is you have to somehow know that you must do it that way instead of trying to observe the actual overflow. People tend to learn that sort of knowledge by being burned by optimizing compilers. I'd very much rather not have adversarial compilers instead.
by igouy | 2025-05-17 19:39:21+00:00
> Java performance isn't the fastest, that's ok, a close 3rd place behind C/CPP ain't bad. And you're still ahead of Go, and 10x or more ahead of Python and Ruby.

Of course, rank depends on what we include or exclude from the rankings, for example:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

:versus:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
by kmm | 2025-05-17 19:40:05+00:00
Is it really that siloed? The condition mentioned in the article (there being a global timelike Killing field) is discussed in all introductory texts on quantum field theory in curved spaces, it's even present in the first few paragraphs of the relevant Wikipedia article[1]. Even if it doesn't apply here, the authors ought to have mentioned why not.

I don't think they were stupid per se, nor malicious, but perhaps cavalier in pushing a result with such unexpected consequences without getting a consult.

1: https://en.wikipedia.org/wiki/Quantum_field_theory_in_curved...
by quantadev | 2025-05-17 19:40:47+00:00
It's just like the Lorentz Tranform or any other of the laws of Relativity. Things can get very massive and/or time can slow way down, but ultimately there's not a "problem" (i.e. mathematical failure requiring the theory to be extended) until the speed of light is reached, as an asymptotic limit.

But you're raising a good point that maybe Lorentz is pointing to 'non-integer dimensionality' where even enough mass crammed into a small enough space causes the "new maths" to begin to noticeably take hold. Like I said I see Lorentz as a way to transform dimensionality from N-D to (N +/- 1)D, but in a continuous and 'differentiable' way.

In super simplistic terms Lorentz is a "compression" function where one dimension of space is compressed perfectly flat, which is the mathematical equivalent of removing that dimension from the 'degrees of freedom' of the system.
by troupo | 2025-05-17 19:41:33+00:00
I didn't vote, but "your article is wrong" take ignores literally the entire article, and the rather detailed explanation on why "bigger contrast by pure numbers is more contrast" does not work.

> in 2020 built color system around the same science, enabling latest iterations of Material theming

No wonder everything Google builds, including Material, always has issues with contrast.
by jbverschoor | 2025-05-17 19:41:59+00:00
You know what's funny? Spring (earlier versions) had even more xml ;-)

I dunno it just worked for me. But I kept using the standards, no vendor lockin stuff, which bea etc always wanted.

I think the servlet design is great, the whole packaging/deployment model is great. And then well the session beans were overkill in general, so they were swapped out quite early by me. Swapped jsp out for I think velocity templates. And that application is still alive, running, and on the same platform.

And Java meant, at least for me and how I configured it, proper debugging and IDE support (love Eclipse), hot code reload, easy releases, repeatability, ci/cd. The last 20 years, no __significant__ improvements in my opinion.