Kotlin / Kotlin/dataframe

Kotlin DataFrame compiler plugin

Open
#704 2 comments 2 reactions 1 assignee Claimed by @zaleslaw View on GitHub
☂ umbrella issue Compiler plugin examples
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

Place for discussion and questions about Kotlin DataFrame compiler plugin

Idea behind it is to make such code compile, provide coding assistance in project files and later in Kotlin Notebooks - on top of already existing code generation in-between notebook cells

```
@DataSchema
data class WikiData(val name: String, val paradigms: List)

fun main() {
val df = dataFrameOf(
WikiData("Kotlin", listOf("object-oriented", "functional", "imperative")),
WikiData("Haskell", listOf("Purely functional")),
WikiData("C", listOf("imperative")),
)
val df1 = df.add("size") {
paradigms.size // `paradigms` is generated based on WikiData class structure
}
// `size` property is generated based on `add` argument
df1.size.print()
}

```

Demo project that you can clone and run
https://github.com/koperagen/df-plugin-demo

Issue that describes required compiler API and provides some information about use case
https://youtrack.jetbrains.com/issue/KT-65859

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.