Skip to content

Tail Call Optimization in JVM with Kotlin #59

@RotBolt

Description

@RotBolt

Abstract
In recursive function, each call to to the function creates new stack frames in function call stack. This takes a memory.
Tail Call optimization is programming technique in which we do not create new stack frames in the function call stack for recursive functions, hence save memory.
Problem : JVM doesnt support Tail call optimization .
Solution : Kotlin can help you write Tail Call optimized code

About
Topics to be covered:
1)Function Call Stack
2)Recursive Function
3)Tail Call Optimization
4) Problem with JVM
5) Kotlin : Brief Intro to Kotlin Wonders
6) How Kotlin Solves the Problem (Deep Dive)
Pre-requisites

  • Required skills
    None
  • Required setups
    None

Expected duration

40-45 min

Level
Beginner

Resources
https://kotlinlang.org/docs/

Speaker Bio

Associate Android Developer. Kotlin and Flutter Developer. Currently Pursuing B.tech 3rd year

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions