[Go] golang buffer channel to manage a group of goroutine work
passageway1. When a resource needs to be shared between goroutines, the channel sets up a pipeline between goroutines2. No buffer channel and buffered...
Using the blocking mechanism of chan to realize the start, blocking and return controller of the cooperation process
I. use scenarios The background is to read oplog from kafka for incremental processing, but when I want to send a command to block the incremental pro...
Componentized Architecture Design: gradle Componentized Configuration, Introduction and Use of APT+javapoet
Blog Home Page Reference resources: Gradle Core (5): Gradle Advanced Customization gradle componentized configuration The configuration of Android com...
Record a string compression operation
There is a scenario in the project: a batch of data needs to be sent to the APP side, and in the actual application scenario, there is a certain limit...
Interaction between web and APP -- WebView JavaScript Bridge
In the actual project, we often encounter the situation that the web page is embedded in the app (Hybrid), which requires the interaction between the ...
Natural language processing: preprocessing of PTB data set
Reference books TensorFlow: a practical Google deep learning framework (version 2) First, assign a number to each word according to the word frequency...
layui-v2.4.5 compatibility tuning
It has been written in the community of layui, but the community editor is really not good. Write it again here, just to consolidate it table.js Descr...
The gin of golang network framework
golang native http library can easily implement an http server, but for complex web services, such as routing analysis, request parameter analysis, ob...
How to use super easy refreshlayout
Super easy refresh layout is a powerful and easy-to-use pull-down refresh control. It is implemented by referring to the principle of swipe refresh l...
Go is fun, 5.20 make a diagram with go / let the words dance
Today, I'd like to introduce an interesting codeThe picture is generated into a pattern of text. Have you seen the GIF of dancing sister composed...
Understand the working principle of gorang's sync.Map according to the topological diagram
Topology diagram of sync.Map Some key points to understand the diagram var expunged = unsafe.Pointer(new(interface{})) type Map struct type readOnly s...
go process control
if if conditional statements in Go do not need parentheses. A variable can be declared in conditional statements. Any variable declared here can be us...
Ranking analysis of application access regions
Application access region ranking Topic content: given Nginx AccessLog (multiple files, estimated to be about 66G) for a period of time, find the five...
Gorang implementation of topological sorting - DFS algorithm version
Problem Description: there is a series of numbers 1 to 5, which are rearranged and printed according to the following requirements on order. The requi...
Display the current process memory usage value in Unity3D by calling CPP DLL under PC
After parsing MIDI, CSharp wants to write a memory occupation display. Generally, when writing CPP programs, it likes to check the memory and prevent ...
How to integrate google/pprof into existing services?
Last week, I received the R & D requirements from the leaders and wrote a monitoring service monitor server to analyze the status of the services ...
Netty implements synchronous "request-response" communication mechanism
demand Implementation of Netty-based "request-response" synchronous communication mechanism. Design thinking Netty provides a unified implem...
Getting Started with Webrtc Video Communications
Getting Started with Webrtc Video Communications WebRTC, named after Web Instant Messaging, is an open source W3C recommendation that was incorporate...
Exploration of Golang Source Code (3) Realization Principle of GC
Golang has introduced tricolor GC since 1.5. After several improvements, the current 1.9 version of GC pause time can be very short. The reduction of ...
Viewpager Sliding Animation Notes
google has opened an interface for viewpager, PageTransformer, to implement viewpager animation. Developers can implement this interface, define the ...
Gradle Series I -- Groovy, Gradle and custom Gradle plug-ins
1. overview The construction process of Android project is implemented by Gradle framework, which is implemented in Groovy language, and Gradle plug-i...