Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin-based implementation for multiplatform scenarios #283

Closed
vlsi opened this issue Aug 2, 2022 · 6 comments
Closed

Kotlin-based implementation for multiplatform scenarios #283

vlsi opened this issue Aug 2, 2022 · 6 comments

Comments

@vlsi
Copy link

vlsi commented Aug 2, 2022

Hi, bucket4j looks great, however, it can't be used in Kotlin JS and Kotlin Native.

Have you considered implementing the core in Kotlin, so the library could be used with multiplatform projects as well?

See Kotlin/kotlinx.coroutines#460

@vladimir-bukhtoyarov
Copy link
Collaborator

Hello Vladimir,

I think that integration with both Kotlin Native and Kotlin JS will be a big step forward for our library, that makes expansion to another languages more easy due to C/C++ compatibility, however current backlog tell me that we can not start working towards this direction prior spring 2023, and it is unpredictable how many time it will take.

So if you already have some pull-request to bring rate-limiting functionality to Kotlin-Courtliness then no reasons to wait more fundamental implementation from us.

@vladimir-bukhtoyarov vladimir-bukhtoyarov changed the title Kotlin-based implementation for multiplatform scanarios Kotlin-based implementation for multiplatform scenarios Feb 27, 2024
@vladimir-bukhtoyarov
Copy link
Collaborator

Jetbrains has proven itself to be an unreliable supplier. Migration to the language that normally supported only by one proprietary IDE is not acceptable, because this support can left in one day.

@vlsi
Copy link
Author

vlsi commented Mar 22, 2024

Technically speaking, IntelliJ IDEA Community supports Kotlin, and it is published under Apache License 2.0. So I would disagree with classifying it as "proprietary".
Here's Google's story: https://www.youtube.com/watch?v=o14wGByBRAQ&ab_channel=Devoxx

Screenshot from Google's Journey from Java to Kotlin for Server Side Programming by James Ward

Sure your milage of "can left in one day" might differ from Google's.

@orchestr7
Copy link

orchestr7 commented Mar 22, 2024

Jetbrains has proven itself to be an unreliable supplier. Migration to the language that normally supported only by one proprietary IDE is not acceptable, because this support can left in one day.

But which IDE do you use now for Java?

@vladimir-bukhtoyarov
Copy link
Collaborator

Technically speaking, IntelliJ IDEA Community supports Kotlin, and it is published under Apache License 2.0. So I would disagree with classifying it as "proprietary".

@vlsi Thank you for clarifying. I'he just released that Kotlin support is available in Community Edition.

@travispeloton
Copy link

travispeloton commented Mar 22, 2024

bucket4j is a fairly complicated project, so although I haven't used Kotlin multiplatform for anything yet myself, it seems like a new GitHub project may be warranted. You would have to make some assumptions / trade-offs to get it started.

I've only used bucket4j with Kotlin and Redis via the Lettuce client (supports coroutines), for example, but an offhand search for a Kotlin multiplatform Redis client found results, but they are not actively maintained from what I saw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants