gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6bb7c20e6bb7c20estatus: window 2026-11-09mre6bb7c20e/lib/catalog-list.hl

1.1 KB

  1. // UTF-8 ID/key pairs with numeric boundaries. length uses the catalog's two slots per row.
  2. payload = toBytes(0)
  3. bounds = []
  4. length = 0
  5. waste = 0
  6. fetch(Number i) {
  7. row = (i - i % 2) / 2
  8. at = row * 3 + i % 2
  9. return payload.text(bounds[at], bounds[at + 1])
  10. }
  11. insert(Number i, String id, String key) {
  12. a = toBytes(id)
  13. b = toBytes(key)
  14. start = payload.length
  15. payload.append(&a)
  16. middle = payload.length
  17. payload.append(&b)
  18. at = i / 2 * 3
  19. bounds.splice(at, 0, payload.length)
  20. bounds.splice(at, 0, middle)
  21. bounds.splice(at, 0, start)
  22. length = length + 2
  23. return null
  24. }
  25. remove(Number i) {
  26. at = i / 2 * 3
  27. waste = waste + bounds[at + 2] - bounds[at]
  28. bounds.splice(at, 3)
  29. length = length - 2
  30. if (waste > 1048576 && waste * 2 > payload.length) { compact() }
  31. return null
  32. }
  33. compact() {
  34. out = toBytes(0)
  35. for (let i = 0; i < bounds.length; i = i + 3) {
  36. id = toBytes(payload.text(bounds[i], bounds[i + 1]))
  37. key = toBytes(payload.text(bounds[i + 1], bounds[i + 2]))
  38. bounds[i] = out.length
  39. out.append(&id)
  40. bounds[i + 1] = out.length
  41. out.append(&key)
  42. bounds[i + 2] = out.length
  43. }
  44. payload = out
  45. waste = 0
  46. return null
  47. }

Branches

Latest commits

  • 6bb7c20estatus: window 2026-11-09mre
  • 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
  • e84586a7Mission AP56bmre
  • 15917f03Record PR workflow rule (gitoria#50)mre
  • 942ac995status: paused workers statemre
  • 44b934e5log: respawn cleanupmre
  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre
  • 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
  • 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
  • ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre
  • 85153900AP52: re-vendor Hybriel set day52 (source 77cfca31, bin 0a8ed496)mre
  • 7c051eddLog: hybriel#338 answermre