lucasb has quit [Quit: Connection closed for inactivity]
Khisanth has quit [Ping timeout: 258 seconds]
smazga has quit [Quit: leaving]
oni-on-ion has quit [Ping timeout: 248 seconds]
jeosol has quit [Ping timeout: 260 seconds]
karlosz has joined #lisp
ebzzry has quit [Ping timeout: 258 seconds]
oni-on-ion has joined #lisp
akoana has joined #lisp
ArthurStrong has joined #lisp
akoana has left #lisp [#lisp]
akoana has joined #lisp
vivit has quit [Quit: WeeChat 1.9.1]
brettgilio has joined #lisp
clothespin has quit []
Khisanth has joined #lisp
anewuser has quit [Ping timeout: 268 seconds]
ArthurStrong has quit [Ping timeout: 240 seconds]
ArthurStrong has joined #lisp
shifty has joined #lisp
_whitelogger has joined #lisp
mister_m has joined #lisp
<mister_m>
Hello! does with-open-file raise an error when the :direction is set to :output and the file I am writing to already exists? Is that the default behavior?
<Bike>
"The default is :new-version if the version component of filespec is :newest, or :error otherwise." from CLHS open, for the if-exists parameter which determines the behavior
<mister_m>
Bike: wonderful, thank you!
MonoBobo has joined #lisp
<tazjin>
Xach: hm, update on earlier - it seems that if foreign libraries are loaded via the cffi utilities the paths are not absolute anymore in a dumped image
* tazjin
investigates who is throwing his beautiful paths away
bitmapper has quit [Ping timeout: 268 seconds]
milanj has quit [Quit: This computer has gone to sleep]
sjl has quit [Quit: WeeChat 2.3-dev]
Kundry_Wag has joined #lisp
xkapastel has joined #lisp
Kundry_Wag_ has joined #lisp
rpg_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kundry_Wag has quit [Ping timeout: 260 seconds]
jonatack has quit [Ping timeout: 252 seconds]
atgreen has joined #lisp
ArthurStrong has quit [Read error: Connection reset by peer]
papachan has quit [Quit: Leaving]
ArthurStrong has joined #lisp
holycow has joined #lisp
akoana has left #lisp ["Leaving"]
gxt has quit [Quit: WeeChat 2.7]
Kundry_Wag_ has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 258 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
ramenbytes has joined #lisp
cartwright has quit [Remote host closed the connection]
cartwright has joined #lisp
ArthurStrong has quit [Read error: Connection reset by peer]
ramenbytes has left #lisp [#lisp]
ArthurStrong has joined #lisp
Codaraxis has joined #lisp
quazimodo has joined #lisp
Lycurgus has joined #lisp
rwcom has quit [Ping timeout: 260 seconds]
ramenbytes has joined #lisp
rpg has joined #lisp
gioyik has joined #lisp
rwcom has joined #lisp
amenbytesr has joined #lisp
amenbytesr has quit [Remote host closed the connection]
amenbytesr has joined #lisp
ramenbytes has left #lisp [#lisp]
amenbytesr has quit [Remote host closed the connection]
ramenbytes has joined #lisp
xkapastel has quit [Quit: Connection closed for inactivity]
ramenbytes has quit [Remote host closed the connection]
ramenbytes has joined #lisp
Kundry_Wag has joined #lisp
ArthurStrong has quit [Ping timeout: 258 seconds]
ebzzry has joined #lisp
ArthurStrong has joined #lisp
Kundry_Wag has quit [Ping timeout: 268 seconds]
atgreen has quit [Remote host closed the connection]
ramenbytes has quit [Remote host closed the connection]
Bike has quit [Quit: Lost terminal]
Lycurgus has quit [Remote host closed the connection]
gravicappa has joined #lisp
nowhere_man has joined #lisp
nowhereman has quit [Ping timeout: 260 seconds]
dddddd has quit [Remote host closed the connection]
Josh_2 has quit [Ping timeout: 258 seconds]
Kaisyu7 has joined #lisp
Kaisyu has joined #lisp
quazimodo has quit [Ping timeout: 268 seconds]
milanj has joined #lisp
terpri_ has quit [Quit: Leaving]
stepnem_ has quit [Ping timeout: 268 seconds]
ArthurStrong has quit [Ping timeout: 268 seconds]
oxum has quit [Remote host closed the connection]
<beach>
Good morning everyone!
ArthurStrong has joined #lisp
ArthurStrong has quit [Client Quit]
Intensity has quit [Remote host closed the connection]
narimiran has joined #lisp
anewuser has joined #lisp
dmiles has quit []
oxum has joined #lisp
Intensity has joined #lisp
holycow has quit [Quit: leaving]
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` is now known as X-Scale
dmiles has joined #lisp
rwcom4 has joined #lisp
rwcom has quit [Ping timeout: 265 seconds]
rwcom4 is now known as rwcom
gioyik has quit [Quit: WeeChat 2.7]
oxum has quit [Read error: Connection reset by peer]
oxum_ has joined #lisp
oxum has joined #lisp
oxum_ has quit [Read error: Connection reset by peer]
Kundry_Wag has joined #lisp
dmiles has quit [Read error: Connection reset by peer]
dmiles has joined #lisp
jeosol has joined #lisp
quazimodo has joined #lisp
loke has quit [Remote host closed the connection]
loke has joined #lisp
karlosz has quit [Remote host closed the connection]
karlosz has joined #lisp
dale has quit [Quit: My computer has gone to sleep]
jprajzne has joined #lisp
quazimodo has quit [Ping timeout: 260 seconds]
quazimodo has joined #lisp
JohnMS_WORK has joined #lisp
vlatkoB has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
CrazyEddy has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
flamebeard has joined #lisp
oxum_ has joined #lisp
oxum has quit [Read error: Connection reset by peer]
pjb has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
pjb has joined #lisp
Kundry_Wag has quit [Ping timeout: 258 seconds]
ebzzry has quit [Read error: Connection reset by peer]
ebzzry has joined #lisp
jonatack has joined #lisp
scymtym has quit [Ping timeout: 268 seconds]
stepnem has joined #lisp
frgo has joined #lisp
frgo_ has joined #lisp
frgo has quit [Read error: Connection reset by peer]
fe has joined #lisp
rwcom3 has joined #lisp
fe is now known as _fe_
rwcom has quit [Ping timeout: 258 seconds]
rwcom3 is now known as rwcom
_fe_ has quit [Quit: _fe_]
_fe_ has joined #lisp
pjb has quit [Remote host closed the connection]
pjb has joined #lisp
zclark has quit [Remote host closed the connection]
nowhere_man has quit [Read error: Connection reset by peer]
Duuqnd has joined #lisp
grabarz has joined #lisp
scymtym has joined #lisp
Kundry_Wag has joined #lisp
davepdotorg has joined #lisp
Kundry_Wag has quit [Ping timeout: 260 seconds]
anewuser has quit [Quit: anewuser]
brown121408 has quit [Ping timeout: 240 seconds]
brown121408 has joined #lisp
varjag has joined #lisp
william1 has joined #lisp
stepnem has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
stepnem has joined #lisp
william1 has quit [Quit: WeeChat 1.9.1]
oni-on-ion has quit [Ping timeout: 248 seconds]
hhdave has joined #lisp
flamebeard has quit [Remote host closed the connection]
flamebeard has joined #lisp
frgo_ has quit [Remote host closed the connection]
neuro_sys has joined #lisp
neuro_sys is now known as Guest59640
frgo has joined #lisp
flamebeard has quit [Ping timeout: 258 seconds]
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
amerlyq has joined #lisp
_paul0 has joined #lisp
flamebeard has joined #lisp
paul0 has quit [Ping timeout: 246 seconds]
lavaflow has quit [Ping timeout: 240 seconds]
lavaflow has joined #lisp
Duuqnd_ has joined #lisp
jonatack has quit [Ping timeout: 248 seconds]
Duuqnd has quit [Ping timeout: 252 seconds]
oxum has joined #lisp
oxum_ has quit [Read error: Connection reset by peer]
shifty has quit [Ping timeout: 260 seconds]
imherentlybad has joined #lisp
Duuqnd_ is now known as Duuqnd
william1_ has joined #lisp
raghavgururajan has joined #lisp
rwcom5 has joined #lisp
imherentlybad has quit [Quit: WeeChat 2.6]
rwcom has quit [Ping timeout: 240 seconds]
rwcom5 is now known as rwcom
thealemazing has joined #lisp
JohnMS has joined #lisp
harovali has joined #lisp
<harovali>
hi! a while ago I remember to have seen an example or using the break statement with a condition so to break. I can't find the example. Would you help me to learn to use breake with a predicate that has to be met in order to break?
JohnMS_WORK has quit [Ping timeout: 265 seconds]
<beach>
(when <condition> (break))
__vlgvrs has joined #lisp
xkapastel has joined #lisp
<beach>
harovali: With the exception of the forms in a TAGBODY, we don't use the term "statement" in Common Lisp. In the case of BREAK, it is just a function. If you are referring to the call to it, we use the word "form".
_paul0 has quit [Ping timeout: 252 seconds]
<jackdaniel>
implementation may define some other kind of "break" in the stepper
<beach>
I suppose so.
atgreen has joined #lisp
<harovali>
yes yes , but there was a way to put the conditional inside the arguments to break f
<harovali>
which would shoose to break on a function call f.i.
<harovali>
choose
<no-defun-allowed>
No, I don't think so.
<beach>
Maybe you are referring to SBCL's TRACE operator.
<harovali>
beach: that's it yes !
<beach>
harovali: Then look in the SBCL manual.
<harovali>
beach: thanks !
davepdotorg has quit [Read error: Connection reset by peer]
<beach>
As I recall, it's just (trace <name> :break t), but that's from (a very bad) memory.
<harovali>
beach: i'm looking it
<beach>
Actually, I think (describe 'break) gives the information.
<harovali>
is there a way to set a breakpoint while stepping?
<beach>
These are all implementation-specific features if they exist. Sadly, the free Common Lisp implementations are lacking in terms of debugging support.
<beach>
Sorry, (describe 'trace) I mean.
<harovali>
beach: thanks for your explanations and comments
<beach>
Sure. Good luck.
rtra has joined #lisp
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 268 seconds]
Duuqnd_ has joined #lisp
Guest59640 has quit [Ping timeout: 260 seconds]
Duuqnd has quit [Disconnected by services]
Duuqnd_ is now known as Duuqnd
ebzzry has quit [Read error: Connection reset by peer]
ebzzry has joined #lisp
<harovali>
is there a way to peek a global variable / binding in the stepper?
neuro_sys has joined #lisp
neuro_sys is now known as Guest1416
oxum has quit [Read error: Connection reset by peer]
oxum_ has joined #lisp
<no-defun-allowed>
That appears to enter the SBCL debugger, in which you can just evaluate any form.
<harovali>
thanks no-defun-allowed
dddddd has joined #lisp
smokeink has joined #lisp
frgo has quit [Remote host closed the connection]
<smokeink>
https://paste.ofcode.org/MWFyQMMbZYs8DAgWYnUu3a how to enable single stepping in a thread in sbcl? 'step' says I should first 'start' . 'start' will make it continue automatically, without stepping
brown121408 has quit [Read error: Connection reset by peer]
brown121408 has joined #lisp
notzmv has quit [Remote host closed the connection]
thealemazing has quit [Ping timeout: 258 seconds]
davepdotorg has joined #lisp
papachan has joined #lisp
Kundry_Wag has joined #lisp
jonatack has joined #lisp
notzmv has joined #lisp
jonatack has quit [Ping timeout: 268 seconds]
jonatack has joined #lisp
<harovali>
in the CLHS in the description of do & do* it says "declaration---a declare expression; not evaluated". Is that what later it refers as the body of the do ?
MonoBobo_ has joined #lisp
<beach>
The body would more likely be the {tag | statement}*
<lieven>
harovali: no. they don't give an example but you can add declarations before the body. (do ((i 1 (1+ i)) (> i 10) (declare (type fixnum i)) ...)
<lieven>
generally a form that lets you introduce bindings allows you to attach declarations to them
MonoBobo has quit [Ping timeout: 258 seconds]
shka_ has joined #lisp
nullniverse has joined #lisp
nullniverse has quit [Changing host]
nullniverse has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
rwcom7 has joined #lisp
marusich has joined #lisp
marusich has quit [Remote host closed the connection]
raghavgururajan has quit [Remote host closed the connection]
<beach>
"The remainder of the do (or do*) form constitutes an implicity tagbody."
<beach>
s/implicity/implicit/
<harovali>
sure, but they are not explicit about the remainder being the body to iterate over , are they ?
m00natic has joined #lisp
<harovali>
it would make sens other wise anyway
<beach>
harovali: Well, the {tag | statement}* is the same language used for the Common Lisp HyperSpec entry on TAGBODY, so those must be included in the implicit TAGBODY. Otherwise, you may have a tag outside the TAGBODY.
<harovali>
I got it
Kundry_Wag has quit [Ping timeout: 268 seconds]
newber2020 has joined #lisp
harovali has quit [Remote host closed the connection]
milanj has joined #lisp
shifty has joined #lisp
rwcom2 has joined #lisp
amerigo has joined #lisp
oxum_ has quit [Remote host closed the connection]
rwcom has quit [Ping timeout: 260 seconds]
rwcom2 is now known as rwcom
cosimone has joined #lisp
jonatack has quit [Ping timeout: 260 seconds]
rtra has quit [Ping timeout: 258 seconds]
jeosol has quit [Remote host closed the connection]
newber2020 has quit [Remote host closed the connection]
shifty has quit [Ping timeout: 240 seconds]
bitmapper has joined #lisp
<Xach>
tazjin: what happens?
atgreen has quit [Ping timeout: 265 seconds]
ggole has joined #lisp
frgo has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
bitmapper has quit [Remote host closed the connection]
bitmapper has joined #lisp
Harag has quit [Quit: Harag]
MonoBobo_ has quit [Read error: Connection reset by peer]
MonoBobo has joined #lisp
bitmapper has quit [Ping timeout: 240 seconds]
MonoBobo_ has joined #lisp
davepdot_ has joined #lisp
<tazjin>
Xach: the pathname stored for the shared object is relative (to the load path), i.e. it does not contain information about which *particular* library matching the name was loaded
frgo has joined #lisp
<tazjin>
Xach: that means that when dumping the image it'll contain a string like `libssl.so` but not the absolute path to the one that was loaded
<tazjin>
I tried to work around it by setting `cffi:*foreign-library-directories*` but couldn't get that to work as expected (I know that this is something I've run into, and fixed, a few years ago - just don't remember how)
MonoBobo has quit [Ping timeout: 258 seconds]
davepdotorg has quit [Ping timeout: 258 seconds]
<Shinmera>
tazjin: The Deploy system tries to manually determine absolute paths to shared libraries in order to copy them into a deployment directory.
<Shinmera>
You could take its mechanisms for that, I suppose.
<tazjin>
Shinmera: this is probably a slightly different problem
<tazjin>
I'm writing a CL build system in Nix
<tazjin>
and that means I need to get artefacts to contain references to the absolute paths of everything they need at runtime (since that path encodes information for Nix on what it was built from)
<tazjin>
eh actually the correct line is #155, not #146
<Shinmera>
If I remember correctly the issue is that dlopen just does its thing and doesn't tell you where the library comes from, so Lisp doesn't know.
<tazjin>
yep
<tazjin>
I guess I could override something in there to do the library resolution in Lisp
<tazjin>
and then ask it to open an absolute path
<Shinmera>
In Deploy I manually search common paths to try and find those, but I guess that wouldn't help on Nix.
<tazjin>
it might, do you have a link to where you do that?
<pjb>
"<Shinmera> tazjin: The Deploy system tries to manually determine absolute paths to shared libraries in order to copy them into a deployment directory."
<Shinmera>
because those libraries are somewhere on the disk, and not at default-pathname-defaults
<tazjin>
pjb: that resolves relative to the working directory, no?
__vlgvrs has quit [Quit: Leaving]
<pjb>
relative to whatever it's relative to.
<tazjin>
I need resolution to the first hit in LD_LIBRARY_PATH (which might be a list of paths)
<pjb>
Oh, ok.
<tazjin>
Shinmera: in Nix I can have the luxury of knowing that the library *will* be on in one of the LD_LIBRARY_PATH entries
<tazjin>
so some complexity can probably be trimmed
<Shinmera>
Right.
cosimone has quit [Quit: Terminated!]
Duuqnd has quit [Quit: Leaving]
FreeBirdLjj has joined #lisp
lxpnh98 has joined #lisp
jonatack has joined #lisp
EvW has joined #lisp
madage has quit [Remote host closed the connection]
madage has joined #lisp
cosimone has joined #lisp
LiamH has joined #lisp
xkapastel has quit [Quit: Connection closed for inactivity]
papachan has quit [Ping timeout: 268 seconds]
gxt has joined #lisp
lxpnh98 has quit [Quit: Leaving]
niklascarlsson has joined #lisp
<Xach>
I've been hacking on some graphics baubles and the workflow is "change drawing function, compile, produce output, think of update, change drawing function..." I'd really like to set up a system so I can save the output AND the source code side-by-side so I can keep track of my evolution.
<Xach>
Maybe I should do it at the file level - have a loop watching the file timestamp, and when it changes (and compiles successfully) run the generator and save the output and the file together based on the timestamp or something.
<Shinmera>
Xach: Sketch might be worth a look.
rwcom2 has joined #lisp
<Shinmera>
I'm also hoping Alloy's drawing primitives will allow for that kind of thing in the future.
rwcom has quit [Ping timeout: 240 seconds]
rwcom2 is now known as rwcom
scymtym_ has joined #lisp
scymtym has quit [Ping timeout: 248 seconds]
niklascarlsson has quit [Remote host closed the connection]
grabarz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grabarz has joined #lisp
rixard has quit [Read error: Connection reset by peer]
<p_l>
Xach: could be done with org-mode using sessions
<p_l>
aaand I think someone once did a SLIME extension for putting images from REPL
flamebeard has quit []
<_death>
maybe use something like layers, mapping each to its own function
<Xach>
p_l: i have never used sessions. do those allow you to save multiple versions of a function without thinking about it?
<Xach>
_death: is "layers" a generic term or something org-mode related? or something else?
scymtym_ has quit [Read error: Connection reset by peer]
dale_ has joined #lisp
dale_ is now known as dale
<_death>
Xach: nothing to do with org.. just an idea, maybe layers or overlays could be used in such a system, so that you don't really redefine functions but simply add more.. the definitions may be persisted.. it may be thought as a graph, actually, and there could be a path from the initial blank canvas to the end result that needs not involve intermediate stages that in effect are a no-op
<_death>
log-structured painting
<Xach>
ah, i see, interesting
<Xach>
my changes are often things like "i wonder what would happen if i shifted the hue 30 degrees"
dmiles has quit [Read error: No route to host]
<Xach>
then "that's cool, how about 180 degrees" and then "what if i faded it out from the center" then "what if i draw circles facing the other way inside the bigger circles"
<Xach>
it's all direct changes to a pretty monolithic function
<_death>
add a function that transforms it.. that's how all these painting programs have undo/redo functionality
<Xach>
hmm
dmiles has joined #lisp
<Xach>
untangling the monolith has appeal
<_death>
the usually way to do undo/redo is to perform the actions or the reverse.. there's another way that saves the actual state.. usually it's not a good idea, but it may be good for this case
<_death>
*usual
<Xach>
https://imgur.com/a/RuvWciz is an example - (defun testme (file) ...) started out as just a way to verify i could draw circles with gaps in them
<Xach>
but then i started thinking about other fun patterns.
<jackdaniel>
Xach: hwo about defining save-png* which saves both the file and png (with a filename prefixed with a timestamp)?
<jackdaniel>
not very sophisticated admittedly
<Xach>
jackdaniel: that's a good intermediate step - i think i want to cut out the "run the function in the repl" step too, though.
<Xach>
finish a change, press a key, see the result
<Shinmera>
Xach: you can define an emacs keybinding to invoke slime-eval as appropriate.
<Xach>
vecto is really slow, too, so that's a bummer. i like the idea of sketch but don't like the foreign library installation. i wish i could have a cheap and easy native macos canvas window to draw on. i don't want to install portability layers and foreign libraries.
karlosz has joined #lisp
* Xach
wishes and wishes
<Shinmera>
helping |3b| with the rewrite of GLOP to have a lisp-native solution to OpenGL is on my todo
<Shinmera>
I really want Trial (and by extension Alloy) to be usable without any foreign dependencies.
<jackdaniel>
wishes, todos and two bottles of rum
* jackdaniel
picks his guitar
Cymew has quit [Ping timeout: 258 seconds]
Josh_2 has joined #lisp
madage has quit [Remote host closed the connection]
madage has joined #lisp
atgreen has joined #lisp
bitmapper has joined #lisp
redeemed has joined #lisp
smazga has joined #lisp
redeemed has quit [Quit: q]
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 258 seconds]
X-Scale` is now known as X-Scale
longshi has joined #lisp
karlosz has quit [Quit: karlosz]
atgreen has quit [Ping timeout: 268 seconds]
grabarz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joast has quit [Quit: Leaving.]
lucasb has joined #lisp
laurus has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 260 seconds]
X-Scale` is now known as X-Scale
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 268 seconds]
joast has joined #lisp
laurus has left #lisp ["Part"]
izh_ has joined #lisp
amerlyq has quit [Quit: amerlyq]
terpri has joined #lisp
EvW has quit [Ping timeout: 248 seconds]
simplegauss has quit [Ping timeout: 246 seconds]
slyrus has joined #lisp
simplegauss has joined #lisp
slyrus__ has quit [Ping timeout: 240 seconds]
patlv has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
stux|RC-only has quit [Ping timeout: 268 seconds]
<luis>
flip214: not sure if you're the one to poke, but the git repo URL in Alexandria's homepage is incorrect
FreeBirdLjj has quit [Ping timeout: 246 seconds]
slyrus has quit [Ping timeout: 260 seconds]
amerigo has quit [Quit: Connection closed for inactivity]
karlosz has joined #lisp
stux|RC-only has joined #lisp
hhdave has quit [Quit: hhdave]
davepdot_ has quit [Remote host closed the connection]
zclark has joined #lisp
neuro_sys has quit [Ping timeout: 268 seconds]
m00natic has quit [Remote host closed the connection]
antepod has joined #lisp
<Xach>
luis: you helped me with a problem some time ago. that problem is back today!
oni-on-ion has joined #lisp
<Xach>
luis: if the repl is tied up (like with a sub-repl or other loop), i lose autodoc in buffers
<Xach>
luis: this is sbcl with sb-thread available and the latest slime
Kundry_Wag has quit [Remote host closed the connection]
<Xach>
Do you know why that happens and how to get autodoc back?
gareppa has joined #lisp
<phoe>
hey, you're right, and I have the same problem
kmeow has joined #lisp
kmeow_ has joined #lisp
izh_ has quit [Remote host closed the connection]
izh_ has joined #lisp
<Xach>
I guess I can check logs but IIRC it was a few years ago that you helped me
<Xach>
I don't have the logs :(
<|3b|>
maybe set slime-inhibit-pipelining to nil?
<kmeow>
How do you escape character codes inside a CL string literal? (as in C string literal: "\x1b")
<Xach>
kmeow: there is no built-in way
<Xach>
|3b|: sounds plausible, i will try it, thanks
<kmeow>
ah okay
<|3b|>
(at least that's what i have in .emacs under a comment about making autodoc work when busy)
gareppa has quit [Quit: Leaving]
<Xach>
|3b|: thank you, that does what i need
<phoe>
kmeow: you could try formatting if you'd like, (format nil "abcd~Cefgh" (code-char #x1b))
dale has quit [Quit: My computer has gone to sleep]
<kmeow>
something like (concatenate 'string (string #\Esc) "[31m") works okay
dale has joined #lisp
grabarz has joined #lisp
Kundry_Wag has joined #lisp
<jackdaniel>
kmeow: fwiw I've created a function which does that in shorter way, that is (defun esc (&rest args) (apply #'concatenate 'string (string #\esc) ,@args))
<jackdaniel>
s/,@//
<jackdaniel>
when I had such need
<jackdaniel>
or was it macro? I don't remember, but it doesn't matter
<Xach>
Heh, I have something where I do something like (foo "Hello!" :cr :lf "World" :esc :cr :lf) etc.
vivit has joined #lisp
<Xach>
so many options
<Xach>
oh yeah, my target output was a vector of octets
<jackdaniel>
(esc (csi "33;2;2")) ;; using vt100 and folks ;)
<vivit>
If a :before method throws an error, that will prevent the execution of later methods, right?
<jackdaniel>
yes
<kmeow>
nice
<jackdaniel>
signals an error
<jackdaniel>
you may throw something, but it has nothing to do with conditions (catch/throw more resemble block/return{-from})
<pjb>
Also, you don't need to start from strings: (concatenate 'string #(#\Esc) "[31m") -> "[31m"
<jackdaniel>
well, "nothing to do" is a figure of speech, from the implementation perspective.. ,)
rtra has quit [Ping timeout: 240 seconds]
<jackdaniel>
.. catch/throw may be used as means for implementing some operators
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
rtra has joined #lisp
<phoe>
well yes, if we want to nitpick, it can also throw an integer, and that'll nonetheless prevent the latter methods from being executed
<phoe>
that's due to THROW/CATCH having a different meaning in CL than they do in C++/Java
<luis>
Xach: I don't remember the solution. I haven't had that problem in a while
kmeow has left #lisp ["Leaving"]
papachan has joined #lisp
<luis>
Xach: oh, I'm starting to remember what you're talking about
gxt has quit [Ping timeout: 240 seconds]
<Xach>
luis: solved by |3b|' suggestion to set slime-inhibit-pipelining to nil
akoana has joined #lisp
<Xach>
although...
<Xach>
heh. i have an alternate sub-repl thing. it would be nice to have autodoc there too. but slime thinks it's in the middle of a request in the repl. hmm.
<Xach>
autodoc in lisp buffers works fine.
* eeeeeta
always panics when adoc and completion fail for some mysterious reason
<luis>
Xach: right, IIRC, the problem is that autodoc requests are handled differently within the slime-repl
<eeeeeta>
"is the code I've written wrong?? help what are the arguments again???"
<Xach>
luis: if you remember a suggestion please let me know. otherwise no rush. lisp file buffers are more important.
<luis>
Xach: but you don't need to mess with slime-inhibit-pipelining to have autodoc in lisp buffers, right?
milanj has quit [Quit: This computer has gone to sleep]
slyrus has joined #lisp
sauvin has quit [Ping timeout: 265 seconds]
Colleen has quit [Remote host closed the connection]
Shinmera has quit [Remote host closed the connection]
isoraqathedh has quit [Remote host closed the connection]
antepod has quit [Ping timeout: 268 seconds]
arduo has joined #lisp
Colleen has joined #lisp
frgo has joined #lisp
sjl has joined #lisp
izh_ has quit [Quit: Leaving]
frgo has quit [Ping timeout: 268 seconds]
varjag has joined #lisp
vaporatorius has quit [Read error: Connection reset by peer]
zclark has quit [Remote host closed the connection]
jprajzne has quit [Quit: jprajzne]
vaporatorius has joined #lisp
smokeink has quit [Remote host closed the connection]
smokeink has joined #lisp
brown121408 has quit [Ping timeout: 260 seconds]
brown121408 has joined #lisp
gxt has quit [Remote host closed the connection]
gxt has joined #lisp
rpg_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vivit has joined #lisp
vivit has quit [Ping timeout: 240 seconds]
rpg has joined #lisp
_fe_ has quit [Quit: _fe_]
shifty has quit [Ping timeout: 240 seconds]
vivit has joined #lisp
nullniverse has quit [Read error: Connection reset by peer]
william1_ has quit [Ping timeout: 260 seconds]
vivit has quit [Client Quit]
frgo has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
brown121408 has quit [Read error: Connection reset by peer]
brown121408 has joined #lisp
frgo has quit [Ping timeout: 260 seconds]
srandon111 has joined #lisp
<srandon111>
guys what are good libraries to create games in lisp?
<jackdaniel>
srandon111: you may want to stick around on #lispgames channel
<jackdaniel>
I'm sure people there will have more answers
<jackdaniel>
that said there are a few libraries, i.e cl-bodge and xelf. I'm not making games so I can't tell what is good, there are more engines
frgo has joined #lisp
narimiran has quit [Ping timeout: 268 seconds]
<Josh_2>
How can I get a list of all the accessors available for a class? I want to map over them and call the same function on all of them
Odin- has joined #lisp
<Josh_2>
ayy I did it with closer-mop
william1_ has joined #lisp
<pjb>
Josh_2: it depends on how you define accessors.
william1_ has quit [Ping timeout: 265 seconds]
<pjb>
Josh_2: if it's a function f that takes one argument and returns one value, and a function (setf f) that takes two arguments, returns the first, and mutate the second, so that f returns the first in the following calls, there's no way to enumerate such functions.
<pjb>
Josh_2: if you restrict your definition to classes that are subclasses of standard-object, and to functions that are listed as :accessor in the slot definition of those subclasses, then yes, closer-mop can help.
<pjb>
But it's a very restricted definition…
<Josh_2>
The latter is what I want
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Josh_2>
I have a class that is a subclass of standard-object, and I want to map the accessors
william1_ has joined #lisp
scymtym has joined #lisp
<Xach>
Josh_2: do you care about properties of an instance not stored in the class?
holycow has joined #lisp
eddof13 has joined #lisp
<Josh_2>
No
william1_ has quit [Ping timeout: 268 seconds]
<Josh_2>
basically I want to make a function that when given an instance of a class it will convert all the values stored in slots to strings
<Josh_2>
by default they are byte arrays or just integers
<Josh_2>
if I do the conversion none of the previous values will have been stored, it will only be after the conversion that I would use the values
harovali has joined #lisp
MonoBobo_ has quit [Read error: Connection reset by peer]
MonoBobo has joined #lisp
<pjb>
Josh_2: How having the list of accessors does help with processing slots?
<pjb>
I fail to see the link…
<harovali>
hi! if I bind some variables in a let , and then I use them f.i. as the names to bind in a multiple-value-bin inside the let , the compiler believes that those variables are defined but never used. Is that because the multiple-value-bind rebinds to other values and that operation is not considered usage of them ?
<pjb>
yes.
<harovali>
s/bin/bind/
<pjb>
harovali: you may consider multiple-value-setq
<pjb>
or just remove the let.
<harovali>
pjb: thankyou !
<Josh_2>
pjb: well I just want to have a list of accessors that I can funcall basically
<pjb>
Josh_2: I thought you wanted to convert the values stored in slot into strings?
<Josh_2>
Yes
<pjb>
No, you cannot have both.
<Josh_2>
But for lots of different classes
<Josh_2>
I can just write generic functions for each individual one, but I was trying to avoid that xD
<pjb>
Josh_2: you're completely illogical. Slots can have 0, 1, or more accessors.
<pjb>
(by your strict definition).
<pjb>
a class can also have accessors unrelated to any specific slot (by my larger definition).
<Josh_2>
okay, well when I defined a class I set the :accessor keywords in each direct-slot, I'd like to get the functions created by the :accessor keyword
<Josh_2>
by class
<Josh_2>
If I can do that
<Josh_2>
if I can't i'll just write a generic function
<pjb>
You did it with closer-mop.
<Josh_2>
eeeeeeh
<Josh_2>
I thought I did it
<Josh_2>
I got a list of the direct-slots
<pjb>
Why stop at direct slots?
<pjb>
Slots from superclasses belong to an object as well as direct losts!
<Josh_2>
Well (class-direct-slots ..) just returns the slots I specified for my class
<Bike>
yeah, class-slots will get you the effective slots.
<Bike>
that said, if your classes are this uniform in terms of what they hold but you still have different ones, you might consider using just sequences of some kind instead
<Josh_2>
I have different classes for different packets
<pjb>
If you define the classes yourself, you may consider writing a macro to generate them, along with the rest of the functions you need to process the slots.
gravicappa has quit [Ping timeout: 260 seconds]
william1_ has joined #lisp
pfdietz has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 240 seconds]
william1_ has quit [Ping timeout: 268 seconds]
krid has joined #lisp
<harovali>
there was once a lisp contest , and one of the challenges dealt with polyminos. Does the link still exist?
<pjb>
google could help.
<harovali>
pjb: I'm asking after thoughtful googling
Codaraxis has quit [Ping timeout: 268 seconds]
<pjb>
right, perhaps not. There are just a handful hits…
srandon111 has quit [Quit: leaving]
<harovali>
at the time the contest was very outstanding in the CL community , maybe even some in this channel submitted
gravicappa has joined #lisp
Ven`` has quit [Read error: Connection reset by peer]
<pjb>
harovali: there are logs, but google knows them IIRC.
<Xach>
i heard many people complain afterwards that skill at puzzles had little or no correlation with skill at typical ita work
<harovali>
I mainly liked to read the code submitted , just to learn usage patterns
nowhere_man has joined #lisp
atgreen has joined #lisp
slyrus__ has joined #lisp
smazga has quit [Quit: leaving]
slyrus_ has quit [Ping timeout: 260 seconds]
jeosol has joined #lisp
Bike has quit [Quit: Bike]
smazga has joined #lisp
slyrus_ has joined #lisp
EvW1 has joined #lisp
slyrus__ has quit [Ping timeout: 258 seconds]
isoraqathedh has joined #lisp
MonoBobo has quit [Ping timeout: 260 seconds]
Codaraxis has joined #lisp
turona has joined #lisp
brown121408 has quit [Remote host closed the connection]
varjag has quit [Ping timeout: 240 seconds]
LiamH has quit [Quit: Leaving.]
<drmeister>
How does one get asdf to build the build/asdf.lisp file - the one that contains all the source concatenated together. It's the Makefile - right?
<drmeister>
Yeah - never mind.
ym has quit [Ping timeout: 268 seconds]
<drmeister>
When I git clone ASDF - when does that happen? The built file doesnt come down with the source does it?
<drmeister>
La de da - I'll look it up on this internet thing.
atgreen has quit [Ping timeout: 265 seconds]
Kundry_Wag has quit [Remote host closed the connection]
<drmeister>
It doesn't come down with the source code. We must be doing it in our build system somewhere.
wxie has joined #lisp
MonoBobo has joined #lisp
holycow has quit [Quit: Lost terminal]
papachan has quit [Quit: Leaving]
papachan has joined #lisp
papachan has quit [Remote host closed the connection]
Colleen has quit [Quit: Colleen]
rtt has joined #lisp
<rtt>
hi
ym has joined #lisp
longshi has quit [Ping timeout: 248 seconds]
gxt has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
<pjb>
hi
Bike has joined #lisp
gxt has joined #lisp
Kundry_Wag has quit [Ping timeout: 260 seconds]
<phoe>
hi
<no-defun-allowed>
hi
<phoe>
drmeister: ASDF likely uses its concatenate-source-op on itself
Kundry_Wag has joined #lisp
william1_ has joined #lisp
kmeow_ has quit [Remote host closed the connection]
william1_ has quit [Ping timeout: 258 seconds]
isoraqathedh has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 248 seconds]
cosimone_ has joined #lisp
eddof13 has quit [Quit: eddof13]
slyrus__ has joined #lisp
wxie has quit [Ping timeout: 260 seconds]
shka_ has quit [Ping timeout: 268 seconds]
cosimone_ is now known as cosimone
<harovali>
I'd like to bind names to the elements of a list in order to modify them. (destructuring-bind (a b c) mylist (setf a 4)) being mylist a defparameter with '(1 2 3) dos not yield '(4 2 3) so no. Is there a way ?
eddof13 has joined #lisp
<rtt>
harovali: maybe you could use an alist or plist and setf