MurphyA/hacker-news huggingface dataset:
by nayuki | 2025-11-01 01:37:56+00:00
In Rust, one way I use shadowing is to gather a bunch of examples into one function, but you can copy and paste any single example and it would work.

fn do_demo() { let qr = QrCode::encode_text("foobar"); print_qr(qr); let qr = QrCode::encode_text("1234", Ecc::LOW); print_qr(qr); let qr = QrCode::encode_text("the quick brown fox"); print_qr(qr); }

In other languages that don't allow shadowing (e.g. C, Java), the first example would declare the variable and be syntactically correct to copy out, but the subsequent examples would cause a syntax error when copied out.
by lostlogin | 2025-11-01 01:39:15+00:00
I’m not intending to imply anything, I’m trying to state it.

Having political control of the country being hereditary, male and white is something that does not represent the make up of Britain. It represents the way Britain was run a long time ago and the current political infrastructure is not a strength.

If political control was actually democratic and representative of the country, I don’t think the situation would be worse.
by OutOfHere | 2025-11-01 01:39:56+00:00
I don't know why this was posted, considering https://github.com/everyside/swirldb says quite clearly:

> UNDER ACTIVE DEVELOPMENT

> SwirlDB is in early development and not ready for production use. The API is unstable and subject to breaking changes.

It is inappropriate to post projects that are not ready for use.
Show HN: FTS-Tool – Fast Peer-to-Peer LAN File Transfers and Chat
by Terabase | 2025-11-01 01:40:39+00:00
I created this tool after getting fed up with using a flashdrive and cloud storage for LAN file transfers. So I made this tool to help talk and send files with my peers! I’d love for you all to check out the project and give feedback. This is my first tool I am showcasing, and I’m excited to see what you think!
by westurner | 2025-11-01 01:41:03+00:00
TIL about blazeio.

blazeio: https://github.com/anonyxbiz/Blazeio

TechEmpower Framework Benchmarks > Round 23 (2025-02) > Data Updates: https://www.techempower.com/benchmarks/#section=data-r23&tes...

TechEmpower/FrameworkBenchmarks > wiki > Project-Information-Framework-Tests-Overview: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Proj...

TechEmpower/FrameworkBenchmarks > Python: https://github.com/TechEmpower/FrameworkBenchmarks/tree/mast...
by rufus_foreman | 2025-11-01 01:41:15+00:00
>> It feels like banning advertising for gambling would be a sweet spot between harm reduction and maintaining individual liberty

No.

If you want restrictions on gambling, on advertising it, on participating in it, on making money from it, you want to restrict individual liberty.

I want to restrict individual liberty, I have voted against gambling when it has come up for a vote in my state over and over.

You want to appear to be the type of person who wants to maintain individual liberty, but you in fact are not. You want to restrict individual liberty in the area of gambling.

I would also like to appear to be the type of person who wants to maintain individual liberty, and I will vote against gambling every single time it comes up.

No gambling.
by moduspol | 2025-11-01 01:42:30+00:00
Even that presumes you already know when you’ll want to leave and come back. For me, I’ve got a vague idea, but it’ll depend on how much time I want to spend there. And that’ll be based on what I want to do, which may only be available certain days of the week or times of day. And that’s before factoring in the prices of those things relative to their availability and how much I want to do them.

To figure all this out, I’m going to need to keep notes across several browser tabs, likely while communicating asynchronously with whoever else is going on the trip. All of this is dramatically easier with an actual computer.
by Retric | 2025-11-01 01:43:11+00:00
> In the real world, these requests are being made, and servers are generating responses.

Except that’s not the end of the story.

If you’re running a scraper and risking serious legal consequences when you piss off someone running a server enough, then it suddenly matters a great deal independent of what was going on up to that point. Having already made these requests you’ve just lost control of the situation.

That’s the real world we’re all living in, you can hope the guy running a server is going to play ball but that’s simply not under your control. Which is the real reason large established companies care about robots.txt etc.
by willis936 | 2025-11-01 01:43:13+00:00
And he'll still have more mindshare and cultural influence than Apple TV and Paramount. It must be so frustrating to the suits realizing that they cannot simply spend their money to control opinions.

Remember how much trust traditional media had 20 years ago? If Jon left and CBS decays they would have literally nothing left. It would be a big fat 0 on the balance sheet.

If these companies weren't run by idiots they would see the value in trust. They've just dismantled their empires because they don't know what business they're in.
by schiffern | 2025-11-01 01:43:18+00:00
Buzz Aldrin is the original legend. His PhD was literally "how to eyeball your way there in orbit,"[0] and then he actually performed the calculations and procedure he invented (with slide rule and sextant) when the automatic system failed on Gemini 12. He used less fuel than the computer.[1]

There's a reason why his nickname among the other astronauts is Doctor Rendezvous.

[0] https://dspace.mit.edu/handle/1721.1/12652

[1] https://history.howstuffworks.com/historical-figures/buzz-al...
by ssivark | 2025-11-01 01:46:18+00:00
Yup, that’s basically the idea behind lenses, once you add a few more ergonomic niceties.

The Haskell approach is to take any pattern, abstract it out into a library, and reuse instead of ever having to implement that plumbing again I.e. a very generic get/set_foo which could specialize to specific fields/structures. Following that, you could also write a lenses library in Cpp if you don’t want to redo this for every project.

The point is not that it can’t be done in non-functional languages, but that it’s an uncommon pattern AFAICT; the common approaches result in much less modular code.
by TheOtherHobbes | 2025-11-01 01:46:21+00:00
There's a long-lived niche interest in making yachts out of concrete and rebar.

It's not quite as stupid as it sounds. While it's not ideal for speedy sailing, it's cheap, exceptionally strong - which matters for adventures around ice - and low-maintenance.

But if it fails, it really fails, and the boat suddenly sinks like a rock.

Not everyone thinks it's a bad idea, but it's not exactly a mainstream hobby.

https://www.ferrocement.org/facts-and-falacies/
by westurner | 2025-11-01 01:46:24+00:00
Notes re: ocular regenerative medicine: https://news.ycombinator.com/item?id=43209684 :

> Accomodating IOLs that resist UV damage better than natural tissue: Ocumetics

Ocumetics is developing an accomodating IOL: https://ocumetics.com/#bionic :

> Ocumetics Lens technologies have been designed to create an accommodating intraocular lens, which fits within the lens capsule and eliminates the need for corrective lenses, using the natural kinetics in the eye ciliary muscles and zonules. The proprietary design has been created to be used as a replaceable device that serves secondarily as a docking station for customized optics and evolving nanotechnologies.

> Its basic framework consists of two components that are designed to engage and interact within the confines of the eye’s natural lens space to establish a dynamic and particularly sensitive connection between eye muscle action and curvature change. This connection can be adapted for virtually any eye, regardless of the lens prescription.
by YurgenJurgensen | 2025-11-01 01:46:49+00:00
‘Responsible’ gambling is still morally irresponsible. People are walking adverts for their hobbies whether they like it or not, so people who engage with gambling will be indirectly encouraging other people to take up the hobby, many of which will ruin their lives. (Also some fraction of their losses will fund advertising that will similarly attract problem gamblers.) The low stakes recreational gamblers keep the system looking friendly and approachable. This is also almost certainly by design.
by geor9e | 2025-11-01 01:47:20+00:00
HN Headline is categorically false.

"you cannot use our services for: provision of tailored advice that requires a license, such as legal or medical advice, without appropriate involvement by a licensed professional"

So, they didn't add any handrails, filters, or blocks to the software. This is just boilerplate "consult your doctor too!" to cover their ass.
by aussieguy1234 | 2025-11-01 01:47:46+00:00
The auto reboot is configured by default. Its quite a long window, every 18 hours or so from memory. It can be configured to be shorter than this.

I experimented with one hour, but missed an alarm.

Its good security practice to reboot your phone before going to bed, this puts it in the much harder to break in to BFU state.
by kmeisthax | 2025-11-01 01:49:10+00:00
If there's one thing I find the most galling about Cellebrite and the larger realm of state-sponsored hacking, it's that it's practically destroyed the ability to jailbreak devices. Pretty much everything on PPL/SPTM has no public jailbreaks to speak of anymore, at least not until way after the feds have thoroughly 0wned you first.

While some of this comes down to "Apple increased their security posture", a lot of it is that these exploits are $$$ now... and also that nation state actors only really care about data exfiltration. It's https://xkcd.com/1200/ all over again. The thing the nerds actually want is, well, not useless to the glowies, but it is definitely overkill.
by gus_massa | 2025-11-01 01:52:53+00:00
My rule is:

If it has a lot of equations, use LaTeX

If it has a lot of text, use Word/Docs/Whatever

The advantage of LaTeX is that you can use "Macros" to ensure a consistent style. You can also do that with "Styles" in Word, but nobody uses them. (I'm not sure if Docs support styles.)
by edot | 2025-11-01 01:54:15+00:00
Damning which way, though? Are gambling taxes too high, or are corporate taxes too low? And since corporate income is surely higher than gambling income, I’m inclined to think that gambling taxes are too high AND corporate taxes are too low, creating this odd fact.

Edit: and I know it sounds weird to say that gambling taxes are too high, when one could argue that high taxes are meant to disincentivize a thing - but if that thing is highly addictive, and if no other state action is taken to disincentivize that thing, then it’s actually a really sticky income source for the government who now doesn’t want to get rid of their cash cow. Tobacco ads are outlawed, which did more than taxing tobacco. Gambling ads are absurdly common.
by danaris | 2025-11-01 01:54:16+00:00
I got the nanotexture on my current work M4 MBP—it doesn't completely eliminate reflected light, but it diffuses it a lot. If I were in a dark room with a light source positioned perfectly to reflect off my screen in my face, I would probably still have trouble with it, but in general I don't need to reposition the screen to avoid glare nearly as much.

I would say it's worth the extra, what, $200 or so? on the price of the M4 MBP. If it were much more expensive, I would be less sure.
by deepsun | 2025-11-01 01:54:49+00:00
No, attack on _forces_ (army, national guard, police etc) will not be recognized terrorism, most likely. Those forces are assumed to not get afraid. Of course, I can imagine something like that that might be considered terrorism, but it's a long stretch, don't remember any cases. Terrorism is almost always directed towards civilians.

Also when a force commits terror acts against other force (e.g. Russian military maiming captured PoWs) -- that's a war crime, not a terrorism either.

And why we so quick to jump to "attack"? There is a huge area the Militia can do without "attack"s. Sabotage, road blocks, building blocks, detention. Detention is violence, but it's not attack.

PS: of course the other side may call it "terror", that's for sure.
by lcuff | 2025-11-01 01:55:26+00:00
Nope, I don't see that. As a therapist, this is a big part of our training. Using it in a business context, there's more emphasis on ideas, whereas in therapy, you do ask people how it makes them feel. Often because people don't know how they feel, and that's important in intimate relationships.

It can land as awkward, un-natural, yeah even 'fake' when it's being used by somebody who is just learning it and is practicing, though after time it will lose those qualities. If people you know are using this on you, they might need to own that they're trying something different to get you into a comfort zone before pressing on.

No kidding here.
by derekp7 | 2025-11-01 01:57:17+00:00
> Property taxes are usually % of value, so dependent on absolute value changes, not changes relative to the rest of the community.

I may be completely wrong, but this is what I've been told by people I've known in the past that held some local public office (such as a coworker in one case, and a neighbor in another, they were both local aldermen). I've also google searched it, and came up with similar answers.

Typically, a city / county budget is set, and they then need to collect it from the pool of property owners by taking the assessed value and using a multiplier to reach their budget target. Now the budget may increase due to inflation or other factors, but I'm not aware of any local government that suddenly finds itself flush in cash due to doubling of property values. If your elected officials do things differently and look at rising property values as their own windfall, well then you and your neighbors need to vote them out of office real fast.

I've verified this with my own house (both the last one and current one, about 30 years of home ownership). The 2008 - 2009 crash had negative affects on property values, but my property taxes didn't go down, and insurance quadrupled (because the insurance companies lost a lot on investments and had to make up for it). And plotting property tax increases over the last 10 years where my property doubled in value, the taxes were just under 5k when I bought and now are just barely over 5k.

One thing that can happen, is as budgets go up with inflation or new initiatives, absolute dollar amount taxes rise accordingly. And people don't like to pay more taxes, so a lot of people will appeal their tax assessment. And a good attorney can get it lowered to some degree. That means that everyone who hasn't fought (and won) against their tax assessment (the assessed value of their home), will see their taxes increase more as their assessed value is now higher relative to the neighbors who fought their assessment.
by thephyber | 2025-11-01 01:59:23+00:00
I don’t buy that reasoning. They clearly don’t care about their blame claims matching reality, so they will continue to lie about causes. The same with norms — they don’t stop breaking the norms of the US government and politics during Trump’s terms.

That said, there does seem to be something which has thus far kept them from changing the cloture/filibuster rules to pass bills with a simple majority. I’m curious if the “Freedom Caucus” is fearful of Republican leadership so they are still holding the Sword of Damocles over the role of the Speaker of the House.
by Karrot_Kream | 2025-11-01 02:00:46+00:00
This is actually a good example of what I mean. Heart disease is meticulously studied. Its incidence is tracked tracked. It has longitudinal studies. Its mechanisms are explored. It has peer reviewed studies discussing interventions. Doctors talk all the time about the tradeoffs their patients can make to decrease their chances of getting heart disease.

What it has a lot less of is random public policy influencers writing polemics about it. There's some, sure, and that's exactly where RFK and the MAHA coalition come from. But professionals don't treat MAHA and their blogs as coda. So why do we do the same for anything related to money?
by kibwen | 2025-11-01 02:02:10+00:00
> So yeah, which of those concerns was async Rust really designed around? All of them I guess?

Yes, all of them. Futures needed to work on embedded platforms (so no allocation), needed to be highly optimizable (so no virtual dispatch), and need to act reasonably in the presence of code that crosses FFI boundaries (so no stack shenanigans). Once you come to terms with these constraints--and then add on Rust's other principles regarding guaranteed memory safety, references, and ownership--there's very little wiggle room for any alternative designs other than what Rust came up with. True linear types could still improve the situation, though.
by jleyank | 2025-11-01 02:03:15+00:00
Hell, they’re divesting from new drugs as well as new vaccines. Or vaccines of any kind. I read that people are resisting vitamin k shots for newborns to help with blood clotting. I guess this will continue until too many people “regret their decision” with prejudice. A hell of a lot of money and effort has gone into keeping people healthy and keeping pathogens at bay. Ignore that at your peril.

They say they want cures, but they won’t accept them if/when they’re delivered.
by espeed | 2025-11-01 02:03:50+00:00
Grokipedia vs. Wikipedia Jesus Entry https://espeed.dev/Grokipedia-vs.-Wikipedia-Jesus-Entry

I also asked ChatGPT and Claude: https://chatgpt.com/share/6902ef7b-96fc-800c-ab26-9f2a0304af...

https://claude.ai/share/3fb2aa34-316c-431e-ab64-0738dd84873e
by thephyber | 2025-11-01 02:05:45+00:00
You keep saying filibuster, but it is the “vote for cloture” (similar to a quiet filibuster) which is the thing that has blocked most legislation.

I am curious why Republicans have not changed the parliamentary rules for cloture. The party seems to be pushing states to gerrymander to benefit their Congressional power as early as the next Congressional election. My best guess at the moment is there are a few Republican members who fear what the party leadership does with no opposition party constraints.
by Borealid | 2025-11-01 02:06:43+00:00
I think you're missing the key point about return types with checked exceptions.

`int thing()` in Java returns type `int`. `int thing() throws AnException` in Java returns type `int | AnException`, with language-mandated destructuring assignment with the `int` going into the normal return path and `AnException` going into a required `catch` block.

`int thing() throws AnException, OtherException` returns type `int | AnException | OtherException`.

The argument you're making, that the compiler doesn't know the return type and "you lack type system capable of reasoning about that explicitly", is false. Just because the function says its return type is `int` doesn't mean the compiler is unaware there are three possible returns, and also doesn't mean the programmer is unaware of that.

The argument you are making applies to UNchecked exceptions and does not apply to CHECKED exceptions.
by jerf | 2025-11-01 02:06:44+00:00
"not sure if it’s mathematically correct,"

There isn't always "a" correct extension into higher dimensions. There may be many, there may be none, and either way something "close enough" may well be interesting in its own right.

If you'd like something concrete to poke at you can try searching around for people's adventures in trying to make a 3D Mandelbrot. I've seen a couple of good write-ups on those adventures. I don't know if anyone has ever landed on a "correct" solution, it's been years since I last looked, but certainly some very interesting possibilities have been found.
by Xophmeister | 2025-11-01 02:06:50+00:00
Neat :) When I was a teenager, some 25+ years ago, I wrote a chaotic attractor visualiser like this — but only in 2D — and it occurred to me, “What if instead of visualising it, I rendered it to audio?” I don’t remember the details: I think frequency was correlated with polar angle and amplitude to magnitude. It forced me to learn how to write WAV format — which was my first introduction to endianness — but the result wasn’t completely inaudible! A bit like the sound effects for computers in old sci-fi movies; random(ish) but not discordant beeps and boops!
by thephyber | 2025-11-01 02:06:51+00:00
This comment makes you look willfully ignorant of the statements and actions of Republicans in power.

Start with DOGE and Russel Vought’s actions. Then look at Congressional Republican’s recision bill, their lack of Article 1 oversight of what Trump’s Executive is doing, their consistent support of the Executive against any attempt by the Judicial to enforce the law.
by wingworks | 2025-11-01 02:06:54+00:00
I mostly use a computer because you can get a better idea what is a good deal, and fits in my budget. If I had stacks of cash, I could easily see myself booking everything via my phone.

But I'm too much of a penny pincher..

But I do often only pre-book the first night/s accom, then book the rest as I travel and know where I will be when. But I do travel with my laptop, and often will park up somewhere and hotspot it, to find that days accom. (+ I get cash back deals on computer)
by skoskie | 2025-11-01 02:07:43+00:00
Thinking this through… I spent around $3500 and $4500 on my last two MBPs, but got 9 years of use out of each of them. That’s only $450/yr.

But where I used to get a new iPhone every other year, I’m now on the fourth year of my 13P and it still works great. That’s only $300/yr.

It’s interesting to think about.
by drcxd | 2025-11-01 02:08:04+00:00
> Me: It sounds like you’ve got mixed emotions at the moment. On the one hand, you’re happy that your boss says you’re doing a good job. But you’re questioning that, given the problems you’re having with Legal. Did I get that right?

No offense. However, this response from the first example feels robotic to me. It feels like I am talking with some kind of artificial intelligence. I guess we have to make it sounds more natural. In fact, the following examples feel more smooth to me.
by sysmax | 2025-11-01 02:08:18+00:00
Bah. It's a really cool idea, but a rather crude way to measure the outputs.

If you just ask the model in plain text, the actual "decision" whether it detected anything or not is made by by the time it outputs the second word ("don't" vs. "notice"). The rest of the output builds up from that one token and is not that interesting.

A way cooler way to run such experiments is to measure the actual token probabilities at such decision points. OpenAI has the logprob API for that, don't know about Anthropic. If not, you can sort of proxy it by asking the model to rate on a scale from 0-9 (must be a single token!) how much it think it's being under influence. The score must be the first token in its output though!

Another interesting way to measure would be to ask it for a JSON like this:

"possible injected concept in 1 word" : <strength 0-9>, ...

Again, the rigid structure of the JSON will eliminate the interference from the language structure, and will give more consistent and measurable outputs.

It's also notable how over-amplifying the injected concept quickly overpowers the pathways trained to reproduce the natural language structure, so the model becomes totally incoherent.

I would love to fiddle with something like this in Ollama, but am not very familiar with its internals. Can anyone here give a brief pointer where I should be looking if I wanted to access the activation vector from a particular layer before it starts producing the tokens?
by c0balt | 2025-11-01 02:08:44+00:00
That would be possible. The main problem there is that nixpkgs, the package repository one would want to translate, uses a good chunk of specialized build infrastructure (parts in nix, some in rust/Perl/Python) that is designed for nix (the package manger).

Some other semi-specific parts, like stdenv bootstrapping, are also a bit more complex than just some nix build instructions.