Get the App
SLTechnology News&Howtos  ›  Mobile Phone  › 

Why is Google's Go so popular with developers?

Shulou Source: shulou.com Published: 2022-05-31 12:50:26 09月17日 Update

The clock speed of the computer processor is between 3 and 4 gigahertz. But developers are now trying to eliminate this hardware limitation through better programming.

With its magical combination of attributes, the programming language Go or Golang (domain name golang.org) from Google Stabilizer has become a great weapon for programmers to seek to overcome this hardware barrier. Go is a multi-paradigm language that borrows a large number of functions from different programming languages (object-oriented, function, and interpretation). "Golang is syntactically the best combination of concepts in Python, Java scripts, and languages. Comprehensive enhancements make Go expressive, concise, and make life easier for developers," said lead architect RahulEkbote. Unlike other programming languages, it is called Goroutines. The minimum sequence in which a thread executes program instructions. It runs in the kernel, which is a program that promotes the interaction between the hardware and software components of the computer operating system (OS) kernel. In general, hardware (processor speed) limitations prevent multiple threads from running at the same time, which is the key to application scalability and concurrency. Gorillas are the solution to this problem. The space needed to run a thread in the operating system kernel can actually hold 1000 Goroutines, ensuring concurrency (where several calculations are performed at the same time over overlapping periods). " Concurrency is critical because users make millions of requests from front to back. Goroutines does not wait for a thread to complete a function as Java threads do. They will only go to the next processing unit, "said Weike Desai, a senior assistant at Shiyang Group." Although it is a system programming language in spirit (Go is used to write the entire container management and choreography techniques Docker and Kubernetes), Go is also a good choice when writing micro services. Due to the characteristics of the channel, the data transmission between different Goroutine is carried out through a separate pipeline, which makes Go the most popular choice for building applications in micro-service architecture. "Golang channels and threads help connect two sub-applications, such as shopping carts and payments," Desai said. Uber has used Go to build a successful micro service with the maximum number of queries per second. " In our primary data center, which only serves non-Chinese companies, this service handles a peak load of 170 kilobits per second. At NYE (New Year's Eve) in 2015, 40 machines were running at 35% CPU utilization. Since its inception, the service has been updated 99.99% of the time, "the blog said. Desai says beginners can learn code directly in Go. He learned it as early as 2013 and soon found a job with a payment gateway. Go is efficient, easy to use, and has advanced network performance. It's a great language, even if you've learned one or two other languages, such as Python or Java, "says AnkushSingla, co-founder of the Edtech platform CodingNinjas.

Tags: Language thread service programming kernel hardware program programming language processing running different between function system Desai application development operating system personnel at the same time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Linux Redmi macOS Shulou Tech Info