Questions tagged [allegro-cl]

35 questions
9
votes
4 answers

Where should a Quicklisp QUICKLOAD go in my source? Nowhere?

Let's say I build an application on top of net.aserve and bordeaux-threads. My package declaration might look like this: (defpackage :my-package (:use :cl :net.aserve :bordeaux-threads) (:export …)) I use Quicklisp, so I run (ql:quickload…
Asherah
  • 18,948
  • 5
  • 53
  • 72
6
votes
2 answers

How can I do setf on a struct's accessors when using intern

I'd like to setf different fields of a struct depending on a certain variable. I decided to use the following approach: Generate a string with the field's accessor name: (setq my-string (format nil "STRUCT-ESTADISTICAS-NUM-~S" x)) and then use…
aitorpazos
  • 164
  • 1
  • 6
4
votes
3 answers

browse definitions in LISP

I am very new to LISP. I am using allegro-cl. I am having difficulty calling a function I have defined and loaded. I would like to know what are some ways I can browse the things I have defined, for instance listing all methods in a certain…
harschware
  • 13,006
  • 17
  • 55
  • 87
4
votes
2 answers

Handling concurrent file access in Common Lisp

Multiple users need to access the same directory of files using an interface created in Common Lisp. Many race conditions appear when this happens. For example, when more than one user adds or deletes a file with the same time. Is there a way…
4
votes
1 answer

AllegroServe Exception Handling

How can I avoid getting an error when passing as argument to the function do-http-request an invalid host. Is there any way that I can catch the error like the Java's exception-handling mechanism ?
utxeee
  • 953
  • 1
  • 12
  • 24
3
votes
1 answer

pprint in Allegro CL

I'm attempting to write a program in Common Lisp that dynamically creates other lisp files. Common Lisp's print function seems very useful for this purpose. Unfortunately, the function outputs data on a single line. For example (just printing to…
ElliotPenson
  • 354
  • 1
  • 10
3
votes
2 answers

Nested `defun` produces a repeated warning in Allegro Common Lisp

I have a generic implementation of merge sort in Common Lisp: I have different implementation of split and merge functions and, for each combination of a split and merge function I want to construct a merge sort function. Any split function takes a…
Giorgio
  • 5,023
  • 6
  • 41
  • 71
3
votes
1 answer

Can I use C++ Wrappers made in Allegro Common Lisp in SBCL or CLISP

I'm currently learning to wrap C++ code in Lisp so I can call C++ functions from Lisp. I'm learning about SWIG and I would like to know more about the Allegro Common Lisp part of SWIG. I'm using the Express(free) addition of Allegro now and it has…
user2368426
3
votes
2 answers

Allegro CL freezes when calling (read) function

Whenever I called the (read) function in Allegro Common Lisp 9.0 the Debug window "breaks" (I can't think of a more articulate term, sorry): the mouse becomes the spinning blue wheel of death, and the window refuses to evaluate any new input,…
ApproachingDarknessFish
  • 14,133
  • 7
  • 40
  • 79
2
votes
1 answer

Error: component "zip" not found

I'm trying to install the zip library. wonko:Desktop andrew$ alisp International Allegro CL Free Express Edition 8.2 [Mac OS X (Intel)] (Jan 25, 2010 14:49) Copyright (C) 1985-2010, Franz Inc., Oakland, CA, USA. All Rights Reserved. This…
mcandre
  • 22,868
  • 20
  • 88
  • 147
2
votes
1 answer

How to make Allegro Common Lisp case sensitive?

How do I make Allegro Lisp case sensitive. I've tried the following (setf (readtable-case rt) :default) but it doesn't work.
Lime
  • 13,400
  • 11
  • 56
  • 88
2
votes
1 answer

Weird non-lisp errors with capturing labels with a lambda and `reduce`

I stumbled across a very weird bug (?) while I was developing an application in Allegro Common Lisp, v9.0 for Windows. I do not get the regular lisp errors, instead I get system errors encapsulated in a lisp condition. I managed to create a simple…
MicroVirus
  • 5,324
  • 2
  • 28
  • 53
2
votes
1 answer

Creating a hidden file in Common Lisp

Since hidden files on a Unix platform simply start with a period, it is trivial to create one using Common Lisp. Hidden files on Windows machines are defined differently. They have a file attribute that indicates whether they are hidden. How can one…
ElliotPenson
  • 354
  • 1
  • 10
2
votes
1 answer

Installing quicklisp libraries in ALLEGRO-CL free edition

In Emacs on Ubuntu Raring.. I have SBCL loaded in Emacs because i use it all the time. I type (ql:quickload "ieee-floats") to load my first library on a freshly installed ACL in emacs after typing M-- M-x slime to load ACL and get this error: …
user2862490
2
votes
1 answer

Tree reconstruction using preorder and inorder in COMMON LISP

As I have been learning LISP and reading practical common lisp I have found problems and tried to solve them I have got stuck on this particular problem and am unsure of how to approach it so would like some help/advice. I need to be able to create…
user1850231
  • 21
  • 1
  • 4
1
2 3