Go Documentation 輪読会 #16
前回: Go Documentation 輪読会 #15
Scrapboxへの参加リンク
こちら
開催概要
Slack
Gophers Slack の doc-reading-ja チャンネルを使います
Connpass: https://gospecreading.connpass.com/
Google Meet: ConnpassにURLを記載しています
資料
NobishiiさんJamboard:
https://jamboard.google.com/d/1t5ATTRc5X8_zk5jw_C55B3d5me5BWKE4myohR2AtvpM/viewer?f=0
リトマステスト早見表
https://docs.google.com/presentation/d/1LpECC1KE7k5ntIkT_1DqcW66PUZCNfS1P8Qgoh4Fi78/edit#slide=id.g134fe0489da_0_0
メモリモデルホワイトボード Miro
https://miro.com/app/board/uXjVPZRugAU=/?moveToWidget=3458764532870499588&cot=14 by Nobishii
メモリモデル個人メモ by Nobishii
https://docs.google.com/document/d/1Zbg9zclRpAzAcCqgEH9MW955feLyHCFDfnLUSeHxsWc/edit#heading=h.qlnpmtnlf544
タイムテーブル
19:00 ~ 参加準備 (Slackへの登録、Scrapboxへの登録、自己紹介を書く等)、雑談
19:10 ~ 軽めに自己紹介 (1人1分程度)
19:20 ~ 輪読開始
20:20 ~ 10分休憩
20:30 ~ 再開
21:30 終了
小ネタ
sync.OnceFuncが入るらしい
https://go.dev/issue/56102
次回以降?
https://research.swtch.com/npm-colors
https://go.dev/ref/mod#minimal-version-selection
自己紹介 (近況報告)
syumai
SNS
https://twitter.com/__syumai
https://github.com/syumai
https://mstdn.jp/@_syumai
Cloudflare Workersで、Goのworkerが動くようになった
月$5払うと使える
普通のWebサーバーが動いて面白い
https://twitter.com/__syumai/status/1593999204762161153?s=20&t=ETaSq7oXAAodlw1OdqhzYw
JavaScriptのライブラリをGoでWrapする技を身に着けました
https://github.com/syumai/go-dayjs
QuickJS ベースで動いてます
FrontendのロジックをBackendで再利用するのに使えそう
magicpro
Go Spec 輪読会から参加
Go歴は2年
業務ではバックエンドエンジニアをやっています
近況
読み終わった
Software Architecture: The Hard Parts
のびしー(nobishii) Twitter
https://zenn.dev/nobishii/articles/basic-interface-is-comparable specの記事書きました
最近読んでますリスト
nand2tetris parserを書き終わりました →休憩中
[試して理解]Linuxのしくみ ―実験と図解で学ぶOS、仮想マシン、コンテナの基礎知識【増補改訂版
https://gihyo.jp/book/2022/978-4-297-13148-7
むずかしいところを飛ばしてざっとよみました。わかるところだけでもおもしろかったです
Efficient Go今日読み始めました。Goに限らない話題のほうが多そうです
muroon
https://twitter.com/muroon01
https://mstdn.jp/web/@muroon
Go歴4年
広告アプリでGoを書いてます
これを今読んでます
https://go.dev/doc/gc-guide#Additional_notes_on_GOGC
uji
twitter: https://twitter.com/uji_rb
mastdon: https://mstdn.jp/web/@uji_
Go歴3.5年、最近仕事でがっつりGo書くようになりました。楽しい
Mastering Ethereumの英語版が無料で読めることに気づいて読み始めました
https://cypherpunks-core.github.io/ethereumbook/
今回の範囲: The Go Memory Model の Synchronization の Atomic Values から
code:go
package main
import (
"fmt"
"runtime"
)
func A() *int {
var i int
return &i
}
func B() {
p := A()
runtime.SetFinalizer(p, func(v any) {
fmt.Println(v)
})
}
func main() {
B()
runtime.GC()
}
code:go
package main
import (
"runtime"
)
var a string
func f(v any) {
print(v, a)
}
func main() {
a = "hello, world"
runtime.SetFinalizer(&a, f)
}
code:go
package main
var x int
func main() {
go func () {
x = 1
}
go func() {
print(x) // 1
print(x) // 0?
print(x) // 0?
}
}