Xach 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>
sander has quit [Quit: So long! :)]
karlosz_ has quit [Ping timeout: 268 seconds]
Lord_of_Life has quit [Ping timeout: 260 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
random-nick has quit [Ping timeout: 268 seconds]
taiju has joined #commonlisp
waleee has quit [Quit: WeeChat 3.3]
gaqwas has quit [Ping timeout: 260 seconds]
perrierjouet has joined #commonlisp
waleee has joined #commonlisp
pranavats has left #commonlisp [#commonlisp]
cross has joined #commonlisp
ec has quit [Quit: ec]
<etimmons> shka: happy to help! (Sorry, got pulled away for family stuff earlier)
waleee has quit [Quit: WeeChat 3.3]
pranavats has joined #commonlisp
waleee has joined #commonlisp
<Guest74> lisp123: you might be interested in cl:dribble
Guest74 has quit [Ping timeout: 260 seconds]
waleee has quit [Quit: WeeChat 3.3]
sander has joined #commonlisp
waleee has joined #commonlisp
attila_lendvai has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
elderK has quit [Quit: Connection closed for inactivity]
elderK has joined #commonlisp
silasfox has quit [Ping timeout: 268 seconds]
silasfox has joined #commonlisp
mrcom_ has quit [Read error: Connection reset by peer]
mrcom has quit [Read error: Connection reset by peer]
horar has joined #commonlisp
mrcom has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.3]
horar has quit [Quit: Client closed]
horar has joined #commonlisp
horar has quit [Client Quit]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 268 seconds]
ahlk has quit [Read error: Connection reset by peer]
ahlk has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
perrierjouet has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
tyson2 has quit [Remote host closed the connection]
mrcom has joined #commonlisp
asarch has joined #commonlisp
lisp123 has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
s-liao has quit [Quit: Client closed]
<pillton> For those that were following the layering discussion yesterday, a recent patch to stealth-mixin added the function, stealth-mixin:add-mixin, which adds a class to another class' superclass list. This is one way to define a "layer" and add it to an existing class.
<Colleen> pillton: mfiano said 12 hours, 46 minutes ago: You might find this thesis interesting; a more thorough explanation of the SDfF propagation network technique, which also uses the layering technique: https://www.cs.tufts.edu/~nr/cs257/archive/alexey-radul/phd-thesis.pdf
<pillton> mfiano: Thanks. That thesis is referenced in the Software Design for Flexibility book. I had already downloaded it to read.
<beach> Good morning everyone!
semz has quit [Ping timeout: 260 seconds]
hofenstad has joined #commonlisp
semz has joined #commonlisp
asarch has quit [Ping timeout: 268 seconds]
domovod has joined #commonlisp
Oladon has joined #commonlisp
domovod has quit [Ping timeout: 268 seconds]
domovod has joined #commonlisp
lisp123 has quit [Remote host closed the connection]
mrcom_ has joined #commonlisp
Bike has quit [Quit: Connection closed]
igemnace has quit [Read error: Connection reset by peer]
igemnace has joined #commonlisp
Oladon has quit [Quit: Leaving.]
Skyfire has quit [Read error: Connection reset by peer]
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #commonlisp
shka has joined #commonlisp
rgherdt has joined #commonlisp
yewscion has joined #commonlisp
<shka> good morning
edgar-rft has quit [Quit: Leaving]
<beach> Hello shka.
Lycurgus has quit [Quit: Exeunt]
Nilby has joined #commonlisp
pillton has quit [Remote host closed the connection]
yewscion has quit [Ping timeout: 268 seconds]
karlosz_ has joined #commonlisp
karlosz_ is now known as karlosz
gaqwas has joined #commonlisp
rotateq has joined #commonlisp
anddam has quit [Quit: WeeChat 3.3]
s-liao has joined #commonlisp
pve has joined #commonlisp
dec0d3r has joined #commonlisp
dec0d3r has quit [Remote host closed the connection]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 268 seconds]
gaqwas has quit [Ping timeout: 260 seconds]
hendursa1 has joined #commonlisp
xantoz has quit [Ping timeout: 260 seconds]
<rotateq> new quote for the hall of fame "C# is the most expanded language there is"
<hayley> There's a hall of fame?
<rotateq> I just collect them now.
hendursaga has quit [Ping timeout: 276 seconds]
<rotateq> but ok, the guy comes mostly from industry (Siemens)
<rotateq> has some other good opinions and views on things
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
<beach> What does "expanded" mean in this context? Verbose?
<rotateq> beach: in terms of libraries and what it can do out of itself
<beach> As I recall, the C# standard is very old.
<rotateq> ah so it has a real standard?
<beach> It had an early one, I believe.
<rotateq> hm okay
<beach> Otherwise, it is not a language at all in my opinion. It is a programming system.
<rotateq> yes
<rotateq> madness comes in many forms
<rotateq> but ok, Microsoft catched some of the Haskell GHC people for the research group in Cambridge to also work on F# and LINQ
<rotateq> I was confused when the mentioned guy (who is some years older) told, that he programmed macros in Fortran in the past. But then I asked him and he said: no where we did that they built those preprocessor things on their own. i bet it just was text replacement like in C
<beach> That's what most people think when they here "macro", and which is why those people are often not impressed when we claim that the ability to write macros in Common Lisp is an essential feature of the language.
<rotateq> or they just associate MS Word macros
<rotateq> yes I will hold me back saying that, will bring nothing
<Nilby> The Fortran pre-processors were quite complicated, almost being a separatelanguage.
<shka> oh, interesting
<rotateq> so they also can't interact with each other
<rotateq> or better "understand"
<Nilby> The fortran pre-processors sort of operated like the original C++ "cfront".
karlosz has quit [Quit: karlosz]
<pjb> you mean f2c
<shka> perhaps macros did not have such bad name as today
<shka> and C is to blame :P
<pjb> cpp more exactly :-)
<shka> cpp macros are the exact same thing
<shka> which is a part of the problem
<shka> because C++ has namespaces
<shka> and macros simply ignore those
<rotateq> beach: I often think of the allegory of the cave from Platon for those situations.
<beach> I can see that.
<rotateq> or Occam's razor, asking "What is more probable, that you know 'everything' or that there is more to things you cover as trivial or not possible?"
perrierjouet has quit [Quit: WeeChat 3.3]
dec0d3r has joined #commonlisp
dec0d3r has quit [Remote host closed the connection]
perrierjouet has joined #commonlisp
random-nick has joined #commonlisp
cosimone has joined #commonlisp
treflip has joined #commonlisp
s-liao has quit [Ping timeout: 256 seconds]
treflip has quit [Client Quit]
epolanski has joined #commonlisp
<jackdaniel> rotateq: read this, very much relevant: https://www.dreamsongs.com/Files/Incommensurability.pdf
<jackdaniel> and eye opening - people are not fools, they often operate under different ontologies
<rotateq> right, I didn't want to say that :) thx
<rotateq> haha it's with one of the famous Sheldon Cooper quotes
aartaka has joined #commonlisp
s-liao has joined #commonlisp
igemnace has quit [Remote host closed the connection]
edgar-rft has joined #commonlisp
scymtym has quit [Ping timeout: 264 seconds]
aartaka has quit [Ping timeout: 268 seconds]
random-nick has quit [Ping timeout: 268 seconds]
s-liao has quit [Quit: Client closed]
s-liao has joined #commonlisp
s-liao has quit [Quit: Client closed]
s-liao has joined #commonlisp
CrashTestDummy2 has joined #commonlisp
scymtym has joined #commonlisp
CrashTestDummy3 has quit [Ping timeout: 246 seconds]
tyson2 has joined #commonlisp
xantoz has joined #commonlisp
servytor has joined #commonlisp
Nilby has quit [Ping timeout: 268 seconds]
<servytor> I am trying to decide between common lisp and haskell for a project
<rotateq> and you know both well?
<servytor> rotateq: not at all. I have some experience with common lisp, but none with haskell.
<servytor> what goes against haskell is that the haskell language server is just too unstable for me (have to restart it numerous times)
<servytor> and I mean I am an idiot writing fizzbuzz and the hls is giving me trouble
<rotateq> i have trouble here cause someone said 0 is a positive number
<beach> servytor: If you are looking for advice here, the recommendation might be a bit biased.
<rotateq> servytor: and maybe would be good to know what kind of project :)
aeth has quit [Ping timeout: 260 seconds]
<servytor> it would be a numerical project, with gigs of data
<servytor> I know I should be using something like python or r, but I thought I would check out other languages anyway
<servytor> I've heard that haskell has a lot of trouble with numerical performance (just parsing large csv's) because of the constant boxing/unboxing (? no clue if I said that correctly)
<Alfr> rotateq, usually positive are those larger than 0, and positive numbers packaged with zero are usually called non-negative.
aeth has joined #commonlisp
<Alfr> s/positive/positive numbers/
<servytor> I guess my main question is: do you lose confidence in common lisp when going past 10klocs or so? I mean do you get lost and forget what a function returns often?
<servytor> I am a very forgetful person
<rotateq> Alfr: right!
<rotateq> servytor: you can compile with the llvm backend
<rotateq> Alfr: there is one simple exercise in TAoCP chapter 1 at the beginning: "Which is the smallest positive number?"
<Alfr> servytor, maybe choose meaningful/descriptive names for your functions?
<semz> That exercise is a classic intro to ill-defined questions in my experience
<Alfr> rotateq, I don't know TAoCP, but in Q and R there is no such number; for integers that should be 1.
<rotateq> if know how to do things with GHC it can get really efficient, also cause of lazy evaluation
<rotateq> Alfr: right, it is sort of an early rare trap question :)
<Alfr> rotateq, or maybe least-positive-long-float? :p
<rotateq> Knuth writes in answers to the exercises there is none, take r then r/2 is smaller and stays positive
<rotateq> haha okay, if taking things from the quantized point of view :P
<rotateq> okay I just imagine the industry thinks or wants 0 to be positive
<rotateq> so also when they have made 0 value creation "everything still positive"
<semz> servytor: 10000 lines of Lisp is quite a lot of code, moreso than in other languages. It's definitely over the threshold where I would start splitting the code up into smaller modules.
<semz> And then the answer depends on how well these modules are designed.
<servytor> one reason I really want to use haskell is that I want to use this library: https://wickstrom.tech/programming/2017/10/27/motor-finite-state-machines-haskell.html
<servytor> because I am dealing with things that have so many different states... and writing the state transition code is okay in lisp, but nothing helps to make sure you got all the cases
<rotateq> servytor: oh this wickstrØm is capable, has written this komposition screen cast editor and wrote about property testing such applications
Bike has joined #commonlisp
<rotateq> hm I think you can use CLOS for that in an elegant way
<rotateq> like with design by contracts
pranavats has left #commonlisp [#commonlisp]
azimut_ has joined #commonlisp
azimut has quit [Ping timeout: 276 seconds]
<_death> servytor: documenting things a bit helps
<rotateq> oh boy it goes on with such old industry view points "so never give source code, people who change it are the most bad."
varjag has joined #commonlisp
s-liao has quit [Quit: Client closed]
pranavats has joined #commonlisp
Guest74 has joined #commonlisp
s-liao has joined #commonlisp
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #commonlisp
waleee has joined #commonlisp
<jcowan> The Ratfor preprocessor didn't know much Fortran; you could stiil get errors from the underlying Fortran compiler. EFL had a full parser for Fortran + extensions. F likewise has a full parser, but it is for a subset of Fortran (basically eliminating all the old stinky features).
robin_ has joined #commonlisp
robin__ has joined #commonlisp
robin has quit [Killed (NickServ (GHOST command used by robin__))]
robin__ is now known as robin
robin_ has quit [Ping timeout: 264 seconds]
waleee has quit [Quit: WeeChat 3.3]
s-liao has quit [Quit: Client closed]
clos-encounters has quit [Quit: ERC (IRC client for Emacs 27.2)]
Skyfire has joined #commonlisp
azimut_ has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
azimut has joined #commonlisp
anddam has joined #commonlisp
lisp123 has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
rotateq has quit [Remote host closed the connection]
Josh_2 has joined #commonlisp
lisp123 has quit [Ping timeout: 268 seconds]
ec has joined #commonlisp
tyson2 has joined #commonlisp
kadir has joined #commonlisp
<Josh_2> 'Ello
waleee has joined #commonlisp
<beach> Hello Josh_2.
<Josh_2> Hey :wave:
<Josh_2> _death: You here?
<Josh_2> _death: I think Ironclads crc algorithm is crc32b and I need 32a (maybe)
waleee has quit [Ping timeout: 268 seconds]
bort has joined #commonlisp
<Josh_2> well idk
ec has quit [Ping timeout: 276 seconds]
ec has joined #commonlisp
bort has quit [Quit: Leaving.]
<Josh_2> Well I tried crc32 and that didn't work either. Why is this stuff so annoying :(
domovod has quit [Ping timeout: 268 seconds]
domovod has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
Catie has joined #commonlisp
<_death> are the digests different for the same data?
Jing has joined #commonlisp
ec has quit [Ping timeout: 276 seconds]
<Josh_2> wdym?
<_death> I assume you have something that works in notlisp, and something that doesn't in lisp, so that you can compare the intermediate values and find out where the differences are
ec has joined #commonlisp
lisp123 has joined #commonlisp
<_death> so for example if you have crc32("hello") => "12345678" and (crc32 "hello") => "3610a686" you know that's an issue
<Josh_2> Okay yes I have that
<Josh_2> I found some example code someone wrote to verify in php and they included their post request. Seems they are not using a hex string from the crc32 but a decimal value
<_death> does that mean you figured it out
<Josh_2> "and expressed as a base 10, unsigned integer." no it does not
<_death> (nibbles:ub32ref/le (ironclad:digest-sequence :crc32 (babel:string-to-octets "hello")) 0) ;; assuming little endian
<Josh_2> Now I have!
<Josh_2> It finally works!
<Josh_2> What a royal pita :joy:
<_death> congratulations
<Josh_2> Thanks for all your help and patience _death !
<_death> ;)
<Josh_2> I will put this code into my paypal wrapper :thumbsup:
nckx has quit [Quit: Updating my Guix System <https://guix.gnu.org>]
nckx has joined #commonlisp
aeth has quit [Ping timeout: 264 seconds]
aeth has joined #commonlisp
domovod has quit [Ping timeout: 268 seconds]
attila_lendvai has quit [Ping timeout: 268 seconds]
aeth has quit [Ping timeout: 268 seconds]
aeth has joined #commonlisp
susam has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
susam has joined #commonlisp
ec has quit [Ping timeout: 276 seconds]
kadir has left #commonlisp [#commonlisp]
ec has joined #commonlisp
* _death ponders (ldi (int 32 0 :unsigned :little) octets)
<_death> position not that nice there
<_death> so maybe (ldi u32/le octets :start 0)
Inline has joined #commonlisp
<Josh_2> lots of toil for 80 sloc :joy:
<_death> ah, missed ironclad:octets-to-integer
<Josh_2> I have raised an issue on cl-tls asking if they can give me perms to ask Xach or if they will ask to get cl-tls added to ql
<Josh_2> It would be nice if there was a single library that contained everything related to encryption :(
lisp123 has quit [Remote host closed the connection]
<_death> and then sometimes people wish that ironclad should be split into multiple parts ;)
<Josh_2> pfft
<_death> I think they're actually in the process of splitting into multiple systems?
<Josh_2> I've seen the issue wanting it to be modular, but that would just mean you can only ql the things you need
<Josh_2> this wouldn't stop there being something like an ironclad/tls or ironclad/olm package all within the ironclad library
<Josh_2> ironclad/utils etc
lisp123 has joined #commonlisp
<_death> right.. but perhaps it'd need more than single maintainer then
<Josh_2> Yes very true
lisp123 has quit [Ping timeout: 268 seconds]
Jing has quit [Remote host closed the connection]
Jing has joined #commonlisp
ec has quit [Ping timeout: 276 seconds]
ec has joined #commonlisp
pjb has quit [Remote host closed the connection]
mingus_ has joined #commonlisp
pjb has joined #commonlisp
pjb has quit [Changing host]
pjb has joined #commonlisp
mingus has quit [Ping timeout: 268 seconds]
peterhil has joined #commonlisp
peterhil has quit [Remote host closed the connection]
ec has quit [Ping timeout: 276 seconds]
ec has joined #commonlisp
Oladon has joined #commonlisp
<Guest74> anybody have any examples of using usocket with unsigned-byte 8 streams? I don't seem to be sending anything, no payload according to wireshark.
mingus_ is now known as mingus
<Josh_2> You should use force-output
<Josh_2> maybe terpri will do it
<Josh_2> I'd use force-output
<Guest74> huh, that's what I tried the first time and it kept closing the socket.
<Guest74> seems to work now. Probably all the hoops I had to jump through to actually get sane to work on localhost.
<Guest74> I swear following 5 different howtos is not user friendly.
ec has quit [Ping timeout: 276 seconds]
ec has joined #commonlisp
<Guest74> woo, finally seem to be communicating with the scanner. Time for a break for today. If anybody has a sane shared scanner that wants to try the code let me know. I'll probably post it for review anyways.
Guest74 has quit [Quit: Connection closed]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
random-nick has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
pranavats has left #commonlisp [#commonlisp]
ec has quit [Ping timeout: 276 seconds]
pranavats has joined #commonlisp
yewscion has joined #commonlisp
mfiano has quit [Remote host closed the connection]
ec has joined #commonlisp
mfiano has joined #commonlisp
yewscion has quit [Quit: Connection closed]
yewscion has joined #commonlisp
robin_ has joined #commonlisp
robin has quit [Ping timeout: 268 seconds]
varjag has quit [Ping timeout: 260 seconds]
darklands has joined #commonlisp
ec has quit [Ping timeout: 276 seconds]
yewscion has quit [Ping timeout: 260 seconds]
ec has joined #commonlisp
varjag has joined #commonlisp
bcasiello has quit [Ping timeout: 260 seconds]
darklands has quit [Quit: Leaving]
bcasiello has joined #commonlisp
gaqwas has joined #commonlisp
<Josh_2> Idk what a scanner is
ec has quit [Ping timeout: 276 seconds]
ec has joined #commonlisp
beach` has joined #commonlisp
<edgar-rft> I think it's this thing -> https://en.wikipedia.org/wiki/Image_scanner
<edgar-rft> There had been questions before about the SANE protocol that is used for image scanners.
yewscion has joined #commonlisp
beach has quit [Ping timeout: 264 seconds]
<Josh_2> ah I see
mfiano has quit [Read error: Connection reset by peer]
kevingal has joined #commonlisp
Nilby has joined #commonlisp
cage has joined #commonlisp
scymtym has quit [Quit: ERC 5.4.1 (IRC client for GNU Emacs 29.0.50)]
ec has quit [Ping timeout: 276 seconds]
shka has quit [Ping timeout: 268 seconds]
ec has joined #commonlisp
<White_Flame> Does anybody know the history/etymology of the term "macro" as used in programming languages?
<White_Flame> as in the scrollback, some mentions of the difference between "text expander" as most people understand it, and "source code transform" which only a few languages really have
yewscion has quit [Ping timeout: 260 seconds]
aeth has quit [Ping timeout: 268 seconds]
aeth has joined #commonlisp
<Bike> I think that it derives from macro instructions in assemblers, which were so called because they were "big" compared to normal ones. Here's a 1960 article the ACM doesn't let me access https://dl.acm.org/doi/abs/10.1145/367177.367223
tyson2 has joined #commonlisp
<Bike> referencing some 1959 articles also using the term "macro" which i also cannot access
<Nilby> Yes, I was thinking "macro" assemblers are where I first heard that usage.
varjag has quit [Ping timeout: 260 seconds]
cage has quit [Quit: rcirc on GNU Emacs 27.1]
Inline has quit [Ping timeout: 268 seconds]
<White_Flame> ah, makes sense I guess
<Nilby> Probably the word "macro" just sounds smarter and more specific than "big", and "composite" or something is too many letters and syllables.
<White_Flame> so yeah, it does naturally feed into an expansion of sorts, but most expanders have been pretty dumb across programming language history
ec has quit [Ping timeout: 276 seconds]
ec has joined #commonlisp
varjag has joined #commonlisp
yewscion has joined #commonlisp
ec has quit [Remote host closed the connection]
lisp123 has joined #commonlisp
ec has joined #commonlisp
<Josh_2> I need to send updates to a webpage when something is added to my backend, this change doesn't happen very often
<Josh_2> Idk if I should use a websocket, seems like a lot of overhead for infrequent updates. Although I could use the same websocket for all served pages
varjag has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
dec0d3r has joined #commonlisp
lisp123 has quit [Ping timeout: 260 seconds]
yewscion has quit [Quit: Connection closed]
epolanski has quit [Quit: Connection closed for inactivity]
ec has quit [Ping timeout: 276 seconds]
scymtym has joined #commonlisp
waleee has joined #commonlisp
ec has joined #commonlisp
yewscion has joined #commonlisp
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #commonlisp
bcasiello has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: ERC (IRC client for Emacs 27.1)]
ec has quit [Ping timeout: 276 seconds]
aeth has quit [Ping timeout: 260 seconds]
scymtym has quit [Remote host closed the connection]
asarch has joined #commonlisp
aeth has joined #commonlisp
ec has joined #commonlisp
<asarch> How could convert '("pizza" "beer" "tacos") into "(?, ?, ?)"
<asarch> *could you
waleee has quit [Ping timeout: 260 seconds]
<asarch> (format nil "~{?~^, ~}" '("pizza" "tacos" "beer")) eats the heap
<hayley> You'd need to advance through the list.
<hayley> ~{?~*~^, ~}
<hayley> as ~* skips an argument.
waleee has joined #commonlisp
<asarch> Thank you!
<asarch> Thank you very much hayley :-)
yewscion has quit [Ping timeout: 268 seconds]
pve has quit [Quit: leaving]
ec has quit [Ping timeout: 276 seconds]
rgherdt has quit [Ping timeout: 268 seconds]
yewscion has joined #commonlisp
asarch has quit [Quit: Leaving]
khrbt_ has joined #commonlisp
khrbt has quit [Ping timeout: 264 seconds]
waleee has quit [Ping timeout: 264 seconds]
hofenstad has quit [Ping timeout: 268 seconds]
Jing has quit [Remote host closed the connection]
Guest7427 has joined #commonlisp
Jing has joined #commonlisp
yewscion has quit [Ping timeout: 268 seconds]
scymtym has joined #commonlisp
<Guest7427> i thought x11 documentation was bad, this sane stuff is frustrating. Is there some unknown to me meaning of pointer in regards to a network stream?
Catie has quit [Quit: switching clients]
Catie has joined #commonlisp
igemnace has joined #commonlisp
waleee has joined #commonlisp
s-liao has joined #commonlisp
Jing has quit [Remote host closed the connection]
Jing has joined #commonlisp
robin_ is now known as robin
X-Scale` has joined #commonlisp
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` is now known as X-Scale