COSCUP 2023

Go to Generics = Go to hell? What I experienced after Generics Introduced into Go
2023-07-30, 15:30–16:00 (Asia/Taipei), TR 213
Language: Traditional Chinese (Taiwan)

Go 1.18 brought Generics.
When we heard this official announcement initially, we thought we could finally write Go programs quickly and run them efficiently. But after one year, the characteristics of Generics suffer us in many ways. It doesn't become Swiss knife as we think.
So I will share some experiences of using Generics, point out what is going on in the design of Generics, show how to use Generics well, and when to apply Generics.


This talk will introduce these:
- The original purpose of Go Generics.
- We met what issues when using Generics in production usage.
- Reconsider the meaning of the existence of Interface/Reflection/Generics.

Slides: https://hackmd.io/@fieliapm/BkHvJjYq3#/


Difficulty

中階

Target Audience

使用 Go 的開發者

  • A programmer from game company in Taiwan.
  • Backend (and temporary frontend) engineer.
  • Usually develop something related to my work in Python, Ruby, ECMAScript, Golang, C#.
  • Built CDN-aware game asset update system.
  • Business large passenger vehicle driver.
  • Care about chaotic traffic in Taiwan.
  • Draw cute anime character in spare time.