HNHacker News
TopNewBestAskShowJobs

joeegan2202

26 karma · joined October 18, 2024

submissionscomments
joeegan2202··on TikTok goes dark in the US
Consider the proximity of Zuckerberg to the new admin, and the current admin, and remember that this is only market consolidation (data consolidation) around Reels and Shorts.
joeegan2202··on Show HN: Go Plan9 Memo
A couple points on Go assembly:

1. On amd64 those ints are actually 64bit. If you used int32 then they would be be word aligned in the parameter list. However, there is a gotcha with that. The return values will always start at a dword aligned offset on 64bit system.

2. NOSPLIT is defined in "textflag.h" which Go's compiler automatically provides. However, NOSPLIT is, from everything I've read, only respected on runtime.XX functions, so it's not doing anything there, and it's also not necessary. NOSPLIT tells the compiler not to insert code to check if the stack needs to split because it's going to overflow, which is technically unnecessary if the function doesn't need any stack space. It's basically only there on the function that checks for stack splits, to prevent that code from being injected into itself.