MurphyA/hacker-news huggingface dataset:
by stn8188 | 2025-05-25 21:40:31+00:00
I'm in no way qualified to comment on the details of the issue outlined here (though I did get stuck babysitting a friend's kids for many extra hours due to a 6hr delay on said friend's flight into EWR a few weeks ago). For anyone who lives far enough north and west of EWR though, I highly recommend trying either the Allentown or Scranton/Wilkes-Barre airports. I've moved my business travel to Scranton 100% and have been loving it. There are more restrictions on flight times, and basically everything needs a connection, but it more than makes up for any time I would have lost due to sinkhole traffic on I-80 and the EWR parking shuttles. It's amazing to park and be at the security line basically 3 minutes later.
by impossiblefork | 2025-05-25 21:40:53+00:00
I think this is very interesting. Especially the per-layer embedding things.

Having more than one embedding is something I've tried myself, but not separate ones for each layer.

I'm guessing it's something like h_{l+1} = MultiHeadSelfAttentionWithPositionEncodingBakedIn(MLP(h_l) + embed_l(token_ids)). So it's probably really easy to implement on toy problems to see if it works.
by pixl97 | 2025-05-25 21:41:03+00:00
Heh, have fun hooking legacy systems to high speed networks without significant testing.

If seen plenty of old stuff crash because you'll have some ancient serial device with a limited buffer and someone jams a faster link in-between. All of a sudden you have a much larger amount of bandwidth delay product and the system doesn't handle a few megabytes of data getting lost on the line when it bursts for some unexpected reason. On the old fixed line that just couldn't happen.
Show HN: DeepShot – NBA game predictor with 71% accuracy using ML and stats
by francescosacco | 2025-05-25 21:41:40+00:00
Hey everyone, I’m an NBA fan and Python dev, and I recently built DeepShot — a machine learning model that predicts NBA game outcomes with about 71% accuracy based on historical stats and rolling performance metrics (EWMA). It features: Real NBA data from Basketball Reference Exponentially Weighted Moving Averages to track momentum Interactive NiceGUI interface with team comparison and predictions Full Python stack and open-source (MIT license) Here’s the GitHub repo: https://github.com/saccofrancesco/deepshot And if you like it, here’s my Buy Me a Coffee: buymeacoffee.com/saccofrancesco Would love any feedback — especially from folks who’ve built sports models or worked on real-time stat tools. Also open to ideas on where to take this next (player-level modeling? betting advice dashboard?). Thanks!
by stonepresto | 2025-05-25 21:41:56+00:00
Well, in another subthread the author said he did in fact make a crashing PoC. I guess it depends on the customer's standards, but I would say in the vast majority of cases (especially for nuanced memory corruptions in which the ability to make something exploitable depends on your ability to demonstrate control of the heap) a crashing PoC is the bare minimum. In most VDPs, BBPs, or red team engagements you are required to provide some sort of proof to claim, otherwise you'll be laughed out of the room.

I'm curious which sector of infosec you're referring to in which vulnerability researchers are not required to provide proofs of concept? Maybe internal product VR where there is already an established trust?
by yoav | 2025-05-25 21:42:14+00:00
I’m building Electrobun (https://github.com/blackboardsh/electrobun)

It’s an alternative to Electron/Tauri that uses Bun.

It has a bsdiff based update mechanism that lets you ship updates as small as 4KB, a custom zstd self extractor that makes your app bundle as small as 12MB, and more.

I’m currently working on adding Windows and Linux support.
by wyager | 2025-05-25 21:42:14+00:00
> Maybe instead we should try investing in this area (reducing the burden on services)

This doesn't require any investment or technological development; it just requires making rational-but-politically-nuclear policy changes reducing the infinite tap of publicly-funded extremely-low-ROI medical expenditures on old people.

An absurd fraction of medical spending goes to protracting the suffering of old people just a bit longer. We can simply stop doing that, given the political will to do so.

Extending people's lifespans won't do much to alleviate these expenditures, except perhaps to slightly dilute the amortization schedule.
by jillesvangurp | 2025-05-25 21:42:58+00:00
Separating your glue code from your business logic is a good idea for several reasons. That's all dependency injection, or inversion of control is. It's more of a design pattern than a framework thing. And structuring your code right means that things are a bit easier to test and understand as well (those two things go hand in hand). Works in C, Rust, Kotlin, Javascript, Java, Ruby, Python, Scala, Php, etc. The language doesn't really matter. Glue code needs to be separate from whatever the code does.

Some languages seem to naturally invite people to do the wrong thing. Javascript is a great example of this that seems to bring out the worst in people. Many of the people wielding that aren't very experienced and when they routinely initialize random crap in the middle of their business logic executed asynchronously via some event as a side effect of a butterfly stirring its wings on the other side of the planet, you end up with the typical flaky untestable, and unholy mess that is the typical Javascript code base. Exaggerating a bit here of course but I've seen some epically bad code and much of that was junior Javascript developers being more than a little bit clueless on this front.

Doing DI isn't that hard. Just don't initialize stuff in places that do useful things. No exceptions. Unfortunately, it's hard to fix in a code base that violates that rule. Because you first have to untangle the whole spaghetti ball before you can begin beating some sense into it. The bigger the code base, the more likely it is that it's just easier to just burn it down to the ground and starting from scratch. Do it right and your code might still be actively maintained a decade or more in the future. Do it wrong and your code will probably be unceremoniously deleted by the next person that inherits your mess.
by Aurornis | 2025-05-25 21:43:16+00:00
What I find interesting is how often casual discussions about unionization on the internet will organically reinvent this concept. Especially on HN, Reddit, and Twitter the banter about unionization always seems to pivot toward using the union to force companies not to hire certain developers.

The obvious one that comes up in every discussion is thinking that unions will protect their jobs from being outsourced to other countries. People like to layer various more palatable explanations on top of this to make it sound better, but when you ask them if the employees who receive the outsourced jobs should get the same union protections you usually get their real motivation: They want to keep the jobs local to their own market and exclude foreign labor supply in order to improve demand for their services (and therefore their leverage, and therefore their own wages)

It gets interesting when different demographics start imagining that their ideal union would protect them from other demographics: Commonly, older people like to think of unions that will protect them from losing their jobs to young people.

Then when I’m working with college students and they start discussing hypothetical unionization, they come up with ways to think the union will give them more jobs by protecting them from the old people “hoarding” the jobs. (Sorry, that’s the least likely outcome for a union)

What’s most interesting is that the people I know who are in unions (non-tech industries) don’t hide the fact that decreasing labor supply to increase their own demand is exactly what they expect from a union. The first time you hear someone complain that a non-union worker is “taking food off their table” by simply doing their job you realize that it’s not as simple as Unions versus Corporations like we’ve been led to believe. The Unions are advocating for the people in the union, not workers everywhere.
by tomhow | 2025-05-25 21:43:24+00:00
I don't think it will be explicitly added to the guidelines (we've talked about it); the moderation policies also include a much larger body of "case law" [1]. But we've always wanted HN to be for interaction between humans, and also to avoid comments that are tl;dr summaries [2-6], which is a lot of what the LLM-generated comments are here. That policy goes back to long before LLMs were commonplace.

[1] https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

[2] https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

[3] https://news.ycombinator.com/item?id=7613953

[4] https://news.ycombinator.com/item?id=12667459

[5] https://news.ycombinator.com/item?id=41120847

[6] https://news.ycombinator.com/item?id=39670657
by gruez | 2025-05-25 21:43:48+00:00
>Note that while minions went to jail, the CEO came out of this scot-free.

Because it was determined that the minions committed the crime and that the CEO didn't know about it?

>The CEO Wenig's messages were deemed "inappropriate" by eBay, but eBay's internal investigation concluded that the CEO did not know about the stalking and harassment activities.
by intothemild | 2025-05-25 21:44:12+00:00
There's only one issue I can think of with your idea that someone who is 75 now leads a life as you're describing.

The generation they belong to are predicted to live to what 80-85 years? Whilst we (assuming you're in your 40's now) are predicted to get to what 90-95 on average?

Average lifespans are increasing, and on top of that the mobility of someone who's 75 now, won't be the same of someone who's 75 in another 35+ years.
by LegionMammal978 | 2025-05-25 21:44:53+00:00
From TFA:

> If a spammer needs to spend 0.0001 € in power to access the site only to gain a marginal profit of 0.00005 €, they are losing money with every site access. However, if a ticket scalper needs to spend 0.0001 € in power to buy a ticket that they will later sell at a 200 € profit, this will not stop them.
by ValdikSS | 2025-05-25 21:45:54+00:00
Oh!

Take a look at EPSON printer driver, which prohibits you from:

1. Sharing the printer you own with anyone else unless they agree to the license of the driver (incl. business setup)

2. Sharing the printer over the internet unconditionally, because this allows to use the driver for people who did not agree to the license

3. Incorporating the driver in any "revenue generating product or service"

https://download.ebz.epson.net/la/linux/inkjet_for_linux.htm...

1. Grant of License.

[…] provided that the Software is used (i) only in a single location (e.g., a home or office or place of business), or in the case of a mobile device, on a Device owned or otherwise controlled by you, and (ii) only in connection with Epson Hardware owned by you. You may allow other users of the Epson Hardware connected to your network to use the Software, provided that you shall ensure that such users use the Software only in accordance with this Agreement. You agree to be responsible for and indemnify Epson for liabilities incurred as a consequence of use by such users.

3. Other Rights and Limitations.

[…] Further, you agree not to place the Software onto or into a shared environment accessible via a public network such as the Internet or otherwise accessible by others outside the single location referred to in Section 1 above.

You may not rent, lease, distribute, lend the Software to third parties or incorporate the Software into a revenue generating product or service.
by jltsiren | 2025-05-25 21:45:57+00:00
And capital gains are actually property taken from the workers and given to capitalists. In both cases, the recipients have magic tokens that legally entitle them to some of the value created by other people.

I don't know how this works in other countries. In Finland, it was established decades ago that pensions based on past contributions are constitutionally protected private property. Because people made explicit pension contributions and because the government promised that the future pension would be based on the individual contributions, the government can't alter the deal substantially without a constitutional amendment. If the contributions had been general taxes, or if the promised pension had been independent of the actual contributions, ordinary legislative process would have been enough.
by markvdb | 2025-05-25 21:46:16+00:00
> It's utterly insane that people need to work more and longer as technology increases productivity. A truly dystopian economic system.

Keynes was almost right. He underestimated the ability of future generations to consume conspicuously. Also, the need for many to fit in by working, but I digress.

Many don't _have_ to work more and longer. I'm speaking of a large class, very much overrepresented on HN, of smart, healthy westerners with no dependents to care for. We have only one major problem. We live in this bubble nudging us towards conspicuous consumption - gently or less so.

My job closely resembles Keynes' 1930's prediction. Sometimes I work (much) more. Not because I need money, but because the job is interesting. Interesting as in, me learning, contributing something positive to other people's lives, growing my family's financial resilience and robustness, or just enjoying the flow.
by dspillett | 2025-05-25 21:46:30+00:00
For popular acts, when scalpers are selling at 10x or more the base price, the bond would have to be pretty high to put the scalpers off, and that would be a problem for many genuine customers. Unless the bond is silly high, that being defined as high enough that it significantly messes with fans, it would still be worth it even if the scalper is noticed and the bond not returned.

> If the customer is found to be a scalper don't return the bond.

This is how most suggestions for solving the problem fall down: how do you, with any reliability, or at least reliably avoiding false positives, detect a scalper?
by burgerquizz | 2025-05-25 21:47:00+00:00
I'm working on an AI web game generator for businesses. I spent a year developing our custom game engine to build a few games that didn't work, but I made the game engine to have reusable modules we can reuse for creating new games quickly . Now I've pivoted to allow anyone (business especially) to create new games on the fly.

here the games result so far: https://playcraft.fun
by harrall | 2025-05-25 21:47:00+00:00
Most of my concert tickets are still priced around $40 inclusive, after taxes and fees, and from the likes of LiveNation, Etix, DICE, AXS, and so on.

All my friends that complain about the rising cost of concerts tickets don’t realize that they just see the same old bands year over year. These scrappy up and coming bands that they saw as a kid aren’t scrappy anymore. That’s why blink-182 can charge $700 for the pleasure and still sell out — because most of their fans are in their late 20s or 30s, have disposable income, and number in the millions.

Go to a $20 show for a band today and who knows, maybe they will charge you $700 in 20 years. Plus you can tell everyone that you saw them before it was cool. /s
by ryansworks | 2025-05-25 21:47:33+00:00
It took about 10 hours. Arguably would have taken me 100 to do it manually but likely would have fewer bugs, there’s a few I’m aware of, but I bet there are many.

I started with a basic syntax for expressions and specified a lot up front such as it being a bytecode interpreter and using a recursive descent parser.

I found building it up feature by feature to be much more effective than one shotting an entire feature rich language. Still there was a lot of back and forth.
by bigyabai | 2025-05-25 21:47:50+00:00
Loop/sample CDs weren't anything new or special. There were lots of them by the time Apple threw their hat in the ring, and many could be had for $10 or $15 at the local thrift store. None of them seemed to sell at MSRP - discs were always traded around second-hand under the ownership of a local producer or mixing booth, and online sample packs only ever seem to sell in-volume when they're on sale.

Nowadays the sample market is trying to adopt the iTunes model to middling success. They want to sell individual samples, eking out tiny profits over larger prospective purchases. But this isn't working particularly great either, and the "golden age" of sampling has largely evaporated to make way for these subscription and app-based services. In a certain sense, the consolidation Apple forced on their publishing partners killed the idea of "sample packs" for iOS and iPadOS platforms, which is a bit of a shame.

But hey, at least the packaging looked all nice in that wedding dress white.
by thom | 2025-05-25 21:48:37+00:00
I am creating a heavily LLM-oriented distribution of Emacs (with a lot of the heavy lifting done by Karthink's gptel). This is primarily me rebooting my .emacs.d for the LLM age, but I've come to think that Emacs is a far, far more interesting place than VSCode as the basis for an AI coding environment: a text-first, eval-enabled, constantly self-improving IDE.
by shadowgovt | 2025-05-25 21:48:37+00:00
This will vary from firm to firm depending on what you're writing, but I generally find DI to be more complexity than needed. Granted,

- I'm willing to rewrite some code if we decide that a core library needs to get swapped out

- I'm always using languages that allow monkey-patching, so I'm not struggling to test my code because, for example, it's hard to substitute a mock implementation for `Date.now()`.

DI makes more sense if you're not in that position. But in that position, DI adds "you need these three files in your brain at the same time to really understand what's going on" complexity that I seek to avoid.

(Also, DI overlaps with generics, and to the extent that you can make things generic and it makes sense to do so, you should).
by riskable | 2025-05-25 21:48:47+00:00
Think of it like this: From the perspective of the photon, it lives and dies in the same instant. Even if it traveled across the entire universe.

Since it lives and dies in the same instant, it can't have a position—because the moment it exists and the moment it doesn't is exactly the same time.

It takes time—even for light—to get from point A to point B. However, the measurement of any positions—relative to the photon itself—will always be the same. It's related to that property of quantum physics that allows two particles to exists in two different places at the same time.
by nradov | 2025-05-25 21:48:58+00:00
How tiny of a fraction? Can you quantify this for us?

In principle I think some kind of wealth tax on fortunes above a certain level would be a good idea. But there are a lot of practical implementation problems in terms of identifying and valuing illiquid assets. Like for example I have friends who own forestry land (for softwood timber harvesting) in a foreign country. Those assets have some value but trade infrequently so there's no reliable market price. And they probably hold the assets through a foreign corporation rather than directly in their own names. What is a "fair" amount for them to pay in taxes, and how would the government enforce that in a consistent and cost-effective manner?
by landl0rd | 2025-05-25 21:49:17+00:00
This fixes indians in boilerrooms and nigerian spam emailers but specifically not ticket scalpers. The profit is too large.

Also because users don't actually control the number of HTTP requests they make. Think of sites that load individual icons rather than sprite sheets. Think of sites that fire off 1,000 tracking calls per minute. So respectfully screw that.
by 0x000xca0xfe | 2025-05-25 21:49:42+00:00
I just finished my useless Brainfuck compiler ( https://news.ycombinator.com/item?id=44087363 ) and was thinking of a more novel application that hasn't been done already, like going the other direction and turning RISC-V assembly back to Brainfuck code. Currently trying to get MD5 work...

Also another fun idea I want to try is to let the Claude design a new programming language, i.e. where the AI makes all the decisions and goal-settings and I just help it instead when it's stuck.
by XorNot | 2025-05-25 21:49:59+00:00
Also bank transactions are reversible.

e.g. you have not had a wonderful windfall of someone mistypes an account number and send you a $1 million. You are in fact obligated to report the issue and not simply go "great!" and start spending the money, tonthe point that you can be held legally liable.

It's not 100% but as people are fond of saying: we do live in a society, it's hardly onerous.
by snapplebobapple | 2025-05-25 21:50:00+00:00
no, they are solved by becoming an American state , or by taking BC with us (close enough to zero chance to just say zero chance) or taking Saskatchewan and Manitoba (not zero chance but pretty darn close). Becoming an American state is the least unlikely of several extremely unlikely outcomes. My personal preference would be for Alberta to stay in Canada and Canada to stop pretending it doesn't need natural resource extraction as a leading part of creating a strong middle class (along with being a cheaper second option for multinational tech company/medical research/etc satellite offices). instead of the current idiotic crushing of natural resources and trying to pick and grow winners in high tech, medical,etc. which is impossible to turn into a pipeline of companies/jobs here (you can get lucky and have one offs that eventually get eaten like RIM and salesforce but that's not an economy.) There is not enough rich people here (and taxes are too high to make enough rich people even if our population was equal to the USA instead of a tenth of its size) to drive the whole finance ecosystem necessary to create an innovation company pipeline. It's all just wasted federal money, most of it was financed by money transferred out of Alberta at the margin.
by ValdikSS | 2025-05-25 21:50:17+00:00
>Unfortunately, CUPS sends us grayscale values and our printer only supports pixels that are either fully black or white. Since we do not want to drop grayscale values compeltely, we want to apply Dither.

CUPS can send black-and-white 1 bit data, dithered. It's just a matter of proper option in a PPD file. It could also handle rotation by itself.

Other than that, pretty good and accurate article! I bet you can write the driver (filter) even in <50 lines of Python code :P
Show HN: A daily question to train positive thinking and boost your mood
by nikodunk | 2025-05-25 21:50:20+00:00
Hi HN! I built this a few years ago, but after seeing super-negative headlines and newsfeeds everywhere I decided to re-launch it recently.

This is a super-simple RN app that asks you a daily question to lift your spirits, frame positive thoughts, and boost your mood. It's meant to lower the bar-to-entry to gratitude journaling.

There's 2 other big apps out there on the app store, but they seemed to have quite a few features and not the right framing for me. Mindfulness was not really my goal, optimism more so. I built it for personal use, but a few friends have started using it too so thought I'd share here.

No real big plans behind this - it's a side project, but I'm curious if there's a need out there.

Please let me know your thoughts, and give it a spin!
by const_cast | 2025-05-25 21:50:38+00:00
Right, if anyone here has taken a human geography course this is the obvious answer. This is why birthrate was so high for so long. As nations developed and gained rights for women, it went lower and lower and lower.

And it makes complete sense. The reality is having a child kind of sucks for a woman, and I, nor anyone else, can blame a large portion of women for just saying "eh... no". I would probably say no, too, although it's hard to tell, because I'm not a woman.

Having children was once a boon, because conditions were shit. Now it's a burden. So, people will treat it as a burden.

Either make it less burdensome or revert women. Nobody wants to do the latter, so we must do the former. We have to invest in children, because children are a Nation's investment.