Common Lisp in an environment similar to DrScheme ?

  • Follow


Hello,

I have been experimenting a little bit with Lisp, using Lispbox
(www.gigamonkeys.com/lispbox/ ), but experimenting is slow and
intermittent because I find it awkward to *user-friendly* create
code:
- When I mistype something in a function, I have to retype the whole
thing (or recall it from history), navigate to the correct position
and correct what was wrong.
- Furthermore, the "real" code and the things I try out are
intermingled, which does not help me in seeing the whole "real"
program.

Last week, however, I discovered DrScheme (http://www.drscheme.org/).
DrScheme features a *definition window* which contains your real code,
and a separate interactive window to start your program or just try
out things. This is just what I was looking for !!

Does anybody know if I can somehow have something similar in Lispbox?
(maybe via emacs buffers ...)

thanks
Ward
0
Reply wardusenet (3) 3/7/2008 1:04:58 PM

On 7 mar, 14:04, Ward <warduse...@gmail.com> wrote:
> Hello,
>
> I have been experimenting a little bit with Lisp, using Lispbox
> (www.gigamonkeys.com/lispbox/), but experimenting is slow and
> intermittent because I find it awkward to *user-friendly* create
> code:
> - When I mistype something in a function, I have to retype the whole
> thing (or recall it from history), navigate to the correct position
> and correct what was wrong.
> - Furthermore, the "real" code and the things I try out are
> intermingled, which does not help me in seeing the whole "real"
> program.
>
> Last week, however, I discovered DrScheme (http://www.drscheme.org/).
> DrScheme features a *definition window* which contains your real code,
> and a separate interactive window to start your program or just try
> out things. This is just what I was looking for !!
>
> Does anybody know if I can somehow have something similar in Lispbox?
> (maybe via emacs buffers ...)
>
> thanks
> Ward

Hi all,

If I can a suggestion, you must used personal edition of Lispworks or
non commercial Edition of Allegro CL.

Best Regards,

Christophe
0
Reply christophe.allegrini (45) 3/7/2008 1:11:27 PM


Ward <wardusenet@gmail.com> writes:

> Hello,
>
> I have been experimenting a little bit with Lisp, using Lispbox
> (www.gigamonkeys.com/lispbox/ ), but experimenting is slow and
> intermittent because I find it awkward to *user-friendly* create
> code:
> - When I mistype something in a function, I have to retype the whole
> thing (or recall it from history), navigate to the correct position
> and correct what was wrong.
> - Furthermore, the "real" code and the things I try out are
> intermingled, which does not help me in seeing the whole "real"
> program.
>
> Last week, however, I discovered DrScheme (http://www.drscheme.org/).
> DrScheme features a *definition window* which contains your real code,
> and a separate interactive window to start your program or just try
> out things. This is just what I was looking for !!
>
> Does anybody know if I can somehow have something similar in Lispbox?
> (maybe via emacs buffers ...)

Don't type everything into the REPL. Open up a Lisp file and evaluate
definitions with C-c C-c or C-x C-e. Switch to the REPL with C-z and
call things as needed.

I wrote a little bit about how I do it here:

  http://xach.livejournal.com/130040.html

Zach
0
Reply xach (862) 3/7/2008 1:39:56 PM

On Fri, 07 Mar 2008 05:04:58 -0800, Ward wrote:
>
> Does anybody know if I can somehow have something similar in Lispbox?
> (maybe via emacs buffers ...)

It's already there. Just open a buffer and evaluate/compile stuff. See 
the Slime manual (google it).

-- 
Lars Rune Nøstdal
http://nostdal.org/
0
Reply larsnostdal (721) 3/7/2008 2:30:27 PM

On Mar 7, 7:04 am, Ward <warduse...@gmail.com> wrote:
> Hello,
>
> I have been experimenting a little bit with Lisp, using Lispbox
> (www.gigamonkeys.com/lispbox/), but experimenting is slow and
> intermittent because I find it awkward to *user-friendly* create
> code:
> - When I mistype something in a function, I have to retype the whole
> thing (or recall it from history), navigate to the correct position
> and correct what was wrong.
> - Furthermore, the "real" code and the things I try out are
> intermingled, which does not help me in seeing the whole "real"
> program.
>
> Last week, however, I discovered DrScheme (http://www.drscheme.org/).
> DrScheme features a *definition window* which contains your real code,
> and a separate interactive window to start your program or just try
> out things. This is just what I was looking for !!
>
> Does anybody know if I can somehow have something similar in Lispbox?
> (maybe via emacs buffers ...)
>
> thanks
> Ward

Have you watched the Slime screencast?  It demonstrates good use of
Emacs and Slime (which is what Lispbox has).  I wrote a guide to it,
and it includes links to the different ways to download it.  It's a
well spent hour.

http://www.pchristensen.com/blog/articles/reference-for-the-slimelispemacs-screencast/

-Peter
0
Reply peter.t.christensen (36) 3/7/2008 4:40:58 PM

 W> I have been experimenting a little bit with Lisp, using Lispbox
 W> (www.gigamonkeys.com/lispbox/ ), but experimenting is slow and
 W> intermittent because I find it awkward to *user-friendly* create
 W> code:
 W> - When I mistype something in a function, I have to retype the whole
 W> thing (or recall it from history), navigate to the correct position
 W> and correct what was wrong.
 W> - Furthermore, the "real" code and the things I try out are
 W> intermingled, which does not help me in seeing the whole "real"
 W> program.

when you have found it awkward, did you have a thought that you're misusing 
it?
did you have a thought to read the fucking book for which this lispbox was 
created?

in second chapter 2. "Lather, Rinse, Repeat: A Tour of the REPL" of Seibel's 
book: 
http://www.gigamonkeys.com/book/lather-rinse-repeat-a-tour-of-the-repl.html
you can find a description how people are actually using SLIME and it's REPL 
in non-awkward way.


0
Reply udodenko (1040) 3/7/2008 5:12:25 PM

On Mar 7, 1:04 pm, Ward <warduse...@gmail.com> wrote:

> Last week, however, I discovered DrScheme (http://www.drscheme.org/).
> DrScheme features a *definition window* which contains your real code,
> and a separate interactive window to start your program or just try
> out things. This is just what I was looking for !!

DrScheme was my original inspiration for ABLE (http://
phil.nullable.eu/) although it has since evolved along its own course.
You may like it although SLIME has many more features.

--
Phil
http://phil.nullable.eu/
0
Reply philip.armitage (169) 3/7/2008 8:31:37 PM

Thanks to everyone for all the suggestions. I'll try them out in the
next couple of days.

> when you have found it awkward, did you have a thought that you're misusing
> it?

Alex, yep I did, that's why I posted my question here (I rarely post
just for the fun of it :-)

> did you have a thought to read the fucking book for which this lispbox was
> created?

Nope, since I had read the book about a year ago, and I didn't recall
reading anything about this...

> in second chapter 2. "Lather, Rinse, Repeat: A Tour of the REPL" of Seibel's
> book:http://www.gigamonkeys.com/book/lather-rinse-repeat-a-tour-of-the-rep...
> you can find a description how people are actually using SLIME and it's REPL
> in non-awkward way.

....seems I was wrong though. I just quickly reread the chapter and
indeed the author points these things out. I must have been
overwhelmed by all the shortcuts at that time, still trying to make
sense of lisp, emacs, the REPL etc. Maybe a screenshot in the book
would have made it more clear?
0
Reply wardusenet (3) 3/8/2008 2:52:42 PM

7 Replies
28 Views

(page loaded in 0.146 seconds)


Reply: