shengli's blog

Tick the World

Recent posts

Jan 5, 2021
Adding routing capability to Redis Streams Redis Streams is a new data type in the Redis 5.0, append-log like data structure. Detailed information can be found in the offical web link and antirez’s blog post as well.…
Nov 3, 2020
Write first citizen function code in C Motivation In the last post, we talk about the function options coding style with C++ and Golang samples. Several days ago, one of my colleagues come to me talking about how to make it in the C with more intuitive way.…
Oct 3, 2020
Init object with functional options Motivation During the coding, we often need to make some configuration on “object” or “entity”. In Golang’s world, the following example:…
Aug 20, 2019
eTrice (A open source ROOM framework for simplify your work) Motivation The well known event-drive message framework such as libevent, libuv, was wide used on many open source project, such like node-js, but the drawback is…
Feb 18, 2019
Golang-race-condition-detection-result-will-not-happene-always [TOC] Dave Cheney post a quiz on his blog several years ago, code package main import ( "fmt" "time" ) type RPC struct { result int done chan struct{} } func (rpc *RPC) compute() { time.…
Dec 5, 2018
SMEM,SMD,SMSM 1/3 SMEM,SMD,SMSM (1/3) Recent half of year, I made development on Qualcomm platform FSM990x, which is ARM A7 based, same core with Mobile phone a few years ago, but equipped with more powerful DSP and FPGA capability for special purpose.…
Nov 1, 2018
Drgon ball release their code to explain the reason, cool Today, I was surffing the web and saw a very interesting story about the players suspected the Drogon Ball game maker cheat on the game here and here…
Aug 12, 2018
Write a HW based periodic timer framework Introduction Linux kernel provided good readable timer operations in the code. ref timer Some attributes of system timer in the kernel are:…
May 22, 2018
Use DPDK to accelerate LTE networks Along with the revolution of FlexRAN, the Tele was required to provide more flexible services to the customers. One of them is Tele want to provide more customsize services to the paticular users, such like Oil, Medical etc manufacture industries, who want intergrate more industried services within some fixed area.…
May 16, 2018
build lightweight network monitor tools Motivation Recently my project need a lightweight network monitor tools to peek at the network activity, some basic requirements was list as following:…