Matt Nelson's avatar
Matt Nelson
_@matthewnelson.io
npub1j3fs...7lq8
Navy -> NASA -> Sphinx Chat -> Strike -> FLOSS PGP: 0x61471B8AB3890961 Kotlin Multiplatform and C are the way
Matt Nelson's avatar
05nelsonm 5 months ago
Trying to add support for WasmJs to kmp-tor, but there's a nasty bug in the Kotlin Gradle Plugin. Have to wait for Kotlin 2.2.0 ๐Ÿ˜“
Matt Nelson's avatar
05nelsonm 5 months ago
FED hasn't even turned on their monopoly money printers yet...
Matt Nelson's avatar
05nelsonm 6 months ago
Spent the day working on a complete overhaul of kmp-file's API. This new API will be highly focused file/directory permissions and atomic filesystem operations. Unfortunately, permissions have always taken a back seat when it comes to Kotlin IO libraries, even in Java. The API is cumbersome and you always have to check if you're on Windows (not POSIX) lest you forget and crash. Additionally, Java's nio API is not available for Android API 25 and below which makes it difficult to come up with a simple to use API. BUT! Android API 21 introduced the Os and OsConstants classes with access to all the native APIs. With some magic (reflection b/c kmp-file is JVM only), one can have the best of both worlds. I hope to make permissions a key part of the API, forcing the API consumer to always have to express SOMETHING (null for default dir/file permissions). API for all platforms will look something akin to: "/some/path/to/file.text".toFile().writeUtf8(text = "Hello World", mode = "644", mustCreate = true) "/some/path/to/dir".toFile().mkdirs2(mode = " 744").resolve("new.txt").writeBytes(data = "Hello World!".encodeToByteArray(), mode = null)
Matt Nelson's avatar
05nelsonm 6 months ago
How in the world do people use Windows??? This is atrocious ๐Ÿ˜‚
Matt Nelson's avatar
05nelsonm 7 months ago
Skip the $20 toxic Monsanto product that will kill you and your offspring: - Squirt Bottle - 50/50 water & white vinegar - Dish soap Wasps, ticks, ants, flies, anything...
โ†‘