Calvin's Marbles


  • 首页

  • 关于

  • 归档

  • 标签

  • 搜索

Persistent data structures

发表于 2025-10-06

在 rust 中,immutable 的数据结构的性质是非常好的。在大部分函数式语言中,都不允许存在 mutable 的数据。

如果要在不可变数据结构上进行修改,就需要 clone 一份出来。因此:

  • 对于一些较大的结构,希望能够尽量复用
  • 如果此时只有一份引用,则可以直接获取 mut 引用就地修改

所以有了 Persistent data structures 的概念:

  • 每一次修改该结构,都会保留之前的版本
  • 历史的版本可以被查询
  • 如果历史版本的数据也支持修改,则称为 Full persistence,否则称为 Partial persistence
阅读全文 »

Zero-Copy 技术

发表于 2025-09-30

介绍 Linux 中的零拷贝技术。从 Fuse 学习 中独立出来。

阅读全文 »

My Experience of Building a Hybrid Rust/C++ Project

发表于 2025-07-21

Since April 2025, I have been actively contributing to a new Rust–C++ project. Through this work, I have gained many valuable insights. Although I cannot disclose most project details, there are numerous technical challenges worth discussing.

One of the most notable aspects of this project is that it has been developed alongside the rapid evolution of AI agents, which led us to encounter many pitfalls when practicing vibe coding.

阅读全文 »

乒乓球训练纪实

发表于 2025-06-11

因为五一节打羽毛球把膝盖打出问题了,现在主要学习乒乓球了

阅读全文 »

关西2

发表于 2025-04-08

趁着清明节又去了一趟关西。本以为是度假,但实际上累得要死。

阅读全文 »

Database paper part 7

发表于 2025-03-15

包含:

  • We Ain’t Afraid of No File Fragmentation: Causes and Prevention of Its Performance Impact on Modern Flash SSDs
阅读全文 »

法语学习纪要

发表于 2025-03-13

在小绿鸟上学法语。

阅读全文 »

Fuse 学习

发表于 2025-03-09

看下 FUSE 的相关知识。

Filesystem In Userspace 也就是 fuse,是 linux 的一个内核模块。

阅读全文 »

Excerpt from Yes Minister

发表于 2025-02-15

The novel of Yes Minister. Including metaphors, grammar issues and funny paragraphs.

阅读全文 »

磁盘上的数据结构

发表于 2025-02-09

本文主要介绍在设计需要序列化到磁盘上的数据结构时,需要考虑的点。

阅读全文 »
123…27
Calvin Neo

Calvin Neo

263 日志
155 标签
RSS
GitHub Twitter Weibo
Links
  • xqq
  • wenwen
  • zyyyyy
© 2015 - 2026 Calvin Neo   Hosted by Coding Pages
版权声明
由 Hexo 强力驱动
主题 - NexT.Muse