[go-nuts] Re: Assembler, ABI0 frame & stack growth

2025-04-20 Thread Wojciech Kaczmarek
piątek, 18 kwietnia 2025 o 23:52:29 UTC+2 Keith Randall napisał(a): Ah, I think I understand what you're getting at. You'll want to read this: https://github.com/golang/go/blob/b44b360dd40a537e953225d70ca96361e2c57600/src/runtime/stack.go#L21 TL;DR the thing the header is checking against isn't

[go-nuts] Re: Assembler, ABI0 frame & stack growth

2025-04-17 Thread Wojciech Kaczmarek
piątek, 18 kwietnia 2025 o 00:10:02 UTC+2 Keith Randall napisał(a): On Thursday, April 17, 2025 at 11:50:18 AM UTC-7 Wojciech Kaczmarek wrote: Hi Gophers, I am experimenting with assembler, ABI0 and stuff. While I was learning the ABI0 frame structure from disassembled code, I noticed that

[go-nuts] Assembler, ABI0 frame & stack growth

2025-04-17 Thread Wojciech Kaczmarek
Hi Gophers, I am experimenting with assembler, ABI0 and stuff. While I was learning the ABI0 frame structure from disassembled code, I noticed that the stack check happens before subtracting from RSP (I'm on arm64, but the same applies to SP on amd64, I mean the hardware register ofc). Then,

[go-nuts] Re: Performance degradation when reading STDIN to multiple buffers?

2023-03-09 Thread Wojciech Kaczmarek
Hey! May I ask, what would be the practical usage of 500x 1MB buffers? What kind of problem are you solving? Best, -W niedziela, 5 marca 2023 o 22:13:57 UTC+1 Kursk napisał(a): > Oh, interesting enough this performance degradation shows only in some > Linux boxes (heavily optimised) from a LA

Re: [go-nuts] HTTP client - streaming POST body?

2023-03-08 Thread Wojciech Kaczmarek
023 o 23:07:15 UTC+1 Christian Stewart napisał(a): No... The previous example streams the file as the post request. The only difference in your example is that you're using stdin. It's not that complicated, files also implement io.reader. On Tue, Mar 7, 2023, 1:41 PM Wojciech Kaczmarek wro

Re: [go-nuts] HTTP client - streaming POST body?

2023-03-07 Thread Wojciech Kaczmarek
ode >= 400 { return fmt.Errorf("bad status: %s", resp.Status) } _, err = io.Copy(os.Stdout, resp.Body) return err } wtorek, 7 marca 2023 o 22:41:39 UTC+1 Wojciech Kaczmarek napisał(a): > Hello, > > I think this code example rather streams back the response the serv

Re: [go-nuts] HTTP client - streaming POST body?

2023-03-07 Thread Wojciech Kaczmarek
Hello, I think this code example rather streams back the response the server sent from its POST handler and it is not exactly what the OP requested ;) (not to mention that the typical result of a POST is an immediate redirect, possibly without body at all). I believe what Jim needs is construct

[go-nuts] Re: [security] Go 1.19.3 and Go 1.18.8 are released

2022-11-02 Thread Wojciech Kaczmarek
On Tuesday, November 1, 2022 at 1:28:49 PM UTC-4 Wojciech Kaczmarek wrote: > >> I think it's important to report that go1.18.8.windows-amd64.msi >> <https://go.dev/dl/go1.18.8.windows-amd64.msi> doesn't match the >> published sha256 checksum. >> >

[go-nuts] Re: [security] Go 1.19.3 and Go 1.18.8 are released

2022-11-01 Thread Wojciech Kaczmarek
I think it's important to report that go1.18.8.windows-amd64.msi doesn't match the published sha256 checksum. wtorek, 1 listopada 2022 o 18:01:35 UTC+1 anno...@golang.org napisał(a): > Hello gophers, > > We have just released Go versions 1.19.3