Is there an ideal programming cycle for newLISP?

Started by dukester, May 08, 2007, 10:29:11 AM

Previous topic - Next topic

dukester

Hey all.....



I'm new to newLISP! I'm wondering if there's an ideal way to program in newLISP? With some other languages that I've used, I typically have to windows open:

1. vim editor

2. compiler



I edit my source code in one window; ALT TAB to the next window; UP ARROW for the latest CLI command (i.e. newLISP whatever.lsp); program output; ALT TAB to editor.



Is that what you guys do? I realize that some editors have the capability of piping the the current file  to a pre-defined compiler. Sometimes setting these up can be a PITA ;)



Anyway, TIA for any pointers/suggestions/comments.L8r...
duke

HPW

#1
SHX in the last post here before yours ask similar questions:



http://www.alh.net/newlisp/phpbb/viewtopic.php?t=1637">http://www.alh.net/newlisp/phpbb/viewtopic.php?t=1637



Myself I use mostly ultraedit.

Sometimes also newlisp-tk.
Hans-Peter

Lutz

#2
At the end of this page:



http://www.turtle.dds.nl/newlisp/index.html">http://www.turtle.dds.nl/newlisp/index.html



you find a nice screenshot of running a shell inside a split window in Vim.



Lutz

Lutz

#3
... and you find more about editor support here:



http://newlisp.org/index.cgi?Code_Contributions">http://newlisp.org/index.cgi?Code_Contributions



Lutz

dukester

#4
Quote from: "Lutz"At the end of this page:



http://www.turtle.dds.nl/newlisp/index.html">http://www.turtle.dds.nl/newlisp/index.html



you find a nice screenshot of running a shell inside a split window in Vim.



Lutz


I use Vim a lot when I'm on my FreeBSD box. So you edit the source code with Vim. You run the code from another xterm window? Or from within Vim itself? Never done the latter - how do you get _that_ to happen?
duke

cormullion

#5
late but....



I usually edit in an editor (TextWrangler at present) and hit the 'run' command. It works fine. Recently, trying to track down some error of mine, I've started running functions in the terminal. So:



[ I'm editing then I save ...]

[ Command-Tab to terminal running newlisp]

> (load "file.lsp")

> (debug (function-exp))



and then I'm in the debugger, stepping through the function. Although the debugger is simple, I like that simplicity.



I've put


(trace-highlight "27[0;32m" "27[0;0m")

into my init.lsp file, because I can never remember the codes. Now, when tracing a function, the current expression is in green... I'm starting to appreciate the way you can type in any expression at any point in the executing code.

alex

#6
to cormullion

You have ANSI-console in Windows?



I want too :-)



my variant
(trace-highlight "219219" "219219")

cormullion

#7
no. Don't even have Windows... :-)



I was merely trying to say that I use an editor and then debug in a terminal. Sorry if i suggested otherwise...!

dukester

#8
Quote from: "cormullion"late but....



I usually edit in an editor (TextWrangler at present) and hit the 'run' command. It works fine. Recently, trying to track


So this 'run' command must be equivalent to other editors' tools option which allow you to set up a compiler/interpreter to execute the code?


Quote from: "cormullion"
down some error of mine, I've started running functions in the terminal. So:



[ I'm editing then I save ...]

[ Command-Tab to terminal running newlisp]

> (load "file.lsp")

> (debug (function-exp))



and then I'm in the debugger, stepping through the function. Although the debugger is simple, I like that simplicity.




Yep! that's what I've done in other languages in the past.




QuoteI've put


(trace-highlight "27[0;32m" "27[0;0m")

into my init.lsp file, because I can never remember the codes. Now, when tracing a function, the current expression is in green... I'm starting to appreciate the way you can type in any expression at any point in the executing code.




Cool. Ill have to try this.
duke