Mark Fisher
01/09/2025, 7:16 PMio.ktor:ktor-server-config-yaml-jvm dependency to a project, and build the jar task, the default io.ktor.server.config.HoconConfigLoader is not being added to the list of ConfigLoaders in META-INF/services/io.ktor.server.config.ConfigLoader
This has the knock on effect that the "application.conf" file in the root of the jar is not able to be loaded, as there is no ConfigLoader class available to handle that file type.
See thread. I've reproduced this in the examples application.Robert Jaros
01/14/2025, 1:06 PMRobert Jaros
01/18/2025, 4:44 PMRobert Jaros
01/18/2025, 4:46 PMRobert Jaros
02/07/2025, 8:30 PMChrister Palm
02/17/2025, 5:24 PMfun Container.mainLoop() {
main().bind(store) { state ->
/* Render the view according to state */
}
}
I suppose the basic idea here is that the view is re-rendered whenever there is a state change(?)
The problem I'm having is that this happens asynchronously. The application goes through a number of state changes, but instead of re-rendering the page after each state change in realtime they queue up and after everything has settled, the page is re-rendered multiple times back-to-back, which is pointless.
The application really just needs to reflect the "final" state change.
Is this a bad pattern? Is there a better "best practice" approach to this?
Thanks!Robert Jaros
04/15/2025, 9:41 AMRobert Jaros
04/15/2025, 9:45 AMRobert Jaros
04/15/2025, 9:48 AMRobert Jaros
04/15/2025, 9:49 AMRobert Jaros
04/15/2025, 9:50 AMChrister Palm
04/17/2025, 9:31 AMRobert Jaros
04/17/2025, 3:47 PMRobert Jaros
04/17/2025, 3:48 PMRobert Jaros
04/20/2025, 5:43 AMPhil Richardson
04/22/2025, 2:58 PMUnit is just a singleton object, and it is handled like any other Kotlin object.
But Kilua rules out Unit as a return type, which has me wondering about objects in generalRobert Jaros
04/22/2025, 3:21 PMUnit. Is Unit serializable? (I'm not sure 🙂)Robert Jaros
04/22/2025, 4:03 PMUnit was not possible. I've just accepted this rule, because it was not a big problem for me. Years passed and I've made changes here and there, replacing old, manual deserialization code with features from the kotlinx.serialization lib. But I've never ever tried returning Unit ... until today 😉 And it works!Robert Jaros
04/22/2025, 4:13 PMPhil Richardson
04/22/2025, 4:16 PMThe Kotlin builtin Unit type is also serializable. Unit is a Kotlin singleton object, and is handled equally with other Kotlin objects.I see your comment about testing returning Unit. Good to hear, as my question was initially aimed at using some other marker object in place of Unit, given the docs says Unit cannot be a return type. Unlike the Nothing non-type, everything I knew about Unit said it is just an object, thus wondering if that made objects barred.
Christer Palm
05/05/2025, 8:33 AMRobert Jaros
05/27/2025, 8:15 AMRobert Jaros
05/28/2025, 12:15 PMRobert Jaros
07/14/2025, 4:45 PMpambrose
10/25/2025, 12:13 PMRobert Jaros
10/25/2025, 12:16 PMRobert Jaros
10/25/2025, 12:22 PMpambrose
10/25/2025, 12:22 PMRobert Jaros
10/28/2025, 5:27 AMRobert Jaros
10/29/2025, 4:56 PM