sbcl

How do I display an image with ltk?

I have written code to read a windows bitmap and would now like to display it with ltk. How can I construct an appropriate object? Is there such functionality in ltk? If not how can I do it directly interfacing to tk? ...

SBCL on Vista crashes. Do you know how to make it work?

I've searched a lot for an answer for this question in the web: they say it's true, SBCL doesn't work under Vista. But I really need to work with lisp on my home Vista laptop and VM doesn't help really... And CL is not so interesting because of speed... If you have any recommendation, please share! ...

Does Common Lisp have a something like java's Set Interface/implementing classes?

I need something like this, a collection of elements which contains no duplicates of any element. Does Common Lisp, specifically SBCL, have any thing like this? ...

Cross-compiling with SBCL

I have SBCL running on a Ubuntu machine. I want to write a little program that I want to give to a friend who has only Windows running. What is the quickest way to cross-compile it on my machine into a "standalone" windows program (i.e. the usual runtime+core combination)? ...

Getting started with SLIME and SWANK: Lisp connection closed unexpectedly: connection broken by remote peer

Hello people. I was trying to use the slime-connect function to get access to a remote server with sbcl. I followed all the steps from the slime.mov movie from Marco Baringer, but I got stuck when creating the ssh connection for slime. This is after already starting the swank server on the remote machine. I did it like this: ssh -L 4005...

Lisp: Need help getting correct behaviour from SBCL when converting octet stream to EUC-JP with malformed bytes

The following does not work in this particular case, complaining that whatever you give it is not a character. (handler-bind ((sb-int:character-coding-error #'(lambda (c) (invoke-restart 'use-value #\?)))) (sb-ext:octets-to-string *euc-jp* :external-format :euc-jp)) Where *euc-jp* is a variabl...

How does one use SBCL's SB-SPROF allocation profiling?

Update: Upgrading to SBCL 1.0.24 fixed my problem. (Though I also needed to upgrade SLIME to the 11-23-2008 revision. The stable 2006-04-20 revision, as well as the head of CVS don't seem to work with SBCL 1.0.24.) The documentation for the SBCL statistical profiler indicates that you can profile memory allocation in addition to CPU u...

Weird HTTP problem/mistake with Lisp

I'm attempting to learn a little more about handling sockets and network connections in SBCL; so I wrote a simple wrapper for HTTP. Thus far, it merely makes a stream and performs a request to ultimately get the header data and page content of a website. Until now, it has worked at somewhat decently. Nothing to brag home about, but it a...

How to convert byte array to string in Common Lisp?

I'm calling a funny API that returns a byte array, but I want a text stream. Is there an easy way to get a text stream from a byte array? For now I just threw together: (defun bytearray-to-string (bytes) (let ((str (make-string (length bytes)))) (loop for byte across bytes for i from 0 do (setf (aref str i) (code-c...

Common Lisp GUI Programming With System Calls

Can anyone tell me about using (Steel Bank) Common Lisp for writing GUIs via system calls? I know there are some libraries out there but this is a language learning exercise, so I want to do it myself. I'm developing on Kubuntu 8.10 and SBCL 1.0.18. Thanks. ...

Can one make CUSP use one's own SBCL?

I've already got slime+emacs+sbcl running (SBCL 1.0.23) on my Windows XP machine. CUSP installs with SBCL 1.0.6. Is there a way to make CUSP use the existing SBCL installation instead of its own? ...

Common Lisp: The Remove Function, how is it used?

I have a query request-uri in the form of "/node/143" (just an example of the format). I want to strip the first forward slash from the string, I looked up the function remove and had a try. I just can't seem to get it working (I'm using SBCL on Linux). I've set the request-uri using this code. (setq request-uri "/node/143") When I ...

Coping with, and minimizing, memory usage in Common Lisp (SBCL)

I have a VPS with not very much memory (256Mb) which I am trying to use for Common Lisp development with SBCL+Hunchentoot to write some simple web-apps. A large amount of memory appears to be getting used without doing anything particularly complex, and after a while of serving pages it runs out of memory and either goes crazy using all...

AllegroServe on SBCL 1.0.28 failing with `accept invalid keyword argument: :AUTO-CLOSE`

New version of SBCL 1.0.28 running on debian breaks AllegroServe 1.2.47 on incoming connection with following error: aserve-accept-6: 05/26/09 - 21:11:01 - accept: error 0 on accept invalid keyword argument: :AUTO-CLOSE (valid keys are :INPUT, :OUTPUT, :ELEMENT-TYPE, :EXTERNAL-FORMAT, ...

How efficient is SBCL for storing big graphs?

How much does the garbage collector affect performance when working with lots of objects in memory, how big is the memory allocation and dealocation overhead? Is it wise to use SBCL to do this or is better to build a small C library to connect trough FFI? ...

What is the difference between '(a b c) and (list 'a 'b 'c)?

I am reading "On lisp" and encounter this code (I simplified a bit). CL-USER> (defun foo () '(a b c)) FOO CL-USER> (foo) (A B C) ...

SBCL standard library documentation?

I want to learn and use SBCL because of its ease of learning and speed. (I've been playing with Lisp 3 years ago, and now am refreshing it.) But how can I learn what's included in the standard library, so that I don't re-implement things? After Python this is like a nightmare: the SBCL website has a manual that covers the software only,...

How to make a list of arrays, not their symbols, in Lisp?

I'm trying to make a function to get a delta between arrays, but right now just want to make a subset: get Nth element. (defvar p1 #(1 2)) (defvar p2 #(3 4)) (mapcar '(lambda (x) (aref x 0)) '(p1 p2)) debugger invoked on a TYPE-ERROR in ... The value P1 is not of type ARRAY. The same error if I make it with make-array. How do...

Hunchentoot 1.0 returns only empty responses

I'm using an Intel Mac with Mac OS 10.5 and SBCL 1.0.29. I've done pre-1.0 Hunchentoot development here before, so I've had that installed (via asdf-install). Recently I started a new project, and decided I'd start from Hunchentoot 1.0. I asdf-install'ed Hunchentoot, and it seemed to install 1.0 (and deps) just fine. I can load it in...

Connect SBCL on Windows to SQL Server using Integrated Authentication

What is the path of least resistance in getting an SBCL application running on Windows to connect to a SQL Server instance, using integrated authentication? I have found posts on connecting from CL-SQL to SQL Server using ODBC connections but as far as I can tell, there is no way to this without first manually setting up a DSN. Is ther...