Remix.run Logo
▲ fusslo 5 hours ago

I'm really trying to get my head around harnesses for embedded development.

Application code can be harnessed and tested with the right abstractions. QEMU can emulate a system architecture. But the nature of embedded seems like a complete harness isn't likely

I'm particularly interested in keeping things performant while dealing with constrained resources. Access to spiflash/i2c bus/peripherals from multiple tasks. task starvation.. timing to service interrupt signals etc

I feel like spinning a board that has two mcu's: one for the target and another 'monitor' ?

relying on debug output is largely a no-go for real final production-ready code. about 10% of bugs come from testing with debug and removing in production

Dunno!

▲PaulKeeble 3 hours ago | parent [-]

Give the harness the ability to do it how you would, debugger access and connected hardware with all the usual flash tools and it will just use the real hardware and same tools you do. Fundamentally they work best when they can completely test everything.

I found that giving it full debug to a tablet allowed it to deploy and test Android apps down the USB cable.

I haven't yet done an ESP32 project using an agent when I do it will be given some tools for debug directly and maybe some skill steers about how to do some things so it prefers to use the hardware over trying to emulate something.

▲esikich 2 hours ago | parent [-]

LLMs can already just do that though. I still don't understand the point of harnesses. The other day I gave Codex an old Apple // rom and asked it to port it. It didn't need me to specify which tools to use, it just went at it and was done in like 10 minutes.

▲PaulKeeble 8 minutes ago | parent | next [-]

An LLM can't do anything other than Text to text through a web interface. The harness connects it to the file system and everything else. You were using a harness of some description.

▲tempest_ 2 hours ago | parent | prev | next [-]

Codex is a harness, am I missing something?

▲TeMPOraL an hour ago | parent | prev | next [-]

LLM is (simplifying) a big bag of floats.

A harness is a piece of code that that pushes tokens through it, and optionally does something with it beyond just showing what came out to you.

▲chalkbadger 2 hours ago | parent | prev [-]

[dead]