Practical Skills in Multithreading and Concurrency

Practical Skills in Multithreading and Concurrency

Click the above “Beginner Learning Vision“, select to add “Starred” or “Pinned“ Valuable Content Delivered First Hand Source: Zhihu user yikang Zhihu column https://zhuanlan.zhihu.com/p/134099301 https://zhuanlan.zhihu.com/p/136861784 Part 1. Basic Concepts 1.1 Process Simply understood as an execution of a program; for example, opening an application on the desktop starts a process. A process typically consists of … Read more

Understanding the Relationship Between Sockets and TCP/IP

Fact One: File Descriptor Limits Friends who write network server programs in Linux surely know that each TCP connection occupies a file descriptor. Once this file descriptor is exhausted, a new connection attempt will return the error “Socket/File: Can’t open so many files”. At this point, you need to understand the operating system’s limit on … Read more

Rust Through The Eyes Of A Go Developer

Rust Through The Eyes Of A Go Developer

Hi everyone, I’m Tiger. This time, I want to talk about Rust.What’s so great about Rust?As an old user of Go, how do I view Rust?Let’s have a good discussion on this topic today. One of the most troublesome issues for us programmers is memory management, such as dangling pointers, memory leaks, data races, etc., … Read more

Rust vs Go: Which Programming Language to Choose?

Rust vs Go: Which Programming Language to Choose?

Source: Internet Which is better, Rust or Go? Which language should you choose for your next project, and why? How do they compare in terms of performance, simplicity, safety, features, scalability, and concurrency? What are their similarities and fundamental differences? Let’s find the answers through a friendly and fair comparison of Rust and Go. 1. … Read more

Why Is Go’s Performance Inferior to Rust?

Hi everyone! Recently, I came across an interesting question online: Why is Go’s performance not as good as Rust’s? After all, Go has always been marketed for its simplicity and efficiency, while Rust has gained attention for its safety and performance. So, how come Rust outperforms Go in terms of performance? 1. Different Language Design … Read more

Avoid Python Advanced Pitfalls to Improve Your Skills

Avoid Python Advanced Pitfalls to Improve Your Skills

These experiences may help you avoid some debugging pitfalls. Trap 1: Memory Management Issues in Python Python is a programming language that can automatically manage memory, making programming more convenient. Most of the time, Python’s memory management works excellently. However, sometimes Python needs to better understand the actual situation of the program to manage memory … Read more

Go Language Enhances Embedded System Development Efficiency

Go Language Enhances Embedded System Development Efficiency

Embedded system development usually requires working in resource-constrained environments, such as devices with limited memory and computing power. In such scenarios, the choice of programming language is crucial. Go language (Golang) is becoming a powerful tool for embedded development due to its efficiency, simplicity, and support for concurrency. Today, I will introduce you to some … Read more

Building Smart Home Applications with Go

Building Smart Home Applications with Go

Grab your keyboard and let’s get hands-on! Our goal is to create an application that can control smart lights via an HTTP interface. The main features of this application include: Starting an HTTP server. Receiving requests to control the light’s state (on/off). Returning the current state of the light. In practical applications, such functionality can … Read more

Why Rust Is Not Suitable for Developing Web APIs

Why Rust Is Not Suitable for Developing Web APIs

Author | Tom MacWright Translator | Wu Liupo Editor | Cai Fangfang Rust is a fascinating programming language with excellent CLI tools like ripgrep and exa. Companies like Cloudflare are using and encouraging people to write Rust to run microservices. Software written in Rust can be safer, smaller, and cleaner than C++ or C. If … Read more

Speed Comparison Between Rust and C

Speed Comparison Between Rust and C

Author | Kornel Translator | Sambodhi Editor | Zhao Yuying This article was originally published on the author’s personal blog and is shared here with the authorization of the original author Kornel, translated by InfoQ Chinese site. Programs written in Rust should have run-time speed and memory usage comparable to those written in C. However, … Read more