In this stream we begin the work of porting Java’s ConcurrentHashMap to Rust. It will be a journey to get all the way there, but we got through most of the get, insert, and resize operations. Of particular note is the work required to go from the Java code’s reliance on the garbage collector to Rust’s runtime-free model. See also the commit for the stream at
You can see our progress at The Java code we were working from is included in that repository, or you can view it at
You can watch the live version with comments at
0:00:00 Introduction
0:10:57 Reading Java’s ConcurrentHashMap documentation
0:51:17 Copying documentation and constants
1:01:09 Starting node
1:11:07 Writing BinEntry::find