---
title: "Discussion on \"3 Recursion Hacks to Avoid Stack Overflows: Tail Calls, Continuations and Trampolines\" | Hashnode"
description: "Discussion on \"3 Recursion Hacks to Avoid Stack Overflows: Tail Calls, Continuations and Trampolines\". Through certain techniques we can optimize recursive function calls to avoid exceeding memory limits."
url: "https://hashnode.com/posts/3-recursion-hacks-to-avoid-stack-overflows-tail-calls-continuations-and-trampolines/6483428a5b4924bf9e9502f0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [3 Recursion Hacks to Avoid Stack Overflows: Tail Calls, Continuations and Trampolines](https://risesumit.hashnode.dev/3-recursion-hacks-to-avoid-stack-overflows-tail-calls-continuations-and-trampolines?utm_source=hashnode&utm_medium=feed)

Through certain techniques we can optimize recursive function calls to avoid exceeding memory limits.

Jun 9, 2023 · 6 min read · risesumit.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#recursion](https://hashnode.com/tag/recursion)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Sumit Kumar](https://hashnode.com/@SumitKCS)

@SumitKCS · Patna, Bihar, India

  
[View profile](https://hashnode.com/@SumitKCS)

Founder & CTO

👋 Hello, I'm Sumit, a seasoned Software Enterprise Architect and Founder/CTO of AiMentor247. With a robust background in computer science engineering and over five years of hands-on experience as a full-stack developer, I lead our company's technological vision and strategic IT initiatives, with a strong focus on AI and machine learning.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
