Just me messing around with elisp. By editing this markdown source file with emacs I’m able to run blocks of elisp (or any language) inline and store the output. It makes for an easy literate programming setup. A fun way to play with lisp.
Lisp was originally created as a practical mathematical notation for computer programs, influenced by (though not originally derived from) the notation of Alonzo Church’s lambda calculus. It quickly became the favored programming language for artificial intelligence (AI) research. As one of the earliest programming languages, Lisp pioneered many ideas in computer science, including tree data structures, automatic storage management, dynamic typing, conditionals, higher-order functions, recursion, the self-hosting compiler, and the read–eval–print loop.
The name LISP derives from “LISt Processor”. Linked lists are one of Lisp’s major data structures, and Lisp source code is made of lists. Thus, Lisp programs can manipulate source code as a data structure, giving rise to the macro systems that allow programmers to create new syntax or new domain-specific languages embedded in Lisp.
Here is some sample elisp code.
"\n;; HELLO THIS WAS INSERTED FROM ELISP") (insert ;; HELLO THIS WAS INSERTED FROM ELISP
";; OUPUT: " (number-to-string (+ 2 2))) (insert ;; OUPUT: 4
Last edited :- Sat, 09 Apr 2022 16:16:59 BST