带有以下标签的文章 programming-language Search使用 Rust 写一个简单的线程池2024-10-17rustconcurrencythread-poolweb-serversoftware-engineeringprogramming-language线程池是一种多线程处理形式,它通过将任务分配给事先创建好的线程以进行重用,提高了并发性能。本文是一篇阅读笔记,原材 料为 Rust 语言圣经 - 进阶实战 1 实现一个 Web 服务器。Notes for Nand2Tetris: Virtual Machine I: Stack Arithmetic2023-07-19nand2tetrisprogramming-languagesoftware-engineeringvm-abstractionstack-machinenoteThis is a note for Nand2Tetris unit 7 (Part II, Unit 1).Notes for Nand2Tetris: Assembler2023-07-17nand2tetrispythonassemblerprogramming-languagesoftware-engineeringnoteThis is a note for Nand2Tetris Unit 6.Notes for Nand2Tetris: Machine Language2023-07-11nand2tetrisprogramming-languageassemblysoftware-engineeringalgorithmnoteThis is a note for Nand2Tetris unit 4.Python libraries mentioned in CS50P2023-07-07pythonprogramming-languagesoftware-engineeringtoolcs50pThis is a list of some Python libraries mentioned in CS50P 2022.Matching IPv4 addresses with RegExp2023-07-04pythonregexsoftware-engineeringprogramming-languageipv4While solving the NUM3RS problem of CS50P, I was asked to match IPv4 addresses with RegExp.My personal summary of Stanford CS106L2023-06-01cppmodern-cppstanfordprogramming-languagesoftware-engineeringThis is CS106L, an in-depth modern C++ language course from Stanford. I enrolled in it at the beginning of April and almost finished it today.Const Correctness in C++2023-06-01cppsoftware-engineeringconst-interfaceconst-correctnessprogramming-languageThis is a note for Lecture 8, CS106L, Spring 2023.Type Safety and std::optional in C++2023-05-31cppconst-correctnesstype-safetysoftware-engineeringprogramming-languageThis is a note for Lecture 14, CS106L, Spring 2023.Move Semantics in C++2023-05-30cppmove-semanticsr-value-referencespecial-member-functionsprogramming-languageThis is a note for Lecture 13, CS106L, Spring 2023.static_cast and const_cast in C++2023-05-30cppprogramming-languagesoftware-engineeringconst-caststatic-castThis is a note for Lecture 8, CS106L, Spring 2023.Permutations and Combinations in Python (itertools)2023-05-28pythonalgorithmdata-structureitertoolspermutations-combinationsprogramming-languageExtracted from itertools — Functions creating iterators for efficient looping — Python 3.11.3 documentationThe const and constexpr in C++ (REMAKE)2023-03-24cppprogramming-languageconst-usageconstexprI have written a post about const in C++ in Chinese before, but it was too verbose and unclear. :( So, I decided to rewrite it.Useful packages in Java2023-03-15javaprogramming-languagesoftware-engineeringjava-iojava-langA simple conclusion of some useful packages in java.C 语言文件操作2023-01-12cprogramming-languagefile-iostdio简单记录一下 C 语言的文件操作的相关内容。C 标准库中 qsort 和 C++ STL 中 sort 的用法2022-12-08ccppalgorithmprogramming-languagesorting虽然到现在还是不能完全理解 qsort 和 sort 这两个函数的底层原理,但至少,先学会如何使用吧。C++ const 用法汇总2022-11-17cppconstcprogramming-languageconst-qualifier最开始只是用 const 来定义常量,学到了指针传参的时候又知道了用 const 来防止一些值的修改,学到类的时候又看到非静态成员函数后边加个 const 来干嘛干嘛,然后么又听说什么顶层 const、底层 const... 真是越学越迷糊了,赶紧做一波整理。二维数组到底是啥啊...2022-11-16cppdata-structuremultidimensional-arrayprogramming-language一维数组还是比较容易理解的,但是二维数组,我始终没弄清楚这玩意儿是按照什么规则从二维的样子转成一维然后存起来的,也因此常常犯下下标写反了的错误。我觉得是时候详细地理一理这玩意儿到底是个啥了...C 语言中使用变量输出小数点位数2022-11-05cprogramming-languageprintf-formattingdynamic-array这事儿要从一周前讲起,有人在群里问了这么一道题,要求用 C 实现:值传递、指针传递、引用传递2022-11-05ccppprogramming-languageparameter-passingfunction-arguments接上文《一个有关指针传参的问题》,打算结合一些简单的例子系统地梳理一下 C/C++ 中的值传递、指针传递和 C++ 中特有的 引用传递。一个有关指针传参的问题2022-11-03ccpppointer-manipulationmemory-managementprogramming-language这是我学习指针过程中遇到的一个问题,问过大佬才似乎懂了点,在此记录。顺便记下一句大佬说的话:注意到一点就行,指针其实也就是个存了内存地址的变量,它本身同时也具有内存地址。C/C++ 中赋值语句的返回值问题2022-10-27ccppprogramming-languageassignment-operatorloop-control我曾经一直以为 C/C++ 中赋值语句的返回值不是 0 就是 1 —— 成功执行赋值操作返回 1,没有成功执行就返回 0。直到今天课上的一个例子,才让我知道,原来赋值语句的返回值就是赋的值的大小!C/C++ 格式化输入输出汇总2022-10-19ccppprogramming-languageio本文汇总一下 C 语言 scanf 和 printf 的格式控制方法以及 C++ 的 <iomanip> 库。C 语言中与(&&)和或(||)运算符的短路运算2022-10-11ccppprogramming-languageshort-circuit-evaluationlogical-operators此篇笔记来源于下边的这个题目。 补记一个用 C++ 实现的 2048 小游戏2022-10-06cppgamealgorithmdata-structureprogramming-language校科协的加入有条件,面试前一步是笔试。免去笔试的方法也不是没有,可以做免试题。看了各个组 的免试题,发现都好难好难,只有前端组的 2048 敢去尝试尝试。但我有没怎么学过 JS,便想着先用 C++ 实现一下逻辑,再把代码改过去。C++ 中 cin 与 cout 的转进制输入输出2022-09-29cppprogramming-languageoctaldecimal笔者的朋友有道输入八进制输出十进制的题目,他是使用数学方法实现的。笔者隐隐约约记得好像cin和cout有控制输入输出数字进制的方法,查找了一些资料,做一下笔记。LaTeX 公式基础2022-09-15latexmathnoteprogramming-language用 LaTeX 写数学公式的时候,总记不住一些写法,故在此记录学习笔记。