News for hackers. Stuff that matters.
Re:7 lines of code, 3 minutes: Implement a programming langu... by ErroneousBosh on Monday May 11, 2026 @09:40AM (#48094868)
So what kind of things do you use s-expressions for? Is there something they're really good at that I don't know about yet?
Re:7 lines of code, 3 minutes: Implement a programming langu... by embedding-shape on Monday May 11, 2026 @09:48AM (#48094970)
Everything? The full projects are in lisp syntax (s-expressions), not Algol-like syntax (C-like syntax) that most people are familiar with. Personally I mostly use Clojure, but lots of lisp-like languages offer the same (simpler) experience of programming.
Re:7 lines of code, 3 minutes: Implement a programming langu... by mbac32768 on Tuesday May 12, 2026 @12:54AM (#48104330)
probably the best use of s-expressions is as an alternative to json which you can implement in 50 lines of code

e.g. pretty good for config files or basic serialization

Re:7 lines of code, 3 minutes: Implement a programming langu... by embedding-shape on Tuesday May 12, 2026 @12:01PM (#48110163)
> pretty good for config files

Case in point which suits well for config files; EDN - https://github.com/edn-format/edn