milanj has quit [Quit: This computer has gone to sleep]
t58 has quit [Quit: night]
EvW has quit [Ping timeout: 264 seconds]
liberiga has quit [Ping timeout: 260 seconds]
lavaflow has joined #lisp
dgfhdfg has quit [Quit: Leaving]
FreeBirdLjj has joined #lisp
semz has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Ping timeout: 244 seconds]
semz has joined #lisp
semz has quit [Changing host]
semz has joined #lisp
wusticality has joined #lisp
Kevslinger has joined #lisp
saravia_ has joined #lisp
voidlily has quit [Remote host closed the connection]
mindthelion has joined #lisp
techquila has quit [Ping timeout: 276 seconds]
voidlily has joined #lisp
wusticality has quit [Ping timeout: 245 seconds]
dddddd has quit [Remote host closed the connection]
karswell has joined #lisp
X-Scale` has joined #lisp
saravia_ has quit [Remote host closed the connection]
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` is now known as X-Scale
chongwish` has joined #lisp
torbo has quit [Remote host closed the connection]
<beach>
Good morning everyone!
defaultxr has joined #lisp
<defaultxr>
hi. i want to do something like (ql:quickload :foo) (foo:blah) but when i have this in a file, i get "Package FOO does not exist". how can i make it so that (foo:blah) is run after "foo" is actually loaded and the package exists?
<no-defun-allowed>
Well, the issue (in a file that is going to be compiled) is that FOO:BLAH is read before :FOO is loaded.
iarebatman1 has joined #lisp
<pjb>
defaultxr: you're confusing systems and packages. They have nothing in common.
<pjb>
defaultxr: does your system named "foo" define a package named "FOO"? (Notice the different case!)
<no-defun-allowed>
You may want to create an ASDF system for your program, which can depend on the system FOO, which will then create the package FOO before it loads your compiled file.
<pjb>
defaultxr: when you put those two forms in a file, the behavior will depend on whether you compile the file or not.
eck_ has joined #lisp
<pjb>
defaultxr: to compile the file, you need to execute parts of it, namely the quickload form, so that the package defined by the system are defined in the compiler, so that the compiler may then read and compile the following form.
<pjb>
defaultxr: to load it (situation = :execute), it's good as is, since the semantics of load already ensure that each form is evaluated before the next is read.
<pjb>
defaultxr: so to compile this file, you need to write (eval-when (:compile-toplevel :load-toplevel :execute) (ql:quickload :foo)) (foo:blah) assuming the system "foo" defines a package "FOO" exporting the foo:blah function.
<pjb>
defaultxr: for this reason, we prefer to define systems with their dependencies. Then the file would contain just (foo:blah), and you will have a system: (asdf:defsystem :foo-caller (:depends-on :foo) (:components (:file "foo-caller"))) then instead of loading foo-caller.lisp, you will (ql:quickload :foo-caller).
<defaultxr>
thanks, both of you
Nomenclatura has quit [Quit: q]
eck_ has quit [Quit: WeeChat 2.4]
iarebatman1 has quit [Ping timeout: 246 seconds]
gravicappa has joined #lisp
eck has joined #lisp
stepnem_ has quit [Ping timeout: 244 seconds]
stepnem has joined #lisp
fortitude has quit [Ping timeout: 245 seconds]
Bike has quit [Quit: Lost terminal]
Jeanne-Kamikaze has joined #lisp
wusticality has joined #lisp
pjb has quit [Read error: Connection reset by peer]
wusticality has quit [Ping timeout: 245 seconds]
wusticality has joined #lisp
dale has quit [Quit: My computer has gone to sleep]
pjb has joined #lisp
ahungry has joined #lisp
wusticality has quit [Ping timeout: 244 seconds]
vlatkoB has joined #lisp
ahungry` has joined #lisp
ahungry has quit [Ping timeout: 272 seconds]
zaquest has quit [Remote host closed the connection]
wusticality has joined #lisp
anewuser has joined #lisp
bermraj has quit [Quit: WeeChat 2.5]
zaquest has joined #lisp
Inline has quit [Quit: Leaving]
adolby has quit [Ping timeout: 258 seconds]
shka_ has joined #lisp
nanoz has joined #lisp
ahungry` has quit [Remote host closed the connection]
igemnace has quit [Read error: Connection reset by peer]
igemnace has joined #lisp
slyrus1 has joined #lisp
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 258 seconds]
slyrus2 has quit [Ping timeout: 272 seconds]
shka_ has quit [Ping timeout: 246 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
nanoz has quit [Read error: Connection reset by peer]
nanoz has joined #lisp
JohnMS_WORK has joined #lisp
Jeanne-Kamikaze has quit [Remote host closed the connection]
frgo_ has quit [Ping timeout: 258 seconds]
gxt has joined #lisp
quazimodo has quit [Ping timeout: 245 seconds]
frgo has joined #lisp
flamebeard has joined #lisp
anewuser has quit [Quit: anewuser]
wusticality has quit [Ping timeout: 246 seconds]
gxt has quit [Ping timeout: 260 seconds]
schweers has joined #lisp
igemnace has quit [Read error: Connection reset by peer]
igemnace has joined #lisp
flamebeard has quit []
frgo has quit [Ping timeout: 248 seconds]
frgo_ has joined #lisp
frgo_ has quit [Ping timeout: 248 seconds]
flamebeard has joined #lisp
frgo has joined #lisp
defaultxr has quit [Ping timeout: 248 seconds]
igemnace has quit [Read error: Connection reset by peer]
ggole has joined #lisp
igemnace has joined #lisp
JohnMS has joined #lisp
milanj has joined #lisp
JohnMS_WORK has quit [Ping timeout: 248 seconds]
cosimone has joined #lisp
manualcrank has quit [Quit: WeeChat 1.9.1]
schjetne has joined #lisp
scymtym has joined #lisp
varjag has joined #lisp
libertyprime has joined #lisp
<LdBeth>
I suppose this can be solved with a eval-when form wrapped around (ql:quickload
<LdBeth>
Correct me if it’s an abuse
libertyprime has quit [Remote host closed the connection]
jonatack has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
amerlyq has joined #lisp
gareppa has joined #lisp
<flip214>
What's the compatible way to use CHECK-TYPE with a foreign pointer? Things like SB-SAP are not that universal...
nanoz has quit [Ping timeout: 248 seconds]
gareppa has quit [Quit: Leaving]
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
orivej has quit [Ping timeout: 272 seconds]
<no-defun-allowed>
Are you using CFFI? There would probably be an alias in there.
<flip214>
no-defun-allowed: yes, I am. thanks for the idea, looking.
chambln has joined #lisp
<flip214>
FOREIGN-POINTER looks good.
<no-defun-allowed>
Sounds about right.
<no-defun-allowed>
"The pointers’ representations differ from implementation to implementation and have different types. foreign-pointer provides a portable type alias to each of these types."
dddddd has joined #lisp
ssake has joined #lisp
CrazyEddy has quit [Remote host closed the connection]
milanj has joined #lisp
jonatack has quit [Remote host closed the connection]
orivej has joined #lisp
nanoz has joined #lisp
kajo has quit [Ping timeout: 276 seconds]
m00natic has joined #lisp
random-nick has joined #lisp
frgo_ has joined #lisp
frgo_ has quit [Remote host closed the connection]
frgo_ has joined #lisp
frgo has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #lisp
cosimone has quit [Quit: WeeChat 2.4]
CrazyEddy has joined #lisp
ebrasca has joined #lisp
dgfhdfg has joined #lisp
igemnace has quit [Quit: WeeChat 2.5]
chongwish` has quit [Ping timeout: 258 seconds]
Mandus has quit [Ping timeout: 246 seconds]
Mandus has joined #lisp
gravicappa has quit [Ping timeout: 268 seconds]
gravicappa has joined #lisp
dgfhdfg has quit [Quit: Leaving]
lavaflow has quit [Ping timeout: 272 seconds]
oni-on-ion has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
lavaflow has joined #lisp
oni-on-ion has joined #lisp
superkumasan has quit [Ping timeout: 246 seconds]
frgo_ has quit [Remote host closed the connection]
<dansimon>
Hi guys, I'm wondering how to write output to a file without the lisp parenthesis (the code: https://pastebin.com/WviKzx6c). Any help would be wonderful :)
<dansimon>
with-output-to-string..? how would I use that in this code..?
<dlowe>
dansimon: have you tried using write or write-line?
<dlowe>
with-output-to-string does the opposite of writing to a file
<dlowe>
it allows you to treat a string like a file you can write into
<dlowe>
dansimon: you might be interested in the #clschool channel, too
<dansimon>
Oh
<dansimon>
Yeah, that might be the right place, I'm new to this :)
<dansimon>
would that be (write-line (format note "~a~%" *args*)) ..?
<dlowe>
the format is writing to note
<dlowe>
in your example
<dlowe>
if note is the file you want to write to, that should be enough.
<dansimon>
the code writes to the file, but (in parenthesis), I want the raw string without ()
<dlowe>
that's because *args* is a list, so it prints the lisp representation of a list
<dansimon>
yes, I figured as much. so I need to convert it somehow...
<dlowe>
You can either write each arg individually with a loop, or you can use format directives like (format note "~{~a~^ ~}~%" *args*)
<dansimon>
Aha!
<dansimon>
dlowe: It worked! Thanks man :D
<dlowe>
np.
dale_ has joined #lisp
dale_ is now known as dale
cosimone has quit [Quit: WeeChat 2.4]
milanj has quit [Quit: This computer has gone to sleep]
saravia has joined #lisp
milanj has joined #lisp
saravia has quit [Remote host closed the connection]
saravia has joined #lisp
dansimon has left #lisp ["WeeChat 2.4"]
beach has quit [Remote host closed the connection]
superkumasan has joined #lisp
FreeBirdLjj has joined #lisp
beach has joined #lisp
smazga has joined #lisp
Oladon_work has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
danielvu has joined #lisp
frgo has quit [Remote host closed the connection]
shka_ has joined #lisp
Tristam has quit [Ping timeout: 244 seconds]
warweasle has joined #lisp
karlosz_ has joined #lisp
sonologico has joined #lisp
nanoz has quit [Ping timeout: 244 seconds]
schweers has quit [Ping timeout: 264 seconds]
<stylewarning>
Does CL guarantee that SET-DIFFERENCE will return a list with no two pairs of element equal under :TEST?
<Bike>
you're giving a list with duplicates as the first argument?
<stylewarning>
Bike: yeah, maybe
<Bike>
i don't think it's mentioned, so i wouldn't rely on it.
<Bike>
the description of n/union says duplicate elements in an argument may or may not appear in the result
flamebeard has quit []
igemnace has joined #lisp
<stylewarning>
I'd venture to guess a reasonable implementation of SET-DIFFERENCE is going to be something like (remove-if {xi is in y} x), which would not delete duplicate elements that are not being subtracted off.
<Bike>
yes.
<Bike>
i mean fundamentally they're supposed to be sets, so no duplicates
<stylewarning>
well a set doesn't really imply a data structure, just a membership test
<stylewarning>
lisp ought to have made sets functions
<stylewarning>
(I kid, but the academic in me would have appreciated it.)
<Bike>
it would be nice for some things.
karlosz_ has quit [Quit: karlosz_]
rippa has joined #lisp
frgo has joined #lisp
frgo has quit [Remote host closed the connection]
frgo_ has joined #lisp
frgo_ has quit [Remote host closed the connection]
frgo has joined #lisp
<pjb>
stylewarning: you can always use bit-vectors for sets…
<pjb>
(bit-andc2 #*1100 #*1010) #| --> #*0100 |#
iarebatman1 has joined #lisp
<oni-on-ion>
anyone need some work done? =)
<stylewarning>
pjb: I prefer integers, and only for sets that have a reasonably easy bijection with natural numbers
nanoz has joined #lisp
milanj has joined #lisp
t58 has joined #lisp
faheem_ has quit [Ping timeout: 248 seconds]
faheem has joined #lisp
q9929t has joined #lisp
sonologico has quit [Ping timeout: 244 seconds]
frgo has quit [Ping timeout: 258 seconds]
Ricchi has joined #lisp
q9929t has quit [Quit: q9929t]
ggole has quit [Quit: Leaving]
iarebatman1 has quit [Ping timeout: 245 seconds]
manualcrank has joined #lisp
cosimone has joined #lisp
m00natic has quit [Remote host closed the connection]
<mfiano>
Does asdf or quicklisp have a special variable that it binds (and shadows for dependencies) for the system currently being loaded?
<Bike>
Don't think so.
<Bike>
I don't think asdf makes the assumption that systems are loaded all at once anyway. Like there could be a plan that interleaves loading files from two non-dependent systems.
milanj has quit [Quit: This computer has gone to sleep]
<jgkamat>
Does anyone know how to use 'setq' on a function in cl? For example, (setq my-var #'+)
<Oladon_work>
jgkamat: Could you give a bit more detail on what you're trying to accomplish?
<mfiano>
Bike: I see, thanks
<jgkamat>
Oladon_work: I would like to have a global variable that stores a function that can be changed (which will update everywhere its called), and ideally I would like to avoid using funcall/apply everywhere
<mfiano>
jgkamat: You shouldn't ever need to use `setq`.
<Bike>
(setf (fdefinition 'foo) #'+) (foo 3 4) => 7. is that what you'd like?
EvW has joined #lisp
<jgkamat>
Bike: thanks, that's perfect :)
colluphid has quit [Quit: WeeChat 2.5]
warweasle has quit [Quit: later]
FreeBirdLjj has quit [Remote host closed the connection]
smazga has quit [Ping timeout: 245 seconds]
FreeBirdLjj has joined #lisp
logand has joined #lisp
frgo has joined #lisp
FreeBirdLjj has quit [Ping timeout: 246 seconds]
Kevslinger has quit [Quit: Connection closed for inactivity]
Aruseus has joined #lisp
cosimone has quit [Quit: WeeChat 2.4]
tomas1 has joined #lisp
frgo has quit []
cosimone has joined #lisp
cosimone has quit [Quit: WeeChat 2.4]
Oladon_work has quit [Remote host closed the connection]
cosimone has joined #lisp
defaultxr has left #lisp ["WeeChat 2.5"]
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
warweasle has joined #lisp
pierpal has joined #lisp
gxt has joined #lisp
samlamamma has joined #lisp
gxt has quit [Ping timeout: 260 seconds]
Oladon_work has joined #lisp
superkumasan has quit [Ping timeout: 246 seconds]
pnp has joined #lisp
vlatkoB has quit [Remote host closed the connection]
nanoz has quit [Ping timeout: 245 seconds]
smazga has joined #lisp
samlamamma has quit [Remote host closed the connection]
smazga has quit [Ping timeout: 244 seconds]
cosimone has quit [Quit: WeeChat 2.4]
Bike has quit [Remote host closed the connection]
Bike has joined #lisp
iarebatman1 has joined #lisp
iarebatman1 has quit [Client Quit]
iarebatman1 has joined #lisp
EvW has quit [Ping timeout: 264 seconds]
Bike has quit [Ping timeout: 260 seconds]
smazga has joined #lisp
warweasle has quit [Quit: later]
Bike has joined #lisp
niceplace has quit [Ping timeout: 245 seconds]
iarebatman1 has quit [Remote host closed the connection]
iarebatman1 has joined #lisp
iarebatman1 has quit [Remote host closed the connection]
dgfhdfg has joined #lisp
Jesin has quit [Quit: Leaving]
iarebatman1 has joined #lisp
EvW has joined #lisp
makomo has quit [Quit: WeeChat 2.4]
shka_ has quit [Ping timeout: 248 seconds]
cosimone has joined #lisp
RenardP has joined #lisp
Jesin has joined #lisp
iarebatman1` has joined #lisp
iarebatman1` has quit [Remote host closed the connection]
iarebatman1 has quit [Remote host closed the connection]
eddof13 has joined #lisp
gravicappa has quit [Ping timeout: 248 seconds]
kajo has quit [Ping timeout: 252 seconds]
RenardP has quit [Remote host closed the connection]
tomas1 has quit [Quit: WeeChat 2.4]
Lord_of_Life_ has joined #lisp
eddof13 has quit [Quit: eddof13]
Lord_of_Life has quit [Ping timeout: 246 seconds]
Lord_of_Life_ is now known as Lord_of_Life
pest-ctrl has joined #lisp
Aruseus has quit [Remote host closed the connection]
khisanth_ has quit [Ping timeout: 248 seconds]
josemanuel has joined #lisp
slyrus_ has joined #lisp
slyrus2 has joined #lisp
cosimone has quit [Quit: WeeChat 2.4]
amerlyq has quit [Quit: amerlyq]
slyrus__ has quit [Ping timeout: 244 seconds]
varjagg has joined #lisp
slyrus1 has quit [Ping timeout: 248 seconds]
mindCrime has quit [Read error: Connection reset by peer]
mindCrime has joined #lisp
khisanth_ has joined #lisp
pnp has quit [Remote host closed the connection]
pest-ctrl has quit [Ping timeout: 276 seconds]
eddof13 has joined #lisp
slyrus__ has joined #lisp
slyrus1 has joined #lisp
cosimone has joined #lisp
sonologico has joined #lisp
slyrus_ has quit [Ping timeout: 272 seconds]
slyrus2 has quit [Ping timeout: 272 seconds]
cosimone has quit [Quit: WeeChat 2.4]
man213 has joined #lisp
techquila has joined #lisp
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dale has quit [Ping timeout: 244 seconds]
mindthelion has quit [Ping timeout: 244 seconds]
mindthelion has joined #lisp
milanj has joined #lisp
slyrus_ has joined #lisp
slyrus2 has joined #lisp
techquila has quit [Ping timeout: 250 seconds]
dale has joined #lisp
josemanuel has quit [Quit: leaving]
slyrus1 has quit [Ping timeout: 245 seconds]
pierpal has quit [Quit: Poof]
slyrus__ has quit [Ping timeout: 272 seconds]
pierpal has joined #lisp
jprajzne has joined #lisp
oni-on-ion has quit [Ping timeout: 264 seconds]
niceplace has joined #lisp
scymtym has quit [Remote host closed the connection]
scymtym has joined #lisp
makomo has joined #lisp
<ober>
so will we still be using the clhs in 20 years?
<p_l>
Possible. Maybe we will arrange an update in next 20 years but somewhat doubtful
<pjb>
ober: I hope so.
<pjb>
At least, long after nobody knows what perl is.
Denommus has joined #lisp
mindCrime has quit [Ping timeout: 258 seconds]
Oladon_work has quit [Remote host closed the connection]
<White_Flame>
ober: the main thing to consider is who would be represented in making an updated spec
<White_Flame>
obviously, back in the day Lisp was an industrial & academic language, so there was able to be a collection of monied organizations driving a fairly unified effort
<White_Flame>
nowadays things are a lot different. Anybody can of course release their new language design, but it won't be in unity with the broad CL community
<White_Flame>
at the very least, I would love to see some cleanup, deprecation, and inclusion of some modern platform stuff (threads, I/O, unicode, etc) formalized
<White_Flame>
because that could be well accepted, without rocking the boat too hard. As well as a library to provide CLHS-94 compatibility if things are removed or incompatibly modified
<White_Flame>
and that sort of thing is "in the spirit" of Common Lisp, in terms of bringing together the commonalities of a number of disparate progressions
<aeth>
White_Flame: I would assume that the only required participants would be the major implementation authors.
<White_Flame>
well, it's also feedback from teh users of the language that need to be represented in new/modified feature sets
<White_Flame>
in a commercial basis, that's more well known as there is customer support
<White_Flame>
for the open ones, it's just a bunch of people arguing :)
LiamH has quit [Quit: Leaving.]
man213_ has joined #lisp
man213 has quit [Ping timeout: 245 seconds]
man213_ is now known as man213
X-Scale` has joined #lisp
dale_ has joined #lisp
dale has quit [Disconnected by services]
X-Scale has quit [Ping timeout: 248 seconds]
dale_ is now known as dale
varjagg has quit [Ping timeout: 258 seconds]
<aeth>
White_Flame: obviously alexandria or cl-ppcre would have more influence/input than cl-brainfuck just based on number of users
dale_ has joined #lisp
dale has quit [Read error: Connection reset by peer]
dale_ is now known as dale
X-Scale` has quit [Ping timeout: 248 seconds]
Bike has quit [Remote host closed the connection]
X-Scale has joined #lisp
wxie has joined #lisp
eddof13 has quit [Quit: eddof13]
Bike has joined #lisp
Frobozz has quit [Read error: Connection reset by peer]
eddof13 has joined #lisp
Frobozz has joined #lisp
niceplace has quit [Read error: Connection reset by peer]
lnostdal has quit [Quit: "Fascism, Nazism, Communism and Socialism are only superficial variations of the same monstrous theme—collectivism." -- Ayn Rand]
maxxcan has joined #lisp
man213 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
maxxcan has quit [Client Quit]
slyrus__ has joined #lisp
niceplace has joined #lisp
slyrus1 has joined #lisp
slyrus2 has quit [Ping timeout: 245 seconds]
slyrus_ has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 245 seconds]
<pjb>
White_Flame: anybody can do it. Beach started to do it.