|
|
Up |
|
|
  |
Author: Adam FunkAdam Funk Date: Aug 1, 2008 05:45
I've decided I ought to train myself in the most elegant programming
weapon --- http://xkcd.com/297/ --- so I've started working through
_The Structure and Interpretation of Computer Programs_.
In the long term I hope I'll be able to customize Emacs more in its
native way instead of wrapping external Perl programs in
shell-command-on-region (as I often do now).
Any tips on transferring knowledge between Scheme and elisp?
As a first observation, it seems to me that Scheme's define seems to
correspond to both defun and setq in elisp
--- is that a fair
interpretation (or a stupid one)?
|
| |
|
| | 13 Comments |
|
  |
Author: Joost KremersJoost Kremers Date: Aug 1, 2008 06:06
Adam Funk wrote:
> I've decided I ought to train myself in the most elegant programming
> weapon --- http://xkcd.com/297/ --- so I've started working through
> _The Structure and Interpretation of Computer Programs_.
>
> In the long term I hope I'll be able to customize Emacs more in its
> native way instead of wrapping external Perl programs in
> shell-command-on-region (as I often do now).
dunno, but the emacs lisp intro (C-h i m emacs lisp intro RET) and the
emacs lisp manual (C-h i m elisp RET) seem more appropriate ways to get
started with elisp...
--
Joost Kremers joostkremers@ yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
|
| |
|
| | no comments |
|
  |
Author: Thien-Thi NguyenThien-Thi Nguyen Date: Aug 1, 2008 07:09
() Adam Funk ducksburg.com>
() Fri, 1 Aug 2008 13:45:57 +0100
most elegant programming weapon
warriors attack, felling foe after foe,
few growing old til they realize: to know
what deceit is worth deflection;
such receipt reversed rejection!
then their heavy arms, e'er transformed to shields:
balanced hooked charms, ploughed deep, rich yields.
thi
|
| |
| no comments |
|
  |
Author: Joel J. AdamsonJoel J. Adamson Date: Aug 1, 2008 12:16
>>>>> "Adam" == Adam Funk ducksburg.com> writes:
Adam> I've decided I ought to train myself in the most elegant
Adam> programming weapon --- http://xkcd.com/297/ --- so I've
Adam> started working through _The Structure and Interpretation of
Adam> Computer Programs_.
Good idea: the best computer science book ever written --- and the only
one I've ever used :-P
Adam> In the long term I hope I'll be able to customize Emacs more
Adam> in its native way instead of wrapping external Perl programs
Adam> in shell-command-on-region (as I often do now).
Uh, what? Can you explain this? Can you explain why on Earth you
would do it?
Adam> Any tips on transferring knowledge between Scheme and elisp?
There are some general qualities to Lisp that all Lisp dialects
share, Scheme and Emacs Lisp among them. Both are descendants of
MacLisp (though Scheme is way different from MacLisp, and Emacs Lisp
is quite similar).
|
| Show full article (3.13Kb) |
| no comments |
|
  |
|
|
  |
Author: Adam FunkAdam Funk Date: Aug 1, 2008 13:26
On 2008-08-01, Joost Kremers wrote:
> Adam Funk wrote:
>> I've decided I ought to train myself in the most elegant programming
>> weapon --- http://xkcd.com/297/ --- so I've started working through
>> _The Structure and Interpretation of Computer Programs_.
>>
>> In the long term I hope I'll be able to customize Emacs more in its
>> native way instead of wrapping external Perl programs in
>> shell-command-on-region (as I often do now).
>
> dunno, but the emacs lisp intro (C-h i m emacs lisp intro RET) and the
> emacs lisp manual (C-h i m elisp RET) seem more appropriate ways to get
> started with elisp...
Well, what I mainly want to do is learn LISP from a reputable text,
and I'm hoping a side benefit of that will be improved Emacs skills.
|
| |
| no comments |
|
  |
Author: Adam FunkAdam Funk Date: Aug 1, 2008 13:30
On 2008-08-01, Joel J. Adamson wrote:
>> I've decided I ought to train myself in the most elegant
>> programming weapon --- http://xkcd.com/297/ --- so I've
>> started working through _The Structure and Interpretation of
>> Computer Programs_.
>
> Good idea: the best computer science book ever written --- and the only
> one I've ever used :-P
Good!
>> In the long term I hope I'll be able to customize Emacs more
>> in its native way instead of wrapping external Perl programs
>> in shell-command-on-region (as I often do now).
>
> Uh, what? Can you explain this? Can you explain why on Earth you
> would do it?
If you mean why do I do such a hideous thing now, it's because I *can*
do string manipulation in Perl, whereas I can't (currently) do it in
LISP (except for fairly trivial cases).
|
| Show full article (1.04Kb) |
| no comments |
|
  |
Author: Pascal J. BourguignonPascal J. Bourguignon Date: Aug 1, 2008 14:51
Adam Funk ducksburg.com> writes:
> I've decided I ought to train myself in the most elegant programming
> weapon --- http://xkcd.com/297/ --- so I've started working through
> _The Structure and Interpretation of Computer Programs_.
|
| Show full article (5.10Kb) |
| no comments |
|
  |
Author: Pascal J. BourguignonPascal J. Bourguignon Date: Aug 1, 2008 15:10
"Joel J. Adamson " email.unc.edu> writes:
> I suggest you use Emacs for Scheme hacking, and that way you will learn
> the ins and outs of both.
Oh yes, and be sure to use paredit.
http://mumble.net/~campbell/emacs/paredit.el
Here is a quick tutorial for using scheme in emacs:
C-x C-f ~/test.scm RET
C-x 2
C-u M-x inferior-lisp RET
C-a C-k mzscheme RET -- assuming you have mzscheme in the PATH.
(display "Hello") RET
C-x o -- return to test.scm buffer.
(define (hw)
(newline) (display "Hello") (newline)) C-x C-e
(hw) c-x C-e
-- so you can keep your source and test
-- expressions in the scm buffer, and
-- send the over to the inferior-lisp
-- process for execution with C-x C-e.
|
| Show full article (1.08Kb) |
| no comments |
|
  |
|
|
  |
Author: weberweber Date: Aug 1, 2008 18:06
> Adam Funk ducksburg.com> writes:
>> I've decided I ought to train myself in the most elegant programming
>> weapon --- http://xkcd.com/297/--- so I've started working through
>> _The Structure and Interpretation of Computer Programs_.
|
| Show full article (5.49Kb) |
| no comments |
|
RELATED THREADS |
  |
|
|
|
|
|