Please leave recursion to math and keep it out of (in particular C) software: it kills and will kill again.
Kind regards from libexpat, see CVE-2022-25313 and CVE-2024-8176 for proof.
An actual compsci professor would know real CPUs don’t run arbitrary recursion, right? Nobody could possibly be that siloed.
Could someone expand a little on this statement, or point me toward an applicable resource? How do “real” (modern?) CPUs prevent unwanted recursion? As in, not the compiler or the OS, but the CPU itself? I’ve been searching for a while now but I haven’t found anything that clears this up for me.
I did it the other way around in uni, we got a task with no mention of it requiring recursion (even though I suppose it was somewhat well suited to it). I solved it with a double for loop and the teacher refused to accept my submission.
This was a coding class on Unix thinclients, I’ll let you guess how long ago.
Answer
3 years
edit: thx sleeplessone@lemmy.ml for making the spoiler work :)
The spoiler syntax is a bit different.
:::spoiler <label> <body> :::
For example:
Answer
3 years