News for hackers. Stuff that matters.

jlnazario

Re:Rinse – Building the One Medical for Dental on Wednesday November 23, 2022 @06:32PM (#33725891)
Love to see these type of applications that improve on how de do and think about health.
Re:Make Your Python CLI Tools Pop with Rich on Friday January 21, 2022 @03:56AM (#30020925)
Rich is the shit. Go show https://github.com/willmcgugan some love.
Over 11 × 10^9 units sold per year? This number seems unreal to me.
Re:Airport Security Is Killing Us on Tuesday November 20, 2012 @03:53PM (#4811268)
I wonder about the deterring effect. How many attacks do not occur because security is there. It's hard to measure, with a high risk to reward factor.
Re:Show HN: Write a sort, watch it go on Wednesday September 28, 2011 @09:14AM (#3047664)
Implemented my own quicksort that seems to have better performance than the built-in one.

  q = (lo, hi) =>
    # highlight range
    VA.persistHighlight([lo..hi])
    p = VA.get(lo)
    l = lo
    r = hi
    # test pivot position
    t = false
    while (l < r)
      if VA.gt(l,r)
        VA.swap(l,r)
        t = !t
      if t
        r--
      else
        l++
    if (l > lo)
      q(lo, l - 1)
    if (hi > l + 1)
      q(l + 1, hi)
  
  q(0,VA.length - 1)