News for hackers. Stuff that matters.
Re:The programmers who live in Flatland by evdubs on Sunday December 07, 2025 @03:37PM (#46184907)
> Show me a convincing example of something that's simple/clear/elegant/superior in Lisp, and how difficult/complicated/ugly/impossible it would be to do the same thing in Java/C++/Ruby/Python.

Serialize and deserialize data. You're currently using something like XML or JSON for a human readable data serialization format in those languages. JSON and XML are not first class components of those languages. S-expressions are a better version of JSON and are first class components of Lisp.

Re:The programmers who live in Flatland by bccdee on Sunday December 07, 2025 @04:29PM (#46185340)
That's a bad thing, though. You should not be `eval`-ing your config file, much less untrusted messages.
Re:The programmers who live in Flatland by attila-lendvai on Sunday December 07, 2025 @06:08PM (#46186320)
you don't need to call eval for the usual config file setup, only read.

(but you often get something much better when config files are plain lisp code; i.e. they are eval'ed, assuming that the threat model allows it)

Re:The programmers who live in Flatland by evdubs on Sunday December 07, 2025 @04:45PM (#46185489)
I am not so sure how it works, but you can define your own evaluation handler for `eval` which, I assume, can be as restrictive as you need if you're dealing with untrusted data.
Re:The programmers who live in Flatland by bccdee on Sunday December 07, 2025 @05:27PM (#46185923)
Seems simpler just to use `json.load`.