@kyanny's blog

My thoughts, my life. Views/opinions are my own.

Golang Weekly #318

Table of Contents

  1. Golang Weekly #318
    1. fgprof: A Sampling Profiler for Go
    2. GoPlus: A 'Go+' Language for Data Science
    3. Why You Should Be Using errgroup.WithContext() in Your Go Server Handlers
    4. How to Handle Signals to Gracefully Shutdown an HTTP Server

Golang Weekly #318

fgprof: A Sampling Profiler for Go

  • Go 向けのプロファイラーには pprof というのがあるが、これは CPU 時間しか計測しない。
  • fgprof は IO 待ち時間なども含めて計測してくれる。
  • 両方使えるようになっておいて、適切に使い分けることができるのが良さそう。

GoPlus: A 'Go+' Language for Data Science

  • どの辺がデータサイエンス向きなんだ?
  • 単にスクリプト言語っぽく書けるだけ?

Why You Should Be Using errgroup.WithContext() in Your Go Server Handlers

  • deadlock リスク低減のため、とのこと。

How to Handle Signals to Gracefully Shutdown an HTTP Server

  • ちゃんと読んでおこう。