How can I learn emacs lisp in a comfortable way?By the way ,I know
C\C++ and Java.
How can I learn emacs lisp in a comfortable way?
How can I learn emacs lisp in a comfortable way?
I read The Structure and Interpretation of Computer Programs (SICP, https://mitpress.mit.edu/sicp/). It's not about emacs, but then it's
not exactly about Lisp, either. It's a way to learn the concepts from
the ground up. I can't think of a better way.
--jkl
On Fri, 15 Jun 2018 08:59:05 -0700 (PDT)
??? <jacklisp@gmail.com> wrote:
How can I learn emacs lisp in a comfortable way?
I read The Structure and Interpretation of Computer Programs (SICP, https://mitpress.mit.edu/sicp/). It's not about emacs, but then it's
not exactly about Lisp, either. It's a way to learn the concepts from
the ground up. I can't think of a better way.
刘雨桥 <jacklisp@gmail.com> wrote:
How can I learn emacs lisp in a comfortable way?By the way ,I know
C\C++ and Java.
As you may have noticed, Lisp is very different from C, C++, and Jave.
Michael Kallweitt <michael.kallweitt@posteo.de>:
刘雨桥 <jacklisp@gmail.com> wrote:
How can I learn emacs lisp in a comfortable way?By the way ,I know
C\C++ and Java.
As you may have noticed, Lisp is very different from C, C++, and Jave.
Actually, lisp is not all that different at all.
In C and the like, you call a function like this:
f(a, b, 3);
In Lisp, you move the function name inside the parentheses:
(f a b 3)
In C et al, you have traditional, infix expressions:
a * (3 - b / 2)
In lisp, you use a prefix notation, and never drop parentheses:
(* a (- 3 (/ b 2)))
Lisp, like Java and Python, uses garbage collection. Lisp, like Python, allows any variable to hold a value of any type.
Idiomatic lisp favors heavy use of recursion instead of "while" or
"for", but "while" is available in lisp, as well.
Marko
Hi,Everyone ,I have use emacs for several years,unfortunately
I do not understand lisp programmed,after reading the book
"An Introduction to Programming in Emacs Lisp"
for several days,I got a litter tired to understand emacs lisp,any suggestion?
How can I learn emacs lisp in a comfortable way?
By the way ,I know C\C++ and Java.
On Friday, June 15, 2018 at 11:59:07 AM UTC-4, 刘雨桥 wrote:
Hi,Everyone ,I have use emacs for several years,unfortunately
I do not understand lisp programmed,after reading the book
"An Introduction to Programming in Emacs Lisp"
for several days,I got a litter tired to understand emacs lisp,any suggestion?
My suggestion is to start from the position of a generic, common lisp programmer by reading at least the first chapter or 2 of Common Lisp: A Gentle Introduction.
{ref: http://www.cs.cmu.edu/~dst/LispBook/ }
Then, after chapter one, factor in the `Domain specific language' suchness of elisp by supplanting the number-based examples used by Touretsky with text-based examples such as `insert', `concat', `mapconcat' and `split-string' implemented via elisp.
lists DOES allow and promote high-enough forms of abstract thought to DO domain-specific sorts of activities programmatically?How can I learn emacs lisp in a comfortable way?
See below.
By the way ,I know C\C++ and Java.
You've put the cart before the horse.
Having been biased by languages pathogenically promotive of Cancer of the Semicolon
{ref: http://uncyclopedia.wikia.com/wiki/Semicolon_Cancer}
the learning of Lisp SHOULD promote a degree of discomfort in the form of cognitive dissonance.
What if cons cells in `programming' are as vital as glial cells to cognition?
What if C-style `pointers' are routinely used at too low a level to allow more-abstract levels of design -- certainly the domain-specific language level -- to ensue without distraction from such minutia ... but the lisp's inbuilt use of singly-linked
What if one extrapolates C-style null-terminated character strings into lisp style singly-linked lists?
Why learn elisp when you can learn The Lisps at the same time?
Why not craft symbolic expressions which can be fed to REPLs in common lisp, elisp, scheme and closure in a locked step fashion?
Perhaps even several implementations of scheme: GUILE, chicken, scm, PLT scheme, etc?
Just a few thoughts.
Good luck with your Quixotic Quest.
Gene
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 403 |
Nodes: | 16 (2 / 14) |
Uptime: | 50:28:44 |
Calls: | 8,408 |
Calls today: | 3 |
Files: | 13,174 |
Messages: | 5,905,608 |