[go-nuts] Re: Profiling the `go` tool itself?

2024-10-24 Thread opennota
Tentatively, most of the slowdown was caused by the eCryptFS layer (encrypted $HOME). But it probably means Go does too many FS syscalls, since Rust was tenfold faster. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gr

Re: [go-nuts] Check Channel is active or not while Writing as writer Go routine

2024-10-24 Thread robert engels
In my experience, the OP’s issue points to a code structure problem and not having a deterministic lifecycle for the channels. You rarely need specific/additional state to track this. You can look at github.com/robaho/go-trader which uses multiple channels

[go-nuts] Check Channel is active or not while Writing as writer Go routine

2024-10-24 Thread 'Aniket Pandey' via golang-nuts
Has anyone have implemented the logic in order to check if the channel is active if the channel is active then only will write the data .if yes how to do so? As i am getting the Following error: *panic: **send on closed channel* As a writer go routine i want to only write data to active channe

Re: [go-nuts] How to Implement Server-Sent Events in Go

2024-10-24 Thread twp...@gmail.com
I've had good success with Go/Server-Sent Events/HTMX/templ for cross-platform tools. Quick overview: * Go runs a webserver listening on localhost and opens the user's browser. * Front end is HTMX with HTML fragments served using the templ HTML templati