<ixelp>
Using system sbcl with roswell · Issue #416 · roswell/roswell · GitHub
<ejohnson>
jackdaniel: g'morning!
wacki has joined #commonlisp
decweb has quit [Ping timeout: 245 seconds]
zenmov has quit [Ping timeout: 245 seconds]
zenmov has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
rkazak has joined #commonlisp
MyNetAz has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
MyNetAz has joined #commonlisp
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rtypo has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
rkazak has quit [Ping timeout: 272 seconds]
mwnaylor has joined #commonlisp
pve has joined #commonlisp
<jackdaniel>
hey o/
amb007 has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
jmercouris has quit [Ping timeout: 260 seconds]
jmercouris has joined #commonlisp
rkazak has quit [Ping timeout: 246 seconds]
jon_atack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
mgl_ has joined #commonlisp
notzmv has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
shka has joined #commonlisp
liminality has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
rkazak has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
ebrasca has joined #commonlisp
rkazak has joined #commonlisp
gorignak has quit [Ping timeout: 244 seconds]
srji has joined #commonlisp
<srji>
\o/
varjag has joined #commonlisp
<ebrasca>
o/
gorignak has joined #commonlisp
nerap has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 244 seconds]
jonatack has quit [Read error: Connection reset by peer]
King_julian has joined #commonlisp
jonatack has joined #commonlisp
pabs3 has quit [Ping timeout: 248 seconds]
rkazak has joined #commonlisp
rainthree has joined #commonlisp
hajovonta has joined #commonlisp
<hajovonta>
hello
<pranav>
Hi hajovonta
<hajovonta>
What is the recommended way to save yaml files nowadays?
<hajovonta>
I have tried cl-yaml, and it kinda works - it saves a json, to my surprise it's a subset of yaml, but I would prefer a more yaml-looking structure in the file.
pabs3 has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
mange has quit [Quit: Zzz...]
Guest3745 has joined #commonlisp
Guest8390 has quit [Ping timeout: 252 seconds]
nerap has joined #commonlisp
rainthree has quit [Ping timeout: 246 seconds]
<ecraven>
what's the correct way to work with medium-sized files? just read the entire file into an array, then work on that? any better data structure? (just reading, no writing)
<beach>
ecraven: That depends a lot on the access pattern. If it is totally random and the file is not huge, then reading it into memory is probably the best thing. It also depends on the data contained in the file, like if it needs to be parsed.
<ecraven>
beach: yea, it needs to be parsed, but I'd just write functions to do that on-the-fly. the file is a hundred MB or two
King_julian has quit [Read error: Connection reset by peer]
<beach>
That's not much. I would read it into memory if I were you.
<ecraven>
so just put it into a vector of unsigned bytes?
<ecraven>
sorry to ask such basic questions, but how do I best do this? ;)
<beach>
Not if you want to parse it into nontrivial objects.
<beach>
Then parse it as you read it and store the parsed objects.
rainthree has joined #commonlisp
rkazak has joined #commonlisp
rainthree3 has joined #commonlisp
King_julian has joined #commonlisp
rainthree has quit [Ping timeout: 276 seconds]
notzmv has joined #commonlisp
<ecraven>
this is a memory dump from an emulator, I'd rather keep it as one array for now
<ecraven>
but which function will read a file into an array?
<ecraven>
thanks! are there pre-made functions to access parts of this array as u32 etc.?
<beach>
No.
<ecraven>
thank you for the help!
<beach>
Sure.
rkazak has quit [Ping timeout: 260 seconds]
King_julian has quit [Read error: Connection reset by peer]
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
<ebrasca>
Why does CL have force-output and clear-output ?
<scymtym>
are you asking about the name or the behavior of the function?
<scymtym>
sorry, i misread the question
rkazak has joined #commonlisp
<scymtym>
but isn't the answer "because they do different things"?
<ebrasca>
force-output seems to go against TCP/IP, why will you use it?
<ecraven>
is there a better way to convert an array of '(unsigned-byte 32) into one of '(unsigned-byte 64) than doing it each element at a time?
<ecraven>
(by combining two elements of the first into one of the latter)
<varjag>
why does c has fflush() and fpurge()?
mwnaylor has quit [Ping timeout: 276 seconds]
rkazak has quit [Ping timeout: 246 seconds]
scymtym has quit [Read error: Connection reset by peer]
scymtym has joined #commonlisp
<ecraven>
how do I loop over an array 4 elements at a time?
<ecraven>
(so for the list '(1 2 3 4 5 6 7 8 9 10 11 12), I'd like to get 1 2 3 4 in the first iteration, then 5 6 7 8 in the second, then 9 10 11 12 in the last). is this possible with LOOP?
<varjag>
sure?
rainthree3 has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
<ecraven>
like this? (loop for (a b c d) on '(1 2 3 4 5 6 7 8 9 10 11 12) by #'cddddr collect (list a b c d))
<varjag>
yes that's pretty tidy
nerap has quit [Ping timeout: 272 seconds]
dinomug has quit [Remote host closed the connection]
<ecraven>
hm.. now how would I do this for *arrays*, not lists?
<jackdaniel>
you can't with loop. mcclim has a macro do-sequence that allows exactly that
<jackdaniel>
(for both lists and vectors)
<ecraven>
ok, so the most "portable" solution would be to iterate over every 4th index, and aref?
<jackdaniel>
yes
<ecraven>
jackdaniel: have you perchance ever needed to convert an array of '(unsigned-byte 32) into one of '(unsigned-byte 64)? any better way than to do it "manually" by iterating and combining two elements?
<jackdaniel>
clx has a feature flag for some implementations that allow casting arrays in such unholy way (it is called overllaping-arrays I think), but there's nothing in Common Lisp standard allowing that
<scymtym>
for u-b 23 to u-b 64, wouldn't it be slices of two elements? if the source array has element type u-b 8, the nibbles library has handy accessors that "reinterpret" multiple array elements as wider integers
<jackdaniel>
if it is a foreign array, then you could try casting
<ecraven>
scymtym: thanks, I'll look into that!
<ecraven>
jackdaniel: it's not, but thanks!
King_julian has joined #commonlisp
<ecraven>
how do I make a name unbound after having defined it with `defvar' (so that I can use `defconstant' on it)?
rkazak has joined #commonlisp
yitzi has joined #commonlisp
decweb has joined #commonlisp
<jackdaniel>
(unintern 'symbol)
<jackdaniel>
although if something captured the old symbol already, then it will roll with it
rkazak has quit [Ping timeout: 248 seconds]
<edgar-rft`>
you can defconstant after defvar, but not the other way around
random-nick has joined #commonlisp
<jackdaniel>
edgar-rft`: do you have a reference in the standard for that claim?
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
notzmv has quit [Ping timeout: 265 seconds]
nerap has joined #commonlisp
rkazak has joined #commonlisp
<beach>
Do all major free Common Lisp implementations have a vector type specialized to (UNSIGNED-BYTE 8)?
rkazak has quit [Ping timeout: 252 seconds]
gorignak has quit [Ping timeout: 260 seconds]
King_julian has quit [Read error: Connection reset by peer]
AetherWind has joined #commonlisp
xaltsc has quit [Quit: WeeChat 4.4.3]
MyNetAz has quit [Read error: Connection reset by peer]
MyNetAz has joined #commonlisp
bpas has joined #commonlisp
cow_2001 has quit [Quit: ✡]
rkazak has joined #commonlisp
bpas has left #commonlisp [#commonlisp]
cow_2001 has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
chum-cha has joined #commonlisp
Th30n has quit [Ping timeout: 265 seconds]
rkazak has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
random-nick has quit [Quit: quit]
kamafam has quit [Ping timeout: 246 seconds]
pfdietz has joined #commonlisp
random-nick has joined #commonlisp
chum-cha has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
* beach
probably won't submit anything, though perhaps a paper entitled "Applying COMPUTE-DISCRIMINATING-FUNCTION to itself" would be a good thing at some point.
gorignak has quit [Quit: quit]
mgl has quit [Ping timeout: 265 seconds]
jon_atack has joined #commonlisp
<varjag>
nice
dnhester26 has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
<beach>
varjag: I assume you were referring to ELS, yes? Are you planning to go?
<varjag>
i hope so very much
<varjag>
beach: maybe even submit something this year
<ixelp>
The World's Loudest Lisp Program to the Rescue | Paraprogramming Dispatches
<varjag>
no ai related content there tho
<beach>
Heh, good!
<beach>
Interesting topic.
<varjag>
we'll see… may is pretty packed with projects for us but hopefully we'll squeeze a trip in
<varjag>
bbl
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
<beach>
Let's hope so.
jonatack has joined #commonlisp
rkazak has joined #commonlisp
puke has joined #commonlisp
yitzi has joined #commonlisp
kevingal has joined #commonlisp
stag-enterprises has joined #commonlisp
chops_ has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Read error: Connection reset by peer]
rkazak has quit [Ping timeout: 265 seconds]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
notzmv has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
rkazak has joined #commonlisp
<stag-enterprises>
I'm having an issue with DEFMACRO and symbol package/namespaces. The lambda arguments inside the macro are being assigned to the wrong package.
<stag-enterprises>
I know I can use INTERN to declare variables inside the current package, but not sure how I would do something like that with function arguments
<bike>
intern doesn't declare variables, it makes symbols. and that's exactly what you need here. you want the symbol named "A" in the current package (presumably the package at macroexpansion time?)
<bike>
(intern "A") is that symbol
rtypo has quit [Ping timeout: 260 seconds]
<bike>
so you can just put that in the expansion.
<bike>
it's more usual stylistically to avoid this confusing stuff, though. either by making the variable names parameters to the macro or just accepting they're in the package the macro definition is read in
chops_` has joined #commonlisp
chops_ has quit [Ping timeout: 276 seconds]
chops_` has quit [Ping timeout: 276 seconds]
<stag-enterprises>
thanks for the help, but not quite sure how i'm supposed to add it to the expansion. are you saying something like `(lambda (a) (setf (intern "a") a) ,body)?
cmack` has quit [Remote host closed the connection]
traxex has joined #commonlisp
pfdietz has joined #commonlisp
varjag has joined #commonlisp
rkazak has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
akoana has joined #commonlisp
notzmv has joined #commonlisp
johnjaye has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
shka has quit [Quit: Konversation terminated!]
jistr has quit [Quit: quit]
jistr has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
pve has quit [Quit: leaving]
amb007 has quit [Ping timeout: 265 seconds]
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 245 seconds]
chops_ has quit [Ping timeout: 245 seconds]
rkazak has quit [Ping timeout: 248 seconds]
gooba` has joined #commonlisp
gooba has quit [Ping timeout: 244 seconds]
calx- has joined #commonlisp
mgl has quit [Ping timeout: 244 seconds]
kdlv has quit [Remote host closed the connection]
kdlv has joined #commonlisp
bpas has joined #commonlisp
<tux0r>
is anyone here decently experienced with ningle&clack and can give me a hint on wtf i'm doing wrong? tl;dr: i can't get clackup to work properly, it starts and quits immediately. and ningle's docs suck. hard. https://github.com/fukamachi/ningle/issues/48
<ixelp>
How to actually get an event loop? · Issue #48 · fukamachi/ningle · GitHub
MyNetAz has quit [Read error: Connection reset by peer]
varjag has quit [Ping timeout: 265 seconds]
MyNetAz has joined #commonlisp
AstraUnderscore has joined #commonlisp
AstraUnderscore has quit [Changing host]
AstraUnderscore has joined #commonlisp
rkazak has joined #commonlisp
bpas has left #commonlisp [#commonlisp]
rkazak has quit [Ping timeout: 245 seconds]
attila_lendvai_ has quit [Ping timeout: 276 seconds]