Hacker GitHub

← All repos

ncruces/sort

View on GitHub ↗ ★ 22 Go

Sorting algorithms implemented in Go

7 mentions on Hacker News by 1 person: 0 stories, 7 comments · first 2024-07-25 · latest 2026-10-13

Mentions per year 7 mentions · busiest year 2025 (3)
20082026
  1. …used in practice. This one is just not true . Here it is in 255 lines of well commented Go code: https://github.com/ncruces/sort/blob/v1.0.3/quick/quick.go It's worse case linear, as used for sorting it beats the Go standard library on the…
  2. …[1] for my sorting repo [2] (thanks invzhi!) 1: https://github.com/invzhi/sorting-visualization/ 2: https://github.com/ncruces/sort Those choices (what counts as a step) are interesting because e.g. for my quicksort they make it look…
  3. …compact Shell sort can be. C: https://github.com/ncruces/go-sqlite3/blob/main/sqlite3/libc... Go: https://github.com/ncruces/sort/blob/main/shell/shell.go
  4. …I was able to use this to implement practical deterministic linear time median selection in Go: https://github.com/ncruces/sort/blob/main/quick/quick.go
  5. …and found it extremely useful to validate the properties of my Quicksort implementation. https://github.com/ncruces/sort
    comment by ncruces · 2025-05-09 · in Reservoir Sampling
  6. …it needs to be covered. There's more to learn from 200 lines of Quicksort than from Mergesort: https://github.com/ncruces/sort/blob/main/quick/quick.go
    comment by ncruces · 2025-02-24 · in Sublinear Time Algorithms
  7. …in Go, that's (hopefully) simple enough to be understandable, yet minimally practical: https://github.com/ncruces/sort/blob/main/quick/quick.go