Skip to content

[wild idea] Compiler plugin to support any dimension #210

@Jolanrensen

Description

@Jolanrensen

While Multik supports https://github.com/Kotlin/multik/blob/develop/multik-core/src/commonMain/kotlin/org/jetbrains/kotlinx/multik/ndarray/data/Dimensions.kt up to 4 type-safe dimensions, it might be cool to attempt to make a K2 compiler plugin that can support any number of dimensions based on what the user creates.
It's just a wild idea, of course, but I believe it to be possible. It would certainly show the strength of the Kotlin 2.0 compiler while enhancing matrix multiplications at the same time :)

In some cases it could even simplify the maintainability, as you'd no longer have to write each operating for 1, 2, 3, 4, and n dimensions, just once for n.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions