lszanto wrote:Hey, I'm an average programmer from Australia. I've become interested in learning Lisp as I see it as a challenging and powerful language that would be useful to learn. The issue I'm having is I want a basic setup to learn and be able to create some programs in lisp or common lisp but I do not want to use an editor like emacs or vim as I simply prefer a simple text editor like Gedit or Jedit. I am on linux but also have windows avaliable if I really need it. So does anybody know of any guides or ways of creating a simple environment with command line/text editor use instead of emacs or vim?
Thanks in advance, Luke
To answer your question:
- Code: Select all
~ $ cat hello.lisp
(write-line "Hello, world")
~ $ sbcl --script hello.lisp
Other implementations often have similar ways of running from the command line. As others have said, the REPL is a better commandline in Lisp than a shell prompt. Lisp is usually written and compiled and run one function at a time rather than one file at a time. This takes a while to get used to but it has a lot of advantages. It's easier to inspect and debug things, for example.
Paul Donnelly wrote:What makes Emacs so confusing compared to Eclipse? It sure looks simpler to me. A window, some code. And a menu and tool bar for people who haven't turned them off yet.
The arcane terminology (frame, window, point, buffer), non-standard keybindings, kill ring, undo system, buffer model, configuration system, etc. Learning Emacs was one of the most painful things I can remember doing. I think it was worth it but I also understand when non-masochistic people don't want to go there.