[ prog / sol / mona ]

prog


Lisp programming using ed

1 2021-10-01 08:52

Does anyone program in Lisp using a line editor such as ed?

2 2021-10-01 12:55 *

This is a foolish question.

3 2021-10-01 14:32

>>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?

4 2021-10-01 20:09

>>3
They used punch cards to input source code.

5 2021-10-02 03:13

>>4
Isn't that worse than using a line editor?

6 2021-10-02 04:06 *

>>3
The question was present tense.

7 2021-10-06 05:30

>>2
I don't understand why people are so dismissive of using ed to program.

8 2021-10-06 13:11 *

I personally use (ed) for editing my code (Hemlock/Edwin)

9 2022-05-13 04:57

>>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*
10 2022-05-13 18:05

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.

11 2022-05-13 18:58

>>10
I would like to see this.

12 2022-05-14 12:13

>>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.

13 2022-05-14 13:10

>>12
Or use magic-ed for a more portable Common Lisp solution.
https://github.com/sanel/magic-ed

14 2022-05-14 20:09
?
15 2022-05-25 09:13

>>12

$ 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 > 
16 2022-05-25 16:34

>>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.

17 2022-05-26 00:00

>>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

18


VIP:

do not edit these