This video is awesome. Somewhere between a release announcement and a 5-minute tutorial - perfect for me (who has only used Jackson for my serialization until now).
Is there a system provided by KotlinX Serialization where one can easily add support for a custom binary serialization format? It is very common in Embedded/IoT development for projects to use a custom binary serialization format.
Yes, you can create your own custom format: github.com/Kotlin/kotlinx.serialization/blob/master/docs/formats.md I've also created one a while ago that serializes to/from Android's Bundles, you can check out the source code here: github.com/AhmedMourad0/bundlizer Android's Bundles are a like a Map or a list of key/value pairs .. which is not something the docs show how to implement a format for, AFAIK.
@@ahmedmourad1683 - The referenced documentation is very useful. For some strange reason I cannot middle click on the link. RUclips - Can you please provide "proper" links where a user can middle click on a link to open it in a new tab.
Kotlinx is awsome i have been using it in production however I would love for on feature to be added, if you have a map this cannot be json encoded because of multiple types.probably this could be added and to activate it you would need something like a compiler flag.
You can't create a direct replacement of Android's Parcelable .. since you need the class to implement Parcelable to serialize/deserialize it, you might as well just use @Parcelize. However, I have released a Bundle serializer/deserializer a while ago, which does the job: github.com/AhmedMourad0/bundlizer
These videos never get boring. Thank you Seb and your team, you are really doing a great job!
This video is awesome. Somewhere between a release announcement and a 5-minute tutorial - perfect for me (who has only used Jackson for my serialization until now).
The Github docs are a pleasure to work with. It's super easy to find what I'm looking for or to explore the library. Good job 👍
I was glad about 1.5 already; serialization 1.2 is absolutely icing on the cake; thank you, JetBrains
Both have actually been available for at least 9 days now (I updated the Xml format then)
Json schema generation would also be nice.
Love the ProtoBuff Schema generation , great improvements
This was such a useful video! Thank you!
I plan to replace Gson with kotlinx-serialization in my work project soon.
Does this update introduce breaking changes for custom format implementations?
It depends. For XML I had to add a function implementation to my implementation of SerializersModuleCollector. Most simpler formats will not use that.
Are there any performance benchmarks for the Kotlin Native version (eg the linuxX64 target) of the KotlinX Serialization library?
Is there a system provided by KotlinX Serialization where one can easily add support for a custom binary serialization format? It is very common in Embedded/IoT development for projects to use a custom binary serialization format.
Yes, you can create your own custom format:
github.com/Kotlin/kotlinx.serialization/blob/master/docs/formats.md
I've also created one a while ago that serializes to/from Android's Bundles, you can check out the source code here:
github.com/AhmedMourad0/bundlizer
Android's Bundles are a like a Map or a list of key/value pairs .. which is not something the docs show how to implement a format for, AFAIK.
@@ahmedmourad1683 - The referenced documentation is very useful. For some strange reason I cannot middle click on the link. RUclips - Can you please provide "proper" links where a user can middle click on a link to open it in a new tab.
If you type this in you get "unresolved reference: serialization". Mayhaps you forgot to include some information.
Hold on unsigned numeric data types were already available in Kotlin 1.4.
They were experimental afaik
Kotlinx is awsome i have been using it in production however I would love for on feature to be added, if you have a map this cannot be json encoded because of multiple types.probably this could be added and to activate it you would need something like a compiler flag.
what font name? please
Maybe Victor Mono
Replacement of Kotlin Parcelable?
Parcelable is for Android specifically that works with parcels right? Doesn't compete with this, it's a different thing I think.
I don't think that there is one, but it would be easy to write (mostly). I might have a go.
You can't create a direct replacement of Android's Parcelable .. since you need the class to implement Parcelable to serialize/deserialize it, you might as well just use @Parcelize.
However, I have released a Bundle serializer/deserializer a while ago, which does the job:
github.com/AhmedMourad0/bundlizer
Завтра проверю производительность -_-
haha prython