Generic note 3-lower bound wildcard

The previous section discussed the role of the upper bound wildcard and its use Today we will discuss lower bound wildcards Lower bound wildcard When we need to dynamically pass in class objects and their superclass types, due to the erasure nature, the compiler cannot determine whether the passed in objects are superclasses of an Object, but ...

Posted by chrisranjana on Mon, 07 Mar 2022 18:03:47 +0100

boost::string_ Use of ref compile time strings

std::string itself realizes the management of character array and provides common functions of string class, For example, lookuptoggle casestructure wait But std::string is a runtime calculation after all. As we all know, after std C++11, it supports calculating some constant values during compiler compilation, which can reduce runtime work ...

Posted by p0pb0b on Fri, 04 Mar 2022 23:13:40 +0100

Redis installation instructions (transferred and deleted)

Most enterprises deploy projects based on Linux servers, and Redis official does not provide the installation package of Windows version. Therefore, in the course, we will install Redis.com based on Linux system The Linux version selected here is CentOS 7 Redis's official website address: https://redis.io/ 1. Install Redis on a single ma ...

Posted by stricks1984 on Thu, 03 Mar 2022 07:21:15 +0100

Compilation Principle Experiment 3 bottom-up syntax analysis

1, Experimental purpose (1) According to the grammar specification of PL/0 language, it is required to write the syntax analysis program of PL/0 language. (2) By designing, compiling and debugging a typical bottom-up grammar analysis program, we can realize the grammar check and structure analysis of the word sequence provided by the grammar a ...

Posted by lynxus on Tue, 01 Feb 2022 01:01:33 +0100

bgo: make it easier to build go programs

bgoIn a word: bgo manages exe regardless of libprefaceBefore the preface: The preface is very long and can be skipped directly.bgo It is a build assistant tool. It is not much different from the known tools for building go applications. It can support cross compiling and building go application executable files in your working environment. &lt ...

Posted by SGTWhitelaw on Mon, 31 Jan 2022 10:42:18 +0100

The trickery Dharma is taught to you. Don't say I told you!

Hello, I'm Baiyun. Sort out some spoof code for everyone and use it carefully! Be careful not to have friends. 1. Computer crashes Open countless calculators until they crash set wsh=createobject("wscript.shell") do wsh.run "calc' loop Unlimited bombing Quarrel artifact, which directly makes the opponent speechless [create text format, ...

Posted by kylebuttress on Fri, 28 Jan 2022 18:38:39 +0100

Java vs Golang: basic syntax

Coding specification Code layout 1. Curly bracket wrap style In Java, each statement is marked with a semicolon " Separation, whether to wrap or not does not affect the correctness of the code. In python, semicolon separation is eliminated, and the effect of parentheses on code logic is also eliminated (various parentheses in python ar ...

Posted by agent47 on Sun, 23 Jan 2022 04:27:10 +0100

Compiling C/C with VSCode under Windows++

0. Preface VSCode (Visual Studio Code) is a lightweight and powerful editor. Users can install a variety of plug-ins to make it easier and more personalized. Although VSCode is an editor, it only needs simple configuration to enable VSCode to realize the function of compiler and program breakpoint debugging. 1. Download MinGW-w64 1.1 off ...

Posted by kat_jumper_33 on Sat, 22 Jan 2022 10:01:54 +0100

Go compilation principle series 3 (lexical analysis)

preface In the last article, the core technology of lexical analysis, finite automata (DFA), and the use and working principle of two common lexical analyzers were introduced. On this basis, it will be much easier to see the lexical analysis source code of Go This paper mainly includes the following contents: Go compiled entry file and what ...

Posted by andycole on Wed, 05 Jan 2022 21:24:16 +0100

(TVM development code learning) familiar with the code of Relay operator

This article is the last article (TVM development code learning) add a new operator to the Relay system - Zhihu (zhihu.com) It is mainly to be familiar with the Relay operator code from six parts and deconstruct the Relay operator in TVM from the perspective of adding an operator. Reviewing the previous section, the following points are requir ...

Posted by tawevolution on Tue, 04 Jan 2022 16:37:12 +0100