Damien Neil

Results 262 comments of Damien Neil

We should probably have `RemoveIn` as well: ```go // RemoveIn removes the named file or (empty) directory. // It applies the same constraints on files as [OpenFileIn]. // It otherwise...

> Maybe it would be better if the parent was an fs.FS? The `os` package file functions operate on the local filesystem. `fs.FS` is an abstraction over a filesystem; it...

> If the underlying platform truly has no equivalent to openat, though, then there's no other reasonable fallback. The question is whether this is a reasonable fallback or not. In...

Updated proposal, with comments on various changes arising from above discussion and working on implementation. The `OpenFileIn`, `CreateIn`, and `OpenIn` functions are unchanged from the original proposal: ```go package os...

> The client timeout that I have set in my HTTP client is 5 seconds whereas based on the log messages above, the time between the last part of the...

> How does time work when goroutines aren't idle? Time stands still, except when all goroutines in a group are idle. (Same as the playground behaves, I believe.) This would...

The fact that `synctest` goroutine groups always use a fake clock will hopefully act as discouragement to using them in non-test code. Defining goroutines blocked on I/O as not being...

One of the goals of this proposal is to minimize the amount of unnatural code required to make a system testable. Mock time implementations require replacing calls to idiomatic time...

I wanted to evaluate practical usage of the proposed API. I wrote a version of Run and Wait based on parsing the output of runtime.Stack. Wait calls runtime.Gosched in a...