u/mirkov19

What are rank-0 arrays used for?

I recently learned one can do:

What is this type of construct used forCL-USER> (make-array '() :initial-contents '(0 1 2))

#0A(0 1 2)
CL-USER> (aref *)
(0 1 2)
CL-USER> (array-rank **)
0 (0 bits, #x0, #o0, #b0)
CL-USER> (array-dimensions ***  )
NIL

What is this type of array used for?

reddit.com
u/mirkov19 — 10 days ago

Need a working example for lisp-stat/vega qplot/make-plot

Hello,

I am working on including Lisp-Stat's plotting into my workflow. I cloned the repo's last night - I am not using the quicklisp distribution.

While I can get working examples with vega:defplot, I cannot get examples using qplot to work.

I understand that since quick-plot was merged into lisp-stat, the interface has changed.

Maybe I am too old, but I just cannot get the hang of the new interface. With `qplot` I get a warning

  WARNING: QPLOT is deprecated as a constructor entry point; prefer VEGA:MAKE-PLOT / MAKE-PLOT with the high-level data-plus-fragments path for new code.

and with vega:make-plot I get

  ; Debugger entered on #<SIMPLE-ERROR "Legacy positional MAKE-PLOT forms have been removed; use MAKE-PLOT :BASE for lower-level construction, or pass data first for the high-level authoring path." {70075D5223}>

Can someone kindly find share link with a working example or post one or two examples to get me going?

My and my ChatGPT will be greatful :-)

reddit.com
u/mirkov19 — 24 days ago

Library for equality testing of floating vectors?

Hello,

I am doing some numerical computations (in APRIL no less). I use floating-point for numerical equality testing and I am using 5AM for unit tests.

I want to test equality of vectors of floating point numbers. I can write the code myself, but I'd rather reuse an existing library or contribute to an existing library.

I will appreciate pointers and advice before I start writing my own routines.

Thank you,

u/mirkov19 — 1 month ago

ros install github-user/package went into .roswell/local-projects/github-user/package

Hello,

I was installing the dual-numbers package from github - they are not in quicklisp

https://github.com/jrm-code-project/dual-numbers

The reason I ask is that I installed a library from GitHub like so

ros install jrm-code-project/dual-numbers

I expected it to be installed in ~/.roswell/local-projects, but instead it was installed in ~/.roswell/local-projects/jrm-code-project

So ASDF & quicklisp could not find it. I had to create a symlink from local-projects/jrm-code-project/dual-numbers to local-projecs/dual-numbers.

So, my problem is solved, but I am surprised by this behavior. Is that expected?

The documentation I looked (https://fukamachi.hashnode.dev/day-2-roswell-install-libraries-and-applications) says that stuff from GitHub should go into local-projects.

Can you offer an explanation on why it was installed in the jrm-code-project?

u/mirkov19 — 4 months ago

Looking for a post on CL setup hierarchy: hardware/OS/Lisp/Package Manger/API/Config

I am looking for a recent post (2-3 months back) that very nicely broke down a CL installation into a hierarchy of specifications. It went something like

  • Hardware/CPU
  • OS, Shell, environment variables
  • Lisp implementation
  • Lisp package manager
  • Editor & API

I asked CoPilot to help me find it, and it was not able to. It generated its guess on the hierarchy which seemed reasonable. I will not post it because I don't want to pollute Reddit.

I will be very grateful if someone points me to the post (& the author).

Thank you very much,

Mirko

reddit.com
u/mirkov19 — 5 months ago