Better HN
topnewbestaskshowjobs
Log inSign up

selfboot

12 karma · joined May 16, 2017 (9y ago) · 48 submissions

https://selfboot.cn
Submissions

comment 2y ago · link · parent

From time to time, I see some beautiful racing chart pages online, showing how data changes over time, which looks really cool. After researching, I found that there are ready-made JS libraries that can generate such charts, but I couldn't find a suitable tool that could automatically generate racing charts after uploading data.

So I thought about implementing one using Claude3.5, but the process wasn't smooth, and I encountered quite a few pitfalls along the way. I started working on it in July, trying intermittently multiple times, until recently when I finally managed to implement a simple version. This article records the process of implementing this tool using Claude3.5 and documents the pitfalls encountered along the way. You can experience the final result here, and feel free to leave comments for discussion.

comment 2y ago · link · parent

This article provides a detailed analysis of the time complexity of skip lists. By breaking down the search problem, reversing the entire search process, and finding an appropriate L level, it ultimately derives the time complexity of skip lists. Based on the understanding of time complexity, it further deduces how to choose the probability p, and the reasons for choosing the maximum height in Redis and LevelDB skip lists. Finally, it tests the performance of skip lists through a simple benchmark and compares it with unordered_map.

comment 2y ago · link · parent

OpenAI released a new model, o1-preview, claiming stronger code generation and understanding capabilities, with various evaluations showing good results. I immediately tried the new model, including using the popular prompt for generating SVGs with new Chinese interpretations, as well as explaining LevelDB code. Overall, the new o1-preview model shows improvement, but hasn't created a generational gap.

comment 2y ago · link · parent

Skiplists are probabilistic data structures that can replace balanced trees, offering fast insertion, deletion, and search operations. LevelDB's skip list implementation is concise, stable in performance, and suitable for storing data in memory MemTables.

This article starts by discussing the drawbacks of current binary search trees and balanced trees, introducing skip lists as a data structure. Then, based on the original paper, it explains the implementation principles of skip lists, followed by a detailed analysis of LevelDB's implementation code, including iterator implementation and extreme performance optimization for concurrent reading.

Finally, it provides a visualization page that intuitively shows the skip list construction process.

comment 2y ago · link · parent

This article explores the implementation of core utility components in LevelDB, including the Arena memory allocator, Random number generator, CRC32 cyclic redundancy check, and integer encoding/decoding tools. It analyzes the design considerations, implementation details, and optimization strategies of these components, demonstrating how they efficiently support various operations in LevelDB.

comment 2y ago · link · parent

Claude3.5 helped me write a hashing visualization, which supports shadow nodes, adding nodes and keys, and can intuitively understand the hash ring method. By the way, there are many visualizations of common algorithms. Welcome to https://gallery.selfboot.cn to experience them.

37.

Visualization of Consistent Hashing Rings(gallery.selfboot.cn ↗)

15 points · by selfboot · 2y ago · 3 comments

comment 2y ago · link · parent

I am a backend service developer with no front-end development experience. I have never used modern front-end technologies such as react, and I don’t even know much about CSS layout. With the help of claude3.5 and gpt4, I built a complete website in less than a week, which includes several classic games and visualizations of common algorithms. AI changes the world!

39.

Made a cool site with AI as a newbie(gallery.selfboot.cn ↗)

4 points · by selfboot · 2y ago · 2 comments

12