DevilKing's blog

冷灯看剑,剑上几分功名?炉香无需计苍生,纵一穿烟逝,万丈云埋,孤阳还照古陵

0%

Gopher Sg

Erlang for Go developers

erlang vs golang:

相同点:

  • 在于concurrent部分的设计
  • 标准库的使用

不同点:

  • deploys on a virtual machine, hot reload
  • supports distributed communication

erlang runtime

provides behaviours to solve many design problems

很难传递状态,必须通过消息传递

goroutine <-> process (pids)

erlang process:

  • each process has a mailbox
  • a process is like a goroutine + channel
  • this composition creates an ‘actor’
  • message are serialized through the mailbox

distributed erlang

monitor and link for process? 关于进程间的协同操作,这个挺有用的。

关于supervison trees in go

repo1


Go with Versions

Vgo?

在获取依赖的时候,出现两种情况,too old/ too new

software engineering vs programming engineering

principles of versioning in Go:

  • Compatibility

如果具有相同的import path, 需要坐到后向兼容

  • repeatability
  • cooperation

关于依赖的相互适应部分,

version: major version, minor version, patch version

using latest version is a feature! but only for library builds


The Lost Art of Bondage

cudn?

parse c-header to go source code?

time spent manually annotating functions vs time spent generating code

cuda library

what is the use case of algo?


Distributed Tracing in Grab

OpenTracing API

basictracer-go