MurphyA/hacker-news huggingface dataset:
by fp64 | 2025-04-21 13:47:04+00:00
Fair point, they have a proper PEP. I’ve been burnt by `lst[::-1]` and the likes which TorchScript does not (did not?) support and to my surprise learned that the standard is not clear on this behaviour. Generators are fine but I somewhat fail to see their use as they move state somewhere not really clear and I have seen plenty of problems with needing `list(generator())` confusing people
by dapperdrake | 2025-04-21 13:47:15+00:00
Pipelining in software is covered by Richard C. Waters (1989a, 1989b). Wrangles this library to work with JavaScript. Incredibly effective. Much faster at writing and composing code. And this code executes much faster.

https://dspace.mit.edu/handle/1721.1/6035

https://dspace.mit.edu/handle/1721.1/6031

https://dapperdrake.neocities.org/faster-loops-javascript.ht...
by Balgair | 2025-04-21 13:47:51+00:00
Yeah, so add a lawyer/judge option.

Like, someone comes with a problem, great. They suggest 2 options. Lets assume one is super biased. The asker is just fishing for compliments. The jury decides on a third option of 'No, actually, your dilemma is terrible, we need to re-word this'

Then you get some people to recraft answers for it. One person gets to craft one answer, another the other answer. Then a third person to adjudicate that both are acceptable. Then it goes to the jury.

Annnnnnd like the game 'Werewolf', we're expanding this to have all kinds of fun little jobs. Because of course we're going to need a bailiff, and a court reporter, and a stenographer, etc.

For getting this off the ground, yeah, there needs to be a 'send this back' button. But once it does get going, then more fun little jobs will be good to have as updates to keep people interested.
by diggan | 2025-04-21 13:48:53+00:00
> Normal people aren't constantly engaging in a fight for survival in every aspect of their lives, and I don't think it's a good thing to ask them to. We should expect the people we deal with to be acting in good faith. I think it would be bad actually if I had to consider if you're going to make money off of my idea when talking to you.

I agree with you, if we're talking about people acting as individual humans collaborating together on FOSS.

But this is really about a for-profit corporation acting in its own interests, using people to do its "deeds". Then I think it makes a lot of sense to treat any "Hey, could we chat to you about your project?" with a great deal of skepticism, because they have a goal with that conversation, it it's unlikely to align with your own goals, in most cases.

Ultimately, people from that corporation is reaching out to you because there is a potential/perceived benefit coming out of that conversation that they want to have with you. If it isn't extremely clear to you what that exact benefit is, I'd say the smart thing to do is being cautious, to avoid situations like this which happen from time to time it seems.
by fwip | 2025-04-21 13:49:19+00:00
Your linter can flag the type mismatch, and/or the function can reject f"" at runtime. This is because t"" yields a Template, not a str.

Template is also more powerful/concise in that the stringify function can handle the "formatting" args however it looks.

Note also, that there's no requirement that the template ever become a str to be used.
by redbell | 2025-04-21 13:49:44+00:00
> ..and could go against what most people have become accustomed to.

I think that’s the tough reality—over time, people gradually become accustomed to consuming random content from random accounts or pages, to the point where the original idea of interacting with friends and family on social media starts to fade away. That said, messaging apps might still bridge that gap through groups.
by keybored | 2025-04-21 13:50:09+00:00
> But the point is that all that is done at compile time, which is also the time when all more specialised features are checked.

> ...

> Again, everything is checked at compile-time. Once it compiles it will work just like generics.

No. My compile-time when using a library with a comptime type in Zig is not guaranteed to work because my user experience could depend on if the library writer tested with the types (or compile-time input) that I am using.[1] That’s not a problem in Java or Haskell: if the library works for Mary it will work for John no matter what the type-inputs are.

> That's fine and expected. I believe that most language preferences are aesthetic, and there have been few objective reasons to prefer some designs over others, and usually it's a matter of personal preference or "extra-linguistic" concerns, such as availability of developers and libraries, maturity, etc..

Please don’t retreat to aesthetics. What I brought up is a concrete and objective user experience tradeoff.

[1] based on https://strongly-typed-thoughts.net/blog/zig-2025#comptime-i...
by isp | 2025-04-21 13:50:26+00:00
> I'd like to see a similar study about which text was perfectly kerned, or by how many pixels an element was off-center or misaligned.

> Swear on me mum I saw a game about kerning and alignment years ago on HN

Can't Unsee - https://news.ycombinator.com/item?id=27188989 - May 2021 (126 comments)
by apercu | 2025-04-21 13:50:44+00:00
>2. Roofs in general are expensive to maintain and repair. Here on the costs, i've never seen even a minor repair be under 1k. Major roof replacements cost 5 to 15k for average homes. This might be a greater-metro-NY issue though. Part of it is the liability insurance of workers being on the roof, so I'm not saying the cost is unjustified -- just that it is really expensive.

Where exactly is this? I have a modest, single story house (1600 sq ft) and most of my estimates are ~$20k. (SW Wisconsin).
by yladiz | 2025-04-21 13:50:47+00:00
This really downplays the cinema experience. Yes, many people are fine watching a movie at home while doing something else (the current Netflix model of filmmaking is precipitated on this), and others are fine to watch at home in general, but few people would truly say that their setup is close to what you get in a cinema. The screen is much bigger, the image quality is higher, and the sound system is much better as well, compared to anything short of an actual home cinema setup. It’s not the only reason of course, but it’s one of a few reasons cinemas still sell out for big films like Dune 2, and why people will go out of their way to go watch it in the cinema.

Streaming will never fully replace cinemas, even if it dramatically impacts their operating mode, and to argue otherwise is naive.
by dec0dedab0de | 2025-04-21 13:51:39+00:00
Seems pretty neat so far, but I don't understand the motivation behind not allowing you to call str(template) and get the template as a normal string. I could imagine it being very useful to be able to gather up the template itself in a string to do stringy things with.

The only reason I could imagine, is if you are trying to protect developers from themselves, which kinda goes against the "we're all adults here" mentality that makes Python so great. I suppose it's easy enough to add that functionality, but come on.
by bee_rider | 2025-04-21 13:51:46+00:00
> I assume you mean they do a good job of not acting in their own interests...?

They do a good jobs of working in the interest of their constituents. Whether that also includes self interest, I don’t know. They are politicians, their job is to work for their constituents, if we’ve managed to align their self interest with doing their jobs well, that seems fine.

> Let me know what state I should move to.

State and local governments seem to be rated fairly well, just go to one that matches your ideology.

https://www.pewresearch.org/short-reads/2024/04/11/americans...

Pew reports on a negative trend, but states have a huge head start on the federal government.
We're running 50 LLMs on 2 GPUs – no cold starts, no overprovisioning
by pveldandi | 2025-04-21 13:51:55+00:00
We built InferX, a model runtime that snapshots the full GPU execution state, weights, memory layout, KV cache and resumes any model in ~2 seconds. No reinitialization, no weight reloading, no containers.

With this, we’re running 50+ LLMs on just 2 A1000 GPUs, with cold starts eliminated and memory orchestrated like threads. Traditionally, this would take 70+ GPUs if you pinned each model.

We’re not doing speculative batching or model merging. this is native orchestration at the runtime layer.

This was built to support:

•agent stacks (each agent using its own model)

•tenant-specific fine-tunes

•long-tail workloads where models don’t get constant traffic

Would love to hear how others are solving this or what you’re seeing in the multi-model inference space. Happy to go into technical detail on snapshotting, memory management, or orchestration strategy.

Ask me anything.
by Zopieux | 2025-04-21 13:51:58+00:00
journalctl is mentioned once in the landing page and it seems to imply that journalctl is not supported per se, as logs need to be stored plaintext to legacy syslog (?).

I do not want to store plaintext logs and use ancient workarounds like logrotate. journald itself has the built-in ability to receive logs from remote hosts (journald remote & gateway) and search them using --merge.
by ryao | 2025-04-21 13:52:23+00:00
> If they forked from before the author had a license, it’s worse. MS had no right to use it.

You are right, provided he did not have a notice saying it was MIT licensed elsewhere.

> I’ve contributed to plenty of project that don’t have the per-file copyrights. It’s a choice not a mistake.

I would consider it to be both a choice and a mistake. The two are not mutually exclusive. There is no evidence in the fork that he is the copyright holder of the original code and it looks like Microsoft is. Part of that is Microsoft’s fault, but part of that is the original author’s fault for not including per file copyright notices, such that Microsoft could add theirs and be the sole one listed in every file.

I would not be surprised if Microsoft’s legal department doing a scan of public repositories for stolen code mistook him for infringing on “their code” given that they have no information that he authored it rather than their employee. It sounds absurd, but it has happened. I know for a fact the sg3 utils author added copyright notices to his code examples because he was getting contacted by companies, whose engineers incorporated his code into their projects without attribution, that thought he had stolen their code:

https://github.com/doug-gilbert/sg3_utils

I know that because he told me by email in 2013.
by isp | 2025-04-21 13:52:30+00:00
Previously:

Can't Unsee - https://news.ycombinator.com/item?id=27188989 - May 2021 (126 comments)

Related:

Find the Odd Disk - https://news.ycombinator.com/item?id=43745868 - April 2025 (101 comments)
by api | 2025-04-21 13:52:55+00:00
Human brains are not the largest in the animal kingdom. Are elephants and whales smarter than us? We don't think they are, but we don't really know. It could be that they're much smarter but in different ways, maybe somatosensory or social or other ways we don't understand. It could also be that their brains are less efficient due to less selection pressure for efficiency.

In humans there is only a weak correlation between brain size/mass and IQ or other metrics of intelligence.

Then there's utterly wild stuff like this that reminds us of how little we really understand about brains and intelligence:

https://www.sciencealert.com/a-man-who-lives-without-90-of-h...

The fact that someone can function like this is incredible and indicates that the brain must contain a lot of redundancy, or something even weirder is going on.

Stuff like that is enough to make you wonder if we know anything at all.

Another similar data point is the spooky intelligence of many birds, like crows, who have tiny brains. Flying animals are under extreme selection pressure for efficiency because they need to be small and light, so their brains have gotten very efficient.
by maccard | 2025-04-21 13:53:15+00:00
There’s two reasons to do this - as an interviewer, the way you present yourself to me is the way I expect you’ll present yourself as a representative of the team or company. It’s not good to air dirty laundry publicly, and if you can’t keep it under control when it’s almost an explicit “don’t trash talk your old job” the. There’s basically no hope of it when things are more relaxed.

Secondly, there’s three sides to every story. Yours, theirs and the truth. If I say “my manager is an asshole so I’m leaving his team”, it’s probable that my manager has a different take on it, maybe “maccard said they wanted to be kept in the loop so I am telling them what happening but they accuse me of changing my mind”.
by krapht | 2025-04-21 13:53:41+00:00
Yes, but here's my hot take - what if you didn't have to edit the source code to debug it? Instead of chaining method calls you just assign to a temporary variable. Then you can set breakpoints and inspect variable values like you do normally without editing source.

It's not like you lose that much readability from

foo(bar(baz(c))) c |> baz |> bar |> foo c.baz().bar().foo() t = c.baz() t = t.bar() t = t.foo()
by 9rx | 2025-04-21 13:53:44+00:00
> optionally decorate/wrap

If you are using exceptional handlers for transmitting errors instead of exceptions (i.e. what should have been a compiler error but wasn't detected until runtime), wrapping should be mandatory, else you'll invariably leak implementation details, which is a horrid place to end up. Especially if you don't have something like checked exceptions to warn you that the implementation has changed.
by jayflux | 2025-04-21 13:55:13+00:00
I really think you’re trying to use the wrong tool for the job here. Joplin isn’t designed for your notes to be modified outside of the ecosystem, the notes themselves are markdown so you can export or transfer them, but you can’t simultaneously edit them outside of Joplin. For that you’re better off with a folder of markdown files which you can push to Git.

Joplin is essentially an open source version of Evernote and a great alternative for people who enjoyed that style of application.
by ksec | 2025-04-21 13:55:25+00:00
Not sure how he got $1992 but I spaced out and it was $1934.

The thing about Framework I am guessing they do batches and which means they aren't getting volume discount or OEM prices. A lot of those components are retails parts. They might have lower margin than you expect.

I am somewhat surprised by MacBook Pro's pricing. Seems to be a lot more affordable than it used to be.
by candiddevmike | 2025-04-21 13:55:42+00:00
Some projects choose AGPL because they incorrectly read that it requires dependencies like calling web services or the underlying configuration management to be open source (such as Minio). SSPL goes beyond this and requires an unsatisfiable amount of dependencies to be open source. There should be a middle ground for folks like Minio and others that want to prevent competitive hosted offerings as that's how they fund the open source version.

Whether this would be considered non-free is up for debate IMO. Why would a license like this be considered non-free when the GPL is free? Is it the scope of it? The OSI would hate it because they represent the organizations this is meant to curtail.

Though most of this is moot if you can just launder code through a LLM and magically remove any licensing for it.
by maccard | 2025-04-21 13:56:19+00:00
I don’t disagree with you. Parenting is hard, and some of the job is being a role model. If you show your kids the only way to relax is to beg in front of Netflix that’s what they’ll see. One of the nicest things I see on a weekday evening bfis kids with their parents at the driving range - it’s clearly 0 break for the parent, but the kids are usually having a great time doing what mom/dad like doing.
by diggan | 2025-04-21 13:56:48+00:00
The Cambridge Dictionary has its own internal consensus, true, but there are so many more ways people understand that specific word :)

Wikipedia even has it's own page with some of the various definitions people use: https://en.wikipedia.org/wiki/Definitions_of_knowledge

Then we have implicit/explicit knowledge (https://en.wikipedia.org/wiki/Implicit_and_explicit_knowledg...) where some people assume one of them when they say "knowledge", others refer to the other.

In fact, there is an entire scientific field to understanding what "knowledge" actually is/means: https://en.wikipedia.org/wiki/Epistemology

So yeah, it isn't as simple as looking it up in a dictionary, unfortunately.
by latexr | 2025-04-21 13:57:02+00:00
> At the end of the day, it is a tool and it depends on how you use it. It may destroy the research ability of the average person, but for the power user it is an intelligence accelerator IMO.

You live in a planet with billions of other humans. Maybe you are using LLMs carefully and always verifying outputs but most people definitely are not and it is naive to believe that is only their problem. It will soon be your problem too, because what those people do will eventually come back to bite you.

An unrelated quote from John Green feels appropriate:

> Let me explain why I like to pay taxes for schools even though I personally don’t have a kid in school. It’s because I don’t like living in a country with a bunch of stupid people.

One day you’ll be deeply affected by a code bug or clerical decision caused by someone who blindly accepted the words of whatever LLM they were using. An LLM which can itself be created with specific bias, like denying the existence of a country, rejecting scientific consensus, or simply trying to sell you a product.
by sam_goody | 2025-04-21 13:57:06+00:00
I am convinced that I do not have enough data to be able to assess the "fittedness" of the entire Trump administration".

And that is despite (or perhaps because) I have spent way way to much time reading articles both from the Left and the Right.

If you only read one narrative, you might think you are getting the whole picture. When you read both [which is admittedly difficult - I sometimes blanch and force myself to read just to get the options open], you might find that there are hints how much is not known.

When you have a reason to be involved at some point, you realize that Gell-Mann was on to something
by cthalupa | 2025-04-21 13:57:13+00:00
Personal liberty is fine, until it starts infringing on my own, which these include. You don't want to vaccinate? You being infringing on my ability to stay healthy while participating in society. Vaccines aren't fully effective, not everyone can be vaccinated, etc., so to eradicate disease we rely on the majority of people getting vaccinated.

You not using my preferred pronouns or name is simply a rude thing to do. If we remove the bizarre political fixation on it, if I tell you my name is John and you call me Joanna just because you think I look more like a Joanna, you're an asshole. I'm not in favor of making being an asshole illegal, but I will call you one.

I'm actually fully OK with there being consequences to being overweight! It does put a large burden on the healthcare system. Right now the healthcare system is largely privatized so, well, it's not like public health is the primary concern for it anyway, but if it were, sure I believe that there should be actions taken to reduce obesity. We have a lot of promising anorectic medications right now, primarily in the form of the GLP-1 and related medications, and I'd be in favor of overweight and obese people needing to also go on these if they want access to public healthcare for issues that are related to metabolic disorder, etc. But we're in a privatized system, so...

You're starting to really stretch the argument thin with the gay bit, though. Disease transmissions here still requires the informed consent of both parties - I'm not going to get HIV from a gay person without having some form of consensual sex with them, outside of behaviors that are already criminal - rape, contaminating something I'm eating with their semen, etc. This isn't the same as refusing vaccination and then participating in society for diseases that are transmissible like covid or ebola or similar. For birth rate/GDP, we do not enforce actions on straight couples when it comes to childbirth (or STDs, which while transmission rate is generally lower for some STDs for heterosexual intercourse it's obviously not exclusively limited to homosexual intercourse) so these suppositions seem to be targeted based not on the general outcome but simply on the fact the person is gay. If we started mandating child birth for straight people for whatever reason, then we can start having this conversation - but even in a fairly dystopic world where we are requiring married couples have kids, we can still provide options for gay people. Require them 'sponsor' an additional child for a straight couple, require them adopt, require surrogacy and them raising a child, etc. But targeting them just because of their sexual orientation would be quite obviously bigoted.
by righthand | 2025-04-21 13:57:22+00:00
It’s marginal but the study addresses this, it says essentially it’s impossible to tell if the participants are telling the truth about deactivation, as well as if they are supplementing their Facebook time with other platforms.

For example, if you deactivate Facebook but still doom scroll the NY Times et al homepages. Your happiness wouldn’t necessarily change because almost ALL media has adopted the addictive techniques of social media.
by Mond_ | 2025-04-21 13:57:40+00:00
> The second approach is open for extension - it allows you to write new functions on old datatypes.

I prefer to just generalize the function (make it generic, leverage traits/typeclasses) tbh.

> Probably for lack of > weird operators like <$>, <*>, $, or >>=

Nope btw. I mean, maybe? I don't know Haskell well enough to say. The answer that I was looking for here is a specific Rust idiosyncrasy. It doesn't allow you to import `std::iter::Iterator::collect` on its own. It's an associated function, and needs to be qualified. (So you need to write `Iterator::collect` at the very least.)
by praveeninpublic | 2025-04-21 13:57:40+00:00
Fair point. As a software engineer using Cursor, I’ve noticed it writes most of the code now. It’s easy to accept without review, which builds dependency. My role feels less like just coding and more like PM, tester, and reviewer combined.

We’ve started trusting AI like calculators. So, assuming it's right without checking. But LLMs can be confidently wrong, and once that habit sets in, even the “ChatGPT can make mistakes” warning fades into the background.
by dctoedt | 2025-04-21 13:58:07+00:00
>> According to Archbishop Diego Ravelli, Master of Apostolic Ceremonies, the late Pope Francis had requested that the funeral rites be simplified and focused on expressing the faith of the Church in the Risen Body of Christ.

As a kinda-sorta Christian (raised Catholic), I've long admired the Jewish approach to the Mourner's Kaddish prayer said when a loved one dies: It's not about the deceased, nor even about death — it's about G-d. It starts out (in English translation): "Glorified and sanctified be God’s great name throughout the world which He has created according to His will."

https://www.myjewishlearning.com/article/text-of-the-mourner...
by keybored | 2025-04-21 13:58:27+00:00
> Because I would rather take something ranging from Java’s interface to Haskell’s typeclasses since once implemented, they’ll just work. With comptime types, according to what I’ve read, you’ll have to bring your T to the comptime and find out right then and there if it will work. Without enough foresight it might not.

This was perhaps a bad comparison and I should have compared e.g. Java generics to Zig’s comptime T.