p_l changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | ASDF 3.3.4
entel has quit [Quit: Connection closed for inactivity]
pjb has quit [Ping timeout: 272 seconds]
whiteline_ has joined #lisp
nicktick has joined #lisp
quazimodo has joined #lisp
jeosol has quit [Remote host closed the connection]
SGASAU` has joined #lisp
SGASAU has quit [Remote host closed the connection]
kinope has joined #lisp
mikecheck has left #lisp ["part"]
mason has quit [Remote host closed the connection]
mason has joined #lisp
mason has quit [Quit: leaving]
mason has joined #lisp
rumbler31 has joined #lisp
wxie has quit [Quit: wxie]
wxie has joined #lisp
Harag has quit [Remote host closed the connection]
Harag has joined #lisp
rumbler31 has quit [Ping timeout: 260 seconds]
entel has joined #lisp
rumbler31 has joined #lisp
ahungry has joined #lisp
wxie has quit [Ping timeout: 264 seconds]
gaqwas has joined #lisp
rumbler31 has quit [Ping timeout: 264 seconds]
Kozo has joined #lisp
akoana has joined #lisp
iAmDecim has joined #lisp
bitmapper has quit [Ping timeout: 264 seconds]
slyrus__ has quit [Remote host closed the connection]
slyrus__ has joined #lisp
iAmDecim has quit [Ping timeout: 256 seconds]
krid has joined #lisp
krid has quit [Remote host closed the connection]
krid has joined #lisp
Kozo has quit [Quit: Leaving.]
fluxwave has joined #lisp
Kozo has joined #lisp
<Kozo> Greetings, I have emacs-auto-complete installed but it won't auto complete operators for me when writing common lisp. Is someone able to point me in the right direction please?
<shinohai> >,< 2nd emacs questions today ... try #emacs, this is common lisp chan
<Kozo> Alright, thank you
Kozo has left #lisp [#lisp]
Pixel_Outlaw has joined #lisp
<shinohai> He left before I could say "vim FOREVAH!"
gekkou has joined #lisp
SGASAU` has quit [Remote host closed the connection]
SGASAU` has joined #lisp
orivej has joined #lisp
<oni-on-ion> hi Pixel_Outlaw
gekkou has quit [Quit: WeeChat 2.6]
freshpassport has joined #lisp
iAmDecim has joined #lisp
ralt has quit [Quit: Connection closed for inactivity]
pjb has joined #lisp
jeosol has joined #lisp
jesse1010 has quit [Ping timeout: 256 seconds]
smazga has joined #lisp
john_ has joined #lisp
pjb has quit [Ping timeout: 272 seconds]
gaqwas has quit [Ping timeout: 256 seconds]
smazga has quit [Ping timeout: 256 seconds]
Josh_2 has quit [Ping timeout: 260 seconds]
SGASAU` has quit [Remote host closed the connection]
SGASAU` has joined #lisp
dominic34 has quit [Ping timeout: 264 seconds]
iAmDecim has quit [Quit: WeeChat 2.8]
iAmDecim has joined #lisp
iAmDecim has quit [Client Quit]
iAmDecim has joined #lisp
pjb has joined #lisp
entel has quit [Quit: Connection closed for inactivity]
twelvemonkeys has quit [Ping timeout: 256 seconds]
twelvemonkeys has joined #lisp
<beach> Good morning everyone!
Bike has quit [Quit: leaving]
marusich has joined #lisp
Pixel_Outlaw has quit [Quit: Leaving]
EvW has quit [Ping timeout: 260 seconds]
krid has quit [Ping timeout: 264 seconds]
urmane_ has quit [Ping timeout: 260 seconds]
<beach> phoe: No, I hadn't seen that. Probably didn't exist when I did my work. And the purpose is not the same anyway.
SGASAU` has quit [Remote host closed the connection]
SGASAU` has joined #lisp
pjb has quit [Ping timeout: 256 seconds]
freshpassport has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
terpri_ has quit [Ping timeout: 240 seconds]
Aurora_v_kosmose has quit [Quit: Пока, мир.]
Aurora_v_kosmose has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
PuercoPop has quit [Quit: WeeChat 1.9.1]
sjl has quit [Ping timeout: 240 seconds]
kinope has quit [Quit: Connection closed for inactivity]
sjl has joined #lisp
SGASAU` has quit [Remote host closed the connection]
SGASAU` has joined #lisp
shifty has joined #lisp
shka_ has joined #lisp
dddddd has quit [Ping timeout: 260 seconds]
twelvemonkeys has quit [Ping timeout: 260 seconds]
twelvemonkeys has joined #lisp
sauvin has joined #lisp
pjb has joined #lisp
sauvin has quit [Max SendQ exceeded]
sauvin has joined #lisp
arpunk has quit [Ping timeout: 246 seconds]
Va has joined #lisp
APic has quit [Ping timeout: 256 seconds]
lispyone_ has quit [Read error: Connection reset by peer]
lispyone_ has joined #lisp
APic has joined #lisp
duuqnd has joined #lisp
shangul has joined #lisp
rgherdt has joined #lisp
nicktick has quit [Ping timeout: 256 seconds]
iAmDecim has quit [Ping timeout: 256 seconds]
gravicappa has joined #lisp
pjb has quit [Ping timeout: 272 seconds]
shangul has quit [Ping timeout: 246 seconds]
_whitelogger has joined #lisp
Va has quit [Quit: Vision[0.10.3]: i've been blurred!]
ech has quit [Quit: leaving]
entel has joined #lisp
iAmDecim has joined #lisp
nicktick has joined #lisp
random-nick has joined #lisp
ahungry has quit [Remote host closed the connection]
iAmDecim has quit [Ping timeout: 264 seconds]
smazga has joined #lisp
shangul has joined #lisp
sdumi has quit [Ping timeout: 246 seconds]
smazga has quit [Ping timeout: 240 seconds]
sdumi has joined #lisp
pve has joined #lisp
terpri has joined #lisp
rgherdt has quit [Quit: Leaving]
rgherdt has joined #lisp
liberliver has joined #lisp
<no-defun-allowed> What do people use to send email from Common Lisp?
sdumi has quit [Ping timeout: 256 seconds]
<Shinmera> cl-smtp if you already have a mail host.
shifty has quit [Ping timeout: 265 seconds]
<no-defun-allowed> That'll do then, thanks.
<Shinmera> caveat: only supports none/plain login types, and does not support pgp/mime
<no-defun-allowed> Should be enough to login to a specially set up email account and mail the operator a thread backtrace?
<Shinmera> sure
<Shinmera> pretty much all email providers use plain login
<no-defun-allowed> All good then.
duuqnd has quit [Ping timeout: 258 seconds]
nullman has quit [Ping timeout: 272 seconds]
libertyprime has quit [Remote host closed the connection]
akoana has left #lisp ["Leaving"]
<larsen> good morning! I am having a problem with Slime I don't know how to debug and fix. If I invoke macroexpansion (slime-expand-1, C-c RET), instead of showing the result of the macro expansion in a dedicated buffer (*slime-macroexpansion*), it: opens said buffer; expands the macro _inplace_, meaning it substitutes the content of my file buffer with the result of the expansion (I then have to revert-buffer to restore the situation). I
<larsen> suspect this has to do with other Emacs extensions I use, but I can't imagine a strategy to debug the problem (other than emacs -Q I guess, and trying to activate my setup piece by piece)
leo_song has quit [Ping timeout: 246 seconds]
leo_song has joined #lisp
Cymew has joined #lisp
<pve> Good morning. Am I correct in assuming that the following must return a string if the package ASD doesn't exist:
<pve> (handler-case (read-from-string "ASD::QWE") (package-error (x) (package-error-package x)))
heisig has joined #lisp
<jackdaniel> pve: I think that standard does not specify whether reader signals a package-error in this situation
<jackdaniel> i.e it could be a read-error, or simple-error
<jackdaniel> (and that is unfortunate)
<pve> jackdaniel: aha, interesting
<pve> thank you
<pve> and unfortunate
dale has quit [Quit: My computer has gone to sleep]
<jackdaniel> http://www.lispworks.com/documentation/HyperSpec/Body/02_ce.htm "For example ..., the reader signals a correctable error" (examples are not normative, but it is a paragraph just using the phrase "for example")
<jackdaniel> and "If editor::buffer is seen, the effect is exactly the same as reading buffer with the EDITOR package being the current package. "
<pve> ok, that's good to know
ralt has joined #lisp
pjb has joined #lisp
Mandus has quit [Ping timeout: 265 seconds]
Mandus has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
shangul has quit [Ping timeout: 240 seconds]
liberliver has quit [Quit: liberliver]
<larsen> ah, for the record, it seems it was edwin mode
ljavorsk has joined #lisp
v0|d has quit [Ping timeout: 260 seconds]
sdumi has joined #lisp
liberliver has joined #lisp
sdumi has quit [Ping timeout: 256 seconds]
datajerk has quit [Ping timeout: 264 seconds]
quazimodo has quit [Ping timeout: 246 seconds]
pjb has quit [Ping timeout: 272 seconds]
smazga has joined #lisp
entel has quit [Quit: Connection closed for inactivity]
andrei-n has joined #lisp
datajerk has joined #lisp
karlosz has quit [Quit: karlosz]
wxie has joined #lisp
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
smazga has quit [Ping timeout: 258 seconds]
gko`` has joined #lisp
ramus has quit [Ping timeout: 264 seconds]
ramus has joined #lisp
gko` has quit [Ping timeout: 256 seconds]
Va has joined #lisp
kinope has joined #lisp
Va has quit [Client Quit]
pve has quit [Ping timeout: 258 seconds]
nullman has joined #lisp
gravicappa has quit [Ping timeout: 258 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
nicktick has quit [Ping timeout: 260 seconds]
pve has joined #lisp
Cymew has quit [Ping timeout: 260 seconds]
rgherdt has quit [Remote host closed the connection]
rgherdt_ has joined #lisp
ncakerlist has joined #lisp
jesse1010 has joined #lisp
pjb has joined #lisp
cosimone has joined #lisp
john_ is now known as gaqwas
gaqwas has quit [Changing host]
gaqwas has joined #lisp
shangul has joined #lisp
CrazyEddy has quit [Ping timeout: 246 seconds]
CrazyEddy has joined #lisp
toorevitimirp has joined #lisp
wxie has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 256 seconds]
wxie has joined #lisp
whiteline_ has quit [Remote host closed the connection]
whiteline_ has joined #lisp
orivej has joined #lisp
Codaraxis__ has joined #lisp
Va has joined #lisp
cosimone has quit [Quit: Quit.]
andrei-n has quit [Quit: Leaving]
Codaraxis_ has quit [Ping timeout: 256 seconds]
Bourne has joined #lisp
mgr_ has quit [Read error: Connection reset by peer]
mgr_ has joined #lisp
whiteline_ has quit [Remote host closed the connection]
whiteline_ has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
wxie has quit [Ping timeout: 256 seconds]
iissaacc has joined #lisp
<iissaacc> web scraping in common lisp is an incredibly pleasant experience
orivej has quit [Ping timeout: 256 seconds]
<phoe> iissaacc: XML represented as S-expressions is pleasant in general
<phoe> instead of </p></div></div></div> one has ))))
<phoe> I find that to be an amazing tradeoff
orivej has joined #lisp
eta has quit [Read error: Connection reset by peer]
<p_l> just remember to handle the fact that XML has packages with local nicknames :P
<phoe> so do we nowadays!
eta has joined #lisp
<iissaacc> and when i just blindly used pmap from lparallel in the REPL without doing any setup
<iissaacc> instead of an error message i get a friendly "welcome to lparallel!" condition prompting me to set up a kernel
bhartrihari has left #lisp ["Disconnected: closed"]
<iissaacc> why dont more people use this language?????
eta has quit [Read error: Connection reset by peer]
<p_l> phoe: yes, but that requires a bit more work if you are going to represet XML in S-expressions :)
eta has joined #lisp
<pjb> one could map xml namespaces to cl packages…
<p_l> pjb: unfortunately I fear that one would need a special object for XML entities unless one wants to accidentally pollute the image in bad ways, for example to have nickname-independent namespace handling, as well as XML attribute lists
cosimone has joined #lisp
eta has quit [Read error: Connection reset by peer]
eta has joined #lisp
Lord_of_Life_ has joined #lisp
<_death> iissaacc: would be better if it set up a default kernel
Lord_of_Life has quit [Ping timeout: 260 seconds]
Lord_of_Life_ is now known as Lord_of_Life
jello_pudding has quit [Ping timeout: 260 seconds]
iissaacc has quit [Ping timeout: 264 seconds]
_paul0 has quit [Remote host closed the connection]
paul0 has joined #lisp
Bike has joined #lisp
CrazyEddy has quit [Remote host closed the connection]
CrazyEddy has joined #lisp
shifty has joined #lisp
igemnace has quit [Quit: WeeChat 2.8]
kinope has quit [Quit: Connection closed for inactivity]
<p_l> _death: I disagree. IIRC there's a single line to add to setup a kernel, and the main reason to have even the ability to use multiple kernels is to have control over them. If it created a kernel automatically, it would break a lot of stuff in fact
<p_l> (related: why ITA ran, iirc, a customized CCL version that was modified precisely to not start threads automatically)
<phoe> it's hard to perform DWIM if WIM is not well-defined in an objective enough way
jello_pudding has joined #lisp
<phoe> and for multithreading this is exactly the case
<_death> p_l: a default does not preclude multiple kernels.. and a lazy default of a kernel containing nprocs workers makes sense to me.. I don't see why it should break stuff
<_death> right now I have a line in my .sbclrc setting the kernel, and indeed it's an issue when dumping an image.. I could wrap the toplevel with a handler-bind to set it lazily, but..
<p_l> _death: because there are non-trivial interactions in the running environment related to whether you have single or multiple threads
<p_l> and lazy setup has the issue of possibly being triggered by mistake
toorevitimirp has quit [Remote host closed the connection]
<_death> p_l: a default kernel would be useful in a development setting.. an actual application would explicitly init its own kernel
gaqwas has quit [Remote host closed the connection]
<p_l> _death: the issue I see is that anything that triggers threading is a danger in *development* setting. Much less in a deployed application setting
dddddd has joined #lisp
<no-defun-allowed> I guess nproc is usually correct, but some people like to count cores and not hardware threads, and if I was doing something like pmapping URLs to retrieve over a network, I would want more worker threads.
<p_l> it's already an issue when you link to some foreign lib and it triggers a thread when you don't expect it
<p_l> phoe got it right about DWIM being hard when it's hard to know WIM
Va has quit [Quit: Vision[0.10.3]: i've been blurred!]
<no-defun-allowed> (Oh, and you would also have to implement thread count detection, as lparallel doesn't have that to my knowledge.)
<p_l> you'd also need to check things like current resource limits, which is non-trivial and OS specific and nonportable
nicktick has joined #lisp
<_death> it's not hard to find defeaters for any default.. anyway, even if the default default is not to have one, it could still make sense to allow a different default, say by setting lp:*kernel* to a function that can be called to create the actual kernel which will then be assigned to lp:*kernel*
jeosol has quit [Remote host closed the connection]
iissaacc has joined #lisp
<_death> in fact I'm gonna patch my local lparallel to have that
jeosol has joined #lisp
iissaacc has quit [Ping timeout: 256 seconds]
<_death> good, this conversation helped solve that issue ;)
orivej has quit [Quit: No Ping reply in 180 seconds.]
nicktick has quit [Ping timeout: 264 seconds]
orivej has joined #lisp
eta has quit [Read error: Connection reset by peer]
eta has joined #lisp
freshpassport has joined #lisp
nicktick has joined #lisp
rogersm has joined #lisp
bsd4me has joined #lisp
eta has quit [Read error: Connection reset by peer]
eta has joined #lisp
eta has quit [Read error: Connection reset by peer]
eta has joined #lisp
freshpassport has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milanj has joined #lisp
krid has joined #lisp
Balooga has quit [Read error: Connection reset by peer]
hydan has quit [Ping timeout: 265 seconds]
tazjin has quit [Ping timeout: 265 seconds]
yottabyte has quit [Read error: Connection reset by peer]
Balooga has joined #lisp
chewbranca has quit [Read error: Connection reset by peer]
lukego has quit [Read error: Connection reset by peer]
yottabyte has joined #lisp
gjnoonan has quit [Read error: Connection reset by peer]
chewbranca has joined #lisp
lukego has joined #lisp
hydan has joined #lisp
tazjin has joined #lisp
gjnoonan has joined #lisp
dra has joined #lisp
dim has joined #lisp
iissaacc has joined #lisp
yCrazyEdd has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
CrazyEddy has quit [Ping timeout: 246 seconds]
yCrazyEdd is now known as CrazyEddy
wsinatra has joined #lisp
iissaacc has quit [Ping timeout: 256 seconds]
nicktick has quit [Remote host closed the connection]
nicktick has joined #lisp
alejandrozf has joined #lisp
Josh_2 has joined #lisp
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #lisp
<Josh_2> Afternoon all
gaqwas has joined #lisp
alejandrozf has quit [Remote host closed the connection]
rogersm has quit [Read error: Connection reset by peer]
rogersm has joined #lisp
xuxuru has joined #lisp
Cymew has joined #lisp
freshpassport has joined #lisp
<dra> Hello Josh_2!
<phoe> heyyy
rogersm has quit [Quit: Leaving...]
ahungry has joined #lisp
<dra> Heya.
grewal has quit [Ping timeout: 264 seconds]
grewal has joined #lisp
grewal has quit [Ping timeout: 264 seconds]
grewal has joined #lisp
xuxuru has quit [Quit: xuxuru]
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
FreeBirdLjj has joined #lisp
CrazyEddy has quit [Ping timeout: 246 seconds]
reb has joined #lisp
FreeBirdLjj has quit [Ping timeout: 256 seconds]
CrazyEddy has joined #lisp
EvW1 has joined #lisp
ljavorsk has quit [Ping timeout: 256 seconds]
whiteline_ has quit [Remote host closed the connection]
jeosol has quit [Remote host closed the connection]
cosimone has quit [Remote host closed the connection]
whiteline has joined #lisp
cosimone has joined #lisp
entel has joined #lisp
nikkal has joined #lisp
Cymew has quit [Ping timeout: 246 seconds]
younder has joined #lisp
shangul has quit [Ping timeout: 246 seconds]
<Josh_2> sub lexical, super sub lexical scope, all madness!
nicktick has quit [Ping timeout: 258 seconds]
pmden has joined #lisp
<younder> Josh_2, Well one of Lisp's traditional uses has been to experiment with languages. So you'd expect a bit of weirdness.
<Josh_2> most of what I have read in Let Over Λ I just can't see how they would be used practically
<Josh_2> but then again I imagine I thought that about various programming paradigms xD
edgar-rft has joined #lisp
shangul has joined #lisp
<younder> Josh_2, Let over lambda is a bit weird. Most get their bearings with 'Practical Common Lisp' with Peter Seibel
<Josh_2> Yes
<Josh_2> I've read that
<Josh_2> well most of it
<younder> Josh_2, Then there is Common Lisp Recippes' by Edi Weitz
nicktick has joined #lisp
kaftejiman has joined #lisp
eta has quit [Ping timeout: 256 seconds]
<Josh_2> I have read a bit of that
gko has joined #lisp
rgherdt_ has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #lisp
pmden has quit [Quit: Textual IRC Client: www.textualapp.com]
eta has joined #lisp
cosimone has quit [Quit: Quit.]
rgherdt has joined #lisp
efm has quit [Ping timeout: 264 seconds]
FreeBirdLjj has joined #lisp
jw4 has quit [Read error: Connection reset by peer]
cosimone has joined #lisp
jw4 has joined #lisp
efm has joined #lisp
freshpassport has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
efm has quit [Excess Flood]
efm has joined #lisp
Guest74 has joined #lisp
iissaacc has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
bitmapper has joined #lisp
iissaacc has quit [Ping timeout: 246 seconds]
grewal has quit [Remote host closed the connection]
ravndal has quit [Quit: WeeChat 2.8]
<Bike> let over lambda is pretty strange, yes. many of the things in there are in fact impractical
<loli> defmacro! or w/e it is called, can be nice to use. Though I haven't used much outside of that
sjl_ has joined #lisp
rogersm has joined #lisp
ncakerlist has quit [Ping timeout: 265 seconds]
dale_ has joined #lisp
rumbler31_ has joined #lisp
dale_ is now known as dale
<rumbler31_> is there something similar to #x and #b for decimal numbers? I have an interesting bug where I have set print base to 16 and I want to explicitly read a base 10 integer, this is proving hard to google
<phoe> rumbler31_: you can try reading 10.
<phoe> (let ((*read-base* 16)) (read-from-string "10.")) ;=> 10
Guest74 has left #lisp [#lisp]
heisig has quit [Quit: Leaving]
<Bike> rumbler31_: no.
smazga has joined #lisp
yonkunas has joined #lisp
gko has quit [Ping timeout: 256 seconds]
<Krystof> #10r<base 10 integer>
<Krystof> the decimal point at the end is a perfectly good other solution though
rgherdt has quit [Ping timeout: 272 seconds]
<rumbler31_> so i have a usocket connect call where I defined the function that uses this in the repl after I changed print base
<rumbler31_> the resulting connect port gets read into its base 16 version (that miraculously is a legal base 10 number) and that number is passed to the lower level socket open call
<rumbler31_> I don't think its a bug per se, just trying to reason through the logic
<phoe> rumbler31_: how do you change the print base?
<phoe> I assume it's some sort of a global change
<rumbler31_> I thought at first that it would be fixed by being explicit about the base of the number that I typed into the repl, #10rnumber seems to be what I originally asked
<rumbler31_> (setf *print-base* 16)
<phoe> ow
<phoe> it's weird for me to compile whole systems that way
<rumbler31_> then numbers in the repl are printed in base 16 for the most part
<rumbler31_> I didn't compile it that way, I was playing on the repl
<phoe> oh!
<phoe> and then did ASDF:LOAD-SYSTEM or something?
<rumbler31_> I mean, I am not compiling a whole system,
<rumbler31_> I set print base to look at network byte data with plokami and then wrote a funciton in the repl to rebroadcast packets to a udp port
<phoe> oh, yes
<rumbler31_> print-base was already 16 when I wrote (defun once ((open socket host portnumber))
<rumbler31_> so port number was read from decimal into hex, which happened to be a valid decimal number, then that number was passed to the lower level open call
FreeBirdLjj has quit [Remote host closed the connection]
<rumbler31_> oops now i've run out of file handles for opening too many sockets and forgetting to close them lol
mason has quit [Quit: leaving]
orivej_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
mason has joined #lisp
iissaacc has joined #lisp
johan has joined #lisp
johan is now known as Guest56184
kaftejiman has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #lisp
iissaacc has quit [Ping timeout: 240 seconds]
Guest56184 has quit [Quit: Leaving]
hineios73039347 has joined #lisp
Harag has quit [Remote host closed the connection]
Harag has joined #lisp
francogrex has joined #lisp
<francogrex> I am disgusted by swig, language cffi and uffi are no longer support. makes me want to vomit
hineios7303934 has quit [Ping timeout: 246 seconds]
FreeBirdLjj has joined #lisp
efm has quit [Ping timeout: 256 seconds]
marusich has quit [Ping timeout: 246 seconds]
pjb has quit [Remote host closed the connection]
francogrex has quit [Remote host closed the connection]
pjb has joined #lisp
grumble has quit [Quit: they'll keep us apart and they won't stop breaking us down]
gravicappa has joined #lisp
efm has joined #lisp
EvW1 has quit [Ping timeout: 256 seconds]
grumble has joined #lisp
kinope has joined #lisp
bsd4me has quit [Remote host closed the connection]
bendersteed has joined #lisp
dominic34 has joined #lisp
bsd4me has joined #lisp
sdumi has joined #lisp
cosimone has quit [Quit: Quit.]
<kinope> Hi! Quick question. Are Common Lisp's bitwise operations like 'logand' considered as performant as their C/C++ counterparts? I've seen this used as an optimisation where a bitmask that is a power of two is used to do modular arithmetic.
<ralt> kinope: you can probably double check that with DISASSEMBLE
<phoe> kinope: basically, modular arithmetic in CL happens only when you ask for it
<phoe> which means that you need to do a proper LDB or MOD for the compiler to notice "oh, I can optimize it into a single CPU instruction on a machine word"
<pjb> kinope: can C/C++ & perform a bit and operation on 10,000 bits?
<phoe> kinope: that's a completely orthogonal issue
<pjb> kinope: I don't think C/C++ can reach the level of performance of CL…
shangul has quit [Ping timeout: 256 seconds]
<pjb> kinope: if you want to learn something, try to write in C: (defun f (x) (if (< x 0) 1 (* x (f (- x 1))))) (defun main () (print (f 1000)))
<pjb> kinope: then you can try to compare the performance of your C program and of this CL program.
<pjb> and tell us what you find.
shifty has quit [Ping timeout: 256 seconds]
<phoe> pjb: right, let's solve a different problem and call that the solution
<pjb> indeed, C and CL don't solve the same problems.
sdumi has quit [Ping timeout: 246 seconds]
<_death> rumbler31_: I use a repl-specific pprint dispatch table for pervasive hex printing.. see https://github.com/death/slime/commit/fedcefab7e8378ea90979ff3697056dea092ae0a
fsalch has joined #lisp
<kinope> ralt: unfortunately for me ECL doesn't do dissasemble, but I did just have a look at the source and it looks like logand is directly translated to C's bitwise and '&'. I can't find where mod is implemented just now though.
<jackdaniel> kinope: try (disasemble '(lambda () (mod whatever)))
<jackdaniel> (mind the quote)
FreeBirdLjj has quit [Remote host closed the connection]
<jackdaniel> the function mod is implemented in src/c/num_co.d, but the compiler may opencode it into something more efficient if it i.e knows that arguments are fixnums
<kinope> pjb: I couldn't tell you about that operation on 10000 bits, Bit twiddling is not my forte
<jackdaniel> regarding bitwise operations, their optimizations are in src/cmp/cmpopt-bits.lsp
sdumi has joined #lisp
<kinope> bjb: Is that a function utillising tail-call recursion?
<kinope> Oh, thanks for that jackdaniel! I appreciate the assist.
<jackdaniel> note that mod is hardly a bit fiddling operation
<jackdaniel> for working with bits there are ldb, dpb and ash
<jackdaniel> (and some other)
<pjb> kinope: (defun make-lots-of-bits (n) (map-into (make-array n :element-type 'bit) (lambda () (random 2)))) (let* ((n 10000) (a (make-lots-of-bits n)) (b (make-lots-of-bits n)) (c (bit-and a b))) (print a) (print b) (print c))
<kinope> jackdaniel: I'm looking at an implementation of a lock-free data structure that I think is bit twiddling for the added performance. I'm just trying to figure out if i can get away with using just the standard 'mod' to the same effect.
sdumi has quit [Ping timeout: 260 seconds]
<_death> kinope: a tail recursive one would have something like (f (- x 1) (* x acc)) in the "induction step", i.e. calling itself would be the last operation
<pjb> kinope: or: (defun make-int-with-lots-of-bits (n) (random (expt 2 n))) (let* ((n 10000) (a (make-int-with-lots-of-bits n)) (b (make-int-with-lots-of-bits n)) (c (logand a b))) (print a) (print b) (print c))
<pjb> kinope: same exercise as above, do the same in C, and tell us what you get.
<jackdaniel> pjb: I don't think taht this is helpful
<jackdaniel> s/taht/that/
<pjb> Ok. the original question was idiotic. Does this help?
<phoe> neither do I, but that's pjb being mostly right and mostly irrelevant
<kinope> _death: oh I see
adip has quit [Ping timeout: 256 seconds]
<jackdaniel> it was a question of uneducated folk, but I don't think that confusing him more would make him ask better questions
<phoe> pjb: answering a question with an equally idiotic answer doesn't help anyone, even if the original question is, in your opinion, idiot.s
<phoe> s/idiot.s/idiotic./
<pjb> phoe: perhaps you should do those exercises yourself, and learn something!
<phoe> pjb: perhaps you should do some exercises on being relevant instead of abrasive.
adip has joined #lisp
<pjb> phoe: the original questionw as a comparison of C and CL on logand. There is no more relevant than to write two programs, in C and in CL using logand.
<kinope> I may give that a shot later pjb, but right now its 3am in the morning and I'm not set up for C development on my phone, haha.
<pjb> phoe: you have to be an idiot not to see it…
<phoe> pjb: the original question was about using modular arithmetic and its performance, since that's all what C and C++ are capable of unless one uses a bignum library, and your answer was about bignums, which do *not* use modular arithmetic, and therefore your bignum answer did not apply to it.
<phoe> pjb: you have to be an idiot not to see it.
<jackdaniel> please stop calling each other idiots (even in a hypothetical form)
<pjb> phoe: most modular arithemetic is used in cryptography, on numbers bigger than a long long.
* phoe disengages
<pjb> In accounting programs, int are not used for their modular arithmetic.
sdumi has joined #lisp
bhartrihari has joined #lisp
rogersm has quit [Quit: Leaving...]
rumbler31_ has quit [Ping timeout: 256 seconds]
Blukunfando has joined #lisp
bhartrihari has left #lisp ["Disconnected: closed"]
bhartrihari has joined #lisp
mdr has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
sdumi has quit [Ping timeout: 264 seconds]
iissaacc has joined #lisp
entel has quit [Quit: Connection closed for inactivity]
sdumi has joined #lisp
shangul has joined #lisp
mdr_ has joined #lisp
iissaacc has quit [Ping timeout: 264 seconds]
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
bitmapper has quit [Remote host closed the connection]
enedil has joined #lisp
<enedil> Hey
<enedil> Why does this return (3 4) in sbcl?
<enedil> (let (l (list 2)) (pushnew 4 l) (pushnew 3 l) l)
bitmapper has joined #lisp
<enedil> In particular, what happens with the 2?
gaqwas has quit [Remote host closed the connection]
<enedil> Maybe that's not readable: version with renamed variable:
<enedil> (let (my-list (list 2)) (pushnew 4 my-list) (pushnew 3 my-list) my-list)
nicktick has quit [Ping timeout: 256 seconds]
bendersteed has quit [Ping timeout: 265 seconds]
<Bike> you probably mean (let ((l (list 2))) ...)
<Bike> (let (l (list 2)) ...) binds L to nil, and LIST to 2
<enedil> oh, damn, you're right
<enedil> why isn't that an error?
milanj has quit [Quit: This computer has gone to sleep]
<enedil> It would be useful not to allow implicit binding to NIL
<Bike> it's a shorthand syntax.
<reb> It's in the language specification and occurs in real programs.
nicktick has joined #lisp
<enedil> I'll take your word, I don't have much experience programming in lisp
bhartrihari has left #lisp [#lisp]
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #lisp
shangul has quit [Ping timeout: 264 seconds]
<phoe> enedil: that's what allows one to write (let (x) ...)
<phoe> it's equivalent to (let ((x nil)) ...)
sdumi has quit [Read error: Connection reset by peer]
sdumi has joined #lisp
<enedil> oh, cool, in fact that's useful for me right now :p
<_death> it's useful if you want to program FORTRAN in Lisp.. though there are better options like prog and &aux
HiRE_ has quit [Read error: Connection reset by peer]
HiRE has joined #lisp
<kinope> ooh, I like that
orivej_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
<enedil> I mean, I would try to understand id better, but now I'm writing for code to pass my class, due to covid we had "remote classes" - consultations by email, so now, I'm trying to make some code that works. My go-to functional language is OCaml and it wouldn't like this kind of solution too
bendersteed has joined #lisp
cosimone has joined #lisp
<dlowe> I usually only use the bare let variable clause when I intend to setf it
<dlowe> (let (x) ... (setf x (blahblah)))
<dlowe> but that's more personal idiosyncrasy
bhartrihari has joined #lisp
fsalch has quit [Changing host]
fsalch has joined #lisp
rumbler31_ has joined #lisp
mrcom has quit [Ping timeout: 265 seconds]
mrcom has joined #lisp
nicktick has quit [Ping timeout: 246 seconds]
nicktick has joined #lisp
bsd4me has quit [Remote host closed the connection]
sauvin has quit [Ping timeout: 265 seconds]
karlosz has joined #lisp
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #lisp
iissaacc has joined #lisp
mdr has left #lisp [#lisp]
iissaacc has quit [Ping timeout: 260 seconds]
ealfonso has joined #lisp
dominic34 has quit [Quit: dominic34]
karlosz has quit [Quit: karlosz]
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
cosimone has quit [Quit: Quit.]
EvW has joined #lisp
ncakerlist has joined #lisp
karlosz has joined #lisp
shifty has joined #lisp
iissaacc has joined #lisp
<Xach> dlowe: i use that form in COND sometimes
<Xach> like (cond ((setf result (blah ...)) <use result>) ...))))
iissaacc has quit [Ping timeout: 258 seconds]
andrei-n has joined #lisp
zulu-inuoe_ has joined #lisp
zulu-inuoe has quit [Ping timeout: 246 seconds]
rogersm has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
ncakerlist has quit [Read error: Connection reset by peer]
ncakerlist has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
krid has quit [Ping timeout: 256 seconds]
cosimone has joined #lisp
karayan has quit [Remote host closed the connection]
dra has quit [Quit: Leaving]
entel has joined #lisp
wsinatra has quit [Quit: WeeChat 2.8]
lalilulelo has quit [Quit: Leaving]
kinope has quit [Quit: Connection closed for inactivity]
karayan has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
rogersm has quit []
iAmDecim has joined #lisp
krid has joined #lisp
akoana has joined #lisp
shka_ has quit [Ping timeout: 264 seconds]
younder has quit [Quit: Leaving]
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
Inline has joined #lisp
<pjb> dlowe: I prefer to use let rather than setf: (cond ((let ((result (compute-result))) (do-something-with result) result)) …) ; not the empty body.
ncakerlist has quit [Read error: Connection reset by peer]
SGASAU` has quit [Quit: ERC (IRC client for Emacs 26.3)]
ncakerlist has joined #lisp
SGASAU has joined #lisp
gaqwas has joined #lisp
jorj` has joined #lisp
jorj` has quit [Remote host closed the connection]
X-Scale` has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
X-Scale has quit [Ping timeout: 256 seconds]
X-Scale` is now known as X-Scale
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
papachan has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
rumbler31_ has quit [Ping timeout: 246 seconds]
andrei-n has quit [Quit: Leaving]
asarch has joined #lisp
iissaacc has joined #lisp
smazga has quit [Quit: leaving]
pve has quit [Quit: leaving]
iissaacc has quit [Ping timeout: 265 seconds]
sjl_ has quit [Ping timeout: 256 seconds]
bhartrihari has joined #lisp
Jesin has quit [Quit: Leaving]
rumbler31_ has joined #lisp
ahungry has quit [Remote host closed the connection]
nikkal has quit [Ping timeout: 256 seconds]
EvW has quit [Ping timeout: 260 seconds]
Jesin has joined #lisp
nicktick has quit [Ping timeout: 264 seconds]
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
rumbler31_ has quit [Ping timeout: 265 seconds]
ncakerlist has quit [Ping timeout: 256 seconds]
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
efm has quit [Read error: Connection reset by peer]
efm has joined #lisp
asarch has quit [Quit: Leaving]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #lisp
hineios73039347 has quit [Read error: Connection reset by peer]
hineios73039347 has joined #lisp
orivej has quit [Ping timeout: 240 seconds]
boquete has quit [Quit: Changing server]
theseb has joined #lisp
gravicappa has quit [Ping timeout: 260 seconds]
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
jprajzne has quit [Client Quit]
thmprover has joined #lisp
jprajzne has joined #lisp
jeosol has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
emys has joined #lisp
iAmDecim has quit [Ping timeout: 240 seconds]
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
cosimone has quit [Ping timeout: 256 seconds]
SAL9000 has quit [Quit: WeeChat 2.7.1]
bendersteed has quit [Ping timeout: 246 seconds]
Lord_of_Life_ has joined #lisp
EvW has joined #lisp
random-nick has quit [Ping timeout: 256 seconds]
Lord_of_Life has quit [Ping timeout: 256 seconds]
Lord_of_Life_ is now known as Lord_of_Life
iissaacc has joined #lisp
emys has quit [Quit: Leaving]
wxie has joined #lisp
iissaacc has quit [Ping timeout: 246 seconds]
gaqwas has quit [Remote host closed the connection]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #lisp
bendersteed has joined #lisp
efm has quit [Ping timeout: 264 seconds]
Inline has quit [Remote host closed the connection]
efm has joined #lisp
entel has quit [Quit: Connection closed for inactivity]
Inline has joined #lisp
quazimodo has joined #lisp
igemnace has joined #lisp
scymtym has quit [Ping timeout: 256 seconds]
Harag has quit [Remote host closed the connection]
Harag has joined #lisp
theseb has quit [Quit: Leaving]
ealfonso has quit [Read error: Connection reset by peer]
enedil has quit [Quit: Leaving.]
efm_ has joined #lisp
efm_ has quit [Client Quit]
reb has quit [Ping timeout: 256 seconds]
efm has quit [Ping timeout: 246 seconds]