while doing this I have noticed that a project cal...
# multiplatform
d
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
@elizarov
e
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
@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
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
I mean what API would it have other than arrays?
d
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
oh. I see. Then probably it's better to be called like
kotlinx.arraybuffers
simple smile
👍 1