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.
Use real programming language and you will not have such problems
Name:
Anonymous2011-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
Use real Lisp implementation and you will not have such problems
Name:
Anonymous2011-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.
>>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:
Anonymous2011-01-01 13:38
>>6
thats pretty nice, Im surprised I havent heard of Lisp Works before
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.
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:
152011-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/ )
>>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.
>>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.