News for hackers. Stuff that matters.
Re:Jan: An open source alternative to ChatGPT that runs on t... by TheRealPomax on Thursday March 21, 2024 @04:52PM (#39784252)
Still hoping we'll eventually stop using Fibonacci to show off recursion, because that's one of those examples where the maths might be expressed as recursive relation, but the implementation should never be =)

Good AI would go "you don't want that, that's horribly inefficient. Here's an actually performant implementation based on the closed-form expression".

Re:Jan: An open source alternative to ChatGPT that runs on t... by zopa on Thursday March 21, 2024 @05:12PM (#39784467)
Nah, good AI would run in the compiler and optimize the recursion into something fast.
Re:Jan: An open source alternative to ChatGPT that runs on t... by Wowfunhappy on Friday March 22, 2024 @10:43AM (#39791232)
What is your preferred example for teaching a beginner to use recursion?