Mixin in Java

什么是Mixin 维基百科的解释是: In object-oriented programming languages, a mixin is a class that contains methods for use by other classes without having to be the parent class of those other classes. How those other classes gain access to the mixin’s methods depends on the language. Mixins are sometimes described as being “included” rather than “inherited”. 简...

2024-01-08 · 于川海

计算机多内核平台上的并发锁优化(二)

申明: 大部分内容来源于网络,我不生产知识,我只是字符串搬运工。 在Algorithms for scalable synchronization on shared-memory multiprocessors这篇论文中,CL...

2020-08-21 · 于川海

计算机多内核平台上的并发锁优化(一)

申明: 大部分内容来源于网络,我不生产知识,我只是字符串搬运工。 如何在高并发的情况下,提高多核CPU的性能,一直是在并发编程领域中非常重要的问...

2020-08-19 · 于川海

不可测试的代码

故事是这样的,我最近深陷在一个刚接手不久的项目中,经过完成两轮需求上线后, 我迫切地告诉自己,需要给这个项目完善一下测试用例(原工程测试用例几...

2020-01-21 · 于川海

Clojure中的数据类型

Clojure作为一款基于JVM的LISP语言,我个人从创造者Rich Hickey身上吸收了很多编程的观点,尽管作者提出了很多面向对象编程语...

2019-11-19 · 于川海