/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

azdavis.net
| | 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.3 parsecs

Travel
| |
| | hurryabit.github.io

I demonstrate how to (ab)use generators to transform any recursive function into an iterative one with nearly zero code changes.
3.5 parsecs

Travel
| |
| | recursion.wtf

This is a post about writing elegant and performant recursive algorithms in Rust. It makes heavy use of a pattern from Haskell called recursion schemes, but you don't need to know anything about that; it's just an implementation detail. Instead, as motivation, I have benchmarks showing a 14-34% improvement over the typical boxed pointer representation of recursive data structures in Rust.
4.7 parsecs

Travel
| |
| | javascript.crockford.com

[AI summary] The provided text outlines the implementation of a parser and interpreter for a custom programming language, using a Pratt parsing approach. It details the structure of tokens, the handling of expressions, statements, and control flow, as well as the implementation of functions, objects, and arrays. The text also discusses potential extensions and enhancements to the language.
16.6 parsecs

Travel
|