News for hackers. Stuff that matters.
Re:Coming Soon to Hacker News: Pending Comments by pg on Friday March 21, 2014 @09:35PM (#7446596)
This was all the code it took:

  (newsop pending () (pending-page user))

  (newscache pending-page user 60
    (listpage user (msec) comments* [if (and (cansee user _) _!pending) _]
              "pending" "Pending Comments" "pending" nil))
In this project I've really benefited from having kept the code tight.
[deleted]
Re:Coming Soon to Hacker News: Pending Comments by elwell on Friday March 21, 2014 @10:17PM (#7446879)
The second comment refers to a small portion of the first comment's reference.
Re:Coming Soon to Hacker News: Pending Comments by couchand on Friday March 21, 2014 @10:41PM (#7447016)
Forgive me for asking what's probably a simple question: what's HN coded in? That's pretty clearly a flavor of Lisp... what's the square bracket predicate syntax?
Re:Coming Soon to Hacker News: Pending Comments by nokcha on Friday March 21, 2014 @10:58PM (#7447108)
It's written in Arc.

Regarding the square bracket syntax:

    [... _ ...]  is an abbreviation for (fn (_) (... _ ...))
http://www.paulgraham.com/arc.html

http://en.wikipedia.org/wiki/Arc_%28programming_language%29

Re:Coming Soon to Hacker News: Pending Comments by rbanffy on Friday March 21, 2014 @10:54PM (#7447089)
IIRC, it's written in Arc

http://arclanguage.org

Re:Coming Soon to Hacker News: Pending Comments by jrlocke on Friday March 21, 2014 @10:59PM (#7447116)
Arc