jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
azimut has joined #commonlisp
NotThatRPG has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
NotThatRPG_ has joined #commonlisp
lagash has joined #commonlisp
NotThatRPG has quit [Ping timeout: 268 seconds]
Oladon has quit [Quit: Leaving.]
xristos has quit [Ping timeout: 248 seconds]
djuber` has quit [Remote host closed the connection]
Oladon has joined #commonlisp
xristos has joined #commonlisp
gnoo has joined #commonlisp
X-Scale has quit [Quit: Client closed]
X-Scale has joined #commonlisp
Oladon has quit [Quit: Leaving.]
dipper_ has joined #commonlisp
<bitblit1> Hello Everyone!
<bitblit1> Nice day today. Really starting to like the simple structure of my window manager
<bitblit1> from the advice I received here
X-Scale has quit [Quit: Client closed]
<edwlan[m]> I think a good book is likely to be a bit verbose to many people: you need to say the same things multiple ways because different readers will find different formulations helpful
<edwlan[m]> And you have to provide details that some readers won’t need
akoana has joined #commonlisp
mrcom_ has joined #commonlisp
mrcom has quit [Ping timeout: 246 seconds]
lagash has quit [Quit: ZNC - https://znc.in]
lagash has joined #commonlisp
gnoo has quit [Ping timeout: 240 seconds]
tevo has quit [Read error: Connection reset by peer]
tevo has joined #commonlisp
occ has quit [Ping timeout: 276 seconds]
random-nick has quit [Ping timeout: 240 seconds]
<bitblit1> I agree
ryanbw has joined #commonlisp
masinter has quit [Remote host closed the connection]
mmk2410 has quit [Quit: ZNC - https://znc.in]
mmk2410 has joined #commonlisp
masinter has joined #commonlisp
dcb has quit [Quit: MSN Messenger 3.8]
<cpli> for parallelism, `lparallel`- because cl projects are done - not abandoned - or is there something else one uses?
<hayley> lparallel is a good default. Might find yourself sprinkling in bordeaux-threads (for synchronisation) if you need to modify shared state.
lagash has quit [Quit: ZNC - https://znc.in]
lagash- has joined #commonlisp
waleee has quit [Ping timeout: 240 seconds]
lagash- has quit [Quit: ZNC - https://znc.in]
occ has joined #commonlisp
<bitblit1> I still get confused whenever I want to use eval. How do I run quoted code without testing for input and putting it into an eval?
<hayley> What do you mean by "testing for input"?
kevingal has joined #commonlisp
kevingal_ has joined #commonlisp
<bitblit1> To prevent SQL injection for example
<Bike> what the heck does sql have to do with eval
<bitblit1> Sorry, let me elaborate a bit more:
<hayley> In SQL there is a concept of a "prepared statement" which you basically should never not use.
<bitblit1> I am not working with sql, it was just an example
<hayley> The equivalent in Lisp is a function.
tyson2 has quit [Remote host closed the connection]
<Bike> if what you're asking is how do you let your users evaluate arbitrary code without screwing up your program, the answer is generally "you don't"
<bitblit1> I have a function lets say GET-MASK which has a &rest argument. I want to pass a list to it, and I want to return the output of the function get-mask and NOT the code.
<hayley> clhs apply
<ixelp> CLHS: Function APPLY
<hayley> I wonder if that bot is still here. ,(apply #'+ '(1 2 3 4 5))
<ixelp> (apply #'+ '(1 2 3 4 5)) => 15
<bitblit1> That's so cool
<bitblit1> Damn... Really forgot some stuff since I started coding in CL
<bitblit1> Welp thanks
<bjorkintosh> bitblit1, how do you prevent the same thing in your favorite interpreted language?
theesm has quit [Ping timeout: 250 seconds]
<hayley> "interpreted language" is a category error, and it makes Gilad Bracha's blood pressure go up.
<bjorkintosh> pfft. he also likes java so there.
<hayley> Not sure of that one. But he did work on the spec.
theesm has joined #commonlisp
<bitblit1> bjorkintosh: I have none ;)
<bjorkintosh> speaking of... how's dart nowadays? I had high hopes.
<hayley> Also no longer Bracha-ware, I believe. Anyways, doubleplusgoodposting goes in #lispcafe.
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
masinter has quit [Remote host closed the connection]
ebrasca has quit [Remote host closed the connection]
azimut has quit [Ping timeout: 255 seconds]
masinter_ has joined #commonlisp
masinter_ has quit [Client Quit]
lagash has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
attila_lendvai has joined #commonlisp
kevingal_ has quit [Remote host closed the connection]
kevingal has quit [Remote host closed the connection]
semarie has quit [Remote host closed the connection]
semarie has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
lagash has joined #commonlisp
contrapunctus has joined #commonlisp
vxe420_ has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
vxe420 has quit [Ping timeout: 268 seconds]
chipxxx has quit [Ping timeout: 248 seconds]
chip_x has joined #commonlisp
lagash has joined #commonlisp
attila_lendvai has quit [Ping timeout: 268 seconds]
lagash has quit [Quit: ZNC - https://znc.in]
akoana has quit [Quit: leaving]
n0den1te has joined #commonlisp
pve has joined #commonlisp
n0den1te has quit [Ping timeout: 276 seconds]
<bitblit1> So I have a class and a function: https://plaster.tymoon.eu/view/3731#3731
<bitblit1> The macro byitself as shown in the Example documentation works perfectly
<bitblit1> but when I try to compile the class
<bitblit1> It gives me this error: error: don't know how to dump #<KEYBINDING {10014E9743}> (default MAKE-LOAD-FORM method called).
<bitblit1> And gives a red wiggly line below (create-keybindings after the :initform keyword
<bitblit1> Please help :(
<beach> You have some literal in your code that the compiler needs to dump into a FASL file, but it doesn't know how to do that. Some objects (like functions) can not be dumped at all, and for some others, like instances of standard classes, you must tell it how to do it. But most of the time, it is not really what you want to do.
<hayley> Modify the macro so that it expands to something involving (make-instance 'keybinding ...), rather than constructing an instance of KEYBINDING in the macro-expansion.
<bitblit1> Oh, i understand thanks, lets try that.
<bitblit1> It worked! thanks a bunhc
Inline has quit [Quit: Leaving]
rgherdt has joined #commonlisp
lagash has joined #commonlisp
azimut has joined #commonlisp
n0den1te has joined #commonlisp
<bitblit1> Another thing, I don't know how to phrase the question but just look at this code: https://plaster.tymoon.eu/view/3732#3732
<bitblit1> how to stop repition in it?
shka has joined #commonlisp
<bitblit1> by repetition I mean code duplication
<bitblit1> I want to use :do and :return under one :when clause, is it pausible?
<bitblit1> s/pausible/possible/
lagash has quit [Quit: ZNC - https://znc.in]
jmdaemon has quit [Ping timeout: 265 seconds]
<splittist> DO (or :do) takes a compound form, so you can just say :do (print ...) (return i). All the forms until the next loop name command thingy will be part of the do, if you see what I mean.
<bitblit1> splittist: I understand, but my question was if I just wanted to use the :when keyword, the :return keyword etc.
<splittist> I think the answer is 'no'. For example, how would your compiler know the difference between an 'embedded' and 'top-level' RETURN?
<splittist> Unless you use AND, perhaps. (loop for i below 100 when (> i 5) do (print i) and return i)
<bitblit1> Oh yeah, thanks splittist!
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hrberg has joined #commonlisp
hrberg has quit [Client Quit]
hrberg has joined #commonlisp
son0p has quit [Ping timeout: 246 seconds]
kenran has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
chip_x has quit [Ping timeout: 268 seconds]
_paul0 has quit [Ping timeout: 276 seconds]
lagash has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
n0den1te has quit [Read error: Connection reset by peer]
chipxxx has joined #commonlisp
gnoo has joined #commonlisp
aartaka has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
gnoo has quit [Ping timeout: 248 seconds]
attila_lendvai has joined #commonlisp
worstname has quit [Ping timeout: 246 seconds]
euandreh has joined #commonlisp
random-nick has joined #commonlisp
repeter` has joined #commonlisp
repeter has quit [Ping timeout: 255 seconds]
waleee has joined #commonlisp
aartaka has quit [Ping timeout: 248 seconds]
lagash has joined #commonlisp
aartaka has joined #commonlisp
scymtym has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
lagash has quit [Quit: ZNC - https://znc.in]
rgherdt has joined #commonlisp
chipxxx has quit [Ping timeout: 248 seconds]
chipxxx has joined #commonlisp
chipxxx has quit [Remote host closed the connection]
chipxxx has joined #commonlisp
lagash has joined #commonlisp
zxcvz has joined #commonlisp
kenran has quit [Remote host closed the connection]
lagash has quit [Quit: ZNC - https://znc.in]
aartaka has quit [Ping timeout: 240 seconds]
aartaka has joined #commonlisp
aartaka has quit [Ping timeout: 255 seconds]
aartaka has joined #commonlisp
repeter`` has joined #commonlisp
repeter` has quit [Ping timeout: 255 seconds]
zxcvz has quit [Quit: zxcvz]
bonmlp has joined #commonlisp
madand has joined #commonlisp
McParen has joined #commonlisp
Everything has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
bonmlp has quit [Ping timeout: 265 seconds]
zxcvz has joined #commonlisp
X-Scale has joined #commonlisp
aartaka has quit [Ping timeout: 256 seconds]
<pjb> bitblit1: I would write it a (loop for i from 0 do (print i) until (= i 5) finally (print "Goodbye, I reached five.")) ; I see no point of returning 5, but you can add it.
<pjb> s/a/as/
masinter has joined #commonlisp
lagash has joined #commonlisp
jonatack2 has joined #commonlisp
aartaka has joined #commonlisp
jonatack1 has quit [Ping timeout: 246 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 276 seconds]
Lord_of_Life_ is now known as Lord_of_Life
lagash has quit [Quit: ZNC - https://znc.in]
kevingal has joined #commonlisp
kenran has joined #commonlisp
aartaka has quit [Ping timeout: 240 seconds]
aartaka has joined #commonlisp
random-nick has quit [Ping timeout: 240 seconds]
zxcvz has quit [Quit: zxcvz]
rtoy has quit [Remote host closed the connection]
rtoy has joined #commonlisp
kenran has quit [Remote host closed the connection]
lagash has joined #commonlisp
clos-encounters has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
random-nick has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 264 seconds]
lagash has quit [Quit: ZNC - https://znc.in]
madand has quit [Ping timeout: 255 seconds]
aartaka has quit [Ping timeout: 255 seconds]
dcb has joined #commonlisp
aartaka has joined #commonlisp
dipper_ has quit [Ping timeout: 276 seconds]
NotThatRPG_ has quit [Ping timeout: 268 seconds]
jeosol has joined #commonlisp
<jeosol> Good morning all!
<jeosol> Has anyone worked with flattening jsons in CL, and if so what library did you use? Thanks
alanz[m] has joined #commonlisp
chipxxx has quit [Remote host closed the connection]
chipxxx has joined #commonlisp
NotThatRPG has joined #commonlisp
chip_x has joined #commonlisp
chipxxx has quit [Read error: Connection reset by peer]
lagash has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
<splittist> I haven't, but I do wonder what a flattened json is.
OlCe has quit [Ping timeout: 248 seconds]
lagash has joined #commonlisp
cage has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
clos-encounters has quit [Ping timeout: 248 seconds]
aartaka has quit [Ping timeout: 240 seconds]
NotThatRPG has quit [Ping timeout: 256 seconds]
NotThatRPG has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
NotThatRPG has quit [Ping timeout: 240 seconds]
Noisytoot has quit [Ping timeout: 240 seconds]
NotThatRPG has joined #commonlisp
Noisytoot has joined #commonlisp
clos-encounters has joined #commonlisp
clos-encounters has quit [Client Quit]
markb_one has joined #commonlisp
NotThatRPG has quit [Ping timeout: 240 seconds]
kenran has joined #commonlisp
lagash has joined #commonlisp
NotThatRPG has joined #commonlisp
brettgilio has quit [Ping timeout: 276 seconds]
NotThatRPG has quit [Client Quit]
occ has quit [Ping timeout: 276 seconds]
occ has joined #commonlisp
Everything has quit [Quit: leaving]
Noisytoot has quit [Ping timeout: 276 seconds]
kevingal has quit [Ping timeout: 250 seconds]
Algernon69 has joined #commonlisp
Algernon69 has quit [Read error: Connection reset by peer]
Noisytoot has joined #commonlisp
sonny has joined #commonlisp
gnoo has joined #commonlisp
sonny has quit [Quit: Client closed]
sonny has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
pranavats has joined #commonlisp
sonny has quit [Quit: Client closed]
McParen has left #commonlisp [#commonlisp]
lagash has joined #commonlisp
morganw has joined #commonlisp
gnoo has quit [Ping timeout: 260 seconds]
NotThatRPG has joined #commonlisp
sonny has joined #commonlisp
Inline has joined #commonlisp
sonny has quit [Client Quit]
<splittist> Is there any reason why a loop for-as-hash with hash-values on sbcl 2.2.6 wouldn't be reliable? (In the sense of a value that isn't a hash-value turning up?)
tyson2 has joined #commonlisp
NotThatRPG_ has joined #commonlisp
<yitzi> splittist: It just uses with-hash-table-iterator so I would try that and see what happens.
NotThatRPG has quit [Ping timeout: 248 seconds]
lagash has quit [Quit: ZNC - https://znc.in]
lagash has joined #commonlisp
gnoo has joined #commonlisp
<splittist> yitzi: it's weird. ALEXANDRIA:HASH-TABLE-VALUES gives me what I expect (and works, so I'll move on), but even ALEXANDRIA:MAP-HASH-VALUES (which is the basis of hash-table-values) gives me a rogue 0. I'm sure it's something I'm doing that I don't understand.
euandreh has quit [Quit: euandreh]
cage has quit [Quit: rcirc on GNU Emacs 28.2]
kevingal has joined #commonlisp
<pjb> splittist: you should avoid mutating the hash-table while iterating (be it with with-hash-table-iterator, maphash, or loop for-as-hash).
<pjb> hash-table-values is nice, but it uses temporary memory. This may be required if you must mutate the hash-table.
gnoo has quit [Ping timeout: 248 seconds]
jmdaemon has joined #commonlisp
JeromeLon has joined #commonlisp
JeromeLon has quit [Client Quit]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Oladon has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
lagash has quit [Quit: ZNC - https://znc.in]
Noisytoot has joined #commonlisp
<splittist> pjb: that must have been it.
<pjb> splittist: also, you may be mutating a specific value, if they're mutable.
<pjb> This shouldn't cause problem, if you onl rely on the identity of the value objects.
attila_lendvai has quit [Ping timeout: 248 seconds]
Noisytoot has quit [Ping timeout: 268 seconds]
tevo has quit [Read error: Connection reset by peer]
tevo has joined #commonlisp
Noisytoot has joined #commonlisp
lagash has joined #commonlisp
<scymtym> there is an exception for removing or changing the current element of the iteration: https://novaspec.org/cl/3_6_Traversal_Rules_and_Side_Effects#sec_3_6
<ixelp> 3.6 Traversal Rules and Side Effects | Common Lisp Nova Spec
Gleefre has joined #commonlisp
masinter has quit [Ping timeout: 240 seconds]
masinter has joined #commonlisp
kevingal has quit [Ping timeout: 240 seconds]
kenran has quit [Remote host closed the connection]
akoana has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
tyson2 has joined #commonlisp
lagash has joined #commonlisp
madand has joined #commonlisp
LW has joined #commonlisp
pve has quit [Quit: leaving]
mjt128 has joined #commonlisp
gnoo has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
<jeosol> splittist: hey, sorry about not being clear. there is analogous python (pandas) function json_normalize see  here: https://pandas.pydata.org/docs/reference/api/pandas.json_normalize.html
<ixelp> pandas.json_normalize — pandas 1.5.3 documentation
pawa2 has joined #commonlisp
<jeosol> splittist: basically, I have these massive json configs that I want to flatten, so the original json with multiple levels is reduce to one level with keys and values. They keys for the deeply nested object is gotten by prepending their keys with those of their parents separated by a dot. That pandas link does explain the operation.
rgherdt_ has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
lagash has joined #commonlisp
morganw has quit [Remote host closed the connection]
gnoo has quit [Ping timeout: 252 seconds]
LW has quit [Ping timeout: 240 seconds]
chrcav has quit [Ping timeout: 255 seconds]
lagash has quit [Quit: ZNC - https://znc.in]
lagash has joined #commonlisp
cosimone has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
lagash has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 255 seconds]
Volt_ has joined #commonlisp
kevingal has joined #commonlisp
shka has quit [Ping timeout: 255 seconds]
lagash has quit [Quit: ZNC - https://znc.in]
lagash has joined #commonlisp