Re:Serde 1.0.0 for Rust released
by steveklabnik on Thursday April 20, 2017 @05:34PM
(#14161140)
Active work is going into integer generics, which will solve this issue. It has taken a while but isn't exactly simple either!
Glad to hear it!
I guess it's just jarring since the rest of Rust is so well crafted it felt really abrupt to run up against the 32 length fixed size limits. It's also somewhat annoying to have to coerce it into a slice via &array[..] instead of &array.
It's workable and when I finally get the library to a stable state I definitely plan to share what went well and where I saw pain points.
Re:Serde 1.0.0 for Rust released
by steveklabnik on Friday April 21, 2017 @01:58AM
(#14163391)
Yup, totally hear you. It's totally achievable, but not simple; Haskell has this issue too, for example. There's been a few iterations of the design already. The current approach is to cut scope as much as possible to ship the basics sooner.
Re:Serde 1.0.0 for Rust released
by RcouF1uZ4gsC on Friday April 21, 2017 @04:03AM
(#14163822)
It is this lack of non-type template parameters, template templates (ie higher minded types), and variadics that make Rust feel like a step backwards compared to C++. When, Rust gets these, it will remove a a major blocker for me.
I just found out recently that there's a couple work-arounds but none of them were obvious and for a framework that is zero-allocation based not having great support for arrays was a non-starter since that's 90% of the structures I was working with.
I love Rust but I feel like arrays in general are somewhat of an unfinished part of the language, you run into similar problems with Clone and Debug which can be frustrating.