Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

compiling/running in clisp

Name: Anonymous 2011-01-01 1:16

Id like to know the commandline arguments to compile and run a .lisp file in clisp. I found that:
clisp -c filename.lisp
turns the file into a .fas object file, but I cant figure out how to turn the .fas into an executable. Incidently I found that clisp puts the compile and excute commands in a the windows menu when you r-click on a .lisp file. If someone knows of the commandline args for compiling and running in another implementation like SBCL, that would be good also.

Name: Anonymous 2011-01-01 3:48

Use real programming language and you will not have such problems

Name: Anonymous 2011-01-01 10:41

>Use real programming language and you will not have such problems
its ironic you would say that because that is my motivation for learning Lisp, is that the syntax always makes sense no matter how advanced I get in the language I can always see practical value for the syntax. Whereas with C the language seems to have incomplete syntax and Im expected to learn syntax which just seems to just patch over what is incomplete in the language and I have to accept on an act of faith that Im going to receive some kind of benefits for learning to code like that.

anyways, I want to put off having to learn emacs/slime until I know Im making good headway with Lisp, because emacs/slime is practically like learning a programming language in itself. I just want to start out using Scite or Geany

Name: Anonymous 2011-01-01 12:45

Use real Lisp implementation and you will not have such problems

Name: Anonymous 2011-01-01 13:08

>>4
sofar clisp and sbcl are the only two implementations Ive found that are ported to windows. I also installed gcl but for some reason the desktop icon cant find the gcl batch file.

Name: Anonymous 2011-01-01 13:24

>>5
sbcl on windows is not the first choice, clisp is the slowest and toyest on them, you should not even consider gcl as its existance is redundant, because clisp is already GNU/Freedom software.
Try LispWorks.

Name: Anonymous 2011-01-01 13:38

>>6
thats pretty nice, Im surprised I havent heard of Lisp Works before

Name: Anonymous 2011-01-01 13:57

>>7
That's because LispWorks is proprietary, so opensource weenies don't like it much.

Name: Fuck off, !Ep8pui8Vw2 2011-01-01 16:15

opensource weenies
eat shit and dieyou cocksucking faggot i hope you die in a fucking fire

Name: Anonymous 2011-01-01 16:20

$ man clisp

Name: Anonymous 2011-01-01 16:32

>>10
Im on windows

Name: Anonymous 2011-01-01 16:49

>>11
That shit will fuck you up. Get clean while you still can.

Name: Anonymous 2011-01-01 17:06

>>12
Im on XP and I *will* jump ship, MS is dying, just need a little more programming skills to make it worth my while

Name: Anonymous 2011-01-01 17:23

>>11

help clisp

Name: Anonymous 2011-01-01 22:47

Use one of the following: ClozureCL (LLGPL), SBCL (public domain), Allegro CL(commercial), Lisp-Works(commercial), CLISP(GPL), CormanLisp(commercial). Most of the commercial ones come with full or partial source as well (when bought). Of those listed, they all work on Win32, but some lack some things (SBCL lacks threading, unless you use an unofficial port). There is also one commercial *nix-only implementation called SCL which specializes in efficient threading.

Also, if you knew Lisp, you'd know that the compiler API is specified in CL, so you shouldn't compile stuff like that, but use compile-file, load, compile] functions and so on, or better yet, use a system definition facility like ASDF. If you need to save an executable, most Lisp implementations provide this, for example in SBCL, it's called: save-lisp-and-die.

I suggest you learn the language before you dive into making executables/runtime images/etc as that's more of a deployment (deliver to customers, etc) thing and a programmer might find it a lot more comfortable to interface with your program from the REPL.

Name: Anonymous 2011-01-01 22:56

so you shouldn't compile stuff like that, but use compile-file, load, compile] functions and so on
yes, thats actually what I want, just to be able to run files instead of doing everything in the repl

Name: 15 2011-01-02 0:13

>>16
Making runtime images or compiling into executables differs from CL implementation to implementation. I also forgot another option, which you might like since it's tiny: ECL ( http://ecls.sourceforge.net/ )

Name: Anonymous 2011-01-02 0:41

Clisp is ok for domain specific solutions, but it doesn't adequately address the issue of multiple-inheritance out of the box.

Name: Anonymous 2011-01-02 1:12

>>18
But it does. Multiple inheritance is addressed quite well within CLOS (part of CL), and it's also very customizable to the point that you can make anything you want out of it using the MOP.

Name: Anonymous 2011-01-02 1:35

>>19
FUCK YEAR ICECREAM SNADWICHES

Name: Anonymous 2011-01-02 1:41

>>17
ECL is Embedded Common Lisp, I think its meant to be compiled directly onto a chip rather than run on an OS

Name: Anonymous 2011-01-02 1:44

>>21
it's meant to be embedded in programs as extesion language.

Name: Anonymous 2011-01-02 2:39

>>21
ECL is just a more simpler CL which compiles to C, and since there's just about anything has C compilers, it can run just about everywhere. It can of course be embedded in other C applications, but it can also run as stand-alone.

Name: Anonymous 2011-01-02 2:40

-there's

Name: Anonymous 2011-01-02 14:56

>>1
You're doing it wrong. Why would somebody learning Lisp need to produce an executable? Any why don't you just look in the manual?

Name: Anonymous 2011-01-02 17:33

>>25
You're doing it wrong.
I already admitted that, see here: >>16

Any why don't you just look in the manual?
I did, here:
http://www.gnu.org/software/clisp/impnotes/clisp.html
and the only thing I found in the manual was the -c flag

Name: Anonymous 2011-01-03 20:45

>>26
I'm not looking for an admission. I'm just letting you know.

And here's the correct part of the manual.
http://clisp.sourceforge.net/impnotes/image.html

Name: Anonymous 2011-01-04 0:37

>>27
ah thanks

Don't change these.
Name: Email:
Entire Thread Thread List