MurphyA/hacker-news huggingface dataset:
Show HN: DeepShot – NBA game predictor with 70% accuracy using ML and stats
by Fr4ncio | 2025-11-09 00:19:50+00:00
I built DeepShot, a machine learning model that predicts NBA games using rolling statistics, historical performance, and recent momentum — all visualized in a clean, interactive web app. Unlike simple averages or betting odds, DeepShot uses Exponentially Weighted Moving Averages (EWMA) to capture recent form and momentum, highlighting the key statistical differences between teams so you can see why the model favors one side. It’s powered by Python, XGBoost, Pandas, Scikit-learn, and NiceGUI, runs locally on any OS, and relies only on free, public data from Basketball Reference. If you’re into sports analytics, machine learning, or just curious whether an algorithm can outsmart Vegas, check it out and let me know what you think: https://github.com/saccofrancesco/deepshot
by sn9 | 2025-11-09 00:20:14+00:00
It's like time in the market.

In a real sense, you've spent decades likely increasing your risk unnecessarily when taking action early would have given you the greatest leverage to lower your lifetime risk.

But you can't change the past. If you didn't plant a tree 20 years ago, plant it today and you'll still get some benefit, minimizing any future increase in risk and maybe even lowering it.

You could realistically have almost half your life left before you, and you can still end up being fitter and healthier than you've ever been in your life if you adopt healthy habits around diet, strength training, and endurance training.
by plqbfbv | 2025-11-09 00:20:57+00:00
It's not just that. LED headlights are much more focused beams than the old bulb lamps.

As a guy with moderate myopia, even low beams can be extremely annoying up to the point of physically hurting my eyes if there are no street lights to reduce the contrast.

I like that I can see better and further, but at the same time if I put my car's low beams just slightly higher so they project more than ~30m away, I get flashed from cars passing in the opposite direction, no high beams required.

Matrix/Adaptive headlights should be mandatory with LED headlights to be honest.
by jonway | 2025-11-09 00:21:27+00:00
Could you please qualify both: the several years of chaotic annd uncontrolled immigration as well as Biden betting on employment vs inflation with the policies that you are referencing?

For example, while I’m aware that the Biden admin ended title 42, it had only been policy for a few years, ending this policy simply removes us to the Obama era. Although I certainly don’t intend to strawman what you are saying, Obama immigration certainly wasn’t chaotic and uncontrolled. These statements don’t comport with my reading of the facts, as well as inflation, since I understand this to be a global phenomenon. I am genuinely interested
by miki123211 | 2025-11-09 00:21:28+00:00
Another option is an anti-money-laundering like system.

It would need to be set up by an extremely powerful country, either the US or an alliance of smaller countries through international treaty.

It would work as follows:

There'd be a "naughty list." Anybody on the list would be arrested upon entering a participating country. This would include past or current company employees (if employed after the listing date). Companies from participating countries would be prohibited from interacting with listed organizations in any way, under treat of sanctions. This would include VPN, cloud and hosting companies, ISPs, domain registrars, email hosts, payment processors and ad networks. This would provide basic site blocking.

Foreign companies wouldn't be subject to the sanctions, but participating countries would also put them on the list.
by thelastgallon | 2025-11-09 00:21:57+00:00
> Something like > 30% of ICE agents and > 50% of CBP officers are Latino themselves. It's incongruent with the narrative being presented.

Nearly 100% of the people enslaving India were Indians, employed by British Easy India Company. Its just 3,000 british people from Great Britian with bad teeth that enslaved an entire country for ~200 years. People will do ANYTHING for a paycheck. The ethnicity of those employed means jackshit.
by nradov | 2025-11-09 00:22:13+00:00
You're arguing against a strawman. The reality is that most doctors will tell the patient their options and let them pick. While statins have some significant side effects in many patients, there is no downside to a better diet and frequent hard exercise (assuming proper technique). So it usually makes sense to at least try lifestyle modification as the initial therapy. And if that doesn't work for whatever reason then prescribe the drugs.
by matt-p | 2025-11-09 00:22:49+00:00
I honestly still cannot believe that a simple blogger needs to potentially comply with the regulations of some ~200 countries. What happens when the law of two countries conflicts? What if the UK say I need to verify everyone's age, but another country rules I cannot collect peoples IDs? Well I could geo fence the best I can and serve two different paths right? Nope, it seems not.

It's all total madness, and it's not just the UK there are even more crazy regulations coming from the EU. China, and others in Asia are well known for regulating too. A mess.
by Hizonner | 2025-11-09 00:23:27+00:00
First of all, this is about Web sites, and that's not a valid analogy. Web sites don't spontaneously send you letters, let alone kidnap you. You only get content you actively asked for.

Second, where is the person writing the letter from? Mars? They're going to have a hard time finding a place where kidnapping and extortion are legal.

Third, the letter would in fact presumably be aimed at a specific person in a specific country... as would the kidnapping.
by GloomyBoots | 2025-11-09 00:23:38+00:00
Sometimes I’ll search something benign on Google, DDG, or whatever. And I won’t have disabled safe search. But it will be on moderate by default. And yet, horrifyingly, sometimes I’ll see results that are NSFW.

I mean criticize AI all you want. But it sounds hilarious to act shocked here specifically about aspects of the web that we’ve all grown up accustomed to.
by MrJohz | 2025-11-09 00:23:51+00:00
It's further than that even. JSX has the semantics of (modulo a couple of optimisations there and there) a bunch of nested function calls returning normal JavaScript objects. That means you can, in your head, very easily convert between the JSX representation of an expression and the equivalent transpiled JavaScript code.

This is unlike a lot of other templating languages where, even if the expression part of the language is pure JavaScript (or PHP or Python or whatever), it's still interleaved with arbitrary text which will get printed out according to its own rules. This makes the whole thing much harder to reason about (leading to the philosophy that you should put as little logic as possible in your templates because it makes them harder to understand, _even when that logic is directly related to the templating process_.

A good example is for-loops. In a lot of templating languages, you start in text-land, then you enter expression-land to write the opening {% for (const X of ...) %} line, then you're back in text-land again. You sprinkle in a couple of expressions, and then at the end you go back to expression-land to close the loop. You're jumping backwards and forwards between the two worlds, but there's no real syntactical or structural support for mixing them.

Meanwhile, in JSX, you start in text-land, then you open up an expression between two curly braces, and in that expression you write the entirety of your loop. If you need to go back to text-land within that loop, you can create a _new_ set of text nodes, but you're not interleaving expressions and text in the same way.

The result of this is that, once you understand how your JSX will get compiled, it's very easy to read it as if it were the JavaScript that it will get compiled to, rather than as a separate templating language. Which in turn makes it very easy to think of it as "just JavaScript", even if it's technically a syntax extension.
by landl0rd | 2025-11-09 00:24:31+00:00
No, it's also able to do things like issue fines, which they have, although American law is not amenable to actually collecting those if their assets are all here. I don't really care if british choose to block something on british soil.

Murthy v. Missouri was generally a loss; 6-3 with Justice Barrett for the majority ruling states lacked standing, which is consistent with the Roberts court's informal policy of dodging. Alito dissented, joined by Thomas and I think Gorsuch, and that is worth a read. The more important one was NRA v. Vullo, a unanimous opinion from Sotomayor. Gorsuch wrote a concurrence as did I believe one other justice.
by tharne | 2025-11-09 00:24:35+00:00
> Why isn't it more popular if it's so good? Because popularity and merit are not the same thing.

Yes! To add to that, the question itself is wrong. We should be asking, how is OCaml able to be so good without being popular? People get the whole thing backward.

The popular languages are typically popular first, then get good later as a result of that popularity. They have to work, they have to be good, they're too big to fail.

This is what happened with Java. It was marketed like crazy at first and only later got refined in terms of tooling and the JVM itself. The R programming language was a mess for data wrangling, but once it was popular, people built things like the tidyverse or the data.table library. The Python ecosystem was disaster with all different testing packages, build tools, and ways to create and manage virtual environments, until the relatively recent arrival of uv, more than three decades after the creation of Python itself. And then there's javascript that's had more money, blood, sweat, and tears poured into it to be improved in one way or another because that's what practically anything running in a browser is using.
by nozzlegear | 2025-11-09 00:25:13+00:00
> Plenty of US citizens would actively cheer the notion of having a foreign government arrest their political opponents as an end-run around the fact they're not allowed to do it at home.

I'm not convinced that plenty of US citizens would celebrate a foreign government arresting an American for what would be protected by the 1A in the US. There will always be trolls, of course.

> After all, 1A/"freeze peach" laws should only protect you from your government, right?

If my government has the longest dick of all governments in the world, and knows how to swing it, I'm not so sure.
by sn9 | 2025-11-09 00:25:19+00:00
If you made a Venn diagram for the non-genetic risk factors for heart disease and Alzheimer's, they'd basically be a circle.

Being worried about dementia but ignoring things like heart disease, diabetes, poor sleep, getting enough exercise, eating a health-promoting diet, etc. is like worrying about paying for retirement but refusing to save and invest.

There are a handful of high-impact habits that meaningfully lower your risk for the major killers people are worried about: https://www.barbellmedicine.com/blog/where-should-my-priorit...
by csande17 | 2025-11-09 00:25:19+00:00
I don't think the syntactic sugar works how you describe. JSX components actually desugar to something like:

<b>{jsx(MyComponent, { attr: "yes" })</b>

(Previously this function was called "React.createElement", but these days they have special functions that only the JSX compiler is allowed to use.) The extra layer of indirection is needed to do things like support hooks being called inside of MyComponent's function body, keep track of `key` props, and so on.
by Neywiny | 2025-11-09 00:25:50+00:00
It's 1 watt per antenna. They have 240, or 53.8 dbm. So assuming 39.3 and your 283 (which seems to be around what I'm seeing online) that's -283+(39.3*2)+53.8=-150.6 dbm receive power. That should be plenty.
by musicale | 2025-11-09 00:26:00+00:00
I think it's wonderful (and remarkable) that DEC employed David Ahl in educational product marketing, where he basically (indeed BASICally) bootstrapped the computer gaming field.

After DEC killed its first microcomputer projects (not wanting to compete with its own minicomputer business) in 1974, Ahl left DEC to found Creative Computing and catalyze the microcomputer (and BASIC gaming) revolution of the 1970s. DEC later realized its mistake in ignoring the growing PC market, but never became a major player until they were eventually (and perhaps poetically/ironically) acquired by Compaq.

https://en.wikipedia.org/wiki/David_H._Ahl

Edit: I thought this companion guidebook was interesting and wonder if DEC ever published its sequels:

https://archive.org/details/understanding-mathematics-and-lo...
by sunshine-o | 2025-11-09 00:26:07+00:00
It is getting really hard to follow their logic.

A some point, if you do not have any relationship with the UK, go as far as blocking its residents but they still want you to abide by their law, aren't they just declaring war on the entire world?

This is something very deranged that have become very common with the world "becoming smaller": somes will go on a rampage for something happening on the other side of the planet. At the same time they will pretend not to notice that their own house in on fire.
by ryandrake | 2025-11-09 00:26:13+00:00
> The citizens that are being wrongly violated will have their day and be compensated.

We really don't have any assurance of this, and all evidence of how the current administration operates says that they will be treated just as sloppily and ruthlessly.

I don't buy the "undertrained/undersupervised" argument, either. If this were the case, we'd be seeing apologies for the mistakes by now, instead of silence and intimidation of media reporting on the "mistakes".
by ProllyInfamous | 2025-11-09 00:26:30+00:00
>sure as hell gives you a unique experience

IMHO not worth it — salvia is terrifying much more often than mushrooms / acid. Definitely not something for a "first time psychonaut," and certainly shouldn't be legal.

Among my most terrifying dissassociative moments (you will not know who you, nor anything else, is).
by vessenes | 2025-11-09 00:27:30+00:00
Preston talks about this in an earlier blog post. It's a matter of UK law and, I'd bet, many countries, that they have the sovereign right to legislate about matters in and outside their borders. "If Parliament says smoking in Paris is illegal, it is illegal." What's different today than when that doctrine was conceived of is: data goes everywhere, communications are decentralized, international cooperation around especially data allows nations to enforce their own rules outside their own borders by treaty.

What was known and not said when Parliament might have outlawed smoking in Paris is that there was literally nothing they could do to enforce such a law. Today the governments have options, hence the fight here. And many other places.
by geon | 2025-11-09 00:27:31+00:00
> but you can hardly say we've ruled the world terribly.

"Terribly" is definitely a fair assessment.

> who has ever ruled it better?

Blatant whataboutism.

> instead of conquering them

"I protected them in so many ways, cared for them as if they were my own children. But to this day, is there a single statue of me on Bajor?"
by throwaway150 | 2025-11-09 00:27:34+00:00
You should report it to sigplan.org. Complaining about it here won't make any difference.

There's also https://news.ycombinator.com/newsguidelines.html -

> Please don't complain about tangential annoyances—e.g. article or website formats, name collisions, or back-button breakage. They're too common to be interesting.
by gchamonlive | 2025-11-09 00:28:29+00:00
Our culture is very image-centric. You have to understand that the drug induced image distortions are just a very specific side-effect that is part of a larger whole.

Hallucinogens act on deeper mechanisms that control from visual perception all the way to the sense of self. It can fundamentally change during the experience the way you see yourself and the world. It's not uncommon for users of LSD or DMT and psilocybin to describe the experience as getting in touch with the interconnectedness of all things. Also bad trips can be very terrifying because of how much you are exposed to the experience. Like dying or feeling the fleeting nature of existence very present in your skin.

All this to say that videos don't do any of this justice. It's just a fun way to represent the image distortions.
by iamnothere | 2025-11-09 00:29:42+00:00
> "If country B doesn’t like it, block the mail in question"

That’s actually how it works? Unless you have an extradition agreement, or military overmatch, or you are willing to expend some diplomatic leverage, you are typically not getting a citizen out of a foreign country. The government complains about this all the time with goods from SE Asia, and sometimes they seize fake designer goods and make a lot of noise about it. But the people making the knockoffs just keep on making them, don’t they?
by throwaway1109a | 2025-11-09 00:29:52+00:00
Adding this as a throwaway.

A handful of my friends work in the adult industry. This policy is an absolute failure and it's punishing websites that actually tried to be better.

Russian (etc) businesses are spinning up porn sites that have no age verification, but equally do not care about the content or any kind of laws. No worries if the UK blocks them, it's easy to spin it up with a new domain. People will find it (and Google will surface it) because people want free porn. It's whack a mole, you can't win, and the content isn't policed.

I'd love to say how this passed is beyond me, but talking to anyone with no tech literacy it makes sense to them. In practice it's just driving people to places they should be. Or VPNs.
by toomuchtodo | 2025-11-09 00:30:19+00:00
The house is already on fire. The choices are to allow it to burn down and rebuild, taking the arsonists with it, or attempting to slow them down while the fire continues to burn and their supporters cheer them on.

American Democracy appears to be the same as second generation wealth: unappreciated until gone. Make Functional Governance Great Again. I wish it were not so.
by scuff3d | 2025-11-09 00:30:39+00:00
I'm assuming you're talking about the "managed" pattern you'd see in stuff like Hashmaps and ArrayLists. To my knowledge that style is falling out of favor, and I think the managed versions will be removed from the standard library.

I haven't seen anyone use a global allocator in the way you're talking about, and if you did I feel like it goes directly against the Zig ethos. Part of the benefit of allocators being passed around is that all allocation are explicit.
by Al-Khwarizmi | 2025-11-09 00:31:14+00:00
I don't know how it is in the US and other countries, but in my country I would say statistics is typically not taught well, at least in CS degrees. I was a very good student, always had good understanding at the subjects at university, but in the case of statistics they just taught us formulae and techniques as dogmas without much explanation of where they came from, why, and when to use them. It didn't help either that the exercises we did always applied them to things outside CS (clinical testing, people's heights and things like that) with no application we could directly relate to. As a result, when I finished the degree I had forgotten most of it, and when I started working I was surprised that it was actually useful.

When I talk about this with other CS people in my own country (Spain) they tend to refer similar experiences.
by aDyslecticCrow | 2025-11-09 00:31:18+00:00
> Which is actually how all law has mostly worked from day one.

Internet but not for any other commerce. If you sell products to someone in the EU, you are liable to EU laws about that product category and commercial activity. The internet is the only exception, and that has caused a lot of problems.

IP block is the currently the only reasonable way to apply laws to internet based commerce. It has its flaws in accuracy; but ISPs could easily create a system to make them more reliable for IP lookup. Arguing that websites cannot be regulated outside of country of origin is an insane position to take with even the minimal level of hypothetical reasoning of what that would imply.

UKs laws are dumb, but they should be free to enforce them for websites operating in the UK. And websites should be able to leave the UK to avoid complying. This is a reasonable compromise that is already how both US and EU internet laws operate.
by igouy | 2025-11-09 00:32:31+00:00
> you're rebuilding images as you need to, usually starting from a golden master

For example, cp the "golden master" into the current directory and rename it "nbody.pharo_run.image".

"fileIn" the source code file (name passed on the commandline) "nbody.pharo" (and then cleanUp and garbageCollect) and "snapshot" the image.

Then invoke the program "main.st". In this example, the source code file defined a class method BenchmarksGame>>do: which performs a calculation and prints the result on stdout.

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

It's the "cattle, not pets" mentality.

(There are different ways to manage startup, this is an adhoc simplistic approach.)
by temp0826 | 2025-11-09 00:33:06+00:00
This is common with some groups unfortunately. I've seen a lot of "casual" drinkers with big ideas show up at our center and are a little taken aback by how grounded the traditional ways are. A lot of people use it to escape and build stories instead of dispelling them. I don't blame anyone in these situations- everyone is on their own journey- but it can be a heck of a pitfall to get stuck in if you're new and actually trying to heal. The hippy-dippy spiritual tourists are stuck there and taken advantage of.
by jodrellblank | 2025-11-09 00:33:45+00:00
> "wouldn't you pick heart disease? It is the best way to die."

Dick Cheney (former USA Vice President) died a few days ago. Let's recap his publically known health:

- 1978 heart attack, age 37

- 1984 heart attack

- 1988 heart attack

- 1988 quadruple bypass surgery

- 2000 heart attack

- 2000 stent

- 2001 balloon angioplasty

- 2001 implantable defibrillator

- 2005 atery repair vascular surgery, stents behind the knees

- 2006 shortness of breath, hospitalized, blood clot

- 2006 travels everywhere with an ambulance standing by. Accidentally shoots friend. Friend has heart attack.

- 2007 deep vein thrombosis treatment, atrial fibrillation

- 2008 minor heartbeat irregularity

- 2010 January heart attack

- 2010 July Left-Ventricular Assist Device (LVAD) surgery for worsening congestive heart failure.

- 2012 heart transplant, cardiologist said "it would not be unreasonable for an otherwise healthy 71-year-old man to expect to live another 10 years".

- 2025 death, age 84, from complications of pneumonia and cardiac and vascular disease.

Or President Dwight Eisenhower:

- 1955 heart attack

- ? heart attack

- ? heart attack

- 1968 heart attack, heart attack, heart attack, heart attack

- 1968 cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest, cardiac arrest

- 1969 death from heart disease

Definitely not the best way to die. Heart disease is palpitations, fibrillation, chest pain, back pain, angina. It's leg swelling, breathlessness, dizziness, fatigue, slow wound healing. It's statins, beta blockers, stents, pacemakers, defibrillators, coronary bypasses, valve replacements, open heart maze scarring, angioplasty. It's not all widowmakers and sudden death. I would pick one of those "fell alseep and didn't wake up" things.