News for hackers. Stuff that matters.
Re:Go Is a Well-Designed Language by guappa on Friday January 31, 2025 @07:33AM (#42887029)
Your example doesn't make sense because that's not how the syscall works.
Re:Go Is a Well-Designed Language by yencabulator on Friday January 31, 2025 @09:57AM (#42888287)
Go's Write makes a promise to not do short writes except on errors, which means it has to be a loop over write(2).
Re:Go Is a Well-Designed Language by guappa on Tuesday February 04, 2025 @02:32AM (#42929263)
Interesting. Does it return both the amount of partially written data AND the error if it fails?
Re:Go Is a Well-Designed Language by yencabulator on Tuesday February 04, 2025 @10:07AM (#42933244)