当前位置:网站首页>Go notes (1) go language introduction and characteristics
Go notes (1) go language introduction and characteristics
2022-07-04 20:48:00 【fiveym】
1. Go The origin of language
Go Language is also called Golang Language , It's Google Goggle The company to launch .
Traditional languages such as c++, People spend too much time learning how to use the language ,
Rather than how to better express the writer's thoughts , Compile at the same time
It takes too long , For writing - compile - The cycle is too long to run this chain .
Dynamic languages such as Python, Since there are no strongly typed constraints , Many problems need to be found at run time ,
This low-level error should be left to the compiler to find . therefore Go The birth of .
2. Go Characteristics of language
Go Language ensures the security and performance of statically compiled languages , It also achieves the speed and maintainability of dynamic language development ,
It's been described Go Language : Go = C + Python , explain Go Language has both C The speed of static language programs , It can reach Python The rapid development of dynamic language .Go The languages are as follows
characteristic :
1. Automatic garbage collection
C/C++ The biggest headache is the pointer problem , If you are not careful, the pointer will go wild or cross the boundary again . stay Go Don't worry about language anymore , Don't worry delete or person free, The system will automatically recycle .
2. Function can return multiple values
This is amazing , Most languages can only return one value ,Go Languages can return multiple values . This function makes developers no longer have to think hard
How to return value design , There is no need to define a structure for value transfer .
3. Concurrent programming
Go Language is naturally concurrent , Just the keywords “go” You can make the function execute concurrently , Make concurrent programming easier , This is also Go The biggest advantage of language
potential .
4. No dependence on hell , Even glibc
5. Compile once , Copy anywhere , Deployment is extremely convenient
边栏推荐
- 栈:如何实现有效括号的判断?
- Why is the maximum speed the speed of light
- 漫谈客户端存储技术之Cookie篇
- Idea case shortcut
- NLP、视觉、芯片...AI重点方向发展几何?青源会展望报告发布[附下载]
- ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
- hash 表的概念及应用
- Practice examples to understand JS strong cache negotiation cache
- 什么是区块哈希竞猜游戏系统开发?哈希竞猜游戏系统开发(案例成熟)
- Qt五子棋人机对战画棋子之QPainter的使用误区总结
猜你喜欢
Form组件常用校验规则-1(持续更新中~)
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
Flet教程之 08 AppBar工具栏基础入门(教程含源码)
Qt编写物联网管理平台38-多种数据库支持
托管式服务网络:云原生时代的应用体系架构进化
九齐NY8B062D MCU规格书/datasheet
AP8022开关电源小家电ACDC芯片离线式开关电源IC
Selected review | machine learning technology for Cataract Classification / classification
随机推荐
Selected review | machine learning technology for Cataract Classification / classification
《动手学深度学习》(三) -- 卷积神经网络 CNN
Six stones programming: about code, there are six triumphs
Fleet tutorial 08 introduction to AppBar toolbar Basics (tutorial includes source code)
Qt编写物联网管理平台38-多种数据库支持
LeetCode 7. 整数反转
伦敦银走势图分析的新方法
Function analysis and source code of hash guessing game system development
关于联邦学习和激励的相关概念(1)
Summary of the mistakes in the use of qpainter in QT gobang man-machine game
Oracle database, numbers Force 2 decimal places to display-Alibaba Cloud
Ziguang zhanrui completed the first 5g R17 IOT NTN satellite on the Internet of things in the world
Jekins initialization password not found or not found
acwing 3302. 表达式求值
QT writing the Internet of things management platform 38- multiple database support
Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
Automatic insertion of captions in word
长城证券开户安全吗 股票开户流程网上开户
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
Browser render page pass