Axel Wagner

Results 117 comments of Axel Wagner

@deanveloper I agree that zipping seems hard without goroutines.

As this was just brought to my attention again: @leighmcculloch > @Merovius Building on your example, could defers work something like this? Assuming the `?`'s are replaced with code for...

@rsc *Technically speaking* adding them to the marshalers would be a backwards incompatible change, as types (not just in the stdlib) currently *could* have those methods and would then change...

> Also, is encoding/json really going to do 10 extra dynamic interface satisfaction checks on every value it marshals and unmarshals? Will we notice the expense? I think `encoding/json` can...

@dsnet Fair enough (Next time I chide someone for not reading the entire discussion before commenting, feel free to remind me of this 🤦)

First, I feel this should live in the `runtime` package, or at least in `runtime/arena`, as it seems fairly runtime specific. Which is my main concern with this, that other...

Which reminds me: > It is not clear if a similar approach can work for 32-bit architectures, where the address space is much more limited. Does this mean this package...

@thepudds ah thank you, I missed that, alleviates my concerns around portability. Though I'd find it a bit confusing to provide the API without actual arenas. But, fair enough.

> In particular, ReadSeeker is not only there for finding the size. It is also there to serve range requests, and your clients will be very unhappy if you are...

While we're at it, I'm also inclined to think that `net/http`shouldn't do Content-Type sniffing by itself in any case. AIUI setting the `Content-Type` header is most useful in cases where...