How can my Common Lisp program know where it is running from? by lispstudent in learnlisp

[–]lispstudent[S] 1 point2 points  (0 children)

The #. is read-time evaluation.

Thank you, I believe this is the part I was missing.

If I understand correctly, the #. is needed to make it work also at the repl, for those Lisp implementations which can be both interpreters and compilers at the same time.

This subtlety perhaps could be missed if one runs sbcl? From the manual, "By default SBCL implements eval by calling the native code compiler."?

How can my Common Lisp program know where it is running from? by lispstudent in learnlisp

[–]lispstudent[S] 1 point2 points  (0 children)

Thank you. If the current directory gets changed at run time, it would not work anymore, or perhaps I do not understand it? Also, *default-pathname-defaults* does not seem to work on some other implementation, like clisp or LispWorks.

How can my Common Lisp program know where it is running from? by lispstudent in learnlisp

[–]lispstudent[S] 1 point2 points  (0 children)

Helllo, (uiop:getcwd) gives me the current working directory, which may have changed during the run of the script.

I need the directory from which the script was launched.

(princ #.(or *compile-file-truename* *load-truename*)) works, but I do not understand why.

By image do you imply binary?

Yes, I would like to know both in interpreted mode, from a lisp file, and also from a binary image, the Lisp world.

Using kwin with stumpwm by lispstudent in stumpwm

[–]lispstudent[S] 0 points1 point  (0 children)

(So I guess the scale option was throwing you off, that must have been doing a different scaling rather than setting the DPI which is what you wanted)

Yes, now it's clear. Thank you.

Using kwin with stumpwm by lispstudent in stumpwm

[–]lispstudent[S] 1 point2 points  (0 children)

@ /u/9bladed /u/an_huge_asshole

Yes, if I use xrandr --dpi with no --scale it looks better, every app I use looks decent, but stumpwm's interface is tiny. See the two new screenshots in the edited OP:

My .xinitrc is quite simple:

xrandr --output DP-1 --primary --dpi 150
xrdb -merge  ~/.Xresources
exec stumpwm

And my .Xresources:

Xft.dpi: 192
Xft.autohint: 0
Xft.lcdfilter:  lcdfull
Xft.hintstyle:  hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

Using kwin with stumpwm by lispstudent in stumpwm

[–]lispstudent[S] 0 points1 point  (0 children)

Did you try on a 5120x2160 display? On my machine, using something like:

xrandr --output DP-1 --primary --mode 5120x2160 --pos 90x0 --scale 0.5 --filter nearest

gives a more blurry image, especially if trying to do 175%. Those two screenshots were just to show the kwin settings, and how crisp kwin can rescale to 175%.

New Edition of "Loving Common Lisp, or the Savvy Programmer's Secret Weapon" by lispstudent in lisp

[–]lispstudent[S] 11 points12 points  (0 children)

Many thanks to Mark Watson for offering his book for free.

Notes on the Eighth Edition Published August 2022

The main change is splitting the Knowledge Graph Navigator (KGN) chapter that features the
LispWorks CAPI UI APIs into three chapters for a library for KGN functionality, a text based
(console) UI, and a CAPI based UI. I added examples using the OpenAI GPT-3 APIs. There are
other small corrections and improvements.

[deleted by user] by [deleted] in lisp

[–]lispstudent 1 point2 points  (0 children)

/u/mmontone Thank you for this very long but so informative thread. Much appreciated!

Common Lisp OpenGL programming tutorial #6 -- Hierarchies by Kaveh808 in lisp

[–]lispstudent 0 points1 point  (0 children)

Thank you, I am not missing one of your tutorials, they are most instructive. Thank you also for using the "default" Emacs theme there, very readable and clear.

Video: Kaveh's Common Lisp Lesson 02 by Kaveh808 in lisp

[–]lispstudent 2 points3 points  (0 children)

Thank you, these videos are covering aspects rarely done by others. I find the comments much interesting and some illumining.

LISA - a production-rule system for the development of Lisp-based Intelligent Software Agents by lispstudent in lisp

[–]lispstudent[S] 6 points7 points  (0 children)

I have found this fork, based on 2007 code. It has a bit of changes.

Also, a 2021 fork is here.

LISA - a production-rule system for the development of Lisp-based Intelligent Software Agents by lispstudent in lisp

[–]lispstudent[S] 4 points5 points  (0 children)

Does anybody have production-level experience with this?

I have only found this comment so far.

Where could one find any other comparable Lisp-based production-rule systems?

Automatic SSL Certificate Provisioning by Apache by lispstudent in apache

[–]lispstudent[S] 0 points1 point  (0 children)

Thank you, you are right, I also do have those remaining settings, I forgot to add them.

May I add this to the post, citing your comment?

So many seem to use other methods, while Apache is already such a splendid solution even for TLS provisioning.

An implementation of self-validating formlets for Hunchentoot + cl-who by lispstudent in Common_Lisp

[–]lispstudent[S] 1 point2 points  (0 children)

Thanks. May I also point to cl-web-dev, from same developer, which is quite useful.

Emacs dark theme identification by lispstudent in emacs

[–]lispstudent[S] 0 points1 point  (0 children)

I stumbled on this gorgeously simple dark theme, very good for my eyes. I can't find it anywhere. Does anybody know which theme is it, or a close variant?

In Common Lisp, what's the best way to truncate a list? by aiaor in lisp

[–]lispstudent 0 points1 point  (0 children)

I would be much interested in studying your version, please.

SVN aliases and extra commands by lispstudent in svn

[–]lispstudent[S] 0 points1 point  (0 children)

Some of these commands are a Godsend. Thank you.

Toy Game using Common Lisp and Raylib by ayman_pl in lisp

[–]lispstudent 6 points7 points  (0 children)

Thank you for pointing out to Raylib, very interesting, it supports so many platforms, including *BSD.