SchlaubiBus
SchlaubiBus
Explore posts from servers
CDCloudflare Developers
Created by SchlaubiBus on 2/24/2025 in #general-help
Cloudflare Dashboard extremely slow on DTAG
It's commonly known that Cloudflare has a peering dispute with DTAG, however they now use their germany PoPs for pro customers or higher, but their own dashboard not using the cf pro infra is unusual
5 replies
CDCloudflare Developers
Created by SchlaubiBus on 2/24/2025 in #general-help
Cloudflare Dashboard extremely slow on DTAG
This is especially frustrating since we are a Pro customer, meaning our own sites go through EU/Germany data centers and work just fine, but we can't use the dashboard without a VPN
5 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
No idea tbh
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
use some binary format like protobuf
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
if you're worried about traffic you shouldn't use json
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
not without a custom serializer no
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
whether you encode 0 or "0" won't make a difference
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
especially if you use numbers
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
well using a byte will make little difference then
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
do you use json?
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
@Serializable
sealed interface Packet {
val data: Data

interface Data
}

@Serializable
@SerialName("hello")
data class HelloPacket(override val data: Data) : Packet {
@Serializable
data class Data(val pingInterval: Int) : Packet.Data
}
@Serializable
sealed interface Packet {
val data: Data

interface Data
}

@Serializable
@SerialName("hello")
data class HelloPacket(override val data: Data) : Packet {
@Serializable
data class Data(val pingInterval: Int) : Packet.Data
}
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
you can make something like this
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
doesn't have to
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
yeah sadly kx.ser cannot do that, the best way is to not use a byte or use the JsonContentPolymorphicSerializer
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
You can also use a JsonContentPolymorphicSerializer (i think that was the name), or save everything into a map first
33 replies
KKord
Created by Tic on 1/25/2025 in #help
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
Yeah don't use a custom serializr, an auto generated serializer could handle that
33 replies