Comments (14)
channel 通常 size 应为 1 或是无缓冲的。默认情况下,channel 是无缓冲的,其 size 为零。任何其他尺寸都必须经过严格的审查。我们需要考虑如何确定大小,考虑是什么阻止了 channel 在负载和阻塞写入时被填满,以及当这种情况发生时系统逻辑有哪些变化。(翻译解释:按照原文意思是需要界定通道边界,竞态条件,以及逻辑上下文梳理)
大概更新成这样。是否能看得明白?
from uber_go_guide_cn.
应该是之前翻译问题。稍等,我更新一下。谢谢反馈。
原文是这个:如果你有更好的翻译,请PR
Channels should usually have a size of one or be unbuffered. By default, channels are unbuffered and have a size of zero. Any other size must be subject to a high level of scrutiny. Consider how the size is determined, what prevents the channel from filling up under load and blocking writers, and what happens when this occurs.
from uber_go_guide_cn.
我正常的理解是,阻止channel的写入,而不是阻止channel被填满。也就是什么阻止了channe在高负载下和阻塞写时的写入
from uber_go_guide_cn.
也就是对这个filling up 的翻译,是为被填满,还是填充
from uber_go_guide_cn.
填满
from uber_go_guide_cn.
阻止填满有问题啊,已经满了
from uber_go_guide_cn.
你有更好的翻译吗?参考一下
from uber_go_guide_cn.
阻止了channe在高负载下和阻塞写时的写入
from uber_go_guide_cn.
channel 通常 size 应为 1 或是无缓冲的。默认情况下,channel 是无缓冲的,其 size 为零。任何其他尺寸都必须经过严格的审查。我们需要考虑如何确定大小,考虑是什么阻止了 channe 在高负载下和阻塞写时的写入,以及当这种情况发生时系统逻辑有哪些变化。(翻译解释:按照原文意思是需要界定通道边界,竞态条件,以及逻辑上下文梳理)
感谢反馈。希望您能提供一个PR上来。我更新到master。thx
from uber_go_guide_cn.
好的,晚上弄一下
from uber_go_guide_cn.
waiting for your PR.
from uber_go_guide_cn.
我来更新掉您的PR。thx
from uber_go_guide_cn.
好的,晚上弄一下
由于时间等待关系,我已经更新到master了,还望见谅。如果您有其它更好的翻译,还请提交PR,我们一起讨论共建。
本次issues 更新 commit:
a8dcc67
确认无误请关闭本次,issues。thx!
last:
Please feel free to fork and PR if you find any updates, issues or improvement.
Best wishes
from uber_go_guide_cn.
谢谢,已经修改
from uber_go_guide_cn.
Related Issues (18)
- `指定Map容量提示` 和 `尽量初始化时指定 Map 容量` 链接的内容重复 HOT 1
- Pointers to Interfaces 的意图 HOT 4
- 接口合理性验证的补充 HOT 1
- "接收器和接口的关系"一节的补充 HOT 1
- 【翻译建议】样式 (style) 是支配我们代码的惯例。 HOT 1
- 接收器 (receiver) 与接口 这一节有问题 HOT 5
- Interface合理性验证 HOT 1
- 请问 Uber 的 go vet 是不是自定义的
- 翻译校正 HOT 1
- 多了一个逗号 HOT 1
- 书写错误var f1 F := S1{} HOT 4
- 主函数退出方式(Exit) > 一次性退出 HOT 1
- 翻译错误和未删除的原文 HOT 1
- test HOT 1
- Channel Size is One or None
- Channel 的 size 要么是 1,要么是无缓冲的。这是否过于原教旨主义? HOT 3
- opts.Logger = l.Log 错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uber_go_guide_cn.