MurphyA/hacker-news huggingface dataset:
by jacobobryant | 2025-04-12 17:06:27+00:00
For the interleaving, yes we want to prefer the item that's been skipped fewer times. I got the wording backwards in the article; I'll fix that.

For shuffling, I was trying to come up with an approach that would recommend the top k items roughly the same amount regardless of how many total items are in the list. E.g. say you have 10 subscriptions that you really like--I want to have those be a reasonable portion of your recommendations whether you've subscribed to 100 other subs or 1000 other subs.

Contrast that to a weighted random shuffle where each subscription's weight is its affinity score and we sample them based on weight without regard to their order in the original list. That approach is much more influenced by the size of the total list, and my experience is the handful of subscriptions that I really liked were always drowned out by all the other "speculative" subscriptions I had accumulated in my account.

The computational complexity ends up being OK because we generally don't actually need to shuffle the whole list. I recommend items in batches of 30, so we just need to get that many items and then we can abort the shuffle. There probably is some more efficient way to implement this though.

During implementation I was mostly thinking of this as "sampling" rather than "shuffling" actually, and just ended up describing it as the latter when I wrote the post.
by mjevans | 2025-04-12 17:06:30+00:00
"Ban all the cars" does have noticeable effects.

I wonder if something less all / none might have nearly the same effects with far less drawbacks otherwise.

E.G. What if only emissions testing certified low emission vehicles were allowed? What if only electric? How about requiring quiet utility trucks for garbage / freight / etc?

For cities that large / dense, adding in Caves of Steel like people-mover belts might be a great alternative too.
by gruez | 2025-04-12 17:06:34+00:00
>You're extrapolating to cases that are different to a subscription to a digital software service. Companies have slowly but steadily made us shift and put subscriptions in our heads because [...]

Sounds like you're less against the concept of "annual, billed monthly" or even the "dark patterns" that Adobe is using, and more against the fact that Photoshop is now behind a $30/month subscription rather than an one-time purchase price like in the Good Old Days™.
by koakuma-chan | 2025-04-12 17:06:43+00:00
> This is very different than Rust where every new version is abandonware after 6 weeks and the compiler does not let you specify that your code is from a specific version.

Do you have any specific evidence? Rust ecosystem is known for libraries that sit on crates.io for years with no updates but they are still perfectly usable (backward-compatible) and popular. Projects usually specify their MSRV (minimum supported Rust version) in the README.
by DamnInteresting | 2025-04-12 17:06:56+00:00
Thanks! Do you have any thoughts on what a fair one-time price for the archive would be? At this moment there are puzzles going back to 1/1/2025, so about 100 (and growing daily). I've been leaning toward something on the order of $3-$6 (but of course I still need to code the archive access).
by fakedang | 2025-04-12 17:06:59+00:00
a.) You do realize that 15% is an insanely high proportion? For reference, the equivalent US number is 3.5% (excluding the current climate).

b.) Yes, it's insanely difficult, that's why the government should be making it EASIER for them to migrate, not flood with more paperwork. For instance, the UAE and Qatar have a Golden Visa programme that, upon verification of credentials by a govt-authorized background check company , grants a 10 year visa to doctors, high earners and uniquely skilled talents. Even nurses and pharmacists benefit from the programme and get the visa easily. The govt takes the effort to conduct the background check, instead of making them try to find employment first before coming to the country.

c.) My anecdotes were about clear and blatant, no regrets immigration FRAUD.
by icedchai | 2025-04-12 17:08:41+00:00
That's nice, but a couple of Rust rewrites are not proof of a general trend.

I've been working with C for over 30 years, both professionally and a hobbyist. I have experimented with Rust but not done anything professionally with it. My gut feel is Rust is too syntactically and conceptually complex to be a practical C replacement. C++ is also has language complexity issues, however it can be adopted piecemeal and applied to most existing C code.
by simonw | 2025-04-12 17:09:07+00:00
Typing code faster. Building quick illustrative prototypes. Researching options for libraries (that are old and stable enough to be in the training data). Porting code from one language to another (surprisingly) [1]. Using as a thesaurus. Answering questions about code (like piping in a whole codebase and asking about it) [2]. Writing an initial set of unit tests. Finding the most interesting new ideas in a paper or online discussion thread without reading the whole thing. Building one-off tools for converting data. Writing complex SQL queries. Finding potential causes of difficult bugs. [3]

[1] I built https://tools.simonwillison.net/hacker-news-thread-export this morning from my phone using that trick: https://claude.ai/share/7d0de887-5ff8-4b8c-90b1-b5d4d4ca9b84

[2] Examples of that here: https://simonwillison.net/2025/Mar/11/using-llms-for-code/#b...

[3] https://simonwillison.net/2024/Sep/25/o1-preview-llm/ is an early example of using a "reasoning" model for that

Or if you meant "what do you have to figure out to use them effectively despite their flaws?", that's a huge topic. It's mostly about building a deep intuition for what they can and cannot help with, then figuring out how to prompt them (including managing their context of inputs) to get good results. The most I've written about that is probably this piece: https://simonwillison.net/2025/Mar/11/using-llms-for-code/
by ein0p | 2025-04-12 17:09:19+00:00
It's more fundamental than this, IMO. No matter how much you invest into faster iteration cycles, physical world just takes a long time, and the worst part is, you either have to get some very complicated thing right the first time, or add a sufficient buffer to your plans. Discovered a bug in your chip after initial tapeout? Add months to the schedule. Too much RF crosstalk in the PCB? Add a couple of weeks at least. Take Apple for example. Do you think they didn't invest into faster iterations? I'm sure they did. And each chip still takes 3+ years there, too. Qualcomm? About 3 years. Google? Also about 3 years (I heard of the upcoming 192GB TPU being developed over 2 years ago when I was there; it was announced this week). The "innovations" that they are talking about today were actually decided 3 years ago. 3 years ago was a very different time, of course.

There's also another problem when it comes to chips. On the higher end, you have to design for the technological processes that don't yet exist. E.g. 2nm did not exist 3 years ago, yet the design of the chips that use it was done back then. You're also doing it with bleeding edge tooling.
by daveguy | 2025-04-12 17:10:25+00:00
I would chose a random person from my company that was hired to work in that domain to solve problems in that domain. Yes, regardless of the position. Accountant in the domain, yes. Office organizer in the domain, yes. Essentially anyone in the domain, yes. No offense, but by restricting the selection to the general human population you're setting a low bar for LLMs here.
by bri3d | 2025-04-12 17:10:36+00:00
Worth noting that 50-60% of passenger cars in France are diesel, but Paris have been gradually banning older higher emission diesels (Crit’air 3, 4, 5) from Paris. Banning cars outright also works, of course, but I suspect a lot of the reduction can be attributed to getting particularly bad diesel cars out vs. the limited areas where cars are entirely restricted.
by lxgr | 2025-04-12 17:10:40+00:00
If you only care about events in one direction, it's a perfectly fine solution, but if you need something other than that, things might get awkward using SSE and regular HTTP calls, even with long-lived HTTP connections.

> once you're out of "HTTP mode" you now have to implement the primitive mechanics of basically everything yourself, like auth, redirects, sessions, etc.

WebSockets do support authentication via cookies or custom headers, don't they?
by DamnInteresting | 2025-04-12 17:10:47+00:00
Perhaps I did not make it sufficiently self-explanatory. The play area is divided into sectors (some puzzles have 2, others have 4). Each sector contains some letter tiles. You can drag the letter tiles onto the dotted-line-bordered boxes, with the goal of spelling four valid English words. If you spell a word that is not in the game's dictionary, it will appear "broken."
by mdp2021 | 2025-04-12 17:11:03+00:00
> Caring about truth

I suggest reducing the tolerance towards the insistence that opinions are legitimate. Normally, that is done through active debate and rebuttal. The poison has been spread through echochambers and lack of direct strong replies.

In other terms: they let it happen, all the deliriousness of especially the past years was allowed to happen through silence, as if impotent shrugs...

(By the way: I am not talking about "reticence", which is the occasional context here: I am talking about deliriousness, which is much worse than circumventing discussion over history. The real current issue is that of "reinventing history".)
by jrockway | 2025-04-12 17:11:03+00:00
Collections rarely does anything. I mean they will nag you, but you ask them to only contact you in writing, and it basically goes away. The collection agency could sue you, but it's rare. It involves putting together a realistic case (we are sure this person signed this contract and owes us $X) and that is expensive.

The billing your credit card 50% is a "well we tried" type thing. They're happy if it works out, but not unhappy if it doesn't.
by ceejayoz | 2025-04-12 17:11:13+00:00
And “manual scrub”, in practice, meant “find any reason to deny”.

> Some 60% of the claims weren’t reimbursed at all.

The article gives examples of very normal billing errors that were used as the pretext for this.

It’s very clear they knew they didn’t want to pay the claims. Even in advance of the procedures.

> Then, a week or so before her surgery, Arch was wrangling child care and meal plans when she got a call from the insurer. The representative on the line was trying to persuade her to have the surgery elsewhere. She urged Arch to seek a hospital that, unlike the center, was in network and charged less.
by aswanson | 2025-04-12 17:11:26+00:00
All the data suggests the opposite. He wasn't in a position of power at the time; the federal government was controlled by the democrats. Elections are run at the state level and are so disparate procedurally that Russia gave up trying to flip them directly. There has been no discrepancy between exit polls and the results. We have to face the fact that this is who the United States chose, and this is who a significant portion of the electorate is ok with.
by badc0ffee | 2025-04-12 17:11:36+00:00
Maybe it's a puff piece, but it contains examples of what he did with his life and businesses. You couldn't write an article like that after 2015 or so without it being influenced by his disaster of a political career.

My point is, he didn't just sit on daddy's money, he actually pulled off a couple of savvy moves. There are plenty of other things to criticize him for.
by impossiblefork | 2025-04-12 17:12:01+00:00
Yes, but the US basically had to intervene and tell them to stop using it. If that hadn't happened they wouldn't have.

The US probably wasn't in preventing an invasion of Egypt, but if not restrained I'm sure that Britain and France could have realised their objectives, and if they had had a continuous need to realise different changing objectives they would have retained more capability.
by ashoeafoot | 2025-04-12 17:13:04+00:00
Lets say that a ton of us got a leaky look at what the likes of thiel datamimed from the humanity dataset. The last mile of the enlightenment wrecks all those romantic ideas of eternal progress by technology, self actualizationa and retardation repair by education pretty thoroughly. Those that are not in the know mimic those that are or just develop a amoral stance to whether and survive the times which are a changing. It turns out the civil liberty lessons do not survive the contact with the lovecraftian reality beneath. This whole 10 year ride since 2016 was not foreseen, predicted, effectively countered and not even mitigated by protecting cultural artifacts and institutions against the decay. The science whose prediction power is zero, who has no eclipse to show, is not one.
by LtdJorge | 2025-04-12 17:13:15+00:00
To me the most important aspect of Erlang is the runtime's scheduler, which is preemptive instead of cooperative. This allows the message passing, sequential code and lightweight processes to be much more effective than in any other general language or framework using cooperative scheduling (like async runtimes or coroutines in Rust, .Net, Kotlin, Lua).

You can write actually synchronous code in Erlang and the runtime makes it so that no process blocks any other process by preempting them on a schedule.
by hinkley | 2025-04-12 17:13:16+00:00
There are a number of reasons why the reporting process for bugs needs a blackout window.

Just because a security researcher can discover things about a program that its own developers missed, doesn’t mean they’ve understood the entire picture. If you find one bug, you need to spend time making sure that it doesn’t represent an entire class of bugs. Once the advisory is announced, that’s blood in the water that will attract other predators. Only idiots and tourism companies chum the water before they expect more people to go into it.

Back when PHP was objectively awful, I joined the pitchforks and torches mob based on the litany of CERT advisories against it. I had an argument with a coworker about whether PHP was irresponsible to use, and the very next day someone defaced the phpBB instance he maintained because of an unpatched injection attack. I pointedly did not comment because 1) smug and 2) the timing made me nervous of being accused of having been the perpetrator.

But I did look at the patch that either just came out or that he missed, and was frustrated to find that the same pattern they fixed existed in two other functions.

I really think that it says more about a community, not in what mistakes they make, but how they learn from those mistakes. And I’d like to say it seems like SAP didn’t, but we all know what a beast that thing is. How many tens of millions of lines of code is that thing now? The chances that a person made a mistake and two people they’ve never met copied it are essentially 0.99 repeating.
by ein0p | 2025-04-12 17:13:32+00:00
I hear from my OpenAI contacts that the next wave of thinking models are going to blow the socks off Google. In some ways they already do (speech, images). So this lead will likely be short lived. That said, in the meantime I did get paid API access. The friction for the scenarios I need LLM for is effectively zero, and I'll use whichever sucks the least at the moment for any given task.
by dragonwriter | 2025-04-12 17:14:48+00:00
> France and Britain alone used to be able to defend trade routes. I don't think it's a huge expense

France and Britain used to be two of the world's largest imperial powers, and at any time you could plausibly claim France and Britain alone could defend global trade routes, Britain, at least, still was.

You really aren't making a case for it being an easy, cheap job.
by bawolff | 2025-04-12 17:15:02+00:00
That depends on how much "creativity" is in the prompt, but generally i would lean towards no, the AI created work is not copyrightable by the person who used the model to "create" it.

I believe that is the conclusion the US copyright office came to as well https://www.copyright.gov/ai/ (i didnt actually read their report, but i think that's what it says)
by maujun | 2025-04-12 17:15:02+00:00
I believe we now have enough info to quantify the tradeoffs.

Dev is the sperm, Ops is the egg (or vice versa).

And it takes time for the sperm to talk to the egg. The sperm must travel. He types in Slack "Hello <Name>, I have simple trick to save money for bewba service.". The egg must travel, type in Slack, "I can't find bewba service in our catalog but I can't say that out loud".

Through time and effort, the sperm and egg finally connect, and the bewba service's money guzzling is shaved.

When the scenario is right, the travel time is not worth it. We kill of one of the sperm and egg, and accept the risks. The killed sperm-or-egg leaves the circle, and everybody in the circle is satisfied.
by FractalFir | 2025-04-12 17:15:24+00:00
The README is slightly out of date, sorry. Supporting old platforms is one of the goals.

Truth be told, the support for C was at first added as a proff-of-concept that a Rust to C compiler is possible. But it worked surprisingly well, so I just decided to roll with it, and see where it takes me.

My policy in regards to C version is: I want to be as close to ANSI C as possible. So, I avoid modern C features as much as I can. I don't know if full compatibility is achievable, but I certainly hope so. Only time will tell.

Some simpler pieces of Rust work just fine with ANSI C compilers, but more complex code breaks(eg. due to unsupported intrinsics). If I will be able to solve that(+ some potential soundness issues) then I'll be able to use ANSI C.
by rvz | 2025-04-12 17:15:25+00:00
> You, nor others, have not actually proven that.

In the Pelosis' circumstance, clearly their repeated actions of such trades and their connection to the timing of key legislation or lawsuits requires no further proof, given their long history of this front-running such that other congressmen and women are doing the same thing believing they can get away with the insider trading loophole.

By inspection, it is quite obvious to see how one can repeatedly front-run legislation ahead of everyone else and outperform the market.

> Right, and that’s not what I’m doing. I think politicians in top levels of government should be banned from trading their own stocks (and family, etc.).

Why not ban them from trading all stocks instead of just their own and why only those just from "top levels" of government?

They are serving the people as well and there shouldn't be exceptions for those that have access to that level of legislation before it is made public and then trade against it no?
by cavisne | 2025-04-12 17:15:40+00:00
The raw computation is just a bunch of matrix multiplications in a row, most of the algorithmic complexity/secret stuff would be around scaling & efficiency.

For training the model the HW is much more important as you need to scale up to as many chips as possible without being bottlenecked by the network.

This would just be inference, and it doesn't need to be very efficient as its for on prem usage not selling API access. So you could strip out any efficiency secrets, and it would probably look like a bigger Gemma (their open source model).

I wonder if they would/could try and strip out stuff like whatever tricks they use for long context + video support (both of which they are a bit ahead of everyone else on).
by DamnInteresting | 2025-04-12 17:15:45+00:00
Hmm, the light show is meant to highlight the sector boundaries, so it's clear where a given letter tile can be dragged. I could tone it down if it's too much, my goal was to give it some personality.

Regarding the sound, if you don't care for it, there is a volume slider in the menu that can disable it.

Thanks for trying it out!
by submeta | 2025-04-12 17:15:52+00:00
I love Cursor, with Claude 3.7 and Gemini. But Claude Code is an absolut biest and blows them out the water. It is expensive, but it acts like a senior developer. It fixes bugs where Cursor (no matter which model) fails to do so, no matter which model.

I tried Roo with OpenRouter, selected DeepSeek R1, as that was supposed to have the largest output token. Asked Roo to create a documentation for a project I worked on. It created a page of markdown with a few mermaid diagrams. Next I asked Claude Code to do the same. With the same prompt. It created several markdown files with half a dozen mermaid diagrams describing the tech stack, the architecture, the data model and so much more. Another level.
by lapcat | 2025-04-12 17:16:12+00:00
> Would you rather log in to preserve your settings? Can you think of any other way to (semi-)anonymously identify you and preserve your settings across different sessions?

The fundamental problem is that 99% of sites with cookie banners don't need cookie banners, because they don't need cookies at all. They say (lie) that it's to "improve your experience", but it's really just for tracking purposes.

If a site has a login, then of course they need some kind of storage, and they can present the cookie consent in the login form. Otherwise, though, it's an imposition with no benefit to the site visitor.

When you say "we respect the GPC signal", do you mean the Sec-GPC header? That would be a bit of improvement if all sites had to respect the header, but at this point it's still experimental and not widely used or respected.
by Eggpants | 2025-04-12 17:16:31+00:00
“You need to believe” pretty much says it all. Your example isn’t convincing because there will be only one correct answer with little variation(the API in question).

I’m sure you’re finding some use for it.

I can’t wait for when the LLM providers start including ads in the answers to help pay back all that VC money currently being burned.

Both Facebook and Google won by being patient before including ads. MySpace and Yahoo both were riddled with ads early and lost. It will be interesting to see who blinks first. My money is on Microsoft who anded ands to Solitaire of all things.
Ask HN: What has helped you transitioning from a technical to a team lead role?
by annnoo | 2025-04-12 17:16:39+00:00
Hello everybody, About 4 months ago I got the opportunity to become the so called team lead of our dev team… and this is something I really underestimated :D

Previously I was (and still am in the team) a full stack developer with strengths on the technical side as well as very good problem understanding and solving skills.

After the previous months I more and More understood that in my role I have to manage a team, talk more with stakeholders and getting more involved into “politics”, which is not something I’ve did previously very much.

I know that I have to improve my communication skills, getting better in understanding how I can protect my team and how to lead my team to get out of disruptions or things that are impacting our team, but sometimes I feel a bit overwhelmed. It is definitely a challenge, but one that I want to grow on.

Thereby I am asking: Has someone of you being in a similar position and what helped you to become the team lead that you wanted to have? Were there useful resources, books, programs that taught you valuable skills for this kind of role?

Thank you :)
We've updated our website monitoring tool with a free plan, looking for feedback
by monitlog | 2025-04-12 17:16:51+00:00
Hey everyone,

Since January, we've been working hard on Monitlog. Recently, we've added a free plan, updated our pricing, improved our webpage monitoring AI, and revamped our landing page with updated brand messaging and design. We're looking for feedback so we can continue improving our product.

For context, Monitlog is a web monitoring tool that scans webpages for changes, generates summaries using AI, and notifies users via email and SMS. You can check it out here: https://monitlog.com

If you find it useful and intend to upgrade to a paid plan, we're offering a 50% discount code to our early users.

Every piece of feedback is appreciated. Thanks!