# Kotlin K2 FIR Quickstart Guide

DevFeed: [Kotlin K2 FIR Quickstart Guide](<https://devfeed.tech/articles/kotlin-k2-fir-quickstart-guide-25126.md>)

Original publisher: [Read original article](<https://handstandsam.com/2024/05/30/kotlin-k2-fir-quickstart-guide/>)

Author: Sam Edwards

Published: 2024-05-31T01:18:21Z

Content type: tutorial

Language: en

Sources: [Handstand Sam](<https://devfeed.tech/sources/handstand-sam.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Tooling](<https://devfeed.tech/topics/tooling.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [2-0-0](<https://devfeed.tech/tags/2-0-0.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [guide](<https://devfeed.tech/tags/guide.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [tooling](<https://devfeed.tech/tags/tooling.md>), [updates](<https://devfeed.tech/tags/updates.md>)

## AI overview

A short guide to getting started with Kotlin K2's Frontend Intermediate Representation (FIR) for static analysis. It explains that Kotlin 2.0.0 makes K2 stable, describes FIR as a semantic model independent of compiler backends, and points readers to an embedded compiler dependency and implementation example.

## Source excerpt

I wrote this Kotlin K2 FIR guide because I was not able to find any guides or examples to get started with FIR for static analysis. K2 is now finally stable in Kotlin 2.0.0 and future versions, so FIR will be the recommended way of doing static analysis. Background Starting Kotlin 1.x you could only [...]