Diamond

Results 461 comments of Diamond

> We could inject security related middlewares as _middlewares_ required on function calls by codegen. I think this issue is effectively suggesting that: ```go r.Group(func(r chi.Router) { r.Use(handleBearerAuth) // !!!...

As a sidenote, I think we're better off changing the generated method signatures to return a `*Response` or `(*Response, error)` pair directly instead of having the user call the `Render`...

> The implementation might require a considerable investment of effort, though. Is there any particular reason why this might be the case? I would expect WASM to actually be equally...

Closing as a duplicate of #341.

Instead of having an `Err()` method, should `IterCities` just be something like this? ```go IterCities(ctx context.Context) (seq iter.Seq2[City, error], stop func()) ``` Usage would be: ```go func example(ctx context.Context, q...

Could you try running the program with this? ```sh GOTK4_DEBUG=trace-objects,toggle-refs go run -v . ``` This will cause gotk4 to give you a log file that you can `tail -f`...

It might also be worth it to run `runtime/pprof` on the heap to see if the memory bloat is coming from the Go heap or the C heap.

Also as a side note, it can be really hard for Go's GC to know when to actually run, because the bulk of the allocations are on the C heap....

> Edit: is it supposed to show when an object is freed? All I see is these two lines being repeated: > > ``` > 2024/02/02 23:05:35 0x1effb50 (GtkLabel): Get:...