Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
80 views

Common Lisp: performance issues with reading lines from *standard-input*

Long story short, I need to process 100 Gigabytes of logs in a weird format, then do some analysis on the results. Chose CL as my tool, because I'm already "comfortable" with it, despite not ...
1 vote
1 answer
57 views

OpenBLAS gemm 2x slower in Lisp CFFI compared to direct C calls with same BLAS library

I'm experiencing a significant performance difference where OpenBLAS matrix multiplication runs 2x slower when called through Lisp CFFI compared to direct C calls, despite using the exact same ...
2 votes
3 answers
96 views

Can a symbol be aliased in Common Lisp?

Context In Common Lisp, symbols are how names are bound to functions and variables and macros and a bunch of other stuff. I've been working with Parenscript, which is a DSL that compiles to Javascript....
1 vote
1 answer
30 views

Common Lisp: SWANK::*READTABLE-ALIST* is unbound

While working on the REPL I didn't encounter this error, but when building my program or running it from sources I did: SWANK::*READTABLE-ALIST* is unbound
Ehvince's user avatar
  • 18.6k
2 votes
1 answer
163 views

How do I measure performance of Lisp code?

I'm trying to discern how much performance gains I would achieve by converting Lisp (SBCL) code to assembly language. The time function on SBCL keeps giving counterintuitive results even for trivial ...
5 votes
2 answers
257 views

Signal handling in multi-threaded scenario [closed]

I'm trying to revive Hemlock, which now appears abandoned (original author has been absent for some time now). Mostly this has been a straightforward process of clearing out the bit rot, but I'm now ...
-1 votes
1 answer
97 views

I can't see why Steel-Bank Common Lisp thinks a string is a function in my code [closed]

I am using a Windows 11 computer, running Steel Bank Common Lisp (version 2.0.0) in PowerShell by inputting functions directly into the SBCL.exe REPL to see if they work. In the process, I have hit ...
1 vote
0 answers
130 views

Why is single quote a terminating, instead of a non-terminating, macro character in Common Lisp?

Please correct any misapprehensions about Common Lisp syntax/parsing you see below ; I am not sure I fully understand it. In Common Lisp, it seems you cannot have (unescaped) function or variable ...
cjs's user avatar
cjs
  • 27.8k
1 vote
1 answer
57 views

In Lisp can't make-instance because :name isn't provided

This code creates an error: The slot COMMON-LISP-USER::NAME is unbound in the object #<THING {1002B830F3}>. I tried sbcl and clisp, both creating same problem. I can initialize instance of ash ...
1 vote
1 answer
85 views

LISP macro indentation for sub-expressions?

I'm using Emacs, and I have a macro that's like a switch for regexes, and runs an expression with variables bound to match results. The indentation isn't what I'd like but I can't find if there's a ...
2 votes
1 answer
73 views

Let-binding *read-default-float-format* not having effect in another thread?

I don't know if I am clear in the title, but here me out. I have a package in which I bind *read-default-float-format* to 'double-float. So far so good. When I load the library into fresh SBCL process ...
1 vote
0 answers
58 views

Dexador (usocket, fast-http) "INVALID-VERSION: invalid HTTP version"

Anyone got this issue? A working HTTP request with Dexador now fails: (dex:get url) 0: (FAST-HTTP.PARSER:PARSE-RESPONSE #<unavailable argument> #<unavailable argument> #<...
Ehvince's user avatar
  • 18.6k
3 votes
2 answers
66 views

Lisp: Iterating over slots with a macro

With this: (defclass test-class () ((data :initarg :data) (other :initarg :other))) (defmethod test ((tc test-class) &key) (macrolet ((print-slot (slot) `(with-slots (,slot) ...
2 votes
2 answers
141 views

Parsing a word with combining diacritics in cl-ppcre

I need to parse a word that contains combining diacritics, namely the #\COMBINING_ACUTE_ACCENT. The following string "Changement de Régime" contains 21 characters, since the 16th is the ...
1 vote
2 answers
98 views

Common Lisp special variables in closure

I'm stumbling on a problem to capture special variables: This works: (let ((a 2)) (declare (special a)) (funcall (lambda (x) (declare (special a)) (+ a (* x 3))) 3)) => 11 But ...

15 30 50 per page
1
2 3 4 5
...
428

AltStyle によって変換されたページ (->オリジナル) /