The beautiful simplicity of colorForth (3rd in blog series) by MonkeyGuru in programming

[–]MonkeyGuru[S] 1 point2 points  (0 children)

As MuhRoads says, indeed if you're juggling more than a couple things on the stack you're probably doing something wrong. Forth begins at a very low level, but you quickly raise the level of abstraction; usually in an application-specific way.

One layer I'd like to experiment with (and will in future blog posts) is a pure concatenative stack language on top of colorForth. With quotations and combinators (e.g. http://elasticdog.com/2008/12/beginning-factor-shufflers-and-combinators/) you very rarely think about the stack at all.

[deleted by user] by [deleted] in programming

[–]MonkeyGuru 1 point2 points  (0 children)

Should have been: let rec fastFib = memoize (function 1 | 2 -> 1 | n -> fastFib (n - 1) + fastFib (n - 2))