MurphyA/hacker-news huggingface dataset:
by motorest | 2025-07-20 05:08:37+00:00
> Even with typescript Claude will happily break basic business logic to make tests pass.

It's my understanding that LLMs change the code to meet a goal, and if you prompt them with vague instructions such as "make tests pass" or "fix tests", LLMs in general apply the minimum necessary and sufficient changes to any code that allows their goal to be met. If you don't explicitly instruct them, they can't and won't tell apart project code from test code. So they will change your project code to make tests work.

This is not a bug. Changing project code to make tests pass is a fundamental approach to refactoring projects, and the whole basis of TDD. If that's not what you want, you need to prompt them accordingly.
by toast0 | 2025-07-20 05:09:56+00:00
Possibly for fire rating. Wire mesh glass was common on fire rated doors to stairways and such, although there's other ways to accomplish that now.

Edit: I had some trouble with the site, but figured it out enough to see that the offices have big doors, and then a window next to them that's mesh glass. Some of the doors have fire door tags (although you can't read them, and I only found one), and most don't. I suspect there was a code requirement for some of the offices to have fire rated construction, thus the fire door, and then you need the window and the drywall also fire rated. Other offices probably didn't need that, but maybe they used the same glass for everything for consistency.

But, I'm not an architect or an appropriate engineer, my spouse holds a bachelor's degree in architecture, so I've got some knowledge by osmosis.
by maybevoid | 2025-07-20 05:11:56+00:00
For those who are new to the concept, in a nutshell, CGP allows you to bypass the coherence restrictions in traits/typeclasses, and define multiple overlapping and generic implementations for each CGP trait. As a consequence, when you define a new type, you need to specifically choose an implementation to be used with that type. This is called a wiring step, where you choose the provider implementations for your context.

On the surface, this addition doesn't seem significant. However, it opens up a world of possibilities for enabling powerful design patterns that are based on trait implementations that are named, generic, and overlappable. One of the greatest strengths of CGP is to enable safe, zero-cost, compile-time dispatching through the trait system to accomplish the things that in OOP would typically require dynamic dispatch with runtime errors.
by creata | 2025-07-20 05:12:05+00:00
I didn't think it was that controversial a statement. For example, Wikipedia says:[0]

> Rust's syntax is similar to that of C and C++,[43][44] although many of its features were influenced by functional programming languages such as OCaml.[45] Hoare has described Rust as targeted at frustrated C++ developers...[15]

I'm not sure what "actionscript types of function notation" means, but Rust's closures syntax (|x| ...) was probably inspired by Ruby and/or Smalltalk. Anyway, sure, the expression-orientedness, implicit return, etc., are very un-C++-like, but I do think the syntax was explicitly designed to be approachable to C++ developers.

[0]: https://en.wikipedia.org/w/index.php?title=Rust_(programming...
by duncangh | 2025-07-20 05:12:07+00:00
both of my claims were subjective and thus not really refutable. As an outsider I think it is interesting, too. And think the flexibility is similar to many laws akin to what we have in the US via prosecutorial discretion

I should’ve included a source to where I read about it initially and that’s below

https://apnews.com/article/afghanistan-taliban-media-moralit...
by koolba | 2025-07-20 05:12:33+00:00
> An "rsync copy" of a file system is not a point-in-time backup (unless the system is offline), because the system changes constantly. A point-in-time backup is a backup in which each block/file/.. maps to the same exact timestamp.

You can do this with some extra steps in between. Specifically you need a snapshotting file system like zfs. You run the rsync on the snapshot to get an atomic view of the file system.

Of course if you’re using zfs, you might just want to export the actual snapshot at that point.
by pcwelder | 2025-07-20 05:12:37+00:00
Losing the sense of cwd is the reason why I append it in the output of each command run in wcgw mcp [1]

It rarely does it incorrectly after that.

I won't be surprised if claude code does the same soon.

However, they do have an env flag called CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1

This should also fix the wrong dir behavior.

[1] https://github.com/rusiaaman/wcgw
by stuaxo | 2025-07-20 05:12:38+00:00
There are many semi autonomous.

To go full automous you want modern signaling, platform doors (which is hard if any platforms have curves), basically all the modern safety systems.

Here's Jago Hazzard (london train youtuber), on why the London underground won't go driverless.

https://m.youtube.com/watch?v=4Eh7-n5UAYs

While the LU is very old, the system is in a much better state than the NY subway, but it is still way to much work.
by zozbot234 | 2025-07-20 05:13:48+00:00
> trying to cross-reference my tons of downloaded games my HDD - for which i only have titles as i never bothered to do any further categorization over the years aside than the place i got them from - with wikipedia articles - assuming they have one - to organize them in genres, some info, etc and after some experimentation it turns out an LLM - specifically a quantized Mistral Small 3.2 - can make some sense of the chaos while being fast enough to run from scripts via a custom llama.cpp program

You can do this a lot easier with Wikidata queries, and that will also include known video games for which an English Wikipedia article doesn't exist yet.
by inferiorhuman | 2025-07-20 05:14:15+00:00
it’s in comprehension … what they can do is understand

Well, no. The glaringly obvious recent example was the answer that Adolf Hitler could solve global warming.

My friend's car is perhaps the less polarizing example. It wouldn't start and even had a helpful error code. The AI answer was you need to replace an expensive module. Took me about five minutes with basic tools to come up with a proper diagnosis (not the expensive module). Off to the shop where they confirmed my diagnosis and completed the repair.

The car was returned with a severe drivability fault and a new error code. AI again helpfully suggested replace a sensor. I talked my friend through how to rule out the sensor and again AI was proven way off base in a matter of minutes. After I took it for a test drive I diagnosed a mechanical problem entirely unrelated to AI's answer. Off to the shop it went where the mechanical problem was confirmed, remedied, and the physically damaged part was returned to us.

AI doesn't comprehend anything. It merely regurgitates whatever information it's been able to hoover up. LLMs merely are glorified search engines.
by ggm | 2025-07-20 05:15:58+00:00
Online discussion of this tends to the super negative. I've said here and in reddit flows that I think digerati seriously underestimate how concerned parents are. I think this move is possibly more popular than people give credence to. (-my son is 32 and I do not claim to be super concerned on his behalf)

It's clear from this article your historical relationship with a search agent like Google can inform their sense of need to check ID: I have a 20+ year old google identity and they know me inside out.

I also tend to hammer on about homomorphic encryption. There is no need for a third party who sees your 100pts identity checks to know where you go. For me personally, noting a technical fix to a social problem is unusual, I tend to say it's a mistake to reach for tech fixing society, but the paranoia around "the government sees my activity proving who I am" has a specific, cryptographically defined solution.
by heavyset_go | 2025-07-20 05:16:00+00:00
The economy as we know it doesn't matter to technofeudalists, it's just the fastest way to get what they want for the time being.

The last 50-80 years have been an aberration in terms of distribution of wealth, income and power. What AI owners want is a return to a world of lords and peasants, and with that comes with a shift of economy that serves the needs of consumers to an economy that suits the needs of those with incredible wealth.

Institutional investors will leave the middle and lower classes behind in favor of making a ton of money serving the needs of the incredibly rich, their families and their friends, and that will be the new formal economy. Everyone else will be served by informal economies that don't see institutional investment.

See also: Citigroup's plutonomy paper[1].

[1] https://delong.typepad.com/plutonomy-1.pdf
by bigstrat2003 | 2025-07-20 05:16:47+00:00
That, and I've learned the stuff I need to from my homelab. Earlier in my career, setting up a light version of a production network at home was hugely educational and I think it was a large part of why I'm a senior today. But now, I don't need to run all that at home unless I have specific learning objectives. So I keep my home network a lot simpler than it used to be, as a result.
by 8n4vidtmkvmk | 2025-07-20 05:16:57+00:00
Some trust is necessary, yes, but not complete trust. I certainly don't trust my coworkers code. I don't trust their services to return what they say they will return 100% of the time. I don't trust that someone won't introduce a bug.

I assert assumptions and dive into their code when something is fishy.

I also know nothing about health, but I'm going to double check what my doctors say. Maybe against a 2nd doctor, maybe against the Internet, or maybe just listen to what my body is saying. Doctors are frequently wrong. It's kind of astonishing and scary how much they don't know

Tldr trust but verify.
by tbrownaw | 2025-07-20 05:20:59+00:00
> I'll assume good faith here:

This tells me that you think that treating housing supply as a relevant factor to the price of housing is a stupidly obvious error.

> So they don't necessarily "prevent housing construction" (what housing gets built is a topic a bit too complex to get into here) but they absolutely do reduce available housing in large cities and in-demand areas, in the ways outlined above.

That you for agreeing that they do not prevent housing supply from increasing to meet the increased demand.
by pjmlp | 2025-07-20 05:21:20+00:00
They surely can, this is how we usually end up with layoffs affecting people that were doing their jobs as best as they could.

MBA influenced shareholders set random profit margins, when the fiscal year comes to an end and the targets weren't met, a selected random set of employees gets punished due to missing the desired margins.

Yep, I already went through this %@#££! a couple of times, and seen also happen to others.
by cedws | 2025-07-20 05:22:39+00:00
I’m feeling limited by the tools right now. The software for using LLMs is an incongruent mess. For example, how can I have a global system prompt shared across all the apps I use my OpenRouter key with? I can’t, I have to set it in each application. How can I carry a conversation over from one app to another? How can I give all my apps access to the same set of MCP tools? Most of the apps I use don’t even properly support MCP yet.

It sounds like Claude Code is the best UX right now but I don’t want to be locked into a Claude subscription, I want to bring my own key and tap into whatever provider I want.
by nemothekid | 2025-07-20 05:23:12+00:00
The comparison is contrived precisely because he's comparing it to other memory-safe languages. The borrow checker was introduced because the goal of the language was a memory safe language without a runtime. Falling back to indices isn't "ironic", its exactly how you would solve the problem in C/C++.

If your argument is "well Rust should be like Julia and have a GC", well thats not Rust. That language also exists, its possibly called OCaml, but its not Rust.
by seec | 2025-07-20 05:23:25+00:00
Yes the conclusion is baffling.

As you say I believe the correlation is reverse causality. It's much more likely that people who consume stuff with "artificial" sweetener are already at risk for stroke than the other way around.

If you don't have weight/cardio problems it is weird to consume "sugar-free" stuff and associated because they are almost always worse tasting than the real deal.

To have any importance they would need a big population sample and correct for already existing risks for stroke and I believe they would find that this stuff has very little impact, if any.

But as always, it doesn't cost much to limit consumption, so why not?
by jiggawatts | 2025-07-20 05:24:25+00:00
There’s a much simpler solution: the government can stay out of my personal pastimes.

It’s simply none of their business.

Parents have commercially available solutions for censoring their own home internet if they choose.

They and the government has no need to track my activities online to do so.

PS: The Australian Government says they can be trusted with this power but has abused it every time. Every. Time.
by zozbot234 | 2025-07-20 05:24:55+00:00
Unfortunately, Golang has a whole lot of weird, pointless quirks in both its base language and standard library, compared to something with a more elegant and from-the-ground-up design, like Rust itself or perhaps OCaml/ReasonML. Not very good news if you want the language to just "get the hell out of your way". I suppose it's still way better than the "enterprise" favored alternative of Java/C# though!
by fsckboy | 2025-07-20 05:26:44+00:00
>The article doesn't make it clear

we don't need to know.

if airbnb raised the prices and the market isn't there, rental income will go down and vacancy rates will go up and airbnb will lower prices again.

if airbnb raised the prices and the market stayed strong, they'd raise the prices more.

the higher the prices go, the more people with extra space to rent out will take notice and clean up their garage, or go stay at grandma's or whatever, creating more housing out of thin air (actually, on the margin) helping alleviate the housing shortage.

the same pattern would happen if hosts raise the prices themselves. also, if all the cheap places get rented, the market will appear to have higher prices even if nothing has changed.

let markets figure out prices, period. that's what markets do, it's one of mankind's stellar achievments. It's why the west is successful and communism fails.

if airbnb has monopoly power and is manipulating prices, fix that problem any day of the week, don't use a massive fire that destroys housing as evidence of anything, it means nothing, that's normal market correction.
by blub | 2025-07-20 05:27:01+00:00
C doesn’t have objects, which are great for encapsulating data structures, but in C++ it’s not at all hard to write a graph data structure.

One wraps it behind a reliable interface, writes automated test and runs them under valgrind/sanitizers and that’s pretty much it.

It’s normal for life and software development to have a certain degree of risk and to spend some effort solving problems. Too many HN comments make it sound like it’s a jungle out there and a use-after-free will chop your head clean off.
by oneshtein | 2025-07-20 05:27:39+00:00
You can use a garbage collector in Rust to circumvent borrow checker. You can use simple reference counting (Rc, Arc), or trace and sweep, arenas, or generation based garbage collectors. Even a simple .clone() can help a lot in many cases.

Borrow checker is my friend, it helps me write better code, but it doesn't stops me when I don't care about code quality and just want a task to be done.
by ta8645 | 2025-07-20 05:28:08+00:00
For anyone interested in reading about CGP in Rust, here is the website:

https://contextgeneric.dev/

Just a FYI from their main page:

As of 2025, CGP remains in its early stages of development. While promising, it still has several rough edges, particularly in areas such as documentation, tooling, debugging techniques, community support, and ecosystem maturity.

...

At this stage, CGP is best suited for early adopters and potential contributors who are willing to experiment and help shape its future.
by conradludgate | 2025-07-20 05:28:15+00:00
I personally don't think I would want to use a language that doesnt have a borrow checker ever again. I would like a Rust-like language with GC, but I still want the borrow checker.

Every time I write Go, I find it so annoying all the defensive deep copying I see. In JS I always find myself getting confused on whether a mutation is safe (as in my program won't break some assumption) to do or not. Marking arguments as shared or exclusive is really great for me to know what kind of access I can have. It needs to be enforced so that the owner also doesn't accidentally mutate while a shared borrow is still active (again, not just for memory safety but for my own invariants). The classic example could be inserting into a collection while iterating over it

I think the borrow checker is necessary if you have ADTs like Rust and you want memory safety. You could pattern match a union into one of its variants and get a pointer to one of the fields, but without a borrow checker there's nothing to stop you from changing the variant stored in the union. This would obviously cause issues and the only way you'd solve this with GC alone is by allocating each variant individually where the union is just a tagged pointer.
by zozbot234 | 2025-07-20 05:29:03+00:00
Flamebait? It's literally what the designers of Golang said publicly about the background of prospective developers, and how that constrained the language design:

"The key point here is our programmers are Googlers, they’re not researchers. They're typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They're not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt."
by fcatalan | 2025-07-20 05:30:02+00:00
I had more luck with a little experiment a few days ago: I took phone pics of one of the shorter BASIC listings from Tim Hartnell's "Giant Book of Computer Games" (I learned to program out of those back in the early 80s, so I treasure my copy) and asked Gemini to translate it to plain C. It compiled and played just fine on the first go.
by numpad0 | 2025-07-20 05:30:22+00:00
Unicode Hanzi/Kanji map is a huge political mess, but writings in CJK are divergent enough that anyone fluent in one can often just tell which one a character is from. Mutual intelligibility never existed and very little content is shared across the language spheres, which lead to each ones having its own self-emergent mannerisms with regularized shapes of characters and which ones to use.

In this instance, "稱" and "號" used on some of printed labels in place of "称" and "号" are outside of current Japanese common use(though "號" wasn't uncommon until very late in 20th century) and I can tell that the system used to print those labels must have been configured for Traditional Chinese(HK/TW). As for the handwriting, it just looks Chinese to me.
by nunez | 2025-07-20 05:31:06+00:00
The target audience for this wants to get into, and usually return from, their destination as quickly as possible. The trip is a means to an end. It's not unlike opting to take rideshare when your bus or train is slow.

I can absolutely see tech salespeople using this mode of travel for critical meetings. Fly out at 0600 ET from JFK, arrive into LHR at 0900 ET/1400 GMT for a 1500 GMT meeting, do dinner and such, then fly out at 0900 GMT the next day to arrive at 1200 GMT/0700 ET for a full business day. Minimal jet lag.

What you're describing is high-end private air travel (for the rich and not time sensitive) and cruises (for people looking for a vacation in a box).
Show HN: I made a word guessing game based on word semantic similarity
by ArneVogel | 2025-07-20 05:31:06+00:00
This is inspired by [1] which was posted to HN two days ago [2]. In the blog the Jack describes this game: * Is it closer to Mussolini or bread? Mussolini. * Is it closer to Mussolini or David Beckham? Uhh, I guess Mussolini. (Ok, they’re definitely thinking of a person.) * Is it closer to Mussolini or Bill Clinton? Bill Clinton. * Is it closer to Bill Clinton or Pelé? Bill Clinton, I think. * Is it closer to Bill Clinton or Grace Hopper? Grace Hopper. * Is it closer to Grace Hopper or Richard Hamming? Richard Hamming. * Is it closer to Richard Hamming or Claude Shannon? You got it, I was thinking of Claude Shannon.

I wondered if it was possible to play this game against the computer [3]. I have solved this using the word vectors from GloVe: Global Vectors for Word Representation [4] and projecting them to 2d.

I am not 100% happy with how the game plays right now. It is hard to get closer to the target right now if you started "far away" from the target. That is why I have added the hints. If you have ideas for the game format let me know :)

[1] https://blog.jxmo.io/p/there-is-only-one-model [2] https://news.ycombinator.com/item?id=44595811 [3] https://xkcd.com/1425/ [4] https://nlp.stanford.edu/projects/glove/
by jiggawatts | 2025-07-20 05:31:37+00:00
The same argument works in the reverse: the computer was not given 18 years of calendar time to study. It doesn’t have the benefit of a meat brain with a billion years of evolution optimising it for efficient thought. Etc…

That the architecture of the machine mind is different to ours is the point.

If it was identical then nobody would be excited! That’s a high school student equipped with a biological brain.

That the computer used silicon, that it used parallel agents, that it used whatever it has in its programming is irrelevant except in the sense that these very differences make the achievement more amazing — not less.
by ggm | 2025-07-20 05:31:38+00:00
running RF for wifi or BT or something may boost the budget a bit. Fixed point sampling capture would mean clock coordination which drifts. Sending a wake call to come out of low power states is what the old "Morse code" audible pulses of interference on radio in the GSM days were doing: making the higher cost digital signalling stack wake up.

I think zigbee does stuff in this space. 6lowpan too.

Put a wifi or bt shield on, battery will drop faster.

If the led can blink a code, you could remote read it off a phone or something. Newton's did IR networking. The conference translation headsets use it too: the radiators for the signal get appreciably hot.
by whyenot | 2025-07-20 05:31:38+00:00
Drugstore beetles are also a huge problem for natural history museums because they will eat all kinds of biological materials like dried plants. I am curator of a medium sized herbarium and we have been fighting beetles since 1945. PDB (paradichlorobenze; moth balls) used to be a very effective way to keep beetles out of collections, but most institutions no longer allow its use. Freezing specimens is what we do now, and it is very effective in the short term, but it has to be repeated at least every few years and it also causes some wear on the specimens. During COVID lockdowns when some specimens were not frozen regularly, the results were devastating. Pressed flowers reduced to dust, trays of pinned butterflies completely gone, only beetle grass left behind.

Once you have these beetles they come back again and again. The only really good long term solution is to store everything in what is essentially a giant walk-in refrigerator. ...or if the specimens are old enough, they may have been treated with mercury or arsenic, which is quite effective but has other problems!