Hacker News new | past | comments | ask | show | jobs | submit login

My goal is to make a full kotlin android/iOS/backend game with shared business logic. How fare are wew from that?



Quizlet has been doing shared business logic with Kotlin - Ankush Gupta has written and talked about it https://medium.com/tech-quizlet/shared-code-at-quizlet-kotli....

We've been experimenting with this model too, as "write once, run anywhere" is very tempting for business logic, but those platforms have traditionally fallen down when it comes to UI and other native functions (e.g. alarms, sensors, etc). So far, it's proving very do-able. Non-trivial in some areas such as multi-threading, but a lot more practical than replicating the same logic across Android, iOS, and web.


There was a talk about it at KotlinConf. https://kotlinconf.com/talks/6-dec/124273/

The individual talks' videos aren't up yet but you can probably find it here: https://youtu.be/nfb6lDnvtKQ?t=13852


Why not unity? (It's an obligatory question at this point)


Because it's not FLOSS. At least that's my reason.


Because I absolutely love Kotlin and I feel I'm much more productive with it. I have a hard time working with script languages and feel confident on my code nowadays.

Also, Kotlin let you use tons of java libraries.


C# is hardly a script language, also Kotlin Native is hardly a tool for gaming with its lack of real multithreading support


I both wrote games with Unity and Kotlin. Kotlin makes me much more productive and libgdx is well more suited for 2D games. Backend in unity?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: