Go - encapsulation


  • Access control: upper case ecported to diiferent package
  • It means the unit of encapsulation is package
  • Difference
  • Ex. type A int, can’t be encapsulated, api client can change value directly
  • Ex. type A struct { v int }; this can prevent different package modify A value directly

沒有留言:

張貼留言

Lessons Learned While Benchmarking vLLM with GPU

Recently, I benchmarked vLLM on a GPU to better understand how much throughput can realistically be expected in an LLM serving setup. One ...