logoalt Hacker News

embedding-shapetoday at 9:46 AM1 replyview on HN

> the supposed benefit of Lisp is completely irrelevant here

Yeah, it's a small example (it's in the title, "100 lines") so obviously doesn't highlight the best benefits once you reach larger codebase size.

Still think ~8 lines for the core loop is probably more elegant, readable and concise than you can achieve in other algol/C-like languages, but happy to be shown that I'm wrong :)


Replies

hnlmorgtoday at 12:35 PM

Most of the code in agents is to handle unhappy paths and human friendly interfaces. I’m sure you could trim most languages core loop too if you discarded all the stuff that actually make agents peasant to use.

show 1 reply