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