TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Understanding Serde

121 pointsby JoshMcguiganover 5 years ago

4 comments

bestouffover 5 years ago
Serde is one of Rust's killer feature which makes you appreciate the philosophy behind the language. With just a few annotations you have a robust and complete parser for whatever format (JSON, TOML, etc.) automatically built for serializing and deserializing your data structures. And it's fast, and optionnally zero-copy. I've never seen this in other languages.
评论 #21563254 未加载
评论 #21563367 未加载
评论 #21563581 未加载
评论 #21565597 未加载
评论 #21563204 未加载
评论 #21563058 未加载
kolektivover 5 years ago
Serde is very strong indeed (although not the easiest to understand, this would have been useful when I implemented a Serde library for [de]serialising with the AWS DynamoDB AttributeValue format).<p>That said, I&#x27;ve always had a slight problem with this approach to serialisation in general, which is that it makes it very hard to have multiple serialisation approaches for a single type (e.g. I want one casing rule for one target, and a different one for another). This seems effectively impossible with an approach based on annotations&#x2F;macros. Would love to know how others have dealt with that.
评论 #21563634 未加载
评论 #21564956 未加载
lmkgover 5 years ago
Pronunciation question: Does Serde have one syllable or two? Looking at the word out of context, it seems the e at the end ought to be silent. But it&#x27;s derived as an abbreviation from SERialize&#x2F;DEserialize. Does the author or community have a consensus on one of these being the &quot;correct&quot; form?
评论 #21565645 未加载
评论 #21565562 未加载
评论 #21582775 未加载
评论 #21565316 未加载
评论 #21565172 未加载
评论 #21565301 未加载
eggie5over 5 years ago
I recently saw this strange word Serde in some Hive table create commands...
评论 #21564784 未加载