Garbage recovery mechanism based on php underlying principle

php garbage collection mechanism is a familiar but not very familiar content for PHPer. So how does php achieve the recovery of unnecessary memory? Internal storage structure of php variables First of all, we need to understand the basic knowledge to facilitate the understanding of the principles of garbage collection. As we all know, php is wr ...

Posted by aubeasty on Sun, 12 May 2019 03:32:09 -0700

Cmake Learning Notes

Write CMakeLists.txt   # Create a new build directory in the current directory, and then cd build; cmake.. # The advantage is that the content generated by cmake can be separated from the source file.   # Setting Compile Result Publishing Path set( CMAKE_INSTALL_PREFIX ./_install) # Configuring a header file allows some cmake set ...

Posted by jervo on Sat, 11 May 2019 12:55:16 -0700

Embedded Development Diary —— Write a program to make the LED lights on when vibration is detected

Today is mainly to combine the results of the previous few days, receive sensor data through COM6 port, and then send it to Arduino driver board to control the LED light bulb. Code: -*- coding: UTF-8 -*- import serial import time #Delay functions need to be used def get_acc(self): #Processing acc information ...

Posted by geekette on Sat, 11 May 2019 04:31:42 -0700

Hand-to-Hand Operation --- Offline Recognition (JNA Implementation) by calling Kodaxinfei's Offline Speech Recognition dll with java (2)

Address of last article Hand-to-Hand Operation --- Offline Recognition (JNA Implementation) by calling Kodaxinfei's Offline Speech Recognition dll with java (1) The last one dealt with the hardest part, the conversion of parameters, which is written here separately ** 3. Conversion of parameters (difficult points) ** Note: Thi ...

Posted by deniscyriac on Sat, 11 May 2019 01:33:10 -0700

Portability of Code Conversion Functions in C

Blog move, original address: Encoding issues in https://langzi989.github.io/2017/07/17/C/ Introduction to Coding Some Chinese is unavoidable in the code. At this time, we should consider the encoding format of Chinese, if we do not pay attention to the problems that may lead to garbled code or information distortion.The common ...

Posted by chris_2001 on Fri, 10 May 2019 15:00:30 -0700

Creation and Addition of 4-18 Mistake-prone Point List

Today, I learned how to create and add links. First, I summarized the mistakes I made. The second-level pointer is not well understood, which leads to no change in the value of the argument after passing it on. Symbol priority is not remembered skillfully, which leads to many grammatical problems after writing. First up code 1 #include ...

Posted by soulreaver on Thu, 18 Apr 2019 10:18:33 -0700

Notes on Starting Linux Kernel Analysis from start_kernel to init Process

Notes on Starting Linux Kernel Analysis from start_kernel to init Process The use of GDB Before entering the GDB debugging, first master the most commonly used commands of GDB, in order to facilitate the completion of tracking. B [reak] line number: add breakpoints s[tep]: Step-in n[ext]: One-step skip c[ontinue]: Continue execution r[un ...

Posted by Beauford on Wed, 17 Apr 2019 11:06:33 -0700

Start-up process analysis of transplanting uboot (2) _uboot from 0

After the configuration of the previous article, we can compile a uboot.bin by making, but this is not enough. First of all, the uboot at this time does not meet the format requirements of the bootloader for Samsung chips. At the same time, uboot.bin is not configured with our development board, and can not be used. The prerequisite for such pe ...

Posted by rab on Thu, 11 Apr 2019 00:54:31 -0700

Ruby 2.x Source Code Learning: Lexical Analysis

Preface Ruby did not use LEX to achieve lexical analysis, but chose its own handwritten lexical analyzer, combined with YACC (BISON) to achieve grammatical analysis, the relevant source code in parse.y (YACC grammar description) file. Resolution identifier parser_yylex in parse.y is the entry to the lexical analyzer, and parse_index is called a ...

Posted by raymie7 on Sat, 06 Apr 2019 20:51:30 -0700

android ijkplayer c layer analysis-prepare dness process and read thread

ijkplayer is more popular now, because of working relationship, contact him, now do a simple analysis record. I skip the java layer code and go to the c layer directly, because most of the work is done through jni calls to the c layer, the content of the java layer is not the main function. Let's look at the clues first. Look directly at the ij ...

Posted by BluePhoenixNC on Sat, 06 Apr 2019 19:48:30 -0700