Does anyone program in Lisp using a line editor such as ed?
This is a foolish question.
>>2
How else would you program using a teleprinter?
That's an interesting question.
Did the earliest Lisp programmers write Lisp programs using line editors?
>>3
They used punch cards to input source code.
>>4
Isn't that worse than using a line editor?
>>3
The question was present tense.
>>2
I don't understand why people are so dismissive of using ed to program.
I personally use (ed) for editing my code (Hemlock/Edwin)
>>8
What do you mean? (ed)
does not work for me.
This is what I get in MIT Scheme:
1 ]=> (ed)
;Unbound variable: ed
This is what I get in SBCL:
* (ed)
Don't know how to ED NIL
See also:
The SBCL Manual, Variable *ED-FUNCTIONS*
I've wanted to make a line editor for lisp, which navigatex the AST instead of just lines as ed does. The reason I haven't done it is just laziness.
>>10
I would like to see this.
>>9
Install Clozure Common Lisp (CCL). It has a resident editor, unlike SBCL. You can access it by calling ed
function. For MIT/GNU Scheme, the function is actually called edit
.
>>12
Or use magic-ed for a more portable Common Lisp solution.
https://github.com/sanel/magic-ed
?
$ ccl
Clozure Common Lisp Version 1.12.1 (v1.12.1) LinuxX8664
For more information about CCL, please see http://ccl.clozure.com.
CCL is free software. It is distributed under the terms of the Apache
Licence, Version 2.0.
? (ed)
> Error: This implementation doesn't provide a resident editor.
> While executing: ED, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 >
>>15
Strange. I remember trying CCL and Hemlock a couple of years ago, but I might be mistaken. There is the portable Hemlock (which is a separate project). However, you get the best experience if you use SLY/Geiser (Gnu Emacs) or Medley Interlisp (https://interlisp.org/)/Open Genera.
>>16
Loool for realsies. I tried to input #user-C://overclock internet explorer^9000 in Haskell and remember recieving the (does not compute) response following a brief crash and black screen i thought i bricked my pc xd. Linux fags will never understand