Programming

Kotlin Foundation's Google Summer of Code projects improve Kotlin/Wasm recursion support

Two projects completed through the Kotlin Foundation’s Google Summer of Code 2026 program, including work on recursion support in the Kotlin/Wasm backend. Ayako Hayasaka added support for WebAssembly tail-call instructions, allowing the compiler to detect tail-position calls and emit return_call or return_call_ref. In her benchmarks, several recursive patterns ran 1.7–4.3 times faster at a recursion depth of 10,000; at one million, the programs crashed without tail calls and completed with them.

AI-written summary, checked against the cited sources. How summaries work

Image: JetBrains Kotlin

Primary source

Google Summer of Code 2026 With the Kotlin Foundation: Recap JetBrains Kotlin

What we know

Reported by one source

  • The Kotlin Foundation's Google Summer of Code 2026 program completed two projects, including one adding WebAssembly tail-call instruction support to Kotlin/Wasm. — JetBrains Blog
  • Ayako Hayasaka's benchmarks found 1.7–4.3 times faster performance for several recursive patterns at depth 10,000; at depth one million, the programs completed with tail calls but crashed without them. — JetBrains Blog

Coverage 2 publishers

  1. JetBrains KotlinFirst reportPrimary source

    Google Summer of Code 2026 With the Kotlin Foundation: Recap

    Google Summer of Code 2026 has wrapped up! This was the Kotlin Foundation’s fourth year participating in GSoC, bringing new contributors into the Kotlin open-source ecosystem through hands-on projects and mentorship. This year, two projects…

  2. JetBrains BlogPrimary source

    Google Summer of Code 2026 With the Kotlin Foundation: Recap

    Google Summer of Code 2026 has wrapped up! This was the Kotlin Foundation’s fourth year participating in GSoC, bringing new contributors into the Kotlin open-source ecosystem through hands-on projects and mentorship. This year, two projects…

Earliest report first. Articles stay on their publishers’ sites; each link opens the original.