Python
Less than 1 minute
Python
みんなだいすきPython。
- marimo - a next-generation Python notebook Jupyter NotebookのUI、面白い
整数を32bitの16進数にする
ちょろっとした確認で良くやりたくなるが、負数はちょっと面倒がある。
how to convert negative integer value to hex in python - Stack Overflow
基本的には2**32-1でアンドを取ればいい。
hex(-3 & (2**32-1))
'{:#x}'.format(-3 & (2**32-1))
TrioとStructured Concurrency
SwiftConcurrencyのクリスラトナーのマニフェストのコメントにリンクされていたので見てみる。
- Nathaniel J. Smith - Trio: Async concurrency for mere mortals - PyCon 2018 - YouTube
- Notes on structured concurrency, or: Go statement considered harmful — njs blog
ゆとりなのでとりあえず動画から。
ようするに複数のコルーチンをグルーピングする仕組みとスコープを組み合わせるという話だな。 Kotlinなんかはデフォルトでそうなのでどこが新しいのか一瞬分からなかったが。
Python InvokeのWindowsでの実行
Windows参照