4 ms·
This is a reasonable way to get a simple hello world up, but for those new to lisp, know that this isn't how most people develop. Firstly, it is rare to see th
by aidenn0 11y ago
This is a reasonable way to get a simple hello world up, but for those new to lisp, know that this isn't how most people develop.
Firstly, it is rare to see the SBCL REPL used directly.
Most commonly, lisp is developed via an IDE that will include a full-featured REPL (there are several; for sbcl SLIME is what is most commonly used. ClozureCL has its own IDE on OS X, and commercial lisp implementations will ship with their own).
GNU clisp has a more feature-full REPL, so you may see that used occasionally.
Secondly, lisp has a build system called ASDF. There is a tiny amount of code needed to setup a simple project, and there is a tool named "quickproject" that will generate it all for you. With all the improvements to ASDF in the past decade, I never do a "write lisp file, then load it" anymore.
- CodyReichert 11y agocl-project[0] is another nice project generator. It's mostly pretty similar - but I like the default layout and having a built-in test suite. 0 - https://github.com/fukamachi/cl-project https://github.com/fukamachi/cl-project
- WalterGR 11y agoGNU clisp has a more feature-full REPL, so you may see that used occasionally. For web programming? My understanding is that clisp doesn't support any kind of threading, which definitely makes it impossible to use at least Hunchentoot. And since this article is about Hunchentoot, my understanding is that using clisp will make it literally impossible to follow this article. EDIT: It looks like clisp has experimental threading support if you compile it correctly: http://www.clisp.org/impnotes/mt.html http://www.clisp.org/impnotes/mt.html So I guess the better question is: does Hunchentoot work on clisp?
- aidenn0 11y agoRegardless of whether hunchentoot works on clisp, the point was if you aren't using CLISP you're probably not developing in the REPL in a terminal.