You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build a binary I often wonder if it really downloads/uses the version that is optimal.
For example:
New servers most probably are having the hardware capabilities of "linux/amd64/v3", or even of "linux/amd64/v4".
But how can I check these two things at runtime:
the microarchitecture levels of the Host/Hardware
the microarchitecture levels that the software was build for
?
I have no problem getting linux/amd64 but it seems, I cant obtain the microarchitecture levels (eg. "v3" or "v4") the golang code was compiled to, at runtime.
Did anyobe achive this, or is this a missing feature?
Knowing this would allow devs to analize if their app is indeed running, compiled for the correct hardware features.
I personally would love "runtime.GOARCH_LEVEL" or something like this, which returns an empty string "" or eg. "v3" or "v4".
The text was updated successfully, but these errors were encountered:
Proposal Details
Description
When I build a binary I often wonder if it really downloads/uses the version that is optimal.
For example:
New servers most probably are having the hardware capabilities of "
linux/amd64/v3
", or even of "linux/amd64/v4
".But how can I check these two things at runtime:
microarchitecture levels
of the Host/Hardwaremicroarchitecture levels
that the software was build for?
I have no problem getting
linux/amd64
but it seems, I cant obtain themicroarchitecture levels
(eg."v3"
or"v4"
) the golang code was compiled to, at runtime.This is the code, I use to obtain
linux/amd64
:https://go.dev/play/p/aBFInM8N94d
Did anyobe achive this, or is this a missing feature?
Knowing this would allow devs to analize if their app is indeed running, compiled for the correct hardware features.
I personally would love "
runtime.GOARCH_LEVEL
" or something like this, which returns an empty string""
or eg."v3"
or"v4"
.The text was updated successfully, but these errors were encountered: