basebank / gophers-code-reading-party

Gophers Code Reading Party records
18 stars 1 forks source link

20220512 Gophers Code Reading Party #29

Closed budougumi0617 closed 1 year ago

budougumi0617 commented 2 years ago

15:00~16:00 @ Zoom, BASE BANK, Inc.

参加者

お題

ネタ

ネタがなかったら proposal: review meeting minutes をみてみよう!
https://github.com/golang/go/issues/33502

budougumi0617 commented 2 years ago

https://github.com/basemachina/bridge

前回面白かったので続きのコードリーディングしたい。

budougumi0617 commented 2 years ago

Generics使ったら40%パフォーマンス向上したでっていう記事。 https://www.scylladb.com/2022/04/27/shaving-40-off-googles-b-tree-implementation-with-go-generics/ https://github.com/google/btree

budougumi0617 commented 2 years ago

学会誌に寄稿されたabout goみたいな記事。 The Go Programming Language and Environment https://cacm.acm.org/magazines/2022/5/260357-the-go-programming-language-and-environment/fulltext

budougumi0617 commented 2 years ago

fuzzingのチュートリアル(fizzbuzz.ioってドメインすごいな) https://blog.fuzzbuzz.io/writing-effective-go-fuzz-tests/ https://github.com/fuzzbuzz/go-fuzzing-tutorial

budougumi0617 commented 2 years ago

golang.tokyo #32 https://golangtokyo.connpass.com/event/246982/

でたいしネタもあるけれど執筆が絶望的できびしい。

budougumi0617 commented 2 years ago

Uberが作ったsync/atomic pkgのラッパー https://github.com/uber-go/atomic

budougumi0617 commented 2 years ago

1.18.2 https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU

budougumi0617 commented 2 years ago

今日はこちらです https://zoom.us/j/98968207509?pwd=Y1B3dDJMQS9UdEdpUGxEd1J2UEdmdz09

budougumi0617 commented 2 years ago

Go 1.16のsignal.NotifyContext() がめちゃくちゃ便利じゃんという。 https://future-architect.github.io/articles/20210212/ https://github.com/basemachina/bridge/blob/v1.0.5/cmd/bridge/main.go#L37

daisuzu commented 2 years ago

https://research.swtch.com/interfaces

budougumi0617 commented 2 years ago

interface{} つかうだけでヒープ消費するで。それをgenerics使うと解決できるで image

glassmonkey commented 2 years ago

知らなかった :chiken:

budougumi0617 commented 2 years ago

どうやって自動生成してるんや! https://github.com/lestrrat-go/jwx/commit/d4277107bbf7f32319f8124f54ad72a0f25612e3

さすがのperlだった https://github.com/lestrrat-go/jwx/blob/develop/v2/tools/autodoc.pl https://github.com/lestrrat-go/jwx/blob/87974239dedafcd1211b93efd8bacb538a0871f7/.github/workflows/autodoc.yml

budougumi0617 commented 2 years ago

へえ〜 https://github.com/go-logr/logr

budougumi0617 commented 2 years ago

かしこいなあ。 https://github.com/basemachina/bridge/blob/b54332db16b954cf9be05eac231352e989826c67/internal/ctxtime/ctxtime.go#L36

budougumi0617 commented 2 years ago

ServeHTTPのなかでProxy https://github.com/basemachina/bridge/blob/b54332db16b954cf9be05eac231352e989826c67/internal/proxy/proxy.go#L55

budougumi0617 commented 2 years ago

net/http.Request.Cloneってbodyどうやってこぴーしてるんだ。。。?という脇道でおしまい。