go language designed and advantages

First, the design of the Go language to solve problems encountered when Google developed:

  • A large number of C ++ code, but also the introduction of Java and Python.
  • Thousands of engineers.
  • Tens of thousands of lines of code.
  • Distributed build system.
  • Millions of servers.

Two, Google developed the pain points:

  • Compile slow.
  • Runaway dependence.
  • Each engineer is only a part of the language used inside.
  • Program difficult to maintain (poor readability, the document is not clear, etc.).
  • The update takes longer and longer.
  • Cross-compilation difficult.

Three, Go language advantages:

1, the learning curve easier.

Go simple language syntax, including the class C syntax. An ordinary college students to spend a few weeks can be written to use, high-performance applications.

2, well-born, pure blood.

Go language from Google, Google Go language of great importance

3, free and efficient: the combination of ideas, no intrusive interface.

Go language supports all current programming paradigms, including procedural programming, object-oriented programming, functional programming.

4, a powerful standard library.

Although the Go language lib library small but perfectly formed, well-supported Internet applications, system programming and network programming.

5, easy to deploy: a binary file, Copy deployment.

6, stability.

Go have a powerful compiler checks, strict coding standards and complete software lifecycle tools, with strong stability.

7. Efficiency: fast compile times, high development efficiency and operating efficiency.

go and c ++ language with about the same efficiency, develop and compile efficiency is much higher than the java and c ++.

8, simple concurrency.

go with the language and java, c ++ almost concurrent performance, but the concurrent realization really much simpler.

Guess you like

Origin www.cnblogs.com/wudiffs/p/11576633.html