News for hackers. Stuff that matters.

kaykay

Re:Tesla Says Model 3 on Track as Quarterly Loss Beats Estimates on Wednesday February 22, 2017 @05:27PM (#13709832)
Might have shorted Tesla
There is a bug in the code, unless the input is expected to be a set instead of a list.

I believe the right implementation should be something like:

  main :: IO ()
  main = print $ quicksort [1, 123, 42, 90, 1, 23, 24, 12, 3]
  quicksort [] = []
  quicksort (x:xs) = quicksort left ++ [x] ++ quicksort right
      where left  = [ y | y <- xs, y < x ]
            right = [ y | y <- xs, y >= x ]
Re:Let the Other 95% of Great Programmers In on Friday December 26, 2014 @02:42PM (#8800021)
Where did you get the > 100000 H1B's number?
Re:The Interview on Wednesday December 24, 2014 @12:56PM (#8793747)
$5.99
Re:The Complete Beginner’s Guide to Barefoot Running on Sunday May 23, 2010 @12:37PM (#1372533)
I switch between barefoot and Nike free for my runs. I like 'em. They resemble regular shoes so you could wear them all day.
Re:O'Reilly is selling any eBook for $9.99 today on Friday May 21, 2010 @05:02PM (#1368850)
I just got a copy of this, meaning to read this for a long time.
Re:Poll: Do you work on your startup full time or part time? on Thursday March 26, 2009 @01:43AM (#533080)
Part time