MurphyA/hacker-news huggingface dataset:
by Closi | 2025-04-21 11:08:41+00:00
Well AGI can write unit tests, write application code then run the tests and iterate - agents in cursor are doing this already.

Just not for more complex applications.

Code review does often find bugs in code…

Put another way, I’m not a strong dev but good LLMs can write lots of code with less bugs than me!

I also think it’s quite a “programmer mentality” that most of the tests in this forum about if something is/isn’t AGI ultimately boils down to if it can write bug-free code, rather than if it can negotiate or sympathise or be humerous or write an engaging screen play… I’m not saying AGI is good at those things yet, but it’s interesting that we talk about the test of AGI being transpiling code rather than understanding philosophy.
by potato3732842 | 2025-04-21 11:08:45+00:00
I really hate this projecting of the software gaming industry's behavior back into the "original" vices.

The casino, liquor store and drug dealer all make the same margin regardless of who they're selling to. If anything the problem users are more likely to cause problems for them so they'd rather make the money on casual users and scale.

Having your whole operation be basically a wash except for all the money from a few people with problems is fairly unique to digital gaming and the software industry.
by evertedsphere | 2025-04-21 11:10:11+00:00
This pattern ([0-9][0-9]?[0-9]][.])+ matches one, two or three digits followed by a . and also matches repeated patterns of this. This wold match an IP address (albeit not strictly).

that pattern (once you fixed the typo) would not match a whole ip address unless you allowed it to also swallow the character after the last octet, which wouldn't work at, say, end of line
by jononor | 2025-04-21 11:10:18+00:00
There seems to be no stable consensus on which LLM one should have used, to get good results. Which is somewhat natural, things are moving quickly - and evaluation methods are immature (and the little we have, actively gamed).

But a lot of the arguments seem on the surface to be of "No true Scotchman AI" form. Or "you are just holding it wrong" (ref Apple).
by metalman | 2025-04-21 11:10:39+00:00
meddlsome. That one word covers the totality of everything happening under the guise of "security" and there is fuck all that can be done about it, as the drive to meddle is quite clearly genetic, and has some primary social function in many species or the only thing that can be done is this here, just laying it bare, and suggesting to the meddlsome ones that they are not invisible, and should tone it down, lest society determine that the french solution, ie: "the argument that ends all debate" must be used, just so people can have a day off, and then get back to work, and the meddling returns to some level that is functional and while never nice, perhaps usefull
by gwd | 2025-04-21 11:10:59+00:00
So my brother doesn't code for a living, but has done a fair amount of personal coding, and also gotten into the habit of watching live-coding sessions on YouTube. Recently he's gotten involved in my project a bit, and so we've done some pair programming sessions, in part to get him up to speed on the codebase, in part to get him up to speed on more industrial-grade coding practices and workflows.

At some point we needed to do some parsing of some strings, and I suggested a simple regex. But apparently a bunch of the streamers he's been watching basically have this attitude that regexes stink, and you should use basically anything else. So we had a conversation, and compared the clarity of coding up the relatively simple regex I'd made, with how you'd have to do it procedurally; I think the regex was a clear winner.

Obviously regexes aren't the right tool for every job, and they can certainly be done poorly; but in the right place at the right time they're the simplest, most robust, easiest to understand solution to the problem.
by psychoslave | 2025-04-21 11:11:06+00:00
That's seems like the wrong pattern, maybe I'm missing something.

Ruby has lazy evaluation with a generic lazy enumeration facility, whether to produce string or any kind of object.

That is, I don't know what is the actual behavior of the default string interpolation in Ruby, but if profiling a codebase some string generation would gain lazy evaluation, there is a path to do so. But in the general case, does it really matter? Chances are good that a string construction is not a big bottleneck.

Does Python miss such a feature of generic lazy enumeration, or is it so painful to use that some syntactic sugar felt like a must have? Genuine question here, I don't have any strong opinion on this t-string feature.
by goku12 | 2025-04-21 11:11:31+00:00
If you take the regex subset that works uniformly across all regex engines (even for just perl-compatible engines), you would probably get nothing done. They all have some minor variations that make it impossible to write a regex for a particular engine without a reference sheet open nearby, even if you have years of experience writing them. And those 'shortcuts' like look-ahead and look-behind are often too useful to be neglected completely.

Crafting regexes is story of its own. The other commentor has described it. Just to summarize, regexes are fine for simple patterns. But their complexity explode as soon as you need to handle a lot of corner cases.
by thomasmg | 2025-04-21 11:11:52+00:00
For me, the main problem of the Regex syntax is the escaping rules: Many characters require escaping: \ { } ( ) [ ] | * + ? ^ $ . And the rules are different inside square brackets. I think it would be better if literal text is enclosed in quotes; that way, much less escaping is needed, but it would still be concise (and sometimes, more concise). I tried to formulate a proposal here: https://github.com/thomasmueller/bau-lang/blob/main/RegexV2....
by kstrauser | 2025-04-21 11:14:21+00:00
The last time I touched a large Py2 project was in 2018 when I ported it to Py3. So, I have 18 years of Py2, probably 6 years of overlap, and 7 years of pure Py3. That means I still have a lot more Py2 than Py3 time.

Buuuttt, I'm so over the transition. It’s ancient now and I agree that we can stop fretting about it.
by Jensson | 2025-04-21 11:14:59+00:00
> The child didn't learn algebra on its own either. Aside from Blaise Pascal, most children learned those skills by having experienced humans teach them.

That is them interacting with an environment. We don't go and rewire their brain to make them learn math.

If you made an AI that we can put in a classroom and it learns everything needed to do any white collar job that way then it is an AGI. Of course just like a human different jobs would mean it needs different classes, but just like a human you can still make them learn anything.

> How likely is it that we're going to fire everyone maintaining those models in the next 7.5 years?

If you stop making new models? Zero chance the model will replace such high skill jobs. If not? Then that has nothing to do with whether current models are general intelligences.
by zacfire | 2025-04-21 11:15:07+00:00
This piece examines ByteDance's massive AI investment and its distinct 'resource-efficient' strategy, contrasting it with Western approaches. It details their key models (Doubao, Seaweed video gen - with performance claims noted), enterprise platform (Volcano Engine), and dual-market approach. Crucially, it also digs into the major challenges: geopolitical risks (TikTok), chip supply constraints, ethical concerns, and the trust deficit, analyzed largely based on company info & local reports due to limited independent verification.
by tomhow | 2025-04-21 11:15:24+00:00
It may be unusual for this kind of reminder to be posted on an obituary thread, but it's not so unusual for it to be posted on a thread about a religious topic. There's nothing to read into this other than we all know that religion is a topic that elicits strong reactions in people and is one of the most frequent topics of bitter argument, and that's just the thing we're trying to avoid on HN.

It's fine to talk about the larger institution he led; please just keep to the HN guidelines, which apply equally to all threads on HN, and which, in particular, ask us to be thoughtful and substantive, and to avoid generic tangents.

(I've edited my top comment, to clarify what I think should be deemed on/off topic.)
by alternatex | 2025-04-21 11:15:31+00:00
Is this a website that's entire purpose is to shill for Tesla or have I become too cynical?

This article for example was written to debunk Mark Rober's video on Tesla and collision avoidance: https://www.notateslaapp.com/news/2609/new-wile-e-coyote-wal...

But the arguments made against it seem quite biased towards Tesla: "However, this entire test scenario is so out of left field… there is a good likelihood this same test would fool some human drivers as well"

When one of the major arguments of the video was about easy and affordable it was for the average LIDAR system to detect the wall. Of course human beings are not perfect drivers, which is why Tesla's attempt at mimicking human senses for its self driving capabilities is a bad idea. But the article seems completely ignorant of this IMO very clearly stated narrative in Mark's video.
by gortok | 2025-04-21 11:16:08+00:00
It’s important to note that The Two Popes was a drama, and not a true factual story.

It fictionalizes and sensationalizes some details; and that’s ok because its purpose is to make you feel exactly the way you feel about it.

Pope Francis was a wonderful steward of Christianity and espoused the virtues that anyone would want to see in their religious leaders: humility, grace, an openness to listen and a strong voice against even prelates in his own church that are xenophobic or nationalistic. He wanted us to welcome all and to live as the bible said Jesus did.

The fear I have is that each swing of the pendulum goes in two directions. He was far more “liberal” than the conservative Catholic prelates of the USCCB, and I fear his actions — including rightfully limiting the Latin mass, will force the church to swing in the other direction and give in to the illiberal forces that divide us.
by pansa2 | 2025-04-21 11:17:00+00:00
Yes that makes sense, thanks.

Also, my comment was about the amount of boilerplate required, but that can be vastly reduced by writing `process_template` in a more functional style instead of the highly-imperative (Golang-like?) style used in the article. The first `process_template` example is just:

def process_template(template: Template) -> str: return ''.join(interleave_longest(template.strings, map(process_value, template.values)))

And the second is something like:

def process_template(template: Template) -> tuple[str, tuple]: return ( ''.join(interleave_longest(template.strings, ['?'] * len(template.values))), map(process_value, template.values) )
by threeseed | 2025-04-21 11:17:04+00:00
> add any new, proprietary high-speed video stuff on the side

Dashcams just use regular USB-C with HDMI or DisplayPort.

And the electronics for this are cheap, plentiful and reliable since it is used extensively in hobbyist circles e.g Raspberry Pi. No need for anything proprietary or crazy. Just run another cheap cable.
by numpad0 | 2025-04-21 11:17:42+00:00
CAN bus never was the only choice of automotive buses, it's the cheapest option. There were always competing standards like FlexRay and LIN buses, just like there were Rambus RDRAM against JEDEC SDRAM or IEEE1394 against USB.

It's what Mercedes pioneered, and what most high-volume manufacturers standardized on, including most Japanese and American brands. Some European companies like Volkswagen-Audi Group uses something else. I think implication of that is clear.

Nissan and Toyota had been shipping cars with automotive Ethernet since as early as 2019. Including Toyota's Hydrogen EV since at least 2022. I think implication of that is also clear.
by Jensson | 2025-04-21 11:17:47+00:00
> If the thing is intelligent, then there’s nothing artificial about it… it’s almost an oxymoron.

Artificial means human made, if we made a thing that is intelligent, then it is artificial intelligence.

It is like "artificial insemination" means a human designed system to inseminate rather than the natural way. It is still a proper insemination, artificial doesn't mean "fake", it just means unnatural/human made.
by swashbuck1r | 2025-04-21 11:17:56+00:00
While the doc generator is a useful example app, the really interesting part is how you used Cursor to start a PocketFlow design doc for you, then you fine-tuned the details of the design doc to describe the PocketFlow execution graph and utilities you wanted the design of the doc-generator to follow…and then you used used Cursor to generate all the code for the doc-generator application.

This really shows off that the simple node graph, shared storage and utilities patterns you have defined in your PocketFlow framework are useful for helping the AI translate your documented design into (mostly) working code.

Impressive project!

See design doc https://github.com/The-Pocket/Tutorial-Codebase-Knowledge/bl...

And video https://m.youtube.com/watch?v=AFY67zOpbSo
by hyperman1 | 2025-04-21 11:18:05+00:00
This is both a demo for the beauty and power of regexes, and of their dangers:

* The use of backslash separatores quickly makes a mess, as they tend to need escaping wherever regexes are usefull.

* The uppercase/lowercase is only right if there are no accented characters, so USA. This is bad in western europe in files where they are rare: Your program works for a while, then an accent sneaks in and breaks things.

* The exact meaning of all the specials like \( vs ( .

* Ranges work in most regex dialects but not everywhere.

* A simple regex for an int with a specific range is nasty. If you want a full float, good luck.

Regexes are great as initial filter or quick hack, but you need more in full size programs.

I'd love to see a better regex syntax, too.
by kelafoja | 2025-04-21 11:18:31+00:00
My problem is that regexes are write-only, unreadable once written (to me anyway). And sometimes they do more than you intended. You maybe tested on a few inputs and declared it fit for purpose, but there might be more inputs upon which it has unintended effects. I don't mind simple, straight-forward regexes. But when they become more complex, I tend to prefer to write out the procedural code, even if it is (much) longer in terms of lines. I find that generally I can read code better than regexes, and that code I write is more predictable than regexes I write.
by TheDong | 2025-04-21 11:18:53+00:00
"matches an ip address" is a vague enough specification that of course people fail.

Is it what `inet_addr` accept? In that case, "1", "0x1", "00.01", "00000.01", and more are all ip addresses. `ping` accepts all of em anyway.

Is a valid ipv6 address one with the square brackets around it? Is "::1" a valid ip address? What about "fe80::1%eth2"? ping accepts both of these on my machine (though probably not on yours, since you probably don't have an eth2 interface)
by camtarn | 2025-04-21 11:20:10+00:00
Similarly, PROFINET, the confusingly named EtherNet/IP (IP here stands for Industrial Protocol not Internet Protocol), POWERLINK, and others - all based on Ethernet but with a custom protocol layer replacing IP. "We need something that is high speed but also supports rapid deterministic communication" is pretty much a solved problem in the industrial space.

I wonder what Tesla's game is here: is it really just reinventing the wheel, or are they perhaps using higher speed Ethernet as industrial Ethernet tends to still be limited to 100Mbit? Or perhaps it's tightly linked with the proposal to communicate over 48V lines?
by gortok | 2025-04-21 11:20:13+00:00
I would like to know how far from the “norm” ICE has deviated since January 19, 2025.

It’s possible this is something that happens, and just wasn’t widely reported before now, but is because of the ethnophobic nature of our current administration.

It’s also possible this is far outside of the norm and deserves more attention than it’s getting just on the face of its irregularity.

I cannot find a non-AI generated (in my admittedly quick search) list of statistics of how many US citizens have been detained by ICE (and I do not trust that AI generated answers are accurate), so I am left with feelings, and my feelings indicate this would have been a news story no matter how rarely or often it happens, and therefore is worthy of discussion and reflection as to whether our border policies accurately reflect what we say our values are.
by throw-qqqqq | 2025-04-21 11:20:30+00:00
IMO it’s a “language” you need to understand in order to use.

Just like you wouldn’t copy/paste any random snippet into your source code if you don’t understand exactly what it does.

I see a lot of broken regex at work from people who use regular expressions but don’t understand them (for various reasons).

It used to come with a “found this on stackoverflow”-excuse, but mostly now it’s “AI told me to use this” instead.
by CGamesPlay | 2025-04-21 11:20:37+00:00
> And like a sibling comment mentioned, companies should operate separately from governments.

Unless you are making the claim that the Thai government is giving special privilege to Meta/X or vice versa, then it already is this way. Since the doxxing/bullying happened anyways, this is irrelevant.

I think we both agree that what is happening in this article is bad. You made some assertion that “lack of oversight…is incompetence at best, and complicity at worst“, so who is supposed to provide this oversight? You are clearly saying “not a government”, but I think that social networks doing this “oversight” of what governments are doing is equally dangerous.
by bambax | 2025-04-21 11:20:37+00:00
DJI products are extraordinary and way above the competition.

But registration is a huge pain, yes. Two solutions: 1/ Buy used; the previous owner probably didn't do a factory reset -- if they did, return it and try again. 2/ Use a disposable email. On the Action pro, once "registered", nothing happens and the device never asks for anything.

Drones are different, they sometimes need to be attached to a proper account; when that happens, create yet another disposable email and "register" again.
by glenngillen | 2025-04-21 11:20:41+00:00
Hey, this sucks. Unfortunately the MIT license doesn't do much to prevent this and (I think?) their licensing transgression is they haven't kept "Copyright (c) 2024 The Spegel Authors" in the LICENSE file. I suspect if you call them out on it that'll be the remediation.

Did you manage to reach out to any of the people at MSFT you originally spoke to to ask wtf?
by diggan | 2025-04-21 11:21:04+00:00
> As a sole maintainer of an open source project, I was enthused when Microsoft reached out to set up a meeting to talk about Spegel. The meeting went well, and I felt there was going to be a path forward ripe with cooperation and hopefully a place where I could onboard new maintainers.

Seems it isn't the first time Microsoft leads open source maintainers on, trying to extract information about their projects so they can re-implement it themselves while also breaking the licenses that the authors use. Not sure how people fell so hard for "Microsoft <3 Open Source" but it's never been true, and seems it still isn't, just like "Security is the #1 priority" also never been true for them.

Here is the previous time I can remember that they did something similar:

- https://news.ycombinator.com/item?id=23331287 - The Day AppGet Died (keivan.io) 1930 points | May 27, 2020 | 550 comments

The best advice for open source maintainers who are being approached by large tech companies is to be very wary, and let them contribute/engage like everyone else if they're interested, instead of setting up private meetings and eventually get "forked-but-not-really" without attribution.
by n4r9 | 2025-04-21 11:21:20+00:00
I'm not saying it's a good thing necessarily. I was replying to your statement "you're already poorer". I am probably better off for immigration. Some people are poorer, but it's a small effect and I suspect there are ways we could explore addressing it without losing the benefits of immigration.

> the very fabric of most English cities has broken down

How do you mean? That doesn't match my experience in London.
Show HN: I built a Bedtime Stories app with classic fairy tales for my daughter
by andrew_g | 2025-04-21 11:21:28+00:00
Hey HN! I’m Andrew, a dad and an IT geek, and I wanted to share a small passion project I built for my daughter.

Like many parents, I struggled with bedtime routines. I tried different apps, but most were filled with AI-generated or unfamiliar content. So I decided to create something better: a cozy, story-focused experience built around the timeless folk tales I grew up with.

The app was built in SwiftUI in just 2 weeks. I’m using the gpt-4o-audio-preview for dubbing and gpt-4.5 for translations (five languages supported so far). I also gave Cursor a try for the first time and ended up building the website in about 8 hours as a bonus (https://anytales.com).

I’m curious, would you use something like this for your kids? I’d love your thoughts, feedback, or suggestions!
by diggan | 2025-04-21 11:22:03+00:00
> Unfortunately the MIT license doesn't do much to prevent this

Seems both you and Microsoft needs to actually read through the MIT license, it isn't that long or complicated :)

> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

That part is even in it's own paragraph and everything, really hard to miss for anyone who even glances at the license.
Show HN: I Built Feedaura to turn scattered feedback into clear insights with AI
by kartik_malik | 2025-04-21 11:22:10+00:00
Hey, I want to tell you about something I’ve been working on. A while back, I was struggling to collect feedback on one of my projects—it was a mess, and I couldn’t find any tool to fix it. So, I decided to build FeedAura. It uses AI to take that chaotic user feedback and turn it into clear insights by categorizing it for you. It’s almost ready, and I’m super excited to launch it soon!
by kaycebasques | 2025-04-21 11:22:20+00:00
I meant to write a blog post about mutable.ai but didn't get around to it before the product shut down.

I did however archive the wiki that it generated for the project I work on: https://web.archive.org/web/20240815184418/wiki.mutable.ai/g...

(The images aren't working. I believe those were auto-generated class inheritance or dependency diagrams.)

* The first paragraph is pretty good.

* The second paragraph is incorrect to call pw_rpc the "core" of Pigweed. That implies that you must always use pw_rpc and that all other modules depend on it, which is not true.

* The subsequent descriptions of modules all seemed decent, IIRC.

* The big issue is that the wiki is just a grab bag summary of different parts of the codebase. It doesn't feel coherent. And it doesn't mention the other 100+ modules that the Pigweed codebase contains.

When working on a big codebase, I imagine that tools like mutable.ai and Pocket Flow will need specific instruction on what aspects of the codebase to document.
by Jensson | 2025-04-21 11:23:43+00:00
A normal software engineering job? You have access to email and can send code etc. No current model manages anything close to that. Even much simpler jobs can't be automated like that by them.

So basically any form of longer term tasks cannot be done by them currently. Short term tasks with constant supervision is about the only things they can do, and that is very limited, most tasks are long term tasks.
by jvanderbot | 2025-04-21 11:24:23+00:00
This is part of maturing into the real world. Politics (for lack of a better word) is part of any group of people who spend a lot of time together. We try and try to distill politics out of the workplace as engineers, which, ironically, is precisely why interviews are so positive-biased that they feel slightly fake for some. We don't like those dirty unquantifiable "feelings". Popping up all the time.