Live data from Hacker News

Agentic coding notes

danluu.com

81–90 of 99 posts

Re: Agentic coding notes

#81
post #76
post #58

Earlier quoted context omitted.

There’s a reason not to maximize your browser windows. How do you handle HN threads on that monitor?

Why would you work with anything other than maximized windows unless you have a super ultra wide display?

Because not all content is suitable to be stretched out 16:9 (or whatever the screen ratio of your desktop monitor is). In fact, in my experience most web site content isn’t suitable for it. The default browser window size I use is closer to 4:3 for that reason. There’s also software to auto-resize the window to different widths and to auto-place it to different horizontal positions depending on the website, that you can configure for frequently used websites.

Re: Agentic coding notes

#82

Earlier quoted context omitted.

Realizing he's just using it to mean remote place in terms of AI bubble (Vancouver! What does that make all the other places that are not major tech hubs?) was a bummer. Who cares about AI, I wanted to read about living in Galapagos

I'm saddened to have gotten this far and had my bubble burst, I legitimately thought someone was on the real GI's and was able to compose such a treatise, nevertheless.

You think humans consuming the Galápagos Islands is something worth aspiring to?

Re: Agentic coding notes

#83
post #39

There is a reasone we use left and right margin/padding. This blog is quite unreadable for 27/32" monitors.

Toggle to "reader view" or resize your window. It is up to you and really isn't that hard.

"You can lead a horse to water, but you can't make him drink"

Reader view makes the text too narrow: https://imgur.com/a/yQqzxco

Sure i could take extra steps to make it more readable, but at that point I rather not read it as im not that interested nor invested.

Totally fine, no complains from my side. But If the author wants to increase the reach of their posts they just might use agentic coding to have the llm optimize the website for readability.

Re: Agentic coding notes

#84
post #58
post #39

There is a reasone we use left and right margin/padding. This blog is quite unreadable for 27/32" monitors.

There’s a reason not to maximize your browser windows. How do you handle HN threads on that monitor?

Actually HN handles it almost perfectly. The automatic line breaks are really good.

Only complain would be that its sometimes difficult to see the parent comment(s) when you scroll down.

HN could fix this quite easily by making the current parents sticky while you scroll.

Re: Agentic coding notes

#85
post #49

Earlier quoted context omitted.

I just had Fable run overnight in a loop, and it fixed ~150 compiler crashing bugs that Opus had kept deferring. I wouldn't start with Fable - when I use burndown loops I tend to include instructions to document progress and set aside anything that turns out to be harder than expected, and solve the easy stuff first. When a model runs out of easy stuff and start struggling to make progress on what is left, I can let…

I had fable running in a loop overnight last night, finding bugs. It found a heap overflow. That triggered its safety guards, which converted the thing to opus, leaving opus to run the rest of the night, wasting my precious time with Fable. Oh well, it was pretty funny, all things considered.

That sucks - I've thankfully only had that happen once. Similar thing - I was testing my new X11 server, and it turns out that broken X11 packets can make Firefox crash, and I got a refusal on a sub-agent request Fable prompted to have an agent narrow down why.

Re: Agentic coding notes

#86

Earlier quoted context omitted.

I make Claude, Codex and Gemini review each other's design plan and implementation. Each always found a lot of things the others missed...until Fable 5 came out. Whatever plan or code Fable 5 comes up with, now it's very hard for Codex and Gemini to find any serious hole in it.

In my experience, audit findings decrease in frequency as a codebase matures. Was Fable doing greenfield work?

It's not a brand new project, but a project I've been working on and off for the last half year. I was trying to add a major feature which required some big refactoring of the current structure of the code. With the previous models I'd expect many rounds of reviews and debates between the AI agents. But with Fable 5, there's basically no debate, Codex and Gemini basically approved immediately. :)

Re: Agentic coding notes

#87
post #62

Earlier quoted context omitted.

I really wonder what "randomixed testing" looks like in practice. What is the measure of success/failure? I undrestand for fuzzing you have a very basic "doesn't crash" metric. Property based tests.... you gotta write properties for the PBTs to work on. What is the randomized testing hitting?

Dogfood everything, all the time.

Arf.

Re: Agentic coding notes

#88

Earlier quoted context omitted.

I bake MCP tools into everything now, including doing screenshots. Any LLM can run just about every function, including resizing the window. I just watched Fabel 5 do a full usability test on a new project, copying the release cycle for my agentic terminal, relaunching the app like 20 times as it went, ensuring the move to a built and signed release was working. It installed the program like 5 times (something I do d…

I feel like Dan is one of the most consistently interesting writers in tech at the moment. This is most likely because we take similar approaches towards things.

I'm with him 100% on these points:

>For no particular reason, I've always liked designing experiments and measuring things. This was true long before I ever thought about careers and it's still true today. As discussed here, measurement is one of the primary themes of this blog, maybe the primary theme. Lucky for me, this lifelong hobby has been something I've been able to make a career out of. And even luckier, this skill seems to have been made relatively more valuable by coding agents3.

>3.And, coincidentally, as with testing, it happens to be a skill that gets developed a lot more at CPU companies than in typical software companies, even ones that produce highly performance sensitive products, like databases. Above, we estimated that the effort spent on testing at the CPU design shop I worked for was maybe a ~2:1 ratio over what you'd see in a traditional software company. When it comes to benchmarking/evals/experimental design, the denominator is low enough at traditional software companies that it's hard to estimate the ratio, but it's surely at least 10:1 and 100:1 and 1000:1 are plausible numbers as well.

>Of course, by focusing on and developing much more expertise than software companies in these areas, chip companies are often relatively in the stone ages in a number of other areas. Relatively speaking, I'm also relatively weak in most of those areas. I think this works out ok in the context of a company, where it's valuable to have people with complementary skills, but it can definitely cause some problems in interviews. [return]

Notice how much numerical difference Luu attributes to highly performance sensitive software products versus a traditional software company.

As for Claude and Codex in mid-2024:

>At the time, I didn't find this useful enough to use for anything where I knew what I was doing, but it enabled me to embed a little web game into that post and do other tasks that would've required me to learn something about an area where having actual expertise will probably never be particularly interesting to me, such as building a web app.

Me neither when it comes to web apps. I always thought the fundamental thing with the greatest room for improvement was getting the most out of stand-alone electronics, before it made as much sense to even network them to begin with. Looks to me that performance progress was less than halfway there when it got to be reversed in personal computers, and now more resources than ever are being put to keep personal computers from allowing users to get as much advantage as they could have been. Basically more effort than ever imagined since before the 1990s, toward a return to centralized data centers instead, not much differently than we had with mainframes. The difference is that "everybody" has a "terminal" now but those user PCs are going to need to become less-capable as stand-alone personal computers, and more like "dumb" terminals otherwise a growing number of high-rollers will not be able to fulfill their massive vision as overwhelmingly.

So what if I thought it was fairly intuitive learning to program on mainframes back in the 1960s. I was pursuing natural science not computer science, in ways people like Wozniak and Gates were not. For me the programs are supposed to be a tool, and one that's still not always necessary to achieve the optimum outcome in the research lab. It took a number of years before I was able to pay for the experimentation by doing chemical testing in the lab, and was basically the only computer pioneer in my field for a while after that, as alternative labs also had some emerging "computerized" or "digital" instruments but not for user-programming.

Anyway, by the tine the 1990's rolled around, with all the overtime at the bench, it gave me about the equivalent of 40 years of intense testing in only 20 years. From where I have never stopped, but it was mostly chemical testing. Not as applicable to things like CPU design as it could be, but the hardware I build has to handle chemicals not only electrons. Usually quite toxic materials, hazardous in other ways, and highly regulated.

And I was even more out-of-date by then on computer languages. Much more of a disadvantage compared to digital hardware engineering like where Luu is coming from, since I was not the coder those folks were, and they don't have the time to put most of their effort into the kind of code that software engineers have to do.

I didn't code every year, just as needed, and "shipping" code was not an objective at all. By then I had founded my first company and I made more money using my code than I was before, or developed routines that made the work easier. The LOB was mostly scientific and automation. I figured anybody would prefer NASA-type performance if they could, so why not, I had no deadlines, and these are some risky chemicals.

It should be easy to see that the only unfair advantage I had was a lifetime of testing up the wazoo, even if only a baby part of that was testing code. And I already could tell that testing had to be at least a bit lacking in the commercial software that had appeared (and is still often raising its ugly head). As a total laboratory system I had always been more reliable than that and I was not ready to stop at all.

Ended up at 100:1 in testing:development ratio to hit the sweet spot. That's not relative to any other companies, just what it took to give lab business clients their money's worth. Of course lots of "unit tests" and code reviews were included. With chemicals you must leave no stone unturned even more so than plain electronics. Never could have done it if I wasn't already giving clients their money's worth without the code.

Otherwise the likelihood of unforeseen regrets is far too high for mission-critical application, and can not be very accurately estimated either.

The whole time it was on my mind how I would incorporate AI into some advanced automation, if PCs got powerful enough, but that was a bit of a dream 30 years ago. AI was just unheard of for any type of everyday use. I had to accept that if I ever did want to ship some software I would have to be more of an architect and let professional engineers rewrite my stuff in a more modern language that they have experience in.

Now with things like Claude and Codex I could be doing it all on my own, but nah. I've already got a well established lack-of-momentum and a couple years ago it looked like LLM autocoding was impending so I figured it would be good to see how AI develops from the sidelines. While I'm past "retirement age" anyway. Why would I settle for my own single-handed code when now I could have a team of software engineers who are using AI to help them. Just like I always figured I would need a team to do all the coding in order to make a "product" out of my efforts since before the '90s.

If I get such a wild hair I'll still have to do all the testing myself regardless :\

Re: Agentic coding notes

#89
post #49

Earlier quoted context omitted.

I just had Fable run overnight in a loop, and it fixed ~150 compiler crashing bugs that Opus had kept deferring. I wouldn't start with Fable - when I use burndown loops I tend to include instructions to document progress and set aside anything that turns out to be harder than expected, and solve the easy stuff first. When a model runs out of easy stuff and start struggling to make progress on what is left, I can let…

I had fable running in a loop overnight last night, finding bugs. It found a heap overflow. That triggered its safety guards, which converted the thing to opus, leaving opus to run the rest of the night, wasting my precious time with Fable. Oh well, it was pretty funny, all things considered.

There's a setting that stops fallback to Opus 4.8 if you would like to avoid that behavior.

Config -> Switch models when a message is flagged -> false

That should stop it entirely when a message is flagged and then you can come back without Opus having potentially made a mess.

Re: Agentic coding notes

#90

Earlier quoted context omitted.

I visited a decade or so ago. Most of the islands you are forbidden from staying overnight on. No running water. No power. No phone signal. You're going to need a big big solar panel to run local inference during the day, but luckily there is plenty of sun!

Looks like there is Starlink though! https://dplnews.com/cnt-ecuador-y-starlink-conectan-las-4-is...

Could be upscale compared to Dry Tortugas, which is obviously less of a "remote" location.

https://science.nasa.gov/earth/earth-observatory/dry-tortuga...

Post reply on HN