Python-Mastery: Advanced Python Programming Tutorial

Python-Mastery: Advanced Python Programming Tutorial

Clickthe blue text to follow us 1. Project Overview <span>Python-Mastery</span> is an educational project led by renowned Python instructor David Beazley (GitHub ID: dabeaz), aimed at advanced developers. This project focuses on the “internal protocols” and “control semantics” that are widely used but not deeply understood in the Python language, with the goal of helping … Read more

In-Depth Understanding of Python Coroutine Programming

In-Depth Understanding of Python Coroutine Programming

Basics of Coroutines A coroutine is a special software construct that allows a program to pause and resume execution without losing the current execution context. Unlike threads and processes, coroutines run within a single thread and achieve concurrency through a scheduling mechanism, reducing the overhead of context switching and improving program execution efficiency. Coroutines are … Read more

Overview of Coroutines in Linux

Overview of Coroutines in Linux

The premise of this article: This is a non-technical article that discusses what coroutines are and the current usage of coroutines, rather than insisting on their necessity. In Linux, coroutine switching is a type of lightweight context switching, which is more efficient than thread switching. Coroutines are a lighter execution unit than threads, typically managed … Read more

Understanding the Three Major Task Scheduling Mechanisms in Microcontrollers: Preemptive, Round-Robin, and Coroutines

Understanding the Three Major Task Scheduling Mechanisms in Microcontrollers: Preemptive, Round-Robin, and Coroutines

Here, I will explain these three concepts from a simple and microcontroller engineer’s perspective, ensuring you understand them at a glance. 🚀 1. Preemptive Scheduler Core: Tasks can be “forcefully interrupted”, and the CPU’s control can be taken away by higher priority tasks at any time. ✔ Features Uses interrupts + priority to control task … Read more

Refactoring: From OkHttp to Ktor

Kafka mentioned that the Android SDK has also been implemented. We attempted to refactor by migrating from OkHttp to Ktor. This is not just a library replacement, but a shift in mindset—from a “callback-based Java style” to a “structured concurrency Kotlin style.” Asynchronous and Concurrency Model of Kotlin/Ktor <span>RealTimeTranscribeClient</span>’s Ktor refactored version demonstrates the Kotlin … Read more

QuarkTS: An Open Source Operating System for Embedded Applications – The Cutting-Edge Technology in Embedded System Development

Developers often require a powerful and flexible operating system to support their embedded applications. QuarkTS is an open-source operating system designed to fill the gap between RTOS and bare metal, offering features such as priority cooperative scheduling, time control, inter-task communication, hierarchical state machines, and coroutines, along with C++ and Arduino support, making it an … Read more

Key Features of C++20

Modules Brief overview Constraints and Concepts Brief overview Coroutines Using stackless coroutines offers great performance, but they are quite complex to understand. Three-way Comparison Operator <=> <span>auto operator<=>(const C&)const=default;</span> will automatically generate comparison operators within class C, including<span>==, !=, <, <=, >, and >=</span> If you need to customize<span>operator<=></span>, you must also implement<span>operator==</span> The return … Read more

Exploring C++20 Coroutines: How to Make Asynchronous Code as Simple as Synchronous Code with Just One Line?

Have you ever found yourself trapped in the “callback hell” of asynchronous programming? Have you lost the logic of your code in layers of nested lambdas? C++20 coroutines were born to rescue you from this predicament. 1. What Are We Talking About When We Talk About Asynchronous Programming? Consider a simple requirement: asynchronously read data … Read more

Review of C++ Development Interview at Zhongzhi

1. Basic Information Company: ZhongzhiField: Backend Development with 0-5 Years ExperiencePosition: C++ Development EngineerInterview Date: 2021-10-15Interview Format: PhoneInterview Duration: 90 minutesIs there a recording?: YesRecording Notes: Review is not anonymized, please maintain confidentiality Recording and Transcription File: https://articles.zsxq.com/id_5frz7dzp4n1j.html Interview Background: Conducted at Guomei in Beijing 2. Interview Review 2.1 Interview Questions 1Please introduce yourself. (Implicit … Read more

Python AsyncIO: A Guide to Learning and Usage

Word count: 2380, reading time approximately 12 minutes Python AsyncIO: A Guide to Learning and Usage The recommended way to declare coroutines for writing asyncio applications is through the async/await syntax. Mastering asyncio programming is essential for improving Python execution efficiency! Asynchronous I/O is a concurrent programming model, not parallel programming. asyncio asyncio is a … Read more