-
Notifications
You must be signed in to change notification settings - Fork 218
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
skylark: don't access runtime.stringHash #16
Comments
|
Thanks. We could start using it in a tagged file, but we can't stop using the old hacky mechanism until two releases have passed. |
We can't fix this yet. The overheads of the Go 1.14's |
Also note that due to golang/go#40067, using EDIT: golang/go#44557 is now fixed and backported to 1.16 and 1.15, so the dependency can be added once patch adoption is reasonable. |
Russ Cox points out that CL google/skylark@f94b021 makes Skylark depend on the internals of one particular Go implementation. In its defense, stringHash is one of the most stable runtime functions, its disappearance would be immediately detected by build/test using a new Go release, its assembly implementation is not a trivial piece of code, and a pure-software workaround is readily available. That all said, it does cut off use of skylark from GopherJS, for example, and possibly also gccgo.
The task of this issue is to make this dependency cleaner, either by duplicating the AESENC assembly from the Go runtime, or by build-tagging the non-portable code so that the runtime internals are only used when known to be available.
See also golang/go#28322
The text was updated successfully, but these errors were encountered: