随笔分类 -  阅读笔记

阅读时间较为零散,记录笔记方便回顾和确认进度
摘要:什么是word? 一种是因为其含义无法预测而必须被写进词典的word,另一种是组成phrase和sentence的基本元素之外的其他基本元素。真实情况远比这种分类复杂 meaning units or building blocks 一个句子中有多少word? 区分token和type,token是 阅读全文
posted @ 2023-01-26 00:18 rxh1999 阅读(56) 评论(0) 推荐(0) 编辑
摘要:"Zero-copy" describes computer operations in which the CPU does not perform the task of copying data from one memory area to another or in which unnec 阅读全文
posted @ 2022-12-30 23:55 rxh1999 阅读(24) 评论(0) 推荐(0) 编辑
摘要:原文:https://github.com/joaoBordalo/feup-COMP/blob/master/The%20Definitive%20ANTLR%204%20Reference.pdf ANTLR V4介绍 新的解析技术:Adaptive LL() or ALL() 简化对expre 阅读全文
posted @ 2022-02-15 00:33 rxh1999 阅读(341) 评论(0) 推荐(0) 编辑
摘要:原文:http://www.evosuite.org/wp-content/papercite-data/pdf/fittest2014.pdf Results and Problems部分可以看一下 EvoSuite采用search-based approach来生成java测试用例,在SBST’ 阅读全文
posted @ 2022-02-09 00:34 rxh1999 阅读(30) 评论(0) 推荐(0) 编辑
摘要:原文: https://www.veracode.com/blog/research/automated-unit-test-generation-java 作者使用EvoSuite为wox生成了一套test case EvoSuite包含不同的生成策略: Search Based Test Gen 阅读全文
posted @ 2022-02-08 23:23 rxh1999 阅读(46) 评论(0) 推荐(0) 编辑
摘要:在编写单元测试的时候,外部依赖和复杂类的实例化是一大阻碍,Mocking就是为了解决这种阻碍。 mock也有test double, stub, fake等其他叫法。 一个Stub是一个被用来代替真实组件的对象,代替后,真实组件的功能不会被调用。(A Stub is an object that i 阅读全文
posted @ 2022-02-08 00:10 rxh1999 阅读(31) 评论(0) 推荐(0) 编辑
摘要:问题 代码转换需要越来越多的库 JDT 用于Eclipse相关开发 read, generate, analyse and transform source code API和meta model难以理解 APT(Annotation Processing Tool) SUN,之后由Oracle开发 阅读全文
posted @ 2022-01-26 00:58 rxh1999 阅读(79) 评论(0) 推荐(0) 编辑
摘要:https://docs.oracle.com/javase/tutorial/essential/environment/paths.html 以下内容基于java8, 一些地方与后面的版本不一致。 本文介绍PATH和CLASSPATH环境变量。 jdk安装目录中,bin文件夹下包含compile 阅读全文
posted @ 2022-01-25 00:25 rxh1999 阅读(35) 评论(0) 推荐(0) 编辑
摘要:常见缩写 CtClass: compile-time class Spoon: Structural elements 编程语言具有不同的meta model。 一个抽象语法树(AST)或者模型,是meta model的一个实例。每一个meta model——以及相应的AST——都或多或少的取决于需 阅读全文
posted @ 2022-01-24 21:47 rxh1999 阅读(38) 评论(0) 推荐(0) 编辑
摘要:为什么要手动生成代码? 当生成代码是最优选择的时候,那么整个系统必然在某些地方有问题。 可能是开发者的代码水平缺陷 可能是编程语言设计缺陷 可能是框架缺陷 开发者的代码水平缺陷 你的代码的维护者只拥有平均的技能水平。 语言缺陷 比如java的equals和hashCode方法,重写它们实在太标准了以 阅读全文
posted @ 2022-01-21 21:54 rxh1999 阅读(29) 评论(0) 推荐(0) 编辑
摘要:第二章. Java虚拟机的结构 这篇文章定义了一个抽象的java虚拟机。不包含任何的具体实现。 为了正确地实现一个java虚拟机,你只需要正确地解析class文件并且正确地执行文件定义的操作。不属于java虚拟机定义的实现细节将不必要地限制实现者的创造力。比如,运行时数据区的内存布局,使用的垃圾回收 阅读全文
posted @ 2022-01-18 00:40 rxh1999 阅读(41) 评论(0) 推荐(0) 编辑