kotlinx.coroutines
KorGE
Our great sponsors
kotlinx.coroutines | KorGE | |
---|---|---|
59 | 29 | |
12,680 | 2,276 | |
0.9% | 4.5% | |
8.9 | 9.6 | |
2 days ago | 1 day ago | |
Kotlin | Kotlin | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
kotlinx.coroutines
-
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
-
Why no one recommends the use of the standard library's Result class but a custom sealed class approach?
Sure! runCatching catches Throwable right? Well when you cancel a coroutine it throws a CancellationException and this gets used as a signal to stop execution. runCatching stops that signal so the coroutine keeps running. Lemme find you a link real quick https://github.com/Kotlin/kotlinx.coroutines/issues/1814
-
Is there thread switching when moving from Default dispatcher to IO dispatcher using withContext?
According to the author of kotlinx.coroutines lib, it will try to keep the same thread if possible but not always. After my question, he updated the document of Dispatchers.IO to be like this https://github.com/Kotlin/kotlinx.coroutines/pull/3236/files This dispatcher and its views share threads with the [Default][Dispatchers.Default] dispatcher, so using `withContext(Dispatchers.IO) { ... }` when already running on the [Default][Dispatchers.Default] dispatcher typically does not lead to an actual switching to another thread. In such scenarios, the underlying implementation attempts to keep the execution on the same thread on a best-effort basis.
I think it is a great question and you can ask it on github
This is the issue I posted in GitHub https://github.com/Kotlin/kotlinx.coroutines/issues/3234 Thank you for the suggestion
-
Am I on the right track?
DI: Dependency injection: Check out Dagger Hilt, Koin or Kodine. Architecture: Android tends to be MVVM but, MVP, MVI and some others exist. Async calls: For kotlin, coroutines. Rxjava can be used with kotlin or java. I'm not actually sure how java devs do asyn calls these days.
-
Build, Test and Deploy your Android Application📱 with GitHub Actions 🤖
Kotlin based, Coroutines + Flow for asynchronous.
-
Java Virtual Threads Preview
Interestingly, Kotlin Coroutines have been available and in production for a LONG time now.
https://github.com/Kotlin/kotlinx.coroutines
In fact, Kotlin Coroutines are an brilliant on the android platform. We are talking severely memory and CPU constrained architectures here.
That said, Kotlin Coroutines are popularly used in production on server side - https://vertx.io/docs/vertx-lang-kotlin-coroutines/kotlin/
So here's the thing - I would doubt anyone would switch to Java Virtual Threads anytime soon.
-
Need Help Testing Callback Style Code with Coroutines
Anyways, it seems like it's a common enough issue that it is getting the attention of the kotlin team. I have high hopes for this PR that looks like it might be close to merging, and has activity within the last couple of days.
KorGE
- KorGE early dev version published with WASM (WebAssembly) support! Along KorIO, KorIM, KorAU, KorTE, korinject, and KorGW
-
Show HN: Tiny – A 2D Game Engine in Kotlin Working with Lua
Lua is easy to learn, dynamically typed and doesn't need to be compiled: it's perfect to get instant reload and it's perfect for small projects.
If you want to create games using Kotlin, you can try my 3D Game Engine: minigdx (https://github.com/minigdx/minigdx).
Or other game engine:
- https://littlekt.com/ (LittleKt (Little Kotlin) is a multiplatform 2D game framework written in Kotlin)
- https://korge.org/ (Korge - Modern Multiplatform Game Engine for Kotlin.)
- https://libgdx.com/ (LibGDX, it's for Java but you can use Kotlin, if you don't want to target the web platform)
-
🧸 Tiny : my Kotlin Multiplatform 2D Game engine
- https://korge.org/ (Korge - Modern Multiplatform Game Engine for Kotlin.) - https://github.com/minigdx/minigdx (Minigdx - Minimalist Game Framework using Kotlin Multiplatform / I created it before creating Tiny) - https://libgdx.com/ (LibGDX, it's for Java but you can use Kotlin, if you don't want to target the web platform)
-
I am looking to try game development with LibKTX (and LibGDX). Do you know how I can get helpful documentation for the classes, methods, etc?
Have you seen KorGE?
- Curso Kotlin | #17. Proyecto: The Hero Legacy
-
Kotlin Projects
You could have a look at open-source game frameworks like KorGE or MiniGDX, they are written in multiplatform kotlin and not at all specific to android.
- Seasoned java developer here. Planning to learn Kotlin. What are some good open source Kotlin projects I can contribute to?
- C++, Java, or Kotlin for a game engine?
-
Asset Manager 1.0 Release: Download, index & search your game assets from itch.io and Humble Bundle
so kotlin is the preferred language for android development. It's fully interoperable with java and is usually touted as a better less boiler-platey java alternative. The language itself is very nice, with a lot of modern features and really nice syntax. It also has a really cool multiplatform system and a nice ecosystem for crossplatform libraries making it really nice for gamedev where you want to target all platforms. Some cool kotlin gamedev libs to check out if you're interested is https://korge.org/, https://littlekt.com/ and https://github.com/libktx/ktx (really nice kotlin bindings for working with libgdx which is a really mature crossplatform java game engine.
What are some alternatives?
FXGL - Java / JavaFX / Kotlin Game Library (Engine)
ktx - Kotlin extensions for the libGDX game framework
Zircon - Zircon is an extensible and user-friendly, multiplatform tile engine.
kotlin-coroutines - Examples for coroutines design in Kotlin
kotlin - The Kotlin Programming Language.
compose-multiplatform - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
thelema-engine - Thelema - 3D graphics engine, written in Kotlin. Based on sources of libGDX.
littlekt - A multiplatform 2D game framework written in Kotlin. Build your own game engine on top.
KEEP - Kotlin Evolution and Enhancement Process
AdventKT - A Kotlin-based DSL for text adventures, with a partial replica of the classic Colossal Cave as an example.
FriceEngine - :video_game: JVM game engine based on Swing/JavaFX.
okio - A modern I/O library for Android, Java, and Kotlin Multiplatform.