rumbler31 has quit [Remote host closed the connection]
skapate has joined #lisp
skapate has quit [Excess Flood]
<Xach>
White_Flame: it's trapped by the OS usually?
skapate has joined #lisp
skapata has quit [Ping timeout: 265 seconds]
<White_Flame>
Xach: yeah, I changed the OS shortcuts to something else, wondering what most people do with that
<Xach>
White_Flame: that's what i do.
<White_Flame>
wrangling with a weird issue that ql:quickload works at the repl, but .asd :depends-on dependencies just have asdf scream with system unknown
<White_Flame>
for online systems to download
<White_Flame>
works on linux, works on x86 mac, breaks on m1 mac. But we have loader stuff before asdf that's generic and might be breaking something?
<White_Flame>
erm, before the quicklisp load
Oladon has quit [Read error: Connection reset by peer]
<Xach>
not defsystem-depends-on?
Oladon has joined #lisp
contrapunctus has left #lisp ["Disconnected: Replaced by new connection"]
contrapunctus has joined #lisp
<White_Flame>
just plain :depends-on ("trivial-garbage") or whatever happens to be the first non-locally installed system
mrchampion_ has quit [Ping timeout: 264 seconds]
<Xach>
weird
<White_Flame>
Component "trivial-garbage" not found, required by #<SYSTEM ..my thingy..>
<White_Flame>
yeah, also with sbcl m1 support being very new, that's also a niggling suspicion
mrchampion has joined #lisp
<fiddlerwoaroof>
White_Flame: emacs has particular settings to control this, I think
ebrasca has quit [Remote host closed the connection]
<fiddlerwoaroof>
But, you have to disable the "switch spaces" shortcut in system preferences
<fiddlerwoaroof>
Anyways, I still mostly use x86_64 sbcl via Rosetta 2
<White_Flame>
right, that's what I did. remapped it to cmd-arrows
<White_Flame>
oh, I thought that x64 sbcl was fairly unstable under rosetta
<fiddlerwoaroof>
I can work around it, but it took me like half an hour to figure out what's happening
mogglehud has joined #lisp
kslt1 has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 264 seconds]
<White_Flame>
fiddlerwoaroof: hmm, did you build your x86 version yourself? the sbcl download page for amd64 macos is ye olde 1.2.11, and I don't have an x86 mac available to me
mogglehud has quit [Ping timeout: 245 seconds]
Ronnin has joined #lisp
<Bike>
::notify pfdietz you have something to randomly generate lisp code for testing, right? is that available anywhere? i want to do that for cleavir
<Colleen>
Bike: Got it. I'll let pfdietz know as soon as possible.
<White_Flame>
Xach: btw, the problem ended up being that we were just running from master branch, which didn't have the update from asdf->ql loading. So no ql or m1 issues, just lots of wasted time here ;)
Oladon has joined #lisp
JokerAscensionEx has quit [Remote host closed the connection]
<beach>
Good morning everyone!
<Josh_2>
Good morning beach
<Oladon>
Morning, beach!
<fiddlerwoaroof>
White_Flame: I got it from nix
<fiddlerwoaroof>
But, yeah, I always build things myself
veera has joined #lisp
<veera>
Hello guys
cchristiansen has joined #lisp
veera has left #lisp [#lisp]
Fare has quit [Ping timeout: 264 seconds]
JokerAscensionEx has joined #lisp
kaiwulf has quit [Ping timeout: 265 seconds]
texno has quit [Ping timeout: 260 seconds]
texno has joined #lisp
aartaka_d has joined #lisp
mindCrime_ has quit [Ping timeout: 264 seconds]
curtosis[away] has joined #lisp
aartaka has quit [Ping timeout: 246 seconds]
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
akoana has left #lisp ["Leaving"]
toorevitimirp has joined #lisp
aindilis has quit [Ping timeout: 256 seconds]
ex_nihilo has joined #lisp
<ey[m]>
how do I define char as c in
<ey[m]>
(loop for c across str
<ey[m]>
with char = c ....)
<ey[m]>
char starts with the value nil for some reason
<beach>
Try replacing WITH by FOR. WITH is executed only once at the beginning of the loop.
<ey[m]>
oh ok
<ey[m]>
wait, doesn't FOR make char = c in all the loops ?
<ey[m]>
I just wanted char to equal c at the beginning
<ey[m]>
not in every loop
<beach>
Oh, so you want char to be only the first character in the string?
<ey[m]>
yeah
<ey[m]>
doing it with, makes c = NIL
<ey[m]>
* char = NIL
<beach>
Why don't you just set char to the first element of the string?
<beach>
I would just do (loop with char = (char str 0) for c across str...)
<ey[m]>
I did try that, but for some reason it looks like c is equal to NIL at the beginning
<beach>
Yes, I am not surprised. There is probably a (let ((c nil)) ... ) in the expansion of LOOP.
<ey[m]>
hmm ok
<beach>
But what I suggested should work, unless the string is empty of course.
curtosis[away] has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aartaka_d has quit [Read error: Connection reset by peer]
aartaka has joined #lisp
Oladon has quit [Quit: Leaving.]
<beach>
ey[m]: So did it work/
<beach>
?
<ey[m]>
yeah it did
<ey[m]>
I just had to change another variable I had defined
mindCrime_ has joined #lisp
frost-lab has joined #lisp
texno has quit [Ping timeout: 256 seconds]
marusich has joined #lisp
a73 has joined #lisp
a73 has quit [Client Quit]
JokerAscensionEx has quit [Quit: EXIT]
galex-713 has quit [Quit: No Ping reply in 180 seconds.]
galex-713 has joined #lisp
quazimodo has quit [Ping timeout: 256 seconds]
Bike has quit [Quit: leaving]
mindCrime_ has quit [Ping timeout: 246 seconds]
skapate has quit [Remote host closed the connection]
varjag has joined #lisp
narimiran_ has joined #lisp
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 276 seconds]
Khisanth has quit [Ping timeout: 246 seconds]
cchristiansen has quit [Ping timeout: 256 seconds]
varjag has quit [Ping timeout: 256 seconds]
Khisanth has joined #lisp
hjudt has joined #lisp
sauvin has joined #lisp
shka_ has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
ldbeth has joined #lisp
johannes has joined #lisp
johannes is now known as kenran
kenran has quit [Remote host closed the connection]
johannes has joined #lisp
zymurgy1 has quit [Quit: WeeChat 1.4]
zymurgy has joined #lisp
surabax has joined #lisp
varjag has joined #lisp
gaqwas has joined #lisp
gaqwas has joined #lisp
gaqwas has quit [Changing host]
Khisanth has quit [Ping timeout: 256 seconds]
greaser|q has joined #lisp
greaser|q has quit [Changing host]
greaser|q is now known as GreaseMonkey
johannes has quit [Ping timeout: 246 seconds]
galex-713_ has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
Khisanth has joined #lisp
aartaka has quit [Read error: Connection reset by peer]
aartaka_d has joined #lisp
walex has quit [Ping timeout: 260 seconds]
walex has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
wigust- has quit [Remote host closed the connection]
wigust has joined #lisp
contrapunctus has joined #lisp
rgherdt has joined #lisp
ldbeth has quit [Remote host closed the connection]
ldbeth has joined #lisp
perrier-jouet has quit [Ping timeout: 264 seconds]
hiroaki has quit [Ping timeout: 265 seconds]
galex-713_ has quit [Ping timeout: 256 seconds]
mathrick_ has joined #lisp
perrier-jouet has joined #lisp
galex-713 has joined #lisp
mathrick has quit [Ping timeout: 246 seconds]
ficl has joined #lisp
galex-713 has quit [Ping timeout: 256 seconds]
hiroaki has joined #lisp
pve has joined #lisp
rogersm has joined #lisp
jeosol has quit [Ping timeout: 240 seconds]
random-nick has joined #lisp
gitgood has joined #lisp
aartaka has joined #lisp
gzj has joined #lisp
aartaka_d has quit [Ping timeout: 265 seconds]
anticrisis has quit [Read error: Connection reset by peer]
zaquest has quit [Quit: Leaving]
aggin has joined #lisp
zaquest has joined #lisp
<aggin>
in CLOS, if :initarg is specified, in which method should I define my code if I want to do something after the slot's are set to their respective initargs ?
<aggin>
:after ?
<beach>
Typically in an :AFTER method on INITIALIZE-INSTANCE.
<aggin>
when does the :around method execute?
<beach>
Before any other methods, and it requires a call to CALL-NEXT-METHOD to call the others.
<aggin>
oh ok
flip214_ is now known as flip214
<aggin>
final question: is it possible to define 2 :after methods ?
<beach>
Only if they have different specializers.
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
<beach>
Like if you have LISP-PROGRAMMER being a subclass of PERSON, you can have two :AFTER methods, each specializing in one of the two.
ldbeth has quit [Ping timeout: 256 seconds]
<beach>
The most specific one will then be executed last.
<aggin>
oh, so both execute
<beach>
All applicable :AFTER methods execute, yes.
<aggin>
I thought the :after method of the subclass overrides the superclass's
<aggin>
what if I wanted to do something that is the same in both methods that runs after the :after methods ?
ukari has quit [Remote host closed the connection]
ukari has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
vegansbane6963 has joined #lisp
rdd has joined #lisp
aartaka_d has joined #lisp
aartaka has quit [Ping timeout: 245 seconds]
Stanley00 has joined #lisp
Stanley00 has quit [Ping timeout: 245 seconds]
marusich has quit [Ping timeout: 265 seconds]
marusich has joined #lisp
jonatack has joined #lisp
<jmercouris>
hello everyone :-)
ukari has quit [Remote host closed the connection]
ukari has joined #lisp
gitgoood has joined #lisp
sm2n_ has quit [Quit: Leaving]
gitgood has quit [Read error: Connection reset by peer]
jonatack has quit [Quit: jonatack]
gitgoood has quit [Read error: Connection reset by peer]
ukari has quit [Remote host closed the connection]
ukari has joined #lisp
Tordek has quit [Ping timeout: 272 seconds]
jonatack has joined #lisp
aartaka_d has quit [Read error: Connection reset by peer]
sm2n has joined #lisp
jonatack has quit [Client Quit]
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
jonatack has joined #lisp
draxoula has joined #lisp
tinhatcat has joined #lisp
jonatack has quit [Ping timeout: 245 seconds]
tinhatcat has quit [Client Quit]
jonatack has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
Bike has joined #lisp
mogglehud has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
ey[m] is now known as AK[m]
flazh has quit [Quit: flazh]
flazh has joined #lisp
gxt has quit [Ping timeout: 268 seconds]
galex-713_ has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
long4mud has quit [Quit: WeeChat 3.0.1]
orivej has quit [Ping timeout: 260 seconds]
contrapunctus has left #lisp ["Disconnected: Replaced by new connection"]
Lycurgus has joined #lisp
contrapunctus has joined #lisp
Tordek has joined #lisp
<phoe>
hey
mogglehud has quit [Ping timeout: 246 seconds]
<beach>
Hello jmercouris. Hello phoe.
CrazyPython has joined #lisp
galex-713_ has quit [Ping timeout: 246 seconds]
andrei-n has quit [Quit: Leaving]
warweasle has joined #lisp
Sheilong has joined #lisp
Lycurgus has quit [Quit: Exeunt]
galex-713 has joined #lisp
edgar-rft is now known as world
<world>
hello!
world is now known as edgar-rft
<edgar-rft>
hello world!
<beach>
Very funny!
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
<edgar-rft>
Yes, I'm still laughing.
ukari has quit [Remote host closed the connection]
Stanley00 has joined #lisp
galex-713 has quit [Ping timeout: 264 seconds]
Stanley00 has quit [Ping timeout: 246 seconds]
ex_nihilo has quit [Quit: Leaving]
scymtym has quit [Ping timeout: 265 seconds]
caret has joined #lisp
<Josh_2>
Good afternoon
thecoffemaker_ has quit [Quit: So long and thanks for all the fish!]
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
galex-713 has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
thecoffemaker has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
luni has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
hjudt has quit [Ping timeout: 265 seconds]
dbs has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
gzj has quit [Remote host closed the connection]
Stanley00 has joined #lisp
dbs has quit [Quit: Connection closed]
thecoffemaker has quit [Remote host closed the connection]
sauvin has quit [Ping timeout: 256 seconds]
galex-713 has quit [Ping timeout: 276 seconds]
thecoffemaker has joined #lisp
hiroaki has quit [Ping timeout: 272 seconds]
galex-713 has joined #lisp
Stanley00 has quit [Ping timeout: 245 seconds]
hiroaki has joined #lisp
tiwEllien has quit [Ping timeout: 272 seconds]
AK[m] has left #lisp ["User left"]
frost-lab has quit [Quit: Connection closed]
epony has quit [Remote host closed the connection]
Stanley00 has joined #lisp
skapata has joined #lisp
Stanley00 has quit [Ping timeout: 256 seconds]
<Josh_2>
Does anyone have much experience with jonathan the JSON parser/generator?
<Gnuxie[m]>
What's the problem?
<Josh_2>
I'm trying to generate JSON that looks like "device_keys": {"@alice:example.com": []}
<Josh_2>
where I can have many @alice.. etc but I keep trying and jojo keeps outputting like "{"device_keys":"[{\"@timestealer:scyldings.com\":[]} .. adding the []
jonatack has quit [Ping timeout: 276 seconds]
<Gnuxie[m]>
Ok, there's some dynamic variables for cobtrolling nil if that's the problem trying to get []
<Josh_2>
Nah I want the [] after the ids, but I don't want all of the ids wrapped in the []
jonatack has joined #lisp
<Gnuxie[m]>
You are creating keys dynamically?
<Gnuxie[m]>
There's with-json-object anf associated macrolets foe that
<Gnuxie[m]>
Iirc
<Josh_2>
I already have the list of keys
<Josh_2>
It's annoying because the format required is like each key is a slot in a class...
<Gnuxie[m]>
Not sure what you mean
<Gnuxie[m]>
Are you mapping this format to CLOS?
<Josh_2>
yes, but in order to have an object like {name: {o1}, {o2}, {o3}} which is basically the format I need, jojo expects each of o1 o2 to be a slot in a class, but I have a list of them instead, this is why they keep ending up like {name: [{o1},{02}.. ]} etc
Klopsch has quit [Remote host closed the connection]
luni has left #lisp [#lisp]
<Gnuxie[m]>
I would just keep the keys in a list/table in a slot and encapsulate access to them, then account for tjat with your to-json method
<Josh_2>
well I've done the first part, and I'm trying the second, hence the question
<Gnuxie[m]>
Ok, I mean, i'm on a phone rn and no computer but I donmt see anything that woukd stop you doing this
<Gnuxie[m]>
Loop over each entry and do json-key + json-value
<Josh_2>
ah
<Josh_2>
okay
tiwEllien has joined #lisp
<Josh_2>
Okay I figured it out, thanks for the help Gnuxie[m]
curtosis[away] has joined #lisp
<Gnuxie[m]>
np, good luck :)
charles` has joined #lisp
kslt1 has quit [Ping timeout: 256 seconds]
terpri has quit [Ping timeout: 264 seconds]
aartaka has joined #lisp
notzmv has quit [Ping timeout: 256 seconds]
cage_ has joined #lisp
sjl has joined #lisp
curtosis[away] has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
charles` has quit [Ping timeout: 264 seconds]
Stanley00 has joined #lisp
Stanley00 has quit [Ping timeout: 256 seconds]
scymtym has joined #lisp
galex-713_ has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
sjl has quit [Quit: WeeChat 2.3-dev]
Stanley00 has joined #lisp
galex-713_ has quit [Remote host closed the connection]
Stanley00 has quit [Ping timeout: 245 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
galex-713 has joined #lisp
Tordek has quit [Ping timeout: 245 seconds]
notzmv has joined #lisp
galex-713 has quit [Ping timeout: 246 seconds]
galex-713 has joined #lisp
ukari has joined #lisp
Nilby has joined #lisp
galex-713 has quit [Quit: No Ping reply in 180 seconds.]
varjag has quit [Quit: ERC (IRC client for Emacs 26.3)]
curtosis[away] has joined #lisp
jeosol has joined #lisp
epony has joined #lisp
heisig has quit [Quit: Leaving]
terpri has joined #lisp
curtosis[away] has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
toorevitimirp has quit [Remote host closed the connection]
<_death>
here the example is changed.. which is strange, because it indicates that they were aware of the limitation and chose to preserve it
Noisytoot is now known as [[
<_death>
I guess it makes more sense in this particular example.. since the cltl2 version would get () for the empty stack, rather than (0)
[[ is now known as [[Like
[[Like is now known as [[
[[ is now known as Noisytoot
<_death>
also, 6.1.4 keeps this sentence: "Termination-test control constructs can be used anywhere within the loop body."
<rpg>
... and unicly won't compile -- breaks into internal SBCL packages.
cage_ has quit [Quit: Leaving]
<CL-ASHOK>
how would I declare a variable and then modify it as I see fit within a LOOP?
<CL-ASHOK>
the collect / append / etc. doesn't seem to be flexible enough for my needs
<mfiano>
rpg: Which variant?
<_death>
(loop with foo do (setf foo (random 2)))
<rpg>
mfiano: I believe v5. But I'm not sure -- I just have a JSON schema that says "uuid" -- not that helpful!
<mfiano>
rpg: One of your co-workers and I wrote random-uuid, which handles v4 efficiently
<CL-ASHOK>
Thanks _death
<rpg>
mfiano: Ah -- I didn't even know that.
<rpg>
mfiano: Pete K?
<mfiano>
Yes
narimiran_ has quit [Quit: leaving]
<mfiano>
We wrote it for our game engine, but was recently ripped out into a separate library for the most recent QL dist. Though, not sure how useful strictly v4 may be to you. Hopefully you don't need the MAC-based variant, as that can't really be done with pure CL, and the other libraries use CFFI or OS specifics wrongly here (failed on all of my machines)
Lycurgus has joined #lisp
<rpg>
mfiano: The UURL given in Quicklisp doesn't seem to correspond to an extant repo on github....
<mfiano>
Maybe Xach used the wrong URL...I'm not on GitHub
<fiddlerwoaroof>
hmm, maybe that doesn't help: I misread the definition of "loop body" there
CL-ASHOK has quit [Quit: Ping timeout (120 seconds)]
<Xach>
mfiano: it is not required, and no
warweasle has quit [Quit: rcirc on GNU Emacs 26.1]
<_death>
fiddlerwoaroof: it does help, somewhat.. if termination-test can only contribute to the loop body (as defined there), and for-as-clause contributes to both the loop prologue and the loop body..
ficl has quit [Ping timeout: 246 seconds]
shka_ has quit [Ping timeout: 245 seconds]
karlosz has quit [Quit: karlosz]
hjudt has joined #lisp
CrazyPython has quit [Remote host closed the connection]
CrazyPython has joined #lisp
CrazyPython has quit [Ping timeout: 256 seconds]
Tordek has quit [Ping timeout: 276 seconds]
kaiwulf has joined #lisp
CrazyPython has joined #lisp
CrazyPython has quit [Remote host closed the connection]
warweasle has joined #lisp
<mfiano>
Alright fixed homepage fragment in all my asd's. Maybe I won't get a fifth complaint this month :)
amb007 has quit [Read error: Connection reset by peer]
<Xach>
mfiano: thanks
Wezl has joined #lisp
varjag has quit [Ping timeout: 245 seconds]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
jonatack_ has quit [Ping timeout: 246 seconds]
amb007 has joined #lisp
CrazyPython has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
pve has quit [Quit: leaving]
Tordek has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
hjudt has quit [Ping timeout: 245 seconds]
gaqwas has quit [Ping timeout: 246 seconds]
surabax has quit [Read error: Connection reset by peer]
attila_lendvai_ has quit [Ping timeout: 245 seconds]
curtosis has joined #lisp
madage has quit [Ping timeout: 268 seconds]
notzmv has quit [Ping timeout: 264 seconds]
rgherdt has quit [Read error: Connection reset by peer]
rgherdt has joined #lisp
<fiddlerwoaroof>
I've found a couple macros sort of interesting:
<fiddlerwoaroof>
MAY takes (may (string-upcase string)) and turns it into (when string (string-upcase string)) [obviously, without the double-eval of "string"]
<fiddlerwoaroof>
I don't have a good name for the other one, but it converts the first arg into a stream using WITH-INPUT-FROM-STRING
<fiddlerwoaroof>
That one's newer, but the MAY macro reads a lot nicer and reduces boilerplate in a way I find pleasant
Wezl has left #lisp ["WeeChat 3.0.1"]
<moon-child>
fiddlerwoaroof: I think it had been better as (may string #'string-upcase). Else it may not be clear which object is potentially-nil. (Think (may (+ x 5)).)
madage has joined #lisp
<moon-child>
and that lets you express something like (may #L(+ _ y) x)
<fiddlerwoaroof>
It's always the first argument
<fiddlerwoaroof>
I like that the wrapped form still reads correctly
<fiddlerwoaroof>
But, I can see the advantages of the other way: I think I first invented it when I was getting annoyed by nil checks :)
<fiddlerwoaroof>
e.g. if my code is already (string-upcase string), it's really easy to fix it by just doing (may (string-upcase string))
notzmv has joined #lisp
curtosis is now known as curtosis[away]
curtosis[away] has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<aeth>
fiddlerwoaroof: it should be may1 may2 and mayn, like progn
<fiddlerwoaroof>
hmm, maybe
<White_Flame>
fiddlerwoaroof: I could see this as somewhat related to alexandria:when-let*