Where is source file of IDE? Is it open-source ?

Q&A's, tips, howto's
Locked
wendal
Posts: 2
Joined: Tue Mar 20, 2012 9:27 am
Contact:

Where is source file of IDE? Is it open-source ?

Post by wendal »

Where is source file of IDE? Is it open-source ?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: Where is source file of IDE? Is it open-source ?

Post by Lutz »

The IDE consisting of newlisp-edit.lsp, guiserver.lsp and the java based guiserver.jar is open source, licensed under the GPL. The source can be found in the source distribution newlisp-10.4.0.tgz in the guiserver and guiserver/java directories.

semperos
Posts: 12
Joined: Thu Mar 15, 2012 4:50 am

Re: Where is source file of IDE? Is it open-source ?

Post by semperos »

For any other newbies out there (like myself), took me a few minutes to figure out where/how to start the IDE.
  • Download the source tarball and extract
  • Go to the guiserver/ folder
  • Run the following:

Code: Select all

java -jar guiserver.jar <port> newlisp-edit.lsp
Obviously replacing <port> with a port number (47011 is a guiserver default).

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: Where is source file of IDE? Is it open-source ?

Post by Lutz »

When newLISP is installed normally, either using the binary installers or doing a 'make install' after building, it is even easier.

either on any OS

Code: Select all

newlisp newlisp-edit.lsp
or instead of newlisp-edit.lsp, which is the IDE, use any other of the demo or your own graphics programs.

On UNIX like OSs newlisp-edit.lsp is also installed as an executable script as /usr/bin/newlisp-edit and you can do:

Code: Select all

newlisp-edit

semperos
Posts: 12
Joined: Thu Mar 15, 2012 4:50 am

Re: Where is source file of IDE? Is it open-source ?

Post by semperos »

Good to know. I installed newLISP using the standard Mac OSX installer, and I have the newlisp-edit executable, but I don't seem to have newlisp-edit.lsp anywhere on my file system. Did a `cd / && find . -name newlisp-edit.lsp` just to make sure.

I assume it would normally be tucked away in "/usr/share/newlisp" ?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: Where is source file of IDE? Is it open-source ?

Post by Lutz »

Only on the Windows installation, the file is named newlisp-edit.lsp. On Unix the same file gets renamed and installed without the .lsp extension as /usr/bin/newlisp-edit.

Locked