<Colleen>
fosskers: mesaoptimizer said 6 hours, 7 minutes ago: vend "make install" assumes you have "~/.local/bin" directories already
<fosskers>
mesaoptimizer: thanks I'll fix that
treflip has joined #commonlisp
treflip has quit [Read error: Connection reset by peer]
treflip has joined #commonlisp
<fosskers>
mesaoptimizer: alright should be fixed now
wavedepletion has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
<beach>
xcombelle: I haven't seen you for a while. How are things going?
<xcombelle>
things are ok
<beach>
Great!
rkazak has joined #commonlisp
fgarcia has quit [Ping timeout: 248 seconds]
fgarcia has joined #commonlisp
fgarcia has quit [Max SendQ exceeded]
fgarcia has joined #commonlisp
fgarcia has quit [Max SendQ exceeded]
fgarcia has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
brokkoli_origin has quit [Ping timeout: 252 seconds]
brokkoli_origin has joined #commonlisp
pranav has quit [Remote host closed the connection]
pranav has joined #commonlisp
wohonajax has quit [Quit: leaving]
rkazak has joined #commonlisp
veqq has quit [Ping timeout: 248 seconds]
veqq has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
istewart has quit [Quit: Konversation terminated!]
<phantomics>
What determines which symbols appear locally interned when a Lisp form is printed out with (write)? I have a function called from within package foo that uses (write) to print code to a file, but the printed code has things like (foo:bar 1 2 3)
<phantomics>
When 'bar is in the foo package, so I'd think it should just print (bar 1 2 3)
rkazak has joined #commonlisp
<beach>
How about you try to print the current package the same way, just to be sure.
<beach>
... i.e., not by calling write directly, but by printing the current package in the same function that produces (foo:bar 1 2 3).
stanrifkin_ has quit [Quit: Leaving]
kchanqvq has joined #commonlisp
stanrifkin has quit [Quit: Leaving]
X-Scale has quit [Ping timeout: 260 seconds]
fosskers has quit [Remote host closed the connection]
<phantomics>
I tried that before and I think it printed cl-user, I'll double check
<beach>
Then that would explain it.
edgar-rft has joined #commonlisp
<beach>
If the current package is CL-USER when you call WRITE with a symbol in package FOO, then you get the result you see.
<phantomics>
Nope, it prints the right package
<beach>
Then I don't think there should be a package prefix.
<phantomics>
Now it's printing without the prefix. Odd, seems like it just fixed itself, I didn't do anything since last time
edgar-rft` has quit [Ping timeout: 252 seconds]
<phantomics>
And now it's printing the wrong prefix again
<phantomics>
Setting the package to print shows that it's common-lisp-user
<beach>
So everything works as expected.
<phantomics>
Except the package context where this printing happens
<beach>
But that's a different question. WRITE works as expected. The question is why the package changes sometimes.
<phantomics>
It's in a code file that's loaded using (eval) and has no (in-package ...) form at the top. Could that be related?
<beach>
Yes.
<phantomics>
The load happens from within the foo package, will functions called within code in that file still happen in a common-lisp-user context?
<beach>
The package used for LOAD will be the current package when LOAD is called, and it is unrelated what package was current when the code that calls LOAD was compiled.
<beach>
If you want a particular package when LOAD is called, then bind *PACKAGE* around the call to LOAD.
rkazak has quit [Ping timeout: 260 seconds]
<beach>
phantomics: Does that make sense?
<phantomics>
Yes, I'm experimenting with it, but the (load) still seems to produce code interning in cl-user
<phantomics>
The (load) is called as part of code that's instantiated in the foo package
<phantomics>
So inside foo, I have this macro that expands to call (load) on some files of CL code
<phantomics>
Inside that loaded code is a function that writes a form to a file, and the symbols are interned in cl-user instead of foo
<phantomics>
But when you first answered and I tested it the interning was in foo, as it should be. There's some factor I'm not seeing
wavedepletion has quit [Quit: Terminus Est]
<beach>
Again, it is not the package that was current during compilation that counts, but the package that is current when you call LOAD.
<phantomics>
Ok, so if I start in cl-user and call (asdf:load-system 'foo), which invokes the code in that macro, that means that the (load)s that were called in the process were interned in cl-user?
veqq has quit [Remote host closed the connection]
rkazak has joined #commonlisp
<beach>
I don't know the details of your code, so I can't tell, but that would explain it. You can easily check this by (say) replacing LOAD by MY-LOAD and have MY-LOAD print the current package, or even bind the current package to the one you want.
<phantomics>
I'm going that route now, thanks for the help
<beach>
Sure. Good luck.
<phantomics>
I planted a (print (package-name *package*)) just before the (load) and it prints "FOO" but the written code is still from the cl-user standpoint
rgherdt has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
<beach>
Well, I think you have all the information required to debug this issue.
bpanthi977 has quit [Ping timeout: 272 seconds]
<phantomics>
It's not clear why it loads in the cl-user package given the printout, also I tried adding (in-package #:foo) to the header of one of the loaded files, but the write is still from the cl-user standpoint
msv has quit [Quit: Leaving]
<beach>
That will determine the current package during compilation. But it must be the case that when you call WRITE, the current package is not the one you expect.
msv has joined #commonlisp
rkazak has joined #commonlisp
treflip has quit [Ping timeout: 276 seconds]
lusciouslover has quit [Quit: \]
lusciouslover has joined #commonlisp
veqq has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
mwnaylor has joined #commonlisp
alendvai__ has joined #commonlisp
mwnaylor has quit [Remote host closed the connection]
mwnaylor has joined #commonlisp
treflip has joined #commonlisp
treflip has quit [Remote host closed the connection]
dra has joined #commonlisp
treflip has joined #commonlisp
dra has quit [Ping timeout: 252 seconds]
lcn_ has joined #commonlisp
mgl has joined #commonlisp
kaskal has quit [Ping timeout: 276 seconds]
kaskal has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
lusciouslover has quit [Remote host closed the connection]
lusciouslover has joined #commonlisp
pve has joined #commonlisp
X-Scale has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
rkazak has joined #commonlisp
varjag has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
alendvai__ has quit [Ping timeout: 248 seconds]
rkazak has joined #commonlisp
mwnaylor has quit [Remote host closed the connection]
mwnaylor has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
admich1 has quit [Ping timeout: 276 seconds]
admich1 has joined #commonlisp
apac has joined #commonlisp
mwnaylor has quit [Ping timeout: 276 seconds]
mwnaylor has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
fosskers has joined #commonlisp
admich1 has quit [Ping timeout: 244 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 276 seconds]
admich1 has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
mwnaylor has quit [Ping timeout: 276 seconds]
mwnaylor has joined #commonlisp
admich1 has quit [Ping timeout: 260 seconds]
admich1 has joined #commonlisp
rkazak has joined #commonlisp
mwnaylor has quit [Remote host closed the connection]
mwnaylor has joined #commonlisp
fosskers has quit [Ping timeout: 248 seconds]
rkazak has quit [Ping timeout: 245 seconds]
mwnaylor has quit [Ping timeout: 276 seconds]
gooba has quit [Remote host closed the connection]
gooba has joined #commonlisp
gooba has quit [Remote host closed the connection]
gooba has joined #commonlisp
decweb has joined #commonlisp
spdegabrielle has joined #commonlisp
apac has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
fosskers has joined #commonlisp
apac has joined #commonlisp
yitzi has joined #commonlisp
X-Scale has quit [Ping timeout: 260 seconds]
lusciouslover has quit [Remote host closed the connection]
lusciouslover has joined #commonlisp
rkazak has joined #commonlisp
rtypo has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
yitzi has quit [Quit: yitzi]
rkazak has joined #commonlisp
yitzi has joined #commonlisp
yitzi has quit [Quit: yitzi]
bpanthi977 has joined #commonlisp
mange has quit [Quit: Zzz...]
bpanthi977 has quit [Ping timeout: 252 seconds]
<fosskers>
/join #lispgames
rkazak has quit [Ping timeout: 252 seconds]
apac has quit [Ping timeout: 260 seconds]
treflip has quit [Ping timeout: 260 seconds]
varjag has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
yitzi has joined #commonlisp
kchanqvq has quit [Ping timeout: 252 seconds]
spdegabrielle has quit [Quit: Connection closed for inactivity]
fosskers has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
apac has joined #commonlisp
jonatack has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
<acdw>
no u
<beach>
acdw: What?
<acdw>
i humorously mistook fosskers's typo to be an instruction, and was telling them no they should
treflip has joined #commonlisp
yitzi has quit [Quit: yitzi]
johnjaye has quit [Ping timeout: 248 seconds]
X-Scale has joined #commonlisp
treflip has quit [Remote host closed the connection]
jon_atack has joined #commonlisp
treflip has joined #commonlisp
jonatack has quit [Ping timeout: 240 seconds]
rkazak has joined #commonlisp
admich1 has quit [Ping timeout: 260 seconds]
admich1 has joined #commonlisp
bpanthi977 has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
younder` has joined #commonlisp
rtypo has quit [Ping timeout: 240 seconds]
younder` has quit [Remote host closed the connection]
younder` has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
rtypo has joined #commonlisp
younder` has quit [Remote host closed the connection]
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 276 seconds]
younder` has joined #commonlisp
Colleen has quit [Excess Flood]
Colleen has joined #commonlisp
younder` has quit [Remote host closed the connection]
rkazak has joined #commonlisp
stanrifkin has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
jon_atack has joined #commonlisp
ingeniot has joined #commonlisp
jonatack has quit [Ping timeout: 260 seconds]
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 244 seconds]
rkazak has joined #commonlisp
Alfr has quit [Quit: Leaving]
younder has quit [Remote host closed the connection]
ingeniot has quit [Ping timeout: 248 seconds]
younder has joined #commonlisp
<acdw>
do yall use data files in your projects? like, a thing.lisp file that's just a big sexp ?
younder has quit [Remote host closed the connection]
younder has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
X-Scale has quit [Ping timeout: 260 seconds]
johnjaye has joined #commonlisp
Alfr has joined #commonlisp
<jackdaniel>
also binary files and sometmes sqlite
jonatack has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
reb has quit [Remote host closed the connection]
rkazak has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
robin_ has quit [Ping timeout: 276 seconds]
<treflip>
acdw: I prefer bknr.store for small databases and .lisp files for cofnigs
Lycurgus has joined #commonlisp
<jackdaniel>
right, bknr is also very cool, and can export to xml (interop)
<jackdaniel>
and there's cl-store
<Lycurgus>
it'
<Lycurgus>
s still alive?
<acdw>
treflip: interesting
cage has joined #commonlisp
<Lycurgus>
in the lebendig sense, at least one change in the last 6-7 yrs
<Lycurgus>
dead - didn since b4 the pandemic
<treflip>
Lycurgus: it seems like there is a lot of lisp software that is considered stable and doesn't usually requires much maintainance
<Lycurgus>
treflip, u seem to have made an implication and put it in mouth
<Lycurgus>
that a dead software pkg, relieved of change, very possibly for the worse is in genral bad or worthless
<Lycurgus>
in the case of web serviers tho
<treflip>
Lycurgus: it's my assumption and I very likely may be wrong
<Lycurgus>
i'm lookin for some stunning thing, otherwise i wanna know why not hunchentoot or ftm apache
<Lycurgus>
i forget if bknr had a hool, like being continuation based, seems that was another that started with a C
<ixelp>
GitHub - edicl/hunchentoot: Web server written in Common Lisp
<acdw>
in my usecase, i'm using sqlite for pages ... but i want to program pages as wlel
<Lycurgus>
i'd only use sqllite on a device or if i had to
admich1 has quit [Ping timeout: 252 seconds]
<acdw>
why's that?
<Lycurgus>
because pg is no more trouble for me and vastly greater function
admich1 has joined #commonlisp
<acdw>
pg?
<treflip>
acdw: postgresql
<acdw>
i'm def down for hearing other disk-storage solutions for CL objects. i looked at bknr.store and cl-store
<treflip>
it's actually very good
<acdw>
ohhh .. well that requires a daemon right?
<treflip>
right
<acdw>
i didn't want to set that up tbh
jonatack has joined #commonlisp
<treflip>
It's just good for big project. It has lots of functions and can replace a document-oriented db, a message broker, and many other services
jon_atack has quit [Ping timeout: 240 seconds]
koresh has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
Lycurgus has quit [Ping timeout: 252 seconds]
wavedepletion has joined #commonlisp
kurfen has joined #commonlisp
Lycurgus has joined #commonlisp
<Lycurgus>
*in my mouth (the implication that the change-death = worth-death)
rkazak has quit [Ping timeout: 260 seconds]
Lycurgus has quit [Quit: irc.renjuan.org (juan@acm.org)]
koresh has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
treflip has quit [Ping timeout: 276 seconds]
fgarcia has quit [Ping timeout: 260 seconds]
fgarcia has joined #commonlisp
fgarcia has quit [Max SendQ exceeded]
johnjaye has quit [Ping timeout: 260 seconds]
shka has quit [Quit: Konversation terminated!]
johnjaye has joined #commonlisp
shka has joined #commonlisp
kchanqvq has joined #commonlisp
fgarcia_ has joined #commonlisp
fgarcia_ has quit [Quit: Remote host closed the connection]
cage has quit [Quit: rcirc on GNU Emacs 30.1]
rkazak has quit [Ping timeout: 248 seconds]
younder has quit [Remote host closed the connection]
edgar-rft` has joined #commonlisp
edgar-rft has quit [Read error: Connection reset by peer]
younder has joined #commonlisp
X-Scale has joined #commonlisp
random-nick has joined #commonlisp
istewart has joined #commonlisp
rtypo has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
younder has quit [Remote host closed the connection]
jon_atack has quit [Ping timeout: 252 seconds]
younder has joined #commonlisp
kchanqvq has quit [Ping timeout: 252 seconds]
TactfulCitrus has joined #commonlisp
pve has quit [Quit: leaving]
rkazak has joined #commonlisp
mgl has quit []
shawnw has quit [Ping timeout: 276 seconds]
robin has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
rolling-lambda has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
rolling-lambda_ has quit [Ping timeout: 276 seconds]
spdegabrielle has joined #commonlisp
rkazak has joined #commonlisp
attila_lendvai has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
attila_lendvai has quit [Ping timeout: 245 seconds]
fosskers has joined #commonlisp
fosskers has quit [Remote host closed the connection]
fosskers has joined #commonlisp
cercopith has quit [Remote host closed the connection]
kchanqvq has joined #commonlisp
kchanqvq has quit [Client Quit]
kchanqvq has joined #commonlisp
admich1 has quit [Ping timeout: 276 seconds]
random-nick has quit [Ping timeout: 248 seconds]
ixelp has quit [Ping timeout: 260 seconds]
mwnaylor has joined #commonlisp
<mwnaylor>
Does in-package create namespace or is an explicite make-package required? Using sbcl w/ sly, I'm puzzled by warnings when executing C-c C-k, `sly-compile-and-load-file'.
<|3b|>
(it also does some extra to work at compile time, etc)
TactfulCitrus has quit [Ping timeout: 265 seconds]
jon_atack has joined #commonlisp
admich1 has joined #commonlisp
jonatack has quit [Ping timeout: 248 seconds]
yacin has quit [Quit: leaving]
yacin has joined #commonlisp
dra has quit [Ping timeout: 248 seconds]
<fosskers>
SBCL C FFI: Is it true that while Lisp strings to get automatically converted to `c-string`, that no such automatic conversion happens for Vectors? Looks like I need to allocate my own array and manually copy over the contents?
<ixelp>
GitHub - sionescu/static-vectors: Allocate SIMPLE-ARRAYs in static memory
<aeth>
You don't want to have to copy. It adds up fast.
apac has quit [Ping timeout: 276 seconds]
<aeth>
I had a startup time and I effectively eliminated all of it when I switched to static-vectors
<aeth>
You can see what it's not available out of the box, though: they have to have a constant pointer location, which in some implementations (including SBCL?) requires manually freeing the vectors.
eddof13 has joined #commonlisp
spdegabrielle has quit [Quit: Connection closed for inactivity]
veqq has quit [Remote host closed the connection]
veqq has joined #commonlisp
<fosskers>
aeth thank you
rgherdt has quit [Remote host closed the connection]
younder has quit [Remote host closed the connection]
jon_atack has joined #commonlisp
younder has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
thuna` has joined #commonlisp
<bike>
fosskers: sbcl allocates an extra byte for a null terminator so that its strings can be used as C strings sometimes. It doesn't do that if you have some other element type
<bike>
of course doing the former entails some confusing stuff about GC pinning
lcn_ has quit [Remote host closed the connection]
fosskers has quit [Ping timeout: 260 seconds]
<thuna`>
What is the default precedence order of a setf generic, left-to-right including NEW-VALUE or left-to-right for the original arguments and NEW-VALUE afterwards?
<thuna`>
7.6.6.1.2 should mean that it's the former, but I just want to make sure I'm not missing any text
<bike>
thuna`: yeah there's nothing special for setf functions. the new-value is first in the default precedence order.
<thuna`>
I see
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 240 seconds]
eddof13 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]