▲ | tptacek 3 days ago | |||||||||||||||||||||||||||||||
What does "highly optimized" have to do with whether it's in the standard library? Highly-optimized cryptography is in the standard library. | ||||||||||||||||||||||||||||||||
▲ | dilyevsky 3 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
Previously Go team has been vocal about sacrificing performance to keep stdlib idiomatic and readable. Guess the crypto packages are the exception because they are used heavily by Google internally and json and some others (like say image/jpeg which had crap performance last time i checked) are not. Edit: See: https://go.dev/wiki/AssemblyPolicy | ||||||||||||||||||||||||||||||||
▲ | ronsor 3 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Not to mention that Go is never going to put C code in the standard library for anything portable. It's all Go or assembly now. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | karel-3d 3 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||
sonic uses a clang-generated ASM, built from C (transformed from normal clang-generated ASM to "weird" go ASM via python script)... I don't think this will be in standard library. |