A Lisp framework for the creation of electronic art, visual design and more
github.com
github.com
I'm very close to being able to run the examples, but I'm seeing the following issue when running `(ql:quickload :sketch)`: "debugger invoked on a LOAD-SYSTEM-DEFINITION-ERROR in thread #<THREAD "main thread" RUNNING {10039CE893}>: Error while trying to load definition for system st atic-vectors from pathname /home/peter/quicklisp/dists/quicklisp/software/static-vectors-1.6/static-vectors.asd: COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "cffi-toolchain" "toolchain" "asdf-compat">"
Any idea why that might be happening? AFAIK, I've installed the appropriate dependencies. I'm running Debian 8, Linux 3.16.0-4-amd64 and SBCL 1.2.4.
Static-vectors, on which Sketch depends, needs to have a working C toolchain (C compiler, linker, etc.) installed. Maybe that's the problem here?
If you do have the toolchain installed, and can call the compiler with "cc", then maybe sbcl's PATH is wrong. You can try copying your env PATH to .sbclrc:
(require :sb-posix) (sb-posix:setenv "PATH" YOUR-PATH-STRING 1)
I've got gcc 4.9.2 installed and tried adding both my $PATH and the path to gcc to .sbclrc using the above, to no avail.
Maybe I'm doing something incorrectly? (Quite possible, as I haven't used CL in a few years.)
Thanks, again, for your help!
Overall I think Clojure has taken most of what was good about lisp and turned it into a much more usable and friendly environment.
Which is one of the things the Processing[0] environment, whose API this apparently mimics, does better than most other applications I think: you download the PDE, a (completely portable) application, and when you open it you immediately see a basic notepad with a big "Compile And Run" button above it. None of the not-yet-relevant stuff you might see in a more overwhelming IDE[1].
EDIT: comment sniped by giancarlostoro! Dr Racket is a good point of comparison too, for sure!
> Clojure actually has a few Linengen packages for this stuff, Overtone is one I recall for music/sound and Quil for visual design/art. Luminus is great for webapps as well. Overall I think Clojure has taken most of what was good about lisp and turned it into a much more usable and friendly environment.
There's also thi.ng[2]. I'm very curious to see how all of these compare, tbh.
[1] https://processing.org/tutorials/gettingstarted/
[2] http://thi.ng/
>Overall I think Clojure has taken most of what was good about lisp and turned it into a much more usable and friendly environment.
For creative coding I completely agree. I think it's a much more rewarding environment than Processing, both from a programming point of view, and also creatively.
Because if not, it is an entirely unusable and hostile environment.
And though this package may involve a lot of manual setup right now, once it's in quicklisp it'll be just as easy as what Linengen offers.
(ql:quickload 'package-name)Seriously, what kind of pre-done setup one needs these days? Even PDE-style package can be prepared for this with CL-launch and some editor support, and the editor is probably going to be biggest issue (if not using SLIME and Emacs).
I'm building a new lisp. It's not ready to show yet, but we're aiming for "Someone running Windows using notepad.exe can still have a good dev experience." We've been calling this "devex" (developer experience) and set out to specifically focus on this area. Mostly out of curiosity, but also to see whether it's a fruitful approach in general.
It uses npm as a package manager, so the setup instructions to install any library are the same: "npm install foo --save". You can then open a REPL, type (require 'foo) and begin using that library. There's also a Homebrew formula for setting it up, for those who don't have npm, so library authors could take the same approach and offer a way to "brew install" their library. I imagine we'll provide a mechanism to make this easy.
It took about six months of focused effort to achieve that, and no one should feel obliged to go through the trouble. But it was doable, and it's pretty exciting to see it work.
Performance was the other objective, which also turned out to be achievable. It comes with several example programs, one of which is a software rasterizer that pushes 7 million pixels/sec. It's 200 lines of code, entirely Lisp. Seeing a smooth 60fps without spending any effort at all on optimization was very interesting.
That sounds interesting. Is it SugarLisp? If not, please announce it also at HN.
[1] http://www.loper-os.org/?p=42
EDIT - added link1. Install runtime (JVM/CL implementation)
2. Install dependency loader (Leiningen/Quicklisp)
3. Install any native libraries required.
4. Get the package itself.
The last step is currently manual, but will be automated once Sketch is in a Quicklisp dist.