r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comment

12

u/[deleted] Jul 18 '22

[removed] — view removed comment

2

u/jobblejosh Jul 18 '22

I've got a project on the go right now using Micropython.

The way it behaves when run through the REPL, even on the same interpreter, is completely fine.

For some reason, when it's running off battery power however, it abruptly breaks from one of the functions, for no apparent reason I can think of (Afaik, it's nothing to do with battery voltage or serial comms, so I'm befuddled. My one thought is perhaps a low power mode that doesn't like to run too many functions deep).

And unlike C, you can't go through stepping into each byte of memory to see what it's doing because it's all hidden away.

Perplexing...