https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Deactivated User

09/19/2017, 11:54 PM
while doing this I have noticed that a project called kotlinx.typedarrays or so using Js Typed Arrays+ArrayBuffer in JS, NIO Buffers in Java and pointers in Konan would be nice. Since I’m going to implement it (JS and JVM), if you like the idea I can extract it to a separate project/repo and then move/donate to Kotlin org so it can evolve there
o

orangy

09/20/2017, 9:38 AM
@elizarov
e

elizarov

09/20/2017, 9:48 AM
What is kotlinx.typedarrays? I cannot find it. i know that recent versions of Kotlin/JS map typed Kotlin array (like IntArray) to the typed arrays in JS, though
i

ilya.gorbunov

09/20/2017, 3:03 PM
@elizarov It's not an existing project, it's a project that would be nice
@Deactivated User What would that project have other than typed arrays themselves? Note that JS already supports typed arrays with an option (which would be enabled by default starting from Kotlin 1.1.50)/
d

Deactivated User

09/20/2017, 3:07 PM
It would provide typedarrays as a common project, so you can use that API in common places. In JVM would use nio Buffers and in Konan pointers or arrays
i

ilya.gorbunov

09/20/2017, 3:07 PM
I mean what API would it have other than arrays?
d

Deactivated User

09/20/2017, 3:07 PM
But the concept of having a ArrayBuffer/Buffer and then have several views to it is nice to have
Mmm. Not sure, probably not
Maybe apis for copying/filling?
i

ilya.gorbunov

09/20/2017, 3:08 PM
oh. I see. Then probably it's better to be called like
kotlinx.arraybuffers
simple smile
👍 1
2 Views