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.


╼╤ Outline ╤╾

Reference

Lisp notes

Lisp was originally created as a practical mathematical notation for computer programs, influenced by (though not originally derived from)[6] the notation of Alonzo Church’s lambda calculus. It quickly became the favored programming language for artificial intelligence (AI) research.[7] 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,[8] 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.

Example 1

Here is some sample elisp code.

(insert "\n;; HELLO THIS WAS INSERTED FROM ELISP")

;; HELLO THIS WAS INSERTED FROM ELISP

More lisp

(insert ";; OUPUT: " (number-to-string (+ 2 2)))
;; OUPUT: 4


Last edited :- Sat, 09 Apr 2022 16:16:59 BST