/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

johnazariah.github.io
| | blog.scottlogic.com

In this post we will see how Thunks and Trampolines can help solve problems by converting deep stack-based recursion into heap-based iteration helping to prevent StackOverflowErrors
3.0 parsecs

Travel
| |
| | blog.moertel.com

[AI summary] A technical guide explains how to manually convert recursive Python functions into iterative ones using a simple method and the accumulator pattern to avoid stack overflow limits.
3.9 parsecs

Travel
| |
| | abhinavomprakash.com

Defining recursion in terms of itself is an old joke among programmers. Despite the fact that it frustrates a lot of new-comers, we don't change it. I like to define recursion as "Iteration for the cool kids". I don't mean this in a snobbish, let-us-exclude-the-for-loopers kinda way, but rather in a tone of appreciation. Recursion is an elegant way of doing things. Recursive alogrithms are concise, have less noise and have immutability baked in (always a plus).
2.6 parsecs

Travel
| |
| | dr-knz.net

This post follows up on OCaml for Haskellers from Edward Z. Yang (2010) and my own Haskell for OCaml programmers from earlier this year. Note The latest version of this document can be found online at https://dr-knz.net/rust-for-functional-programmers.html. Alternate formats: Source, PDF. Prologue Rust for C programmers ...
20.2 parsecs

Travel
|