-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why bytedance/sonic? #3653
Comments
No; it's only used if you add the That said, a JIT in gin (even if disabled by default) seems rather unexpected to me. It's in a stable release so can't really be changed now, but IMHO a |
I don't trust bytedance. Did you see the size of this thing? And it generates machine code? I'm going to stop upgrading gin, and probably move away from it. |
Agree, use github.com/cloudwego/hertz as a better solution |
I believe that neither the question nor the replies are constructive, I think closing this up is a good idea. |
@otcirtan Bytedance also contributes to the linux kernel. Please move away from linux. DON'T use anything bytedance contributed to. |
Personal subjective emotions (more strictly speaking, discrimination) should never be brought into the discussion of technical solutions in the open source community. |
What's subjective about a huge increase of the attack surface for very modest gains and the influence of the CCCP? May I also note that the original questions have not been addressed, let alone answered satisfactorily?
It's only discrimination in the original, literal sense: "recognition and understanding of the difference between one thing and another: discrimination between right and wrong". |
oh great, here comes not only discrimination, but also f**king politics. I agree that we should close this issue.
question: Does this means that gin web severs are no longer ARM compatible?
no real value add proposal for this libraries integration and it was just ushered in
oh,
LOL |
@otcirtan So you can distrust any json library of choice and just support encoding/json (maybe you can trust Google). But if Gin uses any other json library we can say don't trust the other technologies it uses (I think CGO will bring attack surface).
In your words it is very subjective to attack companies that actively participate in open source contributions. As you said, maybe you should stop using Go, and stop using Linux (as @PureWhiteWu said), because there is too much code contributed by Bytedance. I agree that we should close this issue. |
It would be more helpful if you can provide another high-performance library. |
Our consumption of the oapi-codegen tool no longer bundles this dependency into the go.mod as a transitive dep. So this issue is no longer relevant regardless of the politics above. Thanks for closing @appleboy |
Description
What exactly did this library gain from including this library? #3184
From my quick look at it, it requires CGO?
goccy/go-json
is already really fast and a pure go implementation. It seems like there was no real value add proposal for this libraries integration and it was just ushered in.Note:
https://github.com/bytedance/sonic#compatibility
Does this means that gin web severs are no longer ARM compatible? Seems a bit odd for a web framework. Folks generating code with oapi-codegen automatically inherit this dependency regardless of using gin or echo. Seems like unwanted behavior to me.
The text was updated successfully, but these errors were encountered: