Home>Article>Backend Development> What languages are go and c?
Go (also known as Golang) is a statically strongly typed, compiled, concurrent programming language with garbage collection function developed by Google. The Go language syntax is similar to C, but it is functionally memory safe. , GC (garbage collection), structural form and CSP-style concurrent computing. C language is a process-oriented, abstract general-purpose programming language that is widely used in low-level development; C language is a high-efficiency programming language that only generates a small amount of machine language and can run without any operating environment support.
The operating environment of this tutorial: Windows 7 system, GO version 1.18, Dell G3 computer.
What is go language
Go (also known as Golang) is a static language developed by Google's Robert Griesemer, Rob Pike and Ken Thompson A programming language that is strongly typed, compiled, concurrent, and has garbage collection capabilities.
Go language syntax is similar to C, but its functions include: memory safety, GC (garbage collection), structural form and CSP-style concurrent computing.
Go is a language launched by Google in 2009. It is designed as a system programming language for giant central servers equipped with web servers, storage clusters or similar purposes.
For the field of high-performance distributed systems, Go language undoubtedly has higher development efficiency than most other languages. It provides massive parallel support, which is perfect for game server development.
To date, the development of Go is completely open and has an active community.
Which big companies are using the Go language:
1. Google
This needs no introduction. As a company that develops the Go language, it does its job. Google has many excellent projects based on Go, such as: https://github.com/kubernetes/kubernetes. You can also view more Google's Go open source projects on Github at https://github.com/google/.
2. Facebook
Facebook is also used. For this reason, they have also established an open source organization facebookgo on Github. You can visit and view facebook through https://github.com/facebookgo Open source projects, such as the famous grace for smooth upgrades.
3. Tencent
As a large domestic company, Tencent still dares to try, especially in the area of Docker containerization. They have implemented tens of thousands of Docker units in 15 years. Specifically, You can refer to http://www.infoq.com/cn/articles/tencent-millions-scale-docker-application-practice
4, Baidu
The currently known use of Baidu is On the operation and maintenance side, it is a BFE project of Baidu Operations and Maintenance, which is responsible for the access of front-end traffic. Their person in charge shared something in 2016. You can take a look at this http://www.infoq.com/cn/presentations/application-of-golang-in-baidu-frontend
5, Ali
Alibaba’s specific projects are not clear, but I heard that its system department, CDN, etc. are recruiting people for Go.
6, Jingdong
Jingdong Cloud message push system, cloud storage, and Jingdong Mall are all developed using Go.
7. Xiaomi
Xiaomi’s support for Golang is nothing more than the open source operation and maintenance monitoring system, which is http://open-falcon.com/
In addition, Xiaomi Interactive Entertainment, Xiaomi Mall, Xiaomi Video, Xiaomi Ecological Chain and other teams are all using Golang.
8, 360
360 also uses Golang a lot. One is the open source log search system Poseidon, hosted on Github, https://github.com/Qihoo360/poseidon
There are many other companies that we will not list here one by one, from which we can also know the popularity of the Go language.
What language is c
C language is a process-oriented, abstract general programming language, widely used in low-level development . C language can compile and process low-level memory in a simple way. C language is an efficient programming language that only generates a small amount of machine language and can run without any operating environment support. Although the C language provides many low-level processing functions, it still maintains cross-platform characteristics. C language programs written in a standard specification can be executed on many computer platforms including operating platforms such as embedded processors and supercomputers. Compile.
C language is a process-oriented computer programming language, which is different from object-oriented programming languages such as C, C#, and Java. The design goal of the C language is to provide a programming language that can be easily compiled, handle low-level memory, generate only a small amount of machine code, and can run without any runtime environment support. C language describes problems faster than assembly language, has less workload, good readability, and is easy to debug, modify and transplant, while the code quality is equivalent to assembly language. C language is generally only 10%-20% less efficient than the target program generated by assembly language code. Therefore, C language can write system software.
Language features:
1. C is an intermediate language
It combines the basic structures and statements of high-level languages with the practicality of low-level languages . C language can operate on bits, bytes and addresses just like assembly language, and these three are the most basic working units of the computer.
2. C is a structural language
The distinctive feature of structural languages is the separation of code and data, that is, each part of the program is independent of each other except for necessary information exchange. This structured approach can make the program hierarchy clear and easy to use, maintain and debug. C language is provided to users in the form of functions. These functions can be easily called and have a variety of loops and conditional statements to control the program flow, thus making the program completely structured.
3. C language is fully functional
has a variety of data types and introduces the concept of pointers, which can make the program more efficient. Moreover, the calculation function and logical judgment function are also relatively powerful, which can realize the game of decision-making purpose. c language
4. C language has a wide range of application
It is suitable for a variety of operating systems, such as Windows, DOS, UNIX, etc.; it is also suitable for a variety of machine models.
C language is obviously better than other interpreted high-level languages for writing situations that require hardware operations. Some large-scale application software is also written in C language.
C language has better reliability It is portable and has strong data processing capabilities, so it is suitable for writing system software, three-dimensional and two-dimensional graphics and animation. It is a high-level language for numerical computation.
【Related recommendations:Go video tutorial,Programming teaching】
The above is the detailed content of What languages are go and c?. For more information, please follow other related articles on the PHP Chinese website!