libera/#commonlisp - IRC Chatlog
Search
12:52:47
gamaliel
Hi, I have this code here: https://plaster.tymoon.eu/view/3513#3513. It essentially builds the code for a nested list from the contents of an array. However, I'm not sure how to convert it to a macro, as I always find I eventually need to (eval). Any suggestions would be welcome.
12:54:20
beach
gamaliel: That code is very hard to read because you are not respecting conventional indentation. What tool did you use to create it?
12:55:20
beach
gamaliel: I don't know that one, but it seems to have no idea how to indent Common Lisp code.
12:56:09
beach
Oh, plaster.tymoon.eu. Well, you should first edit your code locally, using a Common Lisp-aware tool.
13:07:54
gamaliel
pjb: would it work in the case of global variables? I tried running it with a matrix *x* created with (defparameter *x* '(3 4)) and it gives me an error: The value *x* is not of type ARRAY.
13:15:33
gamaliel
emacs + slime usually, but for this I opened Kate. It seems to use a very strange spacing.
13:20:21
gamaliel
Well, I'm not sure how to make it a macro. If I (eval) the code, it does what I want, but when I created it with defmacro, all sorts of errors happened.
13:20:46
beach
Just stick it in a macro. Something like (defmacro dim-code-macro (arr dim-num n) (dim-code arr dim-num n))
13:56:51
beach
There were three candidates announced in Porto. I don't know which one was decided upon by the steering committee.
14:09:55
beach
No, I mean, now is 2022, next year is 2023 when the next ELS will be held. You said you hope you can make it this year, if not next year, which you then clarified as 2025.
14:20:41
Duuqnd
Even though I've lived in Sweden my whole life I'm always surprised by how short days get during winter
14:25:46
beach
Every person in France has a vitamin D deficiency, so we are all prescribed monthly doses. Unfortunately, that doesn't alter the time of sunrise and sunset.
14:43:06
pjb
That said, this is an argument to go live in space stations. There we can have as much Sun we want all the time.
18:13:54
pjb
You can meta-document your limit adding a fill-column: 90; in the -*- modeline -*- of your files.
18:14:07
edgar-rft
Josh_2: column width is the width per column in tabulated output, CL has no default value for that
19:18:06
pjb
Josh_2: see File Local Variables in emacs documentation, you can also set then at the end of the file in a Local Variables: / End: block in the last 512 bytes of the file.
19:21:31
kakuhen
i always add the modeline, but there's very little chance people will respect it unless they use the same editor as you
19:22:18
kakuhen
I typically have `-*- mode: Lisp; fill-column: 95; indent-tabs-mode: t; -*-` but fill-column is useless unless auto-fill-mode is enabled
19:37:05
Josh_2
sbcl 2.2.9 is now the stable version in portage.. Time to go and rebuild all of my remote lisp image so I can connect remotely :sob: