Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
1–10 of 19 posts
Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#2Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#3Looks neat, why not try to upstream it to the Go standard library if it's fully compatible?
Go's standard encoding/json isn't great (for many reasons...), but it's definitely in the Good Enough category, and as such IMO falls under "if it ain't broken don't fix it" umbrella.
Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#4Looks neat, why not try to upstream it to the Go standard library if it's fully compatible?
Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#5Looks neat, why not try to upstream it to the Go standard library if it's fully compatible?
Seconded, also an explanation of why it's faster on the landing page.
Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#6Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#7Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#8I've been using these packages with some success:
https://github.com/tidwall/sjson
https://github.com/tidwall/gjson
Not knocking this pkg, just thought I'd share xD
Re: Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package
#9One of the typical arguments in favor of small base languages is that frequently the best package will be written by a third party and become the "default", making the language bloated. For example, everyone uses Requests in Python instead of the built-in alternative. On the other hand, I think a big advantage of batteries-included languages that they define a standard implementation that other libraries can copy. Be…
I love Requests, but this statement overreaches. All of my Python these days is simple scripting, and in those simple cases the hassle of adding a dependency outweighs the utility that Requests provides over the standard library. And I'd say Requests is even a special case here in that it's widely known and acknowledged; while I wager you can find superior third-party replacements to the Python standard library if you look for them, the fact that you don't need to look for them at all (and audit them, ideally!) is what makes a batteries-included language so convenient even in the presence of a sub-par stdlib.