okio
kotlinx.coroutines
Our great sponsors
okio | kotlinx.coroutines | |
---|---|---|
15 | 59 | |
8,659 | 12,701 | |
0.5% | 0.6% | |
8.9 | 8.9 | |
3 days ago | 7 days ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
okio
-
Is it a good idea to use Google Guava library for Android development?
I am involved in the development of Android application which is a rather "thick" mobile client for a Web service. It heavily communicates with the server but also has a lot of inner logic too. So, I decided to use some features of Google Guava library to simplify development process. Here is a list of features I'm very interested in: immutable collections, base utils, collection extensions, functional programming sugar and idioms (common.collect and common.base), primitives utilities (common.primitives), hashing utilities (common.hash), concurrent utils (futures and AsyncFunction). Things I don't want to use in Android: common.cache (see question below), common.eventbus (we have better Android specific libs for this, such as Otto), common.io (we can use okio for Android now).
-
Why tools have Kotlin native to work with bytes?
Yeah Kotlin's own standard library is a lot smaller than Java's currently so you'll need to use something third-party for this. Okio is a popular option https://square.github.io/okio/ it has a Buffer type which is pretty similar to Java's ByteBuffer
-
can I access and manipulate the iOS filesystem with kotlin multiplatform?
Use okio, it is Multiplatform now. I use this for my own library KStore
-
Windows Central: "Microsoft to merge Surface Pro X ARM and Surface Pro 9 Intel versions under one product line"
For networking, file IO, and streams in general, there's Korio and for Java; for just networking, there's LiteNetLib for C#; for what looks like data streams in general, there's Okio also for Java; and Tokio for multi-threaded IO in Rust.
-
Porting C++ code to Kotlin (ISO 15765-2)
Okio is nice for input/output streams, and sockets.
-
Kotlin/native: library for file io?
Sounds like you want https://square.github.io/okio/
- Are there any libraries well suited to the manipulation of bits, bytes and byte arrays used in packet communication?
-
Kotlin Team AMA #3: Ask Us Anything
On JVM, there is plenty of existing solution already on for multiplatform uses I'd suggest checking amazing Okio library by Square, that seems to cover most of basic use-cases.
- 60% of school apps are sending student data with third parties without consent
-
Kotlin Multiplatform - File I/O and de-compression questions
I think the main multiplatform library for I/O currently is okio, https://github.com/square/okio. As for compression, you should probably create an expect class for the compressor and use platform specific calls for actual compression. Take a look at https://kotlinlang.org/docs/mpp-connect-to-apis.html.
kotlinx.coroutines
-
Gradle: from Newbie to Strong fundamentals
Now, let's consider an example. For instance, let's create a Kotlin/JVM project with kotlinx.coroutines library as a dependency.
-
Add `statefulMap` and `statefulTransform` operator to Kotlin coroutines' Flow
Greetings community, I just submited a PR to Kotlin coroutines with two additional operators :
-
Should I choose Kotlin over Java for a new project (backend)?
The harder parts of Kotlin are going to be things like kotlinx.coroutines, but that's just a library, not a core part of the language. It's about as hard to learn as a comparable library in another language, like the Task Parallel Library in .NET.
- kotlinx.coroutines 1.7.0 released
- Is it ok to have global scopes when the coroutine I'm starting has *nothing* to do with showing UI, nor do I care about its result?
- Release 1.7.0-Beta · Kotlin/kotlinx.coroutines
- Does the documentation of async{} and launch{} apply to each other? (Aside from the difference that async {} returned a Deferred)
-
Reactive Backend Applications with Spring Boot, Kotlin and Coroutines (Part 2)
Kotlin has coroutines that are supported by the language and implemented by a library (the implementation remains platform-dependent): kotlinx.coroutines and a sandbox environment is available here to try it out.
- Kotlinx Coroutines for Kotlin 1.7.x
-
Get value from coroutine function
That said, since it seems like you're doing UI stuff (Android?), you're best off doing all of the UI code in coroutines, using Dispatchers.Main as a context (as provided by one of the platform-specific coroutine libraries), since this will guarantee that your UI code will be safely run in the UI thread.
What are some alternatives?
OkHttp - Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
kotlin-coroutines - Examples for coroutines design in Kotlin
kotlinx-io - Kotlin multiplatform I/O library
kotlin - The Kotlin Programming Language.
swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
compose-multiplatform - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
kotlinx-nodejs - Kotlin external declarations for using the Node.js API from Kotlin code targeting JavaScript
korim - Korim: Kotlin cORoutines IMaging, Bitmap and Vector graphics for Multiplatform Kotlin
kotlinx.serialization - Kotlin multiplatform / multi-format serialization
korio - Korio: Kotlin cORoutines I/O : Virtual File System + Async/Sync Streams + Async TCP Client/Server + WebSockets for Multiplatform Kotlin 1.3
ksp - Kotlin Symbol Processing API
spring-native - Spring Native is now superseded by Spring Boot 3 official native support