What's with Canada and heists? That's the second wikipedia article about a Canadian heist on this page. Is it just because Canadians are posting it, or is there a disproportionate number of interesting heists in Canada?
I have no direct knowledge of this topic, however highway robbery is older than civilization! After watching some documentary episode about trucking in New Guinea, and watching lines of trucks dutifully entering scales in California with literally dozens of cameras and connected tracking info databases.. I suspect that there is a clear spectrum around every single major truck route around the world (minus Japan perhaps).
> I have no direct knowledge of this topic, however highway robbery is older than civilization!
I'd believe it's as old. It seems like it'd be difficult for it to be older, though - why is someone moving along a highway if there are no civilizations?
A human tribe could create paths like that, moving all together. But if they encountered "bandits", the result wouldn't be a robbery; it would be a massacre. And that wouldn't likely happen anyway, because there'd be no reason for anyone to be waiting by the path.
(As you noted, animals can create their own paths. Those animals have predators. Which predators lurk by paths waiting for prey to come by?)
If you have one guy moving along an established path, it must mean that (a) a lot of people independently have reason to follow that path at different times, and (b) that guy in particular has reason to be at both ends of the path.
There are two reasons you might see a path appear because of human traffic:
1. The geography imposes a very strict bottleneck, like a mountain pass.
2. Commerce.
It's pretty much always commerce. Commerce can tell you why someone is moving between two fixed locations, and why hundreds or thousands of other people are taking the same route at different times. (Because the endpoints never move, and the people are always either at one endpoint or traveling between them.) And commerce can also tell you why bandits find it worth their while to hang out next to the path.
O peddler, peddler, what's in thy pack? Come speedily and tell to me
I've several suits of the gay green cloth, and silken bowstrings two or three
If you've several suits of the gay green cloth, and silken bowstrings two or three
Then, by my body, says Little John, one half your pack shall belong to me
What do you mean deer don't create paths? I see deer trails all the time, and see deer using them. They come through my yard almost daily on the same paths. If I'm wrong, I'd be curious what is creating the paths? Maybe it depends on the area... the forests I live in have heavy underbrush.
If you see trails and you see deer using them, the trails are probably created by the deer. (It's not always the case - humans in Africa famously use paths through the jungle that are created by elephants - but it's a good bet.)
Have you ever tried following a trail? How long are they? Where do they go?
I drastically improved the reliability of an internal IoT device so it can tolerate all kinds of abuse (abrupt power loss during update, unreliable SD card, bootstrapping over network when the SD card is missing/damaged, fail-safe updates, recovery in a network isolated environment). This is the first release that I really leaned into AI, having been pretty skeptical before.
I think AI has been a net positive and has been used responsibly at my work. It can be used to make existing products better and more secure. You just won't naturally hear about that. There's some challenges like emerging social mores but overall good.
> I think AI has been a net positive and has been used responsibly at my work. It can be used to make existing products better and more secure. You just won't naturally hear about that. There's some challenges like emerging social mores but overall good.
It always works best when layering on top of good human code. The thing is, you start to run out of that as you lean in. Tricky.
> The thing is, you start to run out of that as you lean in. Tricky.
I think it depends how you lean in. I generated a few thousand lines of Rust code today. It was actually pretty high quality. On my initial review, I only identified one change I wanted to make.
Most functions were pretty short and well factored. I wonder if using Rust as a target helps, because (1) the training data doesn't include all the terrible Javascript and Python etc. found on the internet, and (2) Rust and many of its libraries encourage good architecture - code factored into traits, functional pipelines, a powerful type system, etc.
LLMs trained on bad code for mediocre languages naturally write corresponding quality code.
A big part of it still boils down to prompting - what you're asking it to do and how much freedom you give them. If you let them make all the architectural decisions, you're likely to end up with issues.
Heh, you should look at the reply I left for your sibling comment. I think it is just a regression to the mean of all open source software upon which the models were trained. Sometimes the mean is an improvement.
Hell, if the Dunning–Kruger effect is to be believed, it would be bold me to assume I am capable of good human code. Maybe the average is the best I'll ever get.
> It can be used to make existing products better and more secure. You just won't naturally hear about that.
Why? I keep asking for examples of LLM being used to make code more simple and elegant (which I would say is adjacent to making software better, if not more secure), and never get a reply, not a single one. I'm not claiming it doesn't exist, I know it must exist. If only via a lots of careful massaging of system prompts and harnesses, even if it takes too much effort to be worth it, I would like to see it.
Of course people can't share internal examples, but this is all over the world for many months now, where are the open source examples? Not "something new someone couldn't have done before", but someone making their precious even neater (while also adding things to it, but not primarily). Put differently, can LLM delete code, can they curate it well, can they not write weird comments nobody wants or needs, that sound like echoes of the user prompts and responses to them, but just explain tricky parts of the code, like a human would?
Also, IMO a VERY useful thing to learn about a tool or a chemical or whatever is, "what happens if I keep applying it to the same small thing over and over?" -- because that's the level of scientist I never evolved past, the kind of stuff you do as a kid -- , whereas a lot of this seems to be more about how it feels to apply it here and there until it looks good, and then move on and never look back. Which really isn't much at all, especially given we're such a short time in. I mean, how useful were mugs made of lead? Are people aware of the (in hindsight) insane things that were done with x-rays as those were invented, before the potential for harm was known? I bet they had a great time playing with that stuff, for a while.
What if in 5 years it turns out that a few years ago, LLM got into this habit of implementing certain things in a certain way because it seemed the best to "them" (the training, whatever), but there's a security issue with that -- what do you do? You can only let more agents loose, and hope they don't miss anything, because you cannot even do something like "patch PHP" (which is not my thought, Casey Muratori mentioned that in on of those podcast things).
Fully leaning into LLM doing as much of the coding and understanding as can be handed off to them seems insane to me, I don't mean this to offend though. It just does, like suggesting we go to Mars, because everything is better there, and to do that, we have to blow up Earth. Or saying to magically be able to fly from now on, we need to saw off the branch we're sitting on. Even if I thought life on Mars was the future or that we could fly, if we just thought of it the right way, this isn't a way forward IMO.
> LLM being used to make code more simple and elegant
Simple and elegant generally doesn't come from the LLM. It comes from me saying no to the LLM. I've discarded many branches that didn't feel like they were going the right way. Hell, I aggressively do that with my own code also. I rarely commit the first thing that works.
> where are the open source examples?
My general impression of open source is that it is, in part, a market driven by good software engineering. There's certainly below average code, but that tends to get mocked out of existence before it grows too much. Proprietary code that doesn't have a strong forcing function used to be able to hide poor engineering principles.
I think AI generated code is a regression to the mean, and the mean can be an improvement sometimes. I inherited this project. It was not originally written with AI. A lot of hard work and good engineering went into the hardware/firmware. The IoT software connecting it to our intranet, less so. Some examples that I'm fixing/fixed: ignoring HTTPS certificates, RCE by design, in-place file updating JSON files, a hand-rolled (but ineffective) fair mutex, busy waiting for a device to appear, and worst of all, no tests. None of these are hard to avoid, and even the small AI models would have come up with a better implementation.
This doesn't seem unique to my project either. I think a lot of software is just silently getting closer to the average of all open source code upon which the models were trained. I don't think I want things like SQLite to get closer to the average.
> Fully leaning into LLM doing as much of the coding and understanding as can be handed off to them seems insane to me, I don't mean this to offend though.
I think you might be reading too much into what I said. When I say "fully lean into", it's probably less than you're thinking of. I still feel that I understand what was written and can stake my reputation/career on it.
You want them to make code more simple and elegant by themselves, no other direction? "Make this code simple and elegant, no mistakes, no hallucinations"? I don't think that's realistic at the moment.
But with suitable direction, they can definitely improve codebases - especially a typical enterprise codebase, which, if you don't like LLM code, you would hate with a passion. (I can only assume you've never seen such code otherwise your perspective would be different.)
> Fully leaning into LLM doing as much of the coding and understanding as can be handed off to them seems insane to me, I don't mean this to offend though.
I essentially agree, but there's a huge spectrum before you get to that point, and lots of ways to use it effectively that doesn't create tech debt.
> You want them to make code more simple and elegant by themselves, no other direction?
No, he wants a project where AI is used as a major help, but the result tend towards good code, i.e readable and well abstracted. Even if the cost is high, just an example where you can extract the best practices of using AI coding.
You are responding to someone that just today generated thousands of lines of code, claims to have reviewed it all, thought it was good and only wanted one minor change. Surely they have an example of the good code it produces.
The code in question was split into modules, the largest of which was about 500 lines. Overall, the quality was higher than a lot of unaided human code that I've reviewed.
That code is greenfield code, so doesn't fit what was being requested above. But here's an example that illustrates the point I mentioned about functional pipelines:
This particular fragment is parsing input using the Chumsky parser combinator library. That imposes a structure that has to be followed. It's all heavily type-driven, which means that it's naturally structured as type cases, where each case handler is pretty small. The longest one in this code is around 20 lines, but most are more like 5 lines or so.
As a result, the modules, functions, and case handlers naturally follow the single responsibility principle. This makes it easy to review. Again, this goes to the points I made in my other comment - if you give a model a good type schema, have it use good libraries in a good language, so that it has a well-structured framework in which to operate, you're likely to get good results.
Perhaps a simpler way to describe it is the old saying, "garbage in, garbage out". If you're vibe coding, say, PHP you're much less likely to get the same quality results.
It's of course very subjective, but I find that code terrible to read. But you would hate what I would turn it into just as much and more (I would get rid of all the chaining and indent conditionals, cmd_kw should be command_keyword, ws() would be constant or a really long function name, etc.)
What exactly is supposed to be impressive about that fragment? That it correctly used the API of some other library? I’m really not sure why this is supposed to be an example of “good” code that it produces.
As I said, that code illustrates the point I made in the other comment about being a functional pipeline, which composes pure functions. That snippet is part of a function that's only a little bigger - here's the start of it:
Combine that with the first snippet and you have the whole function. There's not a lot of room for "slop" here. A big part of that is the constraints imposed by (1) good libraries that follow functional principles, (2) a good type system, (3) a good language.
If you start removing those factors, the quality of generated programs is going to suffer as a consequence: mutable data is more difficult to reason about, and weak or nonexistent types make it harder to recover semantics from source code and easier for runtime errors to occur. A good type system forces a model to get things right before the program will even compile.
I've seen this because, working in ML, I'm forced to generate Python sometimes, and you can definitely see the difference.
All the points I've mentioned make it easy to review and to be sure that the code is correct - along with our existing tests, and new tests written by the model.
> What exactly is supposed to be impressive
I didn't say it was "impressive". I said "...pretty high quality. [...] Most functions were pretty short and well factored." The above is certainly an example of that. In my initial review I didn't see anything that I would qualify as "slop" - quite the contrary.
But it actually is impressive that models are capable of this. It's certainly above average code when compared to average human developers.
I'll close with a quote from Ghost in the Shell:
> "All things change in a dynamic environment. Your effort to remain what you are is what limits you."
I'm working on a IoT device at work and have been the "hands in the lab" for my agent this week. It's been a really weird experience. Making changes to the update/recovery process, so I have to validate several permutations of fault injection (i.e.: abrupt power loss during update step X while on starting version Y).
I would love to give it unattended "hands". I just thought it was more time efficient to do it manually rather than spend days trying to figure out how to automate SD card pull/plug. X and Y are relatively small, and I expect this validation to be too costly to do at a regular cadence in CI. I can trivially use a MCCI USB-C switch for the power though.
Tips would be appreciated if anyone here has thoughts.
I built a little harness for an x86 SBC for Claude to do osdev a few months ago.
Janky setup with two ESPs for the serial terminal and to control a servo taped to some microswitches to power cycle the board.
It worked very well, allowing Claude to spend all day and night debugging quirks with the NIC until it was able to get the driver working.
So, I think giving your IoT device some "hands" is probably worth it. For SD card automation, you can find "wireless SD cards" on Amazon/AliExpress that have a microcontroller pretending to be sd card, eg FYSETC SD-Wifi.
I had some zigbee outlets laying around but wasn't interested in doing the config work to give Claude access to my mqtt broker. I already had most of the kernel written by hand years ago, so PXE etc were irrelevant, the goal was to see how well driver work would go. I was able to send relocatable elf binaries over serial and use the existing modular machinery in my kernel to have it load and run them.
> I just thought it was more time efficient to do it manually rather than spend days trying to figure out how to automate SD card pull/plug
Heres the thing. You only have to build the automation once. While it will only take you seconds at most to pull a card, you gotta sit around and be ready for the card to be pulled.
For your problem I see 2 quick things that came to minq very quickly that could do SD card pulling for you.
1) shove a level shifter in between the SD card and device under test and have a micro enable/disable the level shifter when you want to pull/unpull. ( you can even get multiplexer IC that will do the same thing as the level shifter as acting as a switch for the SD card lines, but would allow you to connect the SD card to a 2nd device (the testing pc) to allow you to write/read data from the card when its "pulled" from the DUT.
2) 3D print a jig that will insert/remove the SD card and use a cheap RC servo to handle the movement - again using a mirco to control the servo. gives a more real world test of pulling the SD card. but only gives the the ability to pull/insert. Still required manual effort if you need to read/write to the SD card
Once you have build the jig, you can reuse the jig on the next project, so while it will take some time to do/setup it could save you time later down the road.
Edit: As for the code driving the ICs or Servo, I'm presuming you already know embedded programing, but even so, a simple Arduino sketch will be able to handle it for you, fuck ton of example code already exists for it, and can be easily controlled over USB.
To add on to this for the SD card, you can buy an “SD card extender” that has an SD card on one end and a slot on the other, with a cable in between. Something like that might make it physically easier to get in between the signals by modifying the cable. Nice big wires on this one: https://a.co/d/0cPVVsLE
I bet we'll see more KVM-for-X type products appearing, basically multiplexers for various storage devices and peripherals, as ways of giving agents control over them.
> I just thought it was more time efficient to do it manually rather than spend days trying to figure out how to automate SD card pull/plug.
If you control the bootloader and firmware, or you can talk to the team that does, then look into network filesystems and network booting. The SD card would only exist to bootstrap the system and then everything else happens over the network.
So far most of my automation has been optical (tweaking display output to show correctly under a lens with odd optical characteristics, hard to simulate computationally), so pointing cameras at the device and letting the LLM iterate and tune display output has been useful.
As with any automation, it all depends on scale. Setting up a harness to repeatedly mess with microSD cards seems way more prone to failure (and false positives) than just doing it yourself, but if you're testing thousands of devices, would probably be worthwhile.
IDK about cheap options to do this, but fancy ones could be:
Keysight has bench power supplies that can be controlled via USB, i did some scripts with python a few years ago to characterize a pcb using the psu and an oscilloscope. The scope charts saved as images. I imagine that an agent could easily run the script to control the PSU and look at the images to debug the board or run characterization tests.
For the SD card pull/plug, maybe a pcb sd card extender that cuts off data or power lines to the SD card driven by a MCU that your agent could control?
For an extremely temporary setup for a push-push card slot, you can maybe just put the device on an Ender-3 and poke it with the cold nozzle. Bed flex can become a problem if it's heavy.
It can also just turn into a waste if you build all the automation to turn around and only use it once, recalling https://xkcd.com/1205/
Now that said, the economics have changed in a world where many trivial automations can be thrown together by agents themselves in a fraction of the time it would have taken a human.
I used to feel this way, but now, I want more people to send me AI slop because I'm tired of human slop. I am tired of parsing through two word git commits where the author didn't care enough to tell Claude to write the commit message for them. Sure, I would prefer to read your personal thoughts on the change, but if the choice is between no meaningful information and an agent's mostly coherent if a bit verbose description, I'll take the AI.
The same goes for AI generated code. I've seen some code that I'm pretty sure would have been better quality if my 90 year old grandma was steering Claude. The standard that I want to hold myself is derived from the open source world like SQLite. Sadly, some people just want to take the minimal path to ticket completion without regard for future maintenance or pride in their work. At least AI is token predicting off the code bases that I admire.
I can't even force myself to read Claude's multi-paragraph PR summaries, and instead just go read the code. They're barely coherent and incredibly verbose.
I'm struggling to get people to give me a good summary line. Even if I just ignore the commit message body, I still want a meaningful summary line so git blame will be accurate.
I joined this team not long ago, and I was trying to add a new feature to an API server. I saw a pretty obvious UnboundaLocalError that would occur given the right parameters. I hovered over the line and saw, "fix login". I then looked at the git log for that file and found three commits with the same text. No explanation of how login was broken, how it was fixed, and it introduced a bug. Some people care less and have less diligence than the AI agents.
I have a standard that I hold myself to which falls somewhere in the middle w.r.t. AI usage, but for the other people I work with, I want them to maximize their AI usage.
I think it is supposed to be stacks in the general sense of the data structure, not the literal `sp` register. I imagine they could be arbitrarily sized up to physical limits if you do some mmap magic. I'm still a bit fuzzy about how you could make useful programs with that, but it seems interesting.
I have a RX 9070 also. I run llama-swap with a fill-in-middle 7B model, local 9B model, and it proxies up to OpenRouter for the bigger stuff. I think that's where the sweet spot is right now.
I've spent $2 in the last 2 weeks on OpenRouter. I've been trying to only use the medium sized models that I would otherwise be able to run on a nice local setup. That nice local setup would cost ~$4k. I don't know what the operating cost would be, but I would be concerned that my home electricity would cost more than at a datacenter. It just doesn't make sense right now except for privacy reasons.
I'm probably going to hoarde open weights models in the ~31B range until memory costs fall in a few years. Then, I'll buy some hardware to run at home just so I feel more sovereign over my stack regardless the cost/token speed.
reply