菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
74
0

Communicating sequential processes CSP 通信顺序进程 CSP writing to a file by name (process, Erlang) vs. writing to a file descriptor (channel, Go)

原创
05/13 14:22
阅读数 57918

 

the-way-to-go_ZH_CN/01.2.md at master · Unknwon/the-way-to-go_ZH_CN https://github.com/Unknwon/the-way-to-go_ZH_CN/blob/master/eBook/01.2.md

在声明和包的设计方面,Go 语言受到 Pascal、Modula 和 Oberon 系语言的影响;在并发原理的设计上,Go 语言从同样受到 Tony Hoare 的 CSP(通信序列进程 Communicating Squential Processes)理论影响的 Limbo 和 Newsqueak 的实践中借鉴了一些经验,并使用了和 Erlang 类似的机制。

 

Communicating sequential processes - Wikipedia https://en.wikipedia.org/wiki/Communicating_sequential_processes

 

communicating sequential processes

CSP 通信顺序进程 

C.A.R.Hoare 1979

 

CSP是一种用来描述并行系统交互模式的形式语言,最早由C.A.R.Hoare(1934-)在其1979年的一篇论文中提出。

CSP对并发编程语言的设计有深远影响,受其影响的编程语言包括Limbo和Go等。

 

 https://www.cs.cmu.edu/~crary/819-f09/Hoare78.pdf

 https://xie.infoq.cn/article/a0880b7d215f7b82bc3a0380a

https://github.com/lintide/GoConcurrencyPatterns

Distinction

Go is the latest on the Newsqueak-Alef-Limbo branch, distinguished by first-class channels.

Erlang is closer to the original CSP, where you communicate to a process by name rather than over a channel.

The models are equivalent but express things differently.

Rough analogy: writing to a file by name (process, Erlang) vs. writing to a file descriptor (channel, Go).

 

 

 

 

发表评论

0/200
74 点赞
0 评论
收藏
为你推荐 换一批