News for hackers. Stuff that matters.
Re:Gitless a simple VCS built on top of Git by xenomachina on Saturday June 17, 2023 @02:41PM (#36373137)
When people search through alphabetical listings, they usually don't use plain old binary search, but instead use something like interpolation search. For example, if you want to find the word "xylostroma” in the dictionary, you aren't going to start in the middle. Instead, you'll start about 90% of the way through, and then make adjustments based on how far off you were.
Re:Gitless a simple VCS built on top of Git by lost_tourist on Saturday June 17, 2023 @05:29PM (#36374833)
Yeah but that is only optimal if you know the general location. Often when you have a bug you don't know where it snuck in, especially if it's something like a race condition.
Re:Gitless a simple VCS built on top of Git by xenomachina on Sunday June 18, 2023 @02:45AM (#36377917)
Sure. My point was just that contrary to what programmers typically think, people don't use binary search to look up things in a dictionary.