Skip to main content

Collektive

Aggregate Computing in Kotlin Multiplatform

fun Aggregate<Int>.neighborCounter(): Int =
neighboring(1).hood(0) { acc, _ ->
acc + 1
}

context(Aggregate<Int>, DistanceSensor)
fun gradient(source: Boolean): Double =
share(POSITIVE_INFINITY) {
val dist = distances()
when {
source -> 0.0
else -> (it + dist).min(100)
}
}

Practical Aggregate Language

TODO

Large-scale Network Simulation

TODO

Kotlin Multiplatform Enabled

TODO