Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
YiRanCN committed Oct 23, 2023
1 parent aada3bd commit 8713a7d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Erlang

### 简介

Erlang 的设计目标非常明确,就是专门为大型的电信系统设计。
所以它的应用场景和设计需求就是电信领域里需要解决的问题。
主要是三个: **高并发****高容错****软实时**。电信系统负载非常大,需要同时服务大量用户的能力;同时不允许出错,电话频繁掉线会很快把客户赶到竞争对手那边;再者,即便某个通话再繁忙也不能影响其他通话的正常进行,到技术层面就是,不能因为某个任务很重,就把其他的任务的资源都占用了,while loop 占用 100% CPU是绝对不允许的
主要是三个: **高并发****高容错****软实时**。电信系统负载非常大,需要同时服务大量用户的能力;同时不允许出错,电话频繁掉线会很快把客户赶到竞争对手那边;再者,即便某个通话再繁忙也不能影响其他通话的正常进行,到技术层面就是,不能因为某个任务很重,就把其他的任务的资源都占用了,while loop 占用 100% CPU 是绝对不允许的

### 参考

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
### Go语言设计初衷
# Golang

为了解决当时Google开发遇到的问题:
### Go 语言设计初衷

为了解决当时 Google 开发遇到的问题:

1. 编译慢;
2. 大量的C++代码,同时又引入了Java和Python
2. 大量的 C++代码,同时又引入了 Java 和 Python
3. 更新的花费越来越长;
4. 分布式的编译系统;
5. 数百万的服务器;

### Go语言的特色
### Go 语言的特色

1. 高效的并发编程;
2. 内存回收(GC);
Expand All @@ -17,25 +19,23 @@
5. 语言交互性;
6. 没有异常处理(Error is value);

### Go语言的优势
### Go 语言的优势

1. 学习曲线容易;
2. 效率:快速的编译时间,开发效率和运行效率高;
3. 出身名门,血统纯正;
4. 并行和异步编程几乎没有痛点;
5. 自由高效:组合的思想、无侵入式的接口、强大的标准库、部署方便、稳定性;

### 我们为什么选择Go语言
### 我们为什么选择 Go 语言

1. 执行性能
2. 开发效率

### Go语言能做什么
### Go 语言能做什么

1. 服务器编程;
2. 分布式系统、数据库代理器、中间件等;
3. 网络编程;
4. 数据库操作;
5. 开发云平台;


Binary file added docs/study/program/images/zhiling-system-app.webp
Binary file not shown.
12 changes: 11 additions & 1 deletion docs/study/program/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
sidebar_position: 1
---

# 概述
### 概述

写代码用到的一套规范及其延伸工具。

### 相关概念

![指令-操作系统-应用](./images/zhiling-system-app.webp)

### 参考

- [到底学哪一门编程语言](https://windliang.wang/2019/11/06/%E5%88%B0%E5%BA%95%E5%AD%A6%E5%93%AA%E4%B8%80%E9%97%A8%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80/)
- [x86-x64-x86-64-amd64-arm 指令集架构之间的关系](https://windliang.wang/2020/03/11/x86-x64-x86-64-amd64-arm%E6%8C%87%E4%BB%A4%E9%9B%86%E6%9E%B6%E6%9E%84%E4%B9%8B%E9%97%B4%E7%9A%84%E5%85%B3%E7%B3%BB/)
- [linux 和 Android 的关系](https://windliang.wang/2019/05/21/linux%E5%92%8CAndroid%E7%9A%84%E5%85%B3%E7%B3%BB/)

0 comments on commit 8713a7d

Please sign in to comment.