drakecoffeecake
drakecoffeecake on Hacker News
Re:Faroo: Peer-To-Peer Web Search
on Wednesday October 14, 2015 @07:22PM (#10390230)
Yep, yep, yep.
You seem to be exactly right.
Re:The Nature of Lisp (2006)
on Wednesday May 20, 2015 @02:22PM (#9578150)
I don't think that's much clearer than a lisp equivalent:
(todo "housework"
(item (priority high) "Clean the house.")
(item (priority medium) "Wash the dishes.")
(item (priority medium) "Buy more soap."))
Yours looks nicer, but if I wanted to operate on your todo there, it's not obvious how just by looking.With the lisp, it's obvious: There's a list of 5 elements. The last three are 'items', each of which is a list of 3 elements.
The benefit of s-expressions isn't just that they're flexible in what you can write with them, but that they're easy to manipulate programmatically, and their structure is immediately obvious.
Re:Domain-Specific Languages vs. Notation
on Tuesday May 19, 2015 @02:55PM (#9572278)
Lisps let you define the semantics and syntax of a form with macros. I would consider the loop macro in CL to have an internal DSL.
--edited