Earlier quoted context omitted.
Throwing myself to the sharks here, but sure. pcie.c /* * BAR0 register access */ uint32_t brcmf_reg_read(struct brcmf_softc *sc, uint32_t off) { return (bus_space_read_4(sc->reg_bst, sc->reg_bsh, off)); } Is sc null? Who knows! Was it memset anywhere? No! Were any structs memset anywhere? Barely! Does this codebase check for null? Maybe in 3% of the places it should! All throughout this codebase variables are declar…
To be fair if you open up driver source code from the vendors themselves, it's often the same hell with magic numbers and lack of checks because "we know what the hardware will return". But you're right on the main point: AI writes C like a very confident junior who skipped memory safety lectures - it copies the style, but not the discipline. It works as long as you're on the "happy path", but debugging a kernel pani…
FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
361–370 of 397 posts
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#362Had an experience like this recently. QEMU stopped compiling for old versions of MacOS (pre-13) w/M1 arch, due to it requiring newer SDKs which don't support older MacOS versions. I put Sonnet 4.6 on the case, and it wrote a small patch, compiled and installed it in a matter of minutes, without giving it any instructions other than to look at errors and apply a fix. I definitely would have just given up without the A…
Why would you solve an issue like this and then not supply a patch upstream, or at the very least contact someone that could? It seems to be like the FLOSS equivalent of posting about a problem on a forum and then replying "nvm, solved it".
2) I sent the patch to MacPorts which is what I was using and also had failed builds, and the maintainers closed my submission as a dupe (of a ticket which actually didn't have the full patch nor anyone testing it). I offered to do more investigation, no response
3) It's open source, I really don't owe anyone anything, nor they me
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#363Had an experience like this recently. QEMU stopped compiling for old versions of MacOS (pre-13) w/M1 arch, due to it requiring newer SDKs which don't support older MacOS versions. I put Sonnet 4.6 on the case, and it wrote a small patch, compiled and installed it in a matter of minutes, without giving it any instructions other than to look at errors and apply a fix. I definitely would have just given up without the A…
Mind sharing that patch?
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#364Earlier quoted context omitted.
there was a whole pandemic
Not really whole. COVID was at best like a quarter pandemic.
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#365Earlier quoted context omitted.
there was a whole pandemic
Not really whole. COVID was at best like a quarter pandemic.
In the city in my country reknowned for having a much higher level of hypochrondria before the pandemic, imagine the mental health issues my city is going through now.
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#366Earlier quoted context omitted.
The claim of the AI true-believers is that this time it will be different because of the "general" nature of it. Fire can't build a house. The wheel can't grow crops. Writing can't set a broken bone. Double entry bookkeeping can't write a novel. If you believe that this AI+robotics wave will be able to do anything a human can do with fewer complaints, what would the humans move on to?
Fighting the clankers, of course.
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#367Earlier quoted context omitted.
Fighting the clankers, of course.
Perhaps you meant writing bad futuristic science fiction on HN rather than building something.
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#368Earlier quoted context omitted.
Strictly speaking, I don't think we need a human to run repetitive tests. We just need the human to help with the physical parts of the testing jig. For instance: A microphone (optionally: a calibrated microphone; extra-optionally: in an isolated anechoic chamber) is a simple way to get feedback back into the machine about the performance of a speaker. (Or, you know: Just use a 50-cent audio transformer and electrica…
To your point, we already have testing jigs for these sorts of systems in the automotive world for steering and suspension. I can't find the video clip atm, but there's a neat (likely leaked) Foxxconn video that shows a really neat testing jig for Apple trackpads.
The fun part is that some of us (actually, in this particular crowd, many of us) already have a lot of what we need to get some automated testing done at home, and we may not even realize it. :)
Re: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me
#369Earlier quoted context omitted.
Why is that the metric? In my job, I get drafts from junior employees that requires major revisions, often rewriting significant parts. It’s still faster to have someone take the first pass. Why can’t AI coding be used the same way? Especially if AIs are capable of following your own style and design choices, as well as testing code against a test suite, why isn’t it easier to start from a kind of working baseline th…
Dis you hire juniors just to get drafts? That seems pretty inneficient.
Programming is different in that you don't usually have senior engineers rewrite code written by junior engineers. On the other hand, look at how the Linux kernel is developed. You have Linus at the top, then subsystem maintainers vetting patches. The companies submitting patches presumably have layers of reviewers as well. Why couldn't you automate the lower layers of that process? Instead of having 5 junior people, maybe you have 2 somewhat more senior people leveraging AI.
This is probably not sustainable unless the AI can eventually do the work the more senior people are doing. But that probably doesn't matter in the short term for the market.