Home  >  Article  >  Backend Development  >  What are the shortcomings of golang?

What are the shortcomings of golang?

青灯夜游
青灯夜游forward
2019-12-27 16:56:042377browse

What are the shortcomings of golang?

Golang (also known as go language) is a statically strongly typed, compiled, concurrent programming language with garbage collection capabilities developed by Google. It is a simple open source programming language that makes it easy to build simple, reliable, and efficient software.

Features

1. Very fast compilation and running speed

2. Simple and easy to use (concise syntax, rich standard library, comprehensive tools)

3. Native and advanced concurrency model

4. Support multiple programming styles (object-oriented programming and functional programming)

5. Object-oriented programming without inheritance Paradigm (avoiding complex issues related to inheritance)

6. Fully automatic garbage collection mechanism

Advantages

● Comparison with C: Although the execution speed is not as fast as C, but the development efficiency is much better than C.

● Comparison with Java: The execution efficiency is faster than Java, the concurrency model is more advanced than Java, and the code simplicity is also better than Java.

● Comparison with PHP: The performance is much better than PHP, and it is suitable for both web applications and underlying services.

Shortcomings

● The running speed is not as fast as C, but the gap is constantly narrowing

● The maturity of distributed computing is not as good as Erlang

● Does not support custom generic types

● The garbage collection mechanism needs to be improved.

Related recommendations: golang tutorial

The above is the detailed content of What are the shortcomings of golang?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete