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/>
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
fosskers has joined #commonlisp
thuna` has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 265 seconds]
Pixel_Outlaw has joined #commonlisp
citizeno24 has quit [Quit: Client closed]
citizeno has joined #commonlisp
dtman34 has quit [Ping timeout: 246 seconds]
dajole has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
fosskers has quit [Ping timeout: 248 seconds]
yaneko has joined #commonlisp
rkazak has joined #commonlisp
decweb has quit [Ping timeout: 260 seconds]
dtman34 has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
dtman34 has joined #commonlisp
decweb has joined #commonlisp
anticomputer_ has quit [Remote host closed the connection]
livoreno has joined #commonlisp
decweb has quit [Ping timeout: 245 seconds]
rkazak has joined #commonlisp
amb007 has joined #commonlisp
JuanDaugherty has joined #commonlisp
Alfr has quit [Quit: Leaving]
amb007 has quit [Ping timeout: 252 seconds]
decweb has joined #commonlisp
pkal_ has joined #commonlisp
pkal has quit [Ping timeout: 245 seconds]
pkal_ is now known as pkal
rkazak has quit [Ping timeout: 246 seconds]
citizeno has quit [Quit: Client closed]
Alfr has joined #commonlisp
rkazak has joined #commonlisp
random-nick has quit [Ping timeout: 265 seconds]
shmorg83 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
dtman34 has joined #commonlisp
fosskers has joined #commonlisp
decweb has quit [Ping timeout: 252 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
dtman34 has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
MyNetAz has quit [Remote host closed the connection]
decweb has joined #commonlisp
MyNetAz has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
rkazak has joined #commonlisp
decweb has quit [Ping timeout: 252 seconds]
brokkoli_originl has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 265 seconds]
JuanDaugherty has quit [Quit: JuanDaugherty]
JuanDaugherty has joined #commonlisp
livoreno has quit [Quit: Connection closed for inactivity]
decweb has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
bleb has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 248 seconds]
bleb has joined #commonlisp
rkazak has joined #commonlisp
fosskers has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 276 seconds]
triffid has joined #commonlisp
jon_atack has joined #commonlisp
triffid has quit [Client Quit]
jonatack has quit [Ping timeout: 248 seconds]
jon_atack has quit [Ping timeout: 252 seconds]
triffid has joined #commonlisp
rkazak has joined #commonlisp
decweb has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 265 seconds]
shmorg83 has quit [Ping timeout: 272 seconds]
bitspook has quit [Remote host closed the connection]
rkazak has joined #commonlisp
bitspook has joined #commonlisp
dinomug has joined #commonlisp
thonkpod_ has quit [Quit: thonkpod_]
thonkpod has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
rkazak has quit [Ping timeout: 272 seconds]
shmorg83 has joined #commonlisp
theruran has quit [Quit: Connection closed for inactivity]
thonkpod has quit [Quit: thonkpod]
thonkpod has joined #commonlisp
amb007 has joined #commonlisp
shmorg83 has quit [Ping timeout: 265 seconds]
Pixel_Outlaw has quit [Remote host closed the connection]
notzmv has quit [Ping timeout: 265 seconds]
<beach> In https://github.com/robert-strandh/Futhark, I define most functions to have a MUMBLE-CORE function without keyword arguments (for the benefit of a compiler macro). This MUMBLE-CORE function usually calls STRING, twice if it is a comparison function. But I define STRING as a generic function. Perhaps I should instead define the MUMBLE-CORE functions to be generic?
<ixelp> GitHub - robert-strandh/Futhark: Implementation of the Common Lisp Strings dictionary
v88m has joined #commonlisp
<beach> Then I could also avoid the CHECK-TYPE calls in the NSTRING-... functions.
<beach> Any opinions?
<beach> The other advantage of a generic function is that client code could then be allowed to define methods on those functions, for example if it has some more efficient way of working with BASE-STRINGs.
rkazak has joined #commonlisp
JuanDaugherty has quit [Quit: JuanDaugherty]
v88m has quit [Read error: Connection reset by peer]
alternateved has joined #commonlisp
v88m has joined #commonlisp
mishoo has joined #commonlisp
fosskers has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
v88m has quit [Ping timeout: 265 seconds]
v88m has joined #commonlisp
yaneko has quit [Quit: parting]
dinomug has quit [Remote host closed the connection]
mgl has joined #commonlisp
* beach vanishes for 2 hours or so, and will read any remarks when he gets back.
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
wacki has joined #commonlisp
rkazak has joined #commonlisp
yaneko has joined #commonlisp
shka has joined #commonlisp
fosskers has quit [Ping timeout: 276 seconds]
rkazak has quit [Ping timeout: 260 seconds]
dino_tutter has joined #commonlisp
Stenotrophomonas has joined #commonlisp
brokkoli_originl has quit [Ping timeout: 265 seconds]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
notzmv has joined #commonlisp
rkazak has joined #commonlisp
edgar-rft_ has joined #commonlisp
edgar-rft` has quit [Ping timeout: 252 seconds]
Stenotrophomonas is now known as brokkoli_origin
<beach> OK, so perhaps nobody has opinions about this, but perhaps some have questions?
rkazak has quit [Ping timeout: 260 seconds]
v88m has quit [Read error: Connection reset by peer]
pve has joined #commonlisp
cage has joined #commonlisp
v88m has joined #commonlisp
cage has quit [Excess Flood]
v88m has quit [Read error: Connection reset by peer]
mari-estel has joined #commonlisp
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
rkazak has joined #commonlisp
dra has joined #commonlisp
v88m has joined #commonlisp
v88m has quit [Ping timeout: 276 seconds]
rkazak has quit [Ping timeout: 248 seconds]
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
v88m has joined #commonlisp
vardhan has joined #commonlisp
cage has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
notzmv has quit [Ping timeout: 265 seconds]
rkazak has joined #commonlisp
varjag has joined #commonlisp
ndanilov_ has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
dajole has quit [Quit: Connection closed for inactivity]
v88m has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
shka has quit [Ping timeout: 244 seconds]
v88m has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
rkazak has joined #commonlisp
shka has joined #commonlisp
shka has quit [Ping timeout: 252 seconds]
younder has quit [Remote host closed the connection]
younder has joined #commonlisp
<splittist> Perhaps we're wondering why you have a function about a naturalistic movie style (mumblecore).
younder has joined #commonlisp
younder has quit [Changing host]
shka has joined #commonlisp
<splittist> So you're asking if, instead of having WITH-CANONICALIZED-AND-CHECKED-STRINGS calling STRING twice to feed to CHECK-BOUNDING-INDICES, this last should be generic?
rkazak has quit [Ping timeout: 248 seconds]
random-nick has joined #commonlisp
rkazak has joined #commonlisp
mari-estel has quit [Quit: overflow]
rkazak has quit [Ping timeout: 265 seconds]
markb1 has quit [Ping timeout: 260 seconds]
cage has quit [Quit: rcirc on GNU Emacs 29.4]
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
shka has quit [Client Quit]
shka has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
rkazak has joined #commonlisp
shka has quit [Read error: Connection reset by peer]
shka has joined #commonlisp
decweb has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
v88m has quit [Ping timeout: 248 seconds]
JuanDaugherty has joined #commonlisp
v88m has joined #commonlisp
<beach> I am suggesting that the -CORE function could be generic.
pkal has left #commonlisp [Killed buffer]
<beach> Checking the bounding indices can't be done entirely by a generic function, because it has to check the values as well as the type. But I could include specialization for the types in the generic function. Like I could specialize to NULL for the END parameter.
<beach> There would be a fairly large number of methods, but they could all be generated by a macro to be used by all comparison functions.
mari-estel has joined #commonlisp
mari-estel has quit [Client Quit]
alfiee has quit [Ping timeout: 276 seconds]
<scymtym> didn't heisig already come up with something like that for the sequence functions based on fast-generic-functions?
alfiee has joined #commonlisp
<beach> The sequence functions heisig wrote are generic, yes. I am not sure there is anything else to come up with here. Am I missing something?
rkazak has joined #commonlisp
<scymtym> at the moment, your -core function is inlinable. without extra steps, using a generic function instead would lose that property. i mentioned heisig's approach because he managed to have both at the same time if i remember correctly
<beach> That's entirely possible.
<ixelp> Consecution/Code/substitute-if-not.lisp at master · s-expressionists/Consecution · GitHub
<beach> Like the part about sealing? Sure.
<scymtym> there is no specialization for the start and end parameters, but the code does use fast-generic-functions instead of normal inlining
markb1 has joined #commonlisp
<beach> I gave that some thought, and I convinced myself that the execution time for any of these functions would be dominated by the essential work it does, rather than by the overhead of calling them, even when inlining could provide type information from the context of the caller.
<beach> But, of course, programmers are notoriously bad at guessing things like that.
<scymtym> i would probably put it like that: since sequence functions and some of the string functions are very similar, shouldn't the same iplementation strategy be ideal for both?
<beach> Sounds right.
<beach> Though the sequence functions specialize to each vector available vector class.
<beach> * to each available vector class.
JuanDaugherty has quit [Quit: JuanDaugherty]
JuanDaugherty has joined #commonlisp
<beach> Thanks for the remarks. I think I'll leave the Futhark implementation as it is for now. And perhaps I'll refresh my memory about fast-generic-functions to see whether they can be used for Futhark.
<scymtym> right. the number subclasses of string should be much smaller. at most the product of simple vs. not-simple and base-character vs character, i think
<beach> Yes.
rkazak has quit [Ping timeout: 276 seconds]
<bike> there's also nil arrays if you have those.
<beach> Indeed.
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
rkazak has joined #commonlisp
mari-estel has joined #commonlisp
* younder takes note of 'fat generic functions'
<younder> fast
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
amb007 has quit [Ping timeout: 265 seconds]
JuanDaugherty has quit [Quit: JuanDaugherty]
v88m has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
v88m has joined #commonlisp
<jackdaniel> fat functions == generic functions --> ffun;
<jackdaniel> fast generic functions == fast fat functions -> fffun; :)
v88m has quit [Read error: Connection reset by peer]
<jackdaniel> (defffun \o/ () :-])
yaneko has quit [Quit: parting]
khinsen has joined #commonlisp
khinsen has left #commonlisp [#commonlisp]
rkazak has joined #commonlisp
jonatack has joined #commonlisp
yaneko has joined #commonlisp
jonatack has quit [Ping timeout: 245 seconds]
jonatack has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
vardhan has quit [Ping timeout: 252 seconds]
cage has joined #commonlisp
cage has quit [Excess Flood]
cage has joined #commonlisp
cage has quit [Client Quit]
cage has joined #commonlisp
<phoe> (defclass fat-generic-function (generic-function) ((fat :initform (make-array 1024))) (:metaclass funcallable-standard-class))
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
<phoe> ;; TODO: make the array adjustable for the chance to put on weight
jonatack has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
citizeno has joined #commonlisp
yaneko has quit [Quit: parting]
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
cage has quit [Excess Flood]
cage has joined #commonlisp
v88m has joined #commonlisp
jonatack has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
shmorg83 has joined #commonlisp
sveit has joined #commonlisp
sveit has quit [Remote host closed the connection]
sveit has joined #commonlisp
shmorg83 has quit [Ping timeout: 244 seconds]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
mari-estel has quit [Quit: overflow]
yaneko has joined #commonlisp
shmorg83 has joined #commonlisp
sveit has quit [Ping timeout: 265 seconds]
shmorg83 has quit [Ping timeout: 248 seconds]
jonatack has quit [Ping timeout: 260 seconds]
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
zxcvz has joined #commonlisp
rkazak has joined #commonlisp
zxcvz has quit [Client Quit]
theruran has joined #commonlisp
rkazak has quit [Ping timeout: 246 seconds]
<yottabyte> kagevf: I tried running the executable in an administrative powershell, still a no go
<yottabyte> I'm wondering if it has something to do with my variable for my database: (defvar *db* (sqlite:connect #P"../../all-plus.db"))
<yottabyte> it's a relative path... and in slime, maybe this works, but when I have the executable, I don't have a relative path to the function that's running that's using this variable? not sure how that works
<yottabyte> I could add an explicit path in a properties file perhaps
rkazak has joined #commonlisp
random-nick has quit [Ping timeout: 276 seconds]
wacki has quit [Read error: Connection reset by peer]
<kagevf> yottabyte: that sounds like a good idea ... you could even use an absolute path as a test just to see if that fixes it, then come up with a solution that will work from any directory. I'm not sure if you can do something like #P"/root/whatever/all-plus.db" with pathnames? if it doesn't work, maybe just try a normal string without using a pathname literal.
<kagevf> a lot of libraries and implementations seem to be pretty forgiving if you use a string instead of a pathname, but I don't know what the limits are to that "forgiveness" hehe
wacki has joined #commonlisp
random-nick has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
<ixelp> CLHS: Glossary-Section P
<phoe> very likely this is meant
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 248 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<kagevf> phoe: instead of "reader macro"?
<kagevf> if so, thank you for the correction +1
rkazak has quit [Ping timeout: 252 seconds]
v88m has quit [Remote host closed the connection]
dajole has joined #commonlisp
v88m has joined #commonlisp
rkazak has joined #commonlisp
khinsen has joined #commonlisp
bitspook has quit [Ping timeout: 272 seconds]
khinsen has left #commonlisp [#commonlisp]
attila_lendvai_ has quit [Read error: Connection reset by peer]
attila_lendvai_ has joined #commonlisp
varjag has joined #commonlisp
varjag has quit [Remote host closed the connection]
mala has quit [Quit: ZNC 1.6.1 - http://znc.in]
mala has joined #commonlisp
mishoo has quit [Ping timeout: 265 seconds]
<phoe> kagevf: oh, I meant the second part - you talking about "a string instead of a pathname"
<BrokenCog> question ... when executing this function: https://termbin.com/c64p ... I get a warning: "(OPEN FN ..." undefined varaible FN ... but ... isn't it just defined via defparameter?
<phoe> ::clhs #p
<ixelp> CLHS: Section 2.4.8.14
thuna` has joined #commonlisp
<phoe> kagevf: #p"..." is equivalent to #.(parse-namestring "...")
<phoe> BrokenCog: you want to use LET instead
<phoe> (let ((fn ...)) (with-open-file (stream fn ...) ...))
<phoe> DEFPARAMETER defines a global dynamic variable, whereas you want a lexical one
<BrokenCog> phoe: that makes sense, but, the warning is still within the same scope of the defparameter isn't it?
<BrokenCog> which is why I don't understand it being "undefined"
<BrokenCog> the scope of the defparameter in this case is the (defun), no?
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
<bike> BrokenCog: you get the warning when the defun is compiled, not when it's loaded shortly thereafter
<bike> BrokenCog: the compiler does not figure out that defparameter is defining a variable, so when it gets to compiling the with-open-file form it is still unaware that fn will be a variable
<phoe> BrokenCog: DEFPARAMETER, when it is not a toplevel form, defines the global variable when it is executed, so at run-time, but the compiler issues the warning about an unknown variable at compile-time; if you extract that DEFPARAMETER outside your DEFUN and put it at the toplevel the warning will go away
<kagevf> phoe: ok, good to know, thank you
<phoe> sure, at runtime it's all coming together anyway, but the compilation stage happens before execution, so a warning is produced
<phoe> kagevf: np
thuna` has quit [Remote host closed the connection]
<BrokenCog> okay .. thanks for the explanation. that makes more sense.
thuna` has joined #commonlisp
<phoe> basically, if you want local variables, use LET and LET* and friends, such as DESTRUCTURING-BIND, MULTIPLE-VALUE-BIND and even LAMBDA for function arguments (which are variables too)
<phoe> DEFPARAMETER and DEFVAR and DEFCONSTANT are for globals
<phoe> ;; FYI, if you're learning lisp and this channel is busy with other chat while you have a question, #clschool also exists
attila_lendvai_ has quit [Read error: Connection reset by peer]
attila_lendvai_ has joined #commonlisp
mwnaylor has quit [Remote host closed the connection]
mwnaylor has joined #commonlisp
v88m has quit [Ping timeout: 252 seconds]
v88m has joined #commonlisp
<BrokenCog> thanks.
attila_lendvai_ has quit [Read error: Connection reset by peer]
chum-cha has joined #commonlisp
attila_lendvai_ has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
attila_lendvai_ has quit [Read error: Connection reset by peer]
attila_lendvai_ has joined #commonlisp
yottabyte has quit [Quit: Connection closed for inactivity]
d4ryus has quit [Ping timeout: 248 seconds]
d4ryus has joined #commonlisp
mgl has quit [Ping timeout: 272 seconds]
Everything has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
jonatack has joined #commonlisp
shmorg83 has joined #commonlisp
notzmv has joined #commonlisp
rkazak has joined #commonlisp
cage has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 245 seconds]
Thermoriax has quit [Ping timeout: 246 seconds]
<cpli> awawa, is there at this point some macro that unifies all the weird `with-*` macros?
thuna` has quit [Quit: out]
attila_lendvai_ has quit [Read error: Connection reset by peer]
attila_lendvai_ has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
attila_lendvai_ has quit [Read error: Connection reset by peer]
shmorg83 has quit [Ping timeout: 252 seconds]
attila_lendvai_ has joined #commonlisp
JuanDaugherty has joined #commonlisp
rkazak has joined #commonlisp
gorignak has joined #commonlisp
rkazak has quit [Ping timeout: 246 seconds]
spdegabrielle has joined #commonlisp
jon_atack has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 265 seconds]
jonatack has quit [Ping timeout: 264 seconds]
akoana has joined #commonlisp
rkazak has joined #commonlisp
alternateved has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
chum-cha has quit [Ping timeout: 248 seconds]
rkazak has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
dino_tutter has quit [Ping timeout: 265 seconds]
amb007 has quit [Ping timeout: 265 seconds]
citizeno has quit [Ping timeout: 240 seconds]
amb007 has joined #commonlisp
notzmv has quit [Ping timeout: 265 seconds]
wacki has quit [Quit: Leaving.]
fosskers has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
ixelp has quit [Ping timeout: 252 seconds]
ixelp has joined #commonlisp
pve has quit [Quit: leaving]
Everything has quit [Quit: leaving]
rkazak has joined #commonlisp