Posts
All the articles I've posted.
hidden and shadow in java
Posted on:July 10, 2023 at 03:02 PM## shadow 这个词是描述`同一个类`里面不同作用范围内的同名变量,越里面的变量越覆盖越外面的同名变量 shadow 会和几个词相关: - scope - simple name 原则
llvm ir 例子
Posted on:July 5, 2023 at 09:41 AM## 背景 在自学编译原理,所以了解了一下后端的内容 ## llvm ir llvm ir 会生成这样中间格式的内容,这样就可以交给后端处理了,如果只想自己写前端词法和解析树内容,后端的代码生
lucene 分词
Posted on:July 4, 2023 at 09:54 PM## 背景 了解分词过程 ## 概述 lucene的查询过程: > (String query , String field ) -> Query 整个过程是将字符串`"how old
Numeric overflow in expression idea java
Posted on:July 4, 2023 at 07:30 PM## 背景 在使用java的idea的时候,有如下代码 ``` Date date = new Date(); date.getTime() + 30 * 24 * 60 * 60 * 1000;
found duplicate key xxx spring boot
Posted on:July 4, 2023 at 12:00 PM## 背景 项目是springboot 框架 发现下面错误: `found duplicate key xxx` ``` Caused by: while constructing a mapp
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass
Posted on:July 3, 2023 at 10:28 PM## 背景 本地编译报错 ``` Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protecte
milvus 编译使用
Posted on:June 27, 2023 at 07:28 PM## 背景 ``` # Clone github repository. $ git clone https://github.com/milvus-io/milvus.git # Instal
java sort default order
Posted on:June 27, 2023 at 05:35 PM## 背景 java 的`Array.sort()`或者`.stream.sorted()` 都会使用`Comparable<T>` 作为参数 目前需要了解这些排序函数究竟是升序还是降序的 #
lucene 搜索过程
Posted on:June 19, 2023 at 12:58 PM## 背景 了解lucene的搜索过程: - 分词 - 算每个分词的权重,排序取topk ## 代码堆栈 - 写入过程: ``` add:473, FSTCompiler (org.apache
nacos client and serve
Posted on:June 14, 2023 at 03:50 PM## 背景 了解nacos 注册/发现/协议 ## java-nacos-client 整个堆栈大概是到这里 ``` write:35, NettyWritableBuffer (com.a