Clarence's Wicked Mind

news from Clarence, stuff that doesn't matter

Tuesday, December 20, 2022

Java HashMap and multi-thread

›
Java HashMap is not thread-safe. But if the logic only access it in certain way and reader threads can do retry similar to a optimistic read...
Monday, November 21, 2022

Optimized sort vs Quickselect

›
With the implementation of Quickselect done yesterday , now comes the question: is it quicker to use an optimized algorithm to sort the whol...
Sunday, November 20, 2022

Standalone implmentation of Quickselect for Java

›
 Quick and dirty implementation of Quickselect: https://github.com/kitsook/QuickSelect
Sunday, October 30, 2022

Rule based static analysis for Java source code

›
Recently, someone asked me about doing static analysis on source code. Here is an experiment to see how easy (or difficult) it is to combine...
Sunday, September 4, 2022

Returning local references from Java JNI

›
Wrote some tests on Java JNI. Lesson learned: it is ok to return a local reference from JNI. Just don't explicitly call DeleteLocalRef...
Monday, August 1, 2022

Java Collections.shuffle poor performance with parallelism

›
  Previously when using a Java program to simulate the 100 prisoners problem , noticed an interesting performance issue : the Collections.s...
‹
›
Home
View web version
Powered by Blogger.