Better HN
topnewbestaskshowjobs
Log inSign up

l0stman

1,842 karma · joined Jun 23, 2007 (19y ago) · 143 submissions

Submissions

comment 13y ago · link · parent

Well, the wayback machine is your friend. http://web.archive.org/web/20111001124736/http://log.nadim.c...

2.

Henry Ford, Innovation, and That "Faster Horse" Quote(blogs.hbr.org ↗)

2 points · by l0stman · 14y ago · discuss

comment 14y ago · link · parent

I was just wondering if you've planned on open-sourcing the code since the very beginning or if the idea came much later. Anyway congrats on launching.

comment 14y ago · link · parent

Well, played. For a couple of seconds I was wondering why I had this impression of deja vu then I found this (http://hackerne.ws/item?id=4692794). I burst out laughing.

5.

Engineering a List Merge Sort(pvk.ca ↗)

1 points · by l0stman · 14y ago · discuss

6.

How to build a portrait with dice(elusivesnark.com ↗)

111 points · by l0stman · 15y ago · 14 comments

7.

OpenBSD 5.0 Released(openbsd.org ↗)

143 points · by l0stman · 15y ago · 49 comments

8.

How to trick C/C++ compilers into generating terrible code?(futurechips.org ↗)

61 points · by l0stman · 15y ago · 18 comments

9.

What's The Greatest Software Ever Written?(informationweek.com ↗)

12 points · by l0stman · 15y ago · 8 comments

10.

Old programming habits die hard(rdist.root.org ↗)

3 points · by l0stman · 15y ago · discuss

11.

Pragmatic Parsing in Common Lisp(home.pipeline.com ↗)

1 points · by l0stman · 15y ago · discuss

12.

How to fix a compiler bug in SBCL(random-state.net ↗)

4 points · by l0stman · 15y ago · discuss

13.

FreeBSD on EC2 FAQ(daemonology.net ↗)

49 points · by l0stman · 15y ago · 13 comments

comment 15y ago · link · parent

I had to look up what the `:' operator does and it adds an element to the beginning of the list. So the last line should be

    split (left, right) x = if x<p then (x:left, right), else (left, x:right)

comment 15y ago · link · parent

    qsort :: Ord a => [a] -> [a]
    qsort []     = []
    qsort (p:xs) = qsort lesser ++ [p] ++ qsort greater
        where
                lesser = filter (< p) xs
                greater = filter (>= p) xs
I know nothing about Haskell but I don't think this code implements the original quicksort algorithm which sorts the input in-place. Moreover the two-pass of filter over the list and the concatenations cause unnecessary overhead. Thus, even if the sample code is simple and elegant, a real-world implementation would surely be a bit longer than the given example.

comment 16y ago · link · parent

Just finished ``On Lisp''. This is an advanced Lisp book and shouldn't be your first one. It assumes some familiarity with the language so you're better of reading ``Practical Common Lisp'' first if you're diving into Lisp for the first time. The book focuses almost exclusively on advanced use of macros and metaprogramming.

Interestingly, I've also read SICP in parallel -- currently reading the last chapter -- and there's some overlap in the topics treated in the two books. I'm also walking through CLRS and TAOCP at the moment, albeit reading the latter with a slower pace compared to the former.

On the non-technical side, I'm reading ``Drawing with the right side of the brain'' by Betty Edwards. I've picked up this book since I've decided to resume drawing one year ago. I highly recommend it if you struggle to draw a realistic rendering of a real life object or a landscape.

12345