common-lisp Questions

4

Solved

I'm having some difficulty finding an answer to this, so maybe it isn't possible. I'd like the flexibility of being able to load/compile a lisp file from a command line, i.e. not inside emacs, and ...
Pentyl asked 30/11, 2013 at 14:56

3

Solved

How do we convert elegantly between arbitrarily nested lists and arrays? e.g. ((1 2 3) (4 5 6)) becomes #2A((1 2 3) (4 5 6)) and vice versa
Gumbotil asked 3/3, 2012 at 20:24

5

I would like to start a timer in my common lisp application that after a certain amount of time it will call a certain method. What would be the best way to accomplish this?
Eldredge asked 31/12, 2009 at 19:33

1

Solved

In one variant of Common Lisp (I think it was CMUCL, but I might be wrong—I can't find it any more) there was a function that was (I think) called function-lambda-expression. If it got a procedure,...
Felixfeliza asked 1/2, 2020 at 7:10

5

Solved

I want to read input from STDIN, and just read what it is: if input is a list, then what is read is a list. However, the read-line function seems always return a string! For example: in clisp inte...
Bailes asked 19/4, 2011 at 19:49

4

Solved

Why is the function/macro dichotomy present in Common Lisp? What are the logical problems in allowing the same name representing both a macro (taking precedence when found in function position in ...
Superstratum asked 30/7, 2011 at 12:45

3

Solved

I have a loop containing several variables; one of them is incremented at each step. Sometimes however, this variable may be reset to 0. Thus I can write: (loop with z = 0 ... do (progn (setq ...
Ruysdael asked 3/1, 2020 at 14:41

4

Solved

How can I split a string by a delimiter in Common Lisp, like is done in SPLIT-SEQUENCE, but also add the delimiter in the list of strings? For example, I could write: (split-string-with-delimiter ...
Reprieve asked 29/12, 2019 at 2:37

4

I heard some of my classmates talking about how they used the function gensym for that, I asked them what it did and even checked up online but I literally can't understand what this function does ...
Intercessory asked 26/12, 2019 at 20:10

3

Solved

Is there some function similar to PHP's str_replace in Common Lisp? http://php.net/manual/en/function.str-replace.php
Satterlee asked 6/12, 2010 at 13:5

5

In Common Lisp, is there a way to get the path to a compiled file (something like current-directory)? The file is not inside the current-directory folder.
Propose asked 7/12, 2011 at 2:2

1

I am having some issues in enabling CORS on hunchentoot: (hunchentoot:define-easy-handler (one-api :uri *one-endpoint*) () (when (boundp '*acceptor*) (setf (hunchentoot:header-out "Access-Cont...
Exclave asked 4/12, 2019 at 14:23

4

Solved

In my ongoing quest to learn lisp, I'm running into a conceptual problem. It's somewhat akin to the question here, but maybe it's thematically appropriate to lisp that my question is a level of abs...
Zacek asked 9/12, 2019 at 7:38

2

Solved

I had used cl-ppcre package recently and I am very curious about how they optimize this package because I want to learn optimizing common lisp. I notice they use Sharpsign Dot a lot in declare expr...
Marthmartha asked 22/11, 2019 at 23:17

12

Solved

Most of my Lisp experience comes from Elisp. As such, I find myself writing Lisp only on occasion. By the time I come back to it, I often forget the difference between car and cdr and need to refer...
Walden asked 20/8, 2009 at 2:40

4

Newbie question in Common Lisp: How to make my procedure to return distinct procedural object with its own local binding each time call? Currently, I use let to create the local state, but two fun...
Anglice asked 16/11, 2019 at 4:51

6

Solved

I'm writing a simple web scraper in Common Lisp (SBCL) as a learning exercise, & would like to sort by date. To do this, I'll need to parse dates in the format "MM/DD/YYYY" into universal time....
Estipulate asked 2/5, 2011 at 7:12

9

Solved

Are there any Common Lisp implementations for .Net?
Funerary asked 21/9, 2008 at 7:0

2

I read that CL supports optional typing (as in the language has this feature) which I would assume allos for faster code in many cases, but I can't seem to find anything about actually writing type...
Steamroller asked 31/5, 2017 at 9:5

3

I couldn't find any documentation on how to dispatch based on HTTP method (on the same uri). The closest I got was :default-request-type on the define-easy-handler -- but it seems to dispatch to th...
Corley asked 27/9, 2013 at 23:50

3

Solved

When multiple steps are required in the calculation of a value, I have a tendency to use (let*) to declare multiple versions of a variable, thus: (let* ((var 1) (var (* var 2)) (var (- var))) (...
Bag asked 9/10, 2019 at 23:36

6

Solved

Is it possible to call a Common Lisp function in iOS? If so, is it possible create it in a dynamic library?
Kitchen asked 30/10, 2010 at 19:40

6

Solved

I want to convert ("USERID=XYZ" "USERPWD=123") to "USERID=XYZ&USERPWD=123". I tried (apply #'concatenate 'string '("USERID=XYZ" "USERPWD=123")) which will return ""USERID=XYZUSERPWD=123". B...
Bonaparte asked 12/1, 2012 at 6:12

5

Solved

I've been developing with Common Lisp for almost a year now, and this is really starting to get on my nerves. I started programming CL using CLISP, but I later switched over to SBCL for speed. I do...
Bustamante asked 23/12, 2012 at 16:13

2

Solved

I'd like to write a Clojure with-test-tags macro that wraps a bunch of forms, and adds some metadata to the name of each deftest form - specifically, add some stuff to a :tags key, so that I can pl...
Kuhlman asked 30/8, 2011 at 9:9

© 2022 - 2024 — McMap. All rights reserved.