A so based hot update scheme for C/C + + services

For online services, there are often bug s in a certain logic of xxx service, which need to be repaired urgently. For stateless services, you can repair them and restart them directly. However, for stateful services, restart means loss of memory state and disconnection of long connections. For example, if the Warcraft server needs to be resta ...

Posted by djalecc on Thu, 04 Nov 2021 07:34:46 -0700

6 String exercises, can you do it?

preface String string is a data structure that appears very frequently in our development. I have prepared several small questions here. Whether you are a beginner or an expert, you can try whether you can easily solve the following questions. If you have better solutions, you are welcome to communicate in the comments! How to invert a string ...

Posted by alex57 on Thu, 04 Nov 2021 07:28:15 -0700

JNI references to Java objects

reference: JNI learning notes - local and global references          JNI exposes the class instances and array types of the Java layer as opaque references. The code of the native layer will access this opaque reference through the functions provided by JNI. There are different kinds of references in JN ...

Posted by Yaak on Thu, 04 Nov 2021 06:59:18 -0700

The performance of a murder case caused by an instruction optimization is crazy by 50%. Lang becomes stupid after using the - ffast math option

https://www.cnblogs.com/bbqzsl/p/15510377.html Recently, during optimization, some functions were bench tested on different compilation platforms . Found a lot of problems. Now let's share one of the questions. 1 typedef float MAFloat; 2 3 MAFloat sma(const MAFloat* seq, const int cnt, const int N, const int M) 4 { 5 const MAFloat C ...

Posted by LordPsyan on Thu, 04 Nov 2021 06:24:53 -0700

Redis or Zookeeper for distributed locks?

Why use distributed locks? Before discussing this issue, let's look at a business scenario.Why use distributed locks?System A is an e-commerce system. At present, it is deployed on A machine. There is an interface for users to place orders. However, users must check the inventory before placing orders to ensure that the inventory is sufficient. ...

Posted by ugriffin on Thu, 04 Nov 2021 06:19:51 -0700

[3] Tmall elf open experimental platform experiment - switching intention, parameter transfer

Tmall elf open experimental platform experiment - switching intention, parameter transfer Reference link: AliGenie - skill application platform 1, Create two intentions Then, in the first two experiments, we continue to create new two intentions to realize the speech skills associated with multiple intentions. Through learning, you will ...

Posted by wrongmove18 on Thu, 04 Nov 2021 06:00:22 -0700

LeetCode426 transforms binary search tree into sorted two-way linked list & sword finger Offer 36 binary search tree and two-way linked list

subject Problem solving A "binary tree middle order traversal problem", which is unfamiliar to binary tree middle order traversal, I suggest moving first Middle order traversal of LeetCode94 binary tree. Question 94 is to output node values in the form of an array in the order of traversal in the middle order. The differenc ...

Posted by waffle72 on Thu, 04 Nov 2021 05:52:52 -0700

Metaclasses in Python

Note: This is a draft of a book to be published. You can see it here. For more information, click [read original text] to view. 9.5.2 class is an instance of metaclassWhat is "metaclass"? According to Confucius' saying "review the old and know the new", review the old first and follow the operation of "review the old&qu ...

Posted by waskelton4 on Thu, 04 Nov 2021 05:50:56 -0700

CenterOS environment setup

In daily work, many students' intranet working environment is not allowed to connect to the Internet. When it is necessary to build an intranet development environment, they always need to download the required file package in the extranet environment and install it on the intranet. At this time, if the environment of the intranet and th ...

Posted by paulb on Thu, 04 Nov 2021 05:37:33 -0700

Dynamic DNS resolution of home broadband using Tencent cloud API Explorer Based on python

abstractFirstly, it introduces the application background: it is used to make the domain name correspond to the dynamic IP correctly. Then it introduces the API interfaces needed to complete this function, and simply implements the corresponding API interface call framework. Finally, in order to use more concise, the program logic is further op ...

Posted by pplexr on Thu, 04 Nov 2021 05:24:00 -0700