chris6f | 2 years ago | on: Durable Coroutines for Go
chris6f's comments
chris6f | 2 years ago | on: Durable Coroutines for Go
What if there were tools to inspect and debug the coroutine state? That's an area we're exploring now.
chris6f | 2 years ago | on: Durable Coroutines for Go
chris6f | 2 years ago | on: Durable Coroutines for Go
chris6f | 2 years ago | on: Durable Coroutines for Go
The durable coroutine library is one part of a larger system we're releasing soon. See https://stealthrocket.tech/blog/fairy-tales-of-workflow-orch... for more information :)
chris6f | 3 years ago | on: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
chris6f | 3 years ago | on: Quickly checking that a string belongs to a small set
We got better performance with a linear scan and SIMD matching than with a hash table or a perfect hashing scheme.
See https://github.com/segmentio/asm/pull/57 (AMD64) and https://github.com/segmentio/asm/pull/65 (ARM64). Here's how it's used in the JSON decoder: https://github.com/segmentio/encoding/pull/101
In the case of network connections, the user could instead serialize connection details and then recreate the connection when deserializing the coroutine state. Same thing for files, where instead of serializing unstable low-level details like the file descriptor, the user can instead serialize higher level information (path, open flags, etc) and recreate the open file when deserializing the coroutine state.