lol, these sorts of comparisons always crack me up. How things have become so big.
That’s the whole arduino IDE though… and virtually all of that is unneeded. The entire GUI would be bloat for our application… so my first thought was “well how big is arduino-cli
?” The program that actually backs the Arduino IDE 2.0 and does the stuff. It’s probably more than we need anyways (especially if ESP32 becomes our target) since the compilers are in the proffieboard-arduino plugin after all, but alas:
The linux x86 build of the arduino-cli is 28.8 MB… so that’s a bit big.
The build system for the ESP32 is ~700MB. There might be things that could be stripped though.
The contents of the proffieboard-arduino plugin totals ~70MB, but there’s definitely stuff in there that could be stripped.
All that’s not even that big of a deal though, because we could use an external flash medium… we use SD cards already, and that’d be adequate for something like this. SBCs like the RPi have used SD cards to boot for a while, reading from them for running applications then, while slow, is proven to be viable.
Additionally, ESP32S3 supports up to 1GB of additional RAM and/or FLASH (1GB total between both), so should it be needed, plenty of RAM and extra stuff could be thrown onto it to cope.
The issue then would be… well, ESP32 doesn’t run Linux. By default, the ESP-IDF has it running FreeRTOS, and that’s where we really hit a wall. FreeRTOS has begun work making a POSIX compatible “emulation” layer if you will, but it doesn’t seem super promising, at least for this use-case.
Beyond that, building a FreeRTOS app, on my machine, spins up all 16 cores for a good half a minute or so… I’m not going to do a proper benchmark or anything here, but suffice to say building modern programs like that requires a fair amount of CPU and RAM, which I think the ESP32S3 would be hard-pressed to do, even if all the software constraints were moot.
I think it’s an interesting idea, don’t get me wrong, but it does seem that, for now:
EDIT: And btw, sorry for getting more heated than I should’ve in my last post, I’ve feelings on that sort of stuff in general. Was not directed at you.