Hacker News new | ask | show | jobs
by GauntletWizard 2054 days ago
This is fascinating... but I do believe there’s a reason that those fields are not re-arranged by the go compiler already, which is to preserve C ABI Compatibility. I doubt that’s worth it in most cases, though. Does it still preserve them in “pure” mode?
1 comments

If the compiler rearranged the struct you'd just be asking for weird ABI bugs as the compiler changed.