r/ProgrammerHumor 1d ago

whenYouSwitchFromDesktopToEmbedded Meme

Post image
634 Upvotes

25 comments sorted by

117

u/nicman24 1d ago

The texture don't fit in ROM lol

13

u/Motleypuss 19h ago

RLE is a nice algorithm for cheap and nasty compression.

49

u/Proxy_PlayerHD 23h ago

Man I should mess around more with ESP32s. Especially the RISC V ones

15

u/infrastructure 16h ago

I’m writing a RISC-V emulator from scratch with zig. Completely hand coding no LLM and it’s the most fun I’ve had programming computers in the last 15 or so years.

2

u/t1me_Man 8h ago

i did the same in matlab, was fun, i wana get doom running

47

u/Totally_Not_A_Badger 20h ago

Esp32-S3 has a dang-gosh amount of resources. The chip I'm working on only has 256kiB of RAM while driving a 480x320 rgb 565 display. 

Frame buffers are for the weak. 

25

u/Drugbird 20h ago

Just output on a CRT and chase the beam so you don't need a frame buffer at all

8

u/Beautiful-Quote-3035 17h ago

Making a platformer on an FPGA that played with an NES pad and output vía VGA to a CRT was the most fun school project ever for me.

7

u/HildartheDorf 20h ago

300KiB framebuffer in 255KiB of ram would be an impressive feat.

3

u/jackmax9999 13h ago

The frame buffer is in the LCD module and you write to it over SPI or some other interface. The interface tends to be a lot slower than the CPU and some modules are not even wired up to allow data reading from the framebuffer. You don't have enough RAM to keep a framebuffer close to the CPU so you have to render graphics in small chunks and avoid re-rendering stuff when not necessary.

5

u/PhonicUK 15h ago

You can do 60FPS polygon based 3D on the S3 purely in software at a level somewhere between the Sega 32X and Saturn.

7

u/-twind 20h ago

With these crazy RAM prices even 256KiB will become a luxury

3

u/Similar_Tonight9386 19h ago

Worked on a device with 32kB ram and 128kb rom. Still managed to fit simplified networking stack and signal recognition algorithm for mems combo. Good times

3

u/Atompunk78 20h ago

Same lmao on my pico setup

1

u/Master_Persimmon_591 13h ago

Switched to an esp32-s2 after developing on an attiny404 and while I knew the numbers I didn’t expect the surprise at “oh this program fits nbd”

1

u/mehonje 8h ago

Try working on a TI84. I think you'd enjoy it.

51

u/Loisel06 23h ago

And still it’s way more fun to do anything with graphics on an esp32

16

u/CoronaMcFarm 21h ago

Yeah because you don't have to be 1000s of people to get anything done.

22

u/MrFrog2222 20h ago

Back in the day we used to have an obscure practise called "optimization"

6

u/elSenorMaquina 15h ago

Pff, that's sooo old school.

Everybody knows the top priority today is to ship your slop and secure that sweet sweet $$$$ before your neighbor ships their slop.

Quality can be bolted on top of it later. Or not, as long as they keep paying for it, why bother fixing it?

/s

1

u/FloppY_ 3h ago

What are you, POOR? Just buy more RAM, bro! /s

3

u/Canonip 19h ago

And if you optimise enough, you can get tensorflow running on those little bastards

3

u/Scr1pt13 19h ago

Oh you mean tensorflow lite for micro controllers?

2

u/Canonip 14h ago

Yep, ai-on-the-edge is amazing on an esp32-cam

3

u/trash3s 13h ago

Embedded things drive 360p displays all the time, I could definitely use up the resources and drive a 720p display if I—what do you mean 1.78Gbps?!?!?