kiit
kotlinx.coroutines
kiit | kotlinx.coroutines | |
---|---|---|
9 | 59 | |
112 | 12,722 | |
0.0% | 0.3% | |
5.7 | 8.9 | |
4 months ago | 3 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.
kiit
-
what are you building with Kotlin?
I’ve been building a comprehensive Kotlin framework called https://www.slatekit.com/
-
What's your go-to web backend stack for 2021 ?
Tests : All unit-tests ( for now, will be cleaned up later )
-
Up to Date Resources for Learning Arrow / More Functional Kotlin
I don't use arrow or Category theory myself, but looking at the docs, they have valid reasons for deprecating Option ( from the docs and more so for creating type aliases for Either ). I'm doing this same approach with my implementation ( shameless plug ) of the **Result** type which is becoming somewhat universal for modeling successes and failures, and as an alternative to **Either**. You can easily type alias **Option = Result** and **Try = Result**. More details here. https://github.com/slatekit/slatekit/tree/main/src/lib/kotlin/slatekit-result
-
Using an Application Identity
This post discusses using an application identity ( a convention based unique name to identify any app ) to organize, identify an application, and properly link the identity to the logs, metrics, alerts, and other diagnostics of the application. This was designed for a Kotlin framework called Slate Kit; codebase at Git, and code for this component here at Identity.kt.
-
Anyone using any Actor Frameworks for Kotlin?
I’m building my own micro-actor library to support some of my own use cases. Specifically I need to have the ability to start, stop, pause, resume actors multiple times gracefully. My design is not fully ready but pretty close. https://github.com/slatekit/slatekit/tree/main/src/lib/kotlin/slatekit-actors
-
Ask HN: Scala vs. Kotlin?
Agree completely with everything you said and your observations regarding job market. I’ve been doing Scala for a few years and I also would not recommend it to anyone unless they have a deep desire to do pure FP(functional programming) on the JVM. The ecosystem/libraries are unnecessarily complex IMHO.
If you want FP-Lite, I recommend Kotlin, it’s very pragmatic, reasonably functional. I actually converted all my personal projects from Scala to Kotlin, including my framework https://github.com/slatekit/slatekit which took about a 4-6 weeks from the original code base.
-
Nice Kotlin Nullables and Where to Find Them. How to compose nullables, in an easy and clean way
I wish Kotlin designed their own Result type similarly to how Result is implemented in Rust or Swift, instead of defaulting the error type to Exception. I actually implemented my own version of Result for this specific reason (although I customized it to support a status field ). https://github.com/slatekit/slatekit/tree/main/src/lib/kotlin/slatekit-result
-
Create a Homebrew Installer
Well, thats finally it. I created a homebrew installer to allow for a command line tool to generate slatekit projects making it very easy for new users to get started quickly. It sounds like quite a lot at first, but there are only 3 concepts, the package( your script, app, tool), the tap (git repo for formulas), and the formula (installer). Hope this helps!
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?
valiktor - Valiktor is a type-safe, powerful and extensible fluent DSL to validate objects in Kotlin
kotlin-coroutines - Examples for coroutines design in Kotlin
Exposed - Kotlin SQL Framework
kotlin - The Kotlin Programming Language.
littlekt - A multiplatform 2D game framework written in Kotlin. Build your own game engine on top.
compose-multiplatform - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
javalin - A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin]
okio - A modern I/O library for Android, Java, and Kotlin Multiplatform.
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
korim - Korim: Kotlin cORoutines IMaging, Bitmap and Vector graphics for Multiplatform Kotlin
ktor_chatting_application - Server/Client Chatting application that allows to choose to chat in a group chat or privately to a specific connected user
korio - Korio: Kotlin cORoutines I/O : Virtual File System + Async/Sync Streams + Async TCP Client/Server + WebSockets for Multiplatform Kotlin 1.3