jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | offtopic --> #lispcafe
madage has quit [Read error: Connection reset by peer]
Aurora_v_kosmose has quit [Read error: Connection reset by peer]
cantstanya has quit [Read error: Connection reset by peer]
hendursaga has quit [Read error: Connection reset by peer]
gioyik has quit [Write error: Connection reset by peer]
<fiddlerwoaroof> Does anyone have an emacs setup that handles #p #. and friends nicely?
aeth has quit [Ping timeout: 272 seconds]
gioyik has joined #lisp
<fiddlerwoaroof> e.g. so that C-M-k treats them as part of the expression
hendursaga has joined #lisp
aeth has joined #lisp
Aurora_v_kosmose has joined #lisp
hiroaki has quit [Quit: Leaving]
hiroaki has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
galex-713 has joined #lisp
cantstanya has joined #lisp
jonatack__ has joined #lisp
jonatack_ has quit [Read error: Connection reset by peer]
jonatack__ has quit [Client Quit]
jonatack has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
dhil has quit [Ping timeout: 264 seconds]
madage has joined #lisp
varjag has quit [Ping timeout: 240 seconds]
fubbiquantz has quit [Ping timeout: 272 seconds]
hendursa1 has joined #lisp
hendursaga has quit [Ping timeout: 268 seconds]
hendursaga has joined #lisp
hendursa1 has quit [Ping timeout: 268 seconds]
mrcom has quit [Ping timeout: 265 seconds]
dbotton has joined #lisp
Aurora_v_kosmose has quit [Remote host closed the connection]
Aurora_v_kosmose has joined #lisp
akoana has left #lisp ["Leaving"]
cchristiansen has joined #lisp
zooey has joined #lisp
mrcom has joined #lisp
random-nick has quit [Ping timeout: 240 seconds]
dbotton has quit [Quit: This computer has gone to sleep]
hiroaki has quit [Ping timeout: 272 seconds]
Sheilong has quit [Quit: Connection closed for inactivity]
fubbiquantz has joined #lisp
recalloc has joined #lisp
hendursa1 has joined #lisp
pankajsg has joined #lisp
dbotton has joined #lisp
hendursaga has quit [Ping timeout: 268 seconds]
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
semz has quit [Ping timeout: 260 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
Sheilong has joined #lisp
ralt has quit [Quit: Connection closed for inactivity]
semz has joined #lisp
semz has quit [Changing host]
semz has joined #lisp
aeth_ has joined #lisp
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
edgar-rft has quit [Quit: Leaving]
fubbiquantz has quit [Ping timeout: 256 seconds]
aeth has quit [Ping timeout: 272 seconds]
aeth has joined #lisp
asarch has joined #lisp
prxq_ has joined #lisp
prxq has quit [Ping timeout: 256 seconds]
Sheilong has quit []
Bike has quit [Quit: Connection closed]
hendursaga has joined #lisp
hendursa1 has quit [Ping timeout: 268 seconds]
warweasle has quit [Quit: rcirc on GNU Emacs 26.1]
Nilby` has quit [Ping timeout: 264 seconds]
_whitelogger has joined #lisp
Alfr has joined #lisp
Lycurgus has joined #lisp
qbdp has joined #lisp
Alfr_ has quit [Ping timeout: 260 seconds]
qbdp has quit [Client Quit]
<beach> Good morning everyone!
<Lycurgus> moin beach
Bike has joined #lisp
Kilomomo has left #lisp [#lisp]
zaquest has quit [Remote host closed the connection]
zaquest has joined #lisp
<ebrasca> Good morning #lisp!
thmprover has quit [Quit: [Exit, pursued by bear]]
Lycurgus has quit [Quit: Exeunt]
rumbler31 has quit [Ping timeout: 246 seconds]
ikrabbe|2 has joined #lisp
ikrabbe has quit [Ping timeout: 246 seconds]
pankajsg has quit [Ping timeout: 272 seconds]
kam1 has quit [Read error: Connection reset by peer]
bilegeek has joined #lisp
_whitelogger has joined #lisp
skapate has joined #lisp
skapata has quit [Disconnected by services]
skapate is now known as skapata
kam1 has joined #lisp
kam1 has quit [Client Quit]
karlosz has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
jonatack has quit [Ping timeout: 264 seconds]
contrapunctus has left #lisp ["Disconnected: Replaced by new connection"]
contrapunctus has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
dbotton has quit [Quit: This computer has gone to sleep]
dbotton has joined #lisp
dbotton has quit [Quit: Leaving]
kam1 has joined #lisp
kam1 has quit [Read error: Connection reset by peer]
Bike has quit [Quit: Connection closed]
_jrjsmrtn has quit [Ping timeout: 246 seconds]
__jrjsmrtn__ has joined #lisp
pagnol has joined #lisp
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
andreyorst[m] has joined #lisp
pankajsg has joined #lisp
prxq_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
prxq has joined #lisp
scymtym_ has joined #lisp
scymtym has quit [Ping timeout: 240 seconds]
contrapunctus has left #lisp ["Disconnected: Replaced by new connection"]
contrapunctus has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
aartaka has joined #lisp
aartaka_d has joined #lisp
aartaka has quit [Ping timeout: 272 seconds]
attila_lendvai has joined #lisp
_whitelogger has joined #lisp
attila_lendvai has quit [Ping timeout: 272 seconds]
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
h4ck3r9696 has joined #lisp
space_otter has joined #lisp
hendursa1 has joined #lisp
hendursaga has quit [Ping timeout: 268 seconds]
aggin has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
skapata has quit [Remote host closed the connection]
anticrisis has quit [Read error: Connection reset by peer]
surabax has joined #lisp
pve has joined #lisp
ralt has joined #lisp
rgherdt has joined #lisp
gioyik has quit [Quit: WeeChat 3.0]
susam has quit [Quit: Idle for 30+ days]
ecm has quit [Quit: Idle for 30+ days]
scymtym__ has joined #lisp
scymtym_ has quit [Ping timeout: 240 seconds]
pagnol has quit [Ping timeout: 264 seconds]
hendursaga has joined #lisp
scymtym__ has quit [Remote host closed the connection]
scymtym has joined #lisp
hendursa1 has quit [Ping timeout: 268 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
varjag has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
h4ck3r9696 has quit [Quit: Leaving.]
varjag has quit [Ping timeout: 240 seconds]
attila_lendvai has quit [Ping timeout: 272 seconds]
orivej has joined #lisp
aartaka has joined #lisp
aggin has quit [Quit: WeeChat 3.0.1]
bilegeek has quit [Quit: Leaving]
SoTypicalNoob has joined #lisp
asarch has quit [Quit: Leaving]
aartaka_d has quit [Ping timeout: 240 seconds]
shka_ has joined #lisp
edgar-rft has joined #lisp
attila_lendvai has joined #lisp
orivej has quit [Ping timeout: 265 seconds]
shka_ has quit [Remote host closed the connection]
ikrabbe|2 has quit [Ping timeout: 272 seconds]
karlosz has quit [Quit: karlosz]
attila_lendvai has quit [Ping timeout: 272 seconds]
attila_lendvai has joined #lisp
rumbler31 has joined #lisp
attila_lendvai_ has joined #lisp
rumbler31 has quit [Ping timeout: 256 seconds]
attila_lendvai has quit [Ping timeout: 264 seconds]
andreyorst[m] has quit [Remote host closed the connection]
attila_lendvai has joined #lisp
attila_lendvai_ has quit [Read error: Connection reset by peer]
kam1 has joined #lisp
attila_lendvai has quit [Remote host closed the connection]
attila_lendvai has joined #lisp
theothornhill has joined #lisp
kam1 has quit [Read error: Connection reset by peer]
contrapunctus has left #lisp ["Disconnected: Replaced by new connection"]
contrapunctus has joined #lisp
ikrabbe|2 has joined #lisp
Lord_of_Life has quit [Read error: Connection reset by peer]
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
Lord_of_Life has joined #lisp
Bourne has joined #lisp
Lord_of_Life has quit [Read error: Connection reset by peer]
attila_lendvai_ has joined #lisp
Lord_of_Life has joined #lisp
aartaka_d has joined #lisp
aartaka has quit [Ping timeout: 265 seconds]
attila_lendvai has quit [Ping timeout: 272 seconds]
alendvai__ has joined #lisp
imode has quit [Ping timeout: 265 seconds]
attila_lendvai_ has quit [Ping timeout: 246 seconds]
vegansbane6963 has quit [Quit: The Lounge - https://thelounge.chat]
aartaka_d has quit [Ping timeout: 272 seconds]
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
ralt has quit [Quit: Connection closed for inactivity]
karswell has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
attila_lendvai has joined #lisp
aartaka_d has joined #lisp
contrapunctus has joined #lisp
alendvai__ has quit [Read error: Connection reset by peer]
aartaka has joined #lisp
rogersm has joined #lisp
aartaka_d has quit [Ping timeout: 240 seconds]
rogersm has quit [Remote host closed the connection]
rogersm has joined #lisp
rogersm has quit [Remote host closed the connection]
aartaka_d has joined #lisp
aartaka has quit [Ping timeout: 256 seconds]
kenran has joined #lisp
attila_lendvai has quit [Ping timeout: 272 seconds]
theothornhill has quit [Ping timeout: 264 seconds]
cchristiansen has quit [Remote host closed the connection]
rogersm has joined #lisp
rogersm has quit [Remote host closed the connection]
vegansbane6963 has joined #lisp
aartaka has joined #lisp
aartaka_d has quit [Ping timeout: 240 seconds]
puchacz has joined #lisp
ikrabbe|2 has quit [Ping timeout: 240 seconds]
orivej has joined #lisp
random-nick has joined #lisp
Bourne has quit [Ping timeout: 265 seconds]
shka_ has joined #lisp
holycow has joined #lisp
puchacz has quit [Quit: Connection closed]
space_otter has quit [Ping timeout: 264 seconds]
ebrasca has quit [Remote host closed the connection]
iamFIREc1 has quit [Ping timeout: 265 seconds]
aartaka has quit [Ping timeout: 264 seconds]
aartaka has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
galex-713 has joined #lisp
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 246 seconds]
hiroaki has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
attila_lendvai has joined #lisp
jonatack has joined #lisp
grumble has quit [Quit: ACCORDING TO ALL KNOWN LAWS OF AVIATION THERE IS NO WAY A BEE SHOULD BE ABLE TO FLY ITS WINGS ARE TOO SMALL TO GET ITS FAT LITTLE BODY OFF THE GROUND THE BEE OF COURSE FLIES ANYWAY BECAUSE BEES DON'T CARE WHAT HUMANS THINK IS IMPOSSIBLE]
attila_lendvai has quit [Ping timeout: 272 seconds]
dhil has joined #lisp
grumble has joined #lisp
cage_ has joined #lisp
waleee-cl has joined #lisp
kenran has quit [Quit: leaving]
dhil has quit [Ping timeout: 240 seconds]
<cage_> (reposting from #guix) Hi! I am trying using guix for a common lisp software that uses asdf and autotools to build and install the package, i am using gnu-build-system and the process fails the phase when building the executable with sbcl the compiler says that can not find asdf (the CL building system), any idea?
<cage_> i can see that stumpwm and pgloader are packaged with guix so i hope someone who did that job is here :)
<mfiano> I don't think Pierre hangs out on IRC
<mfiano> He is on the Nyxt team though so maybe jmercouris knows
jonatack has quit [Ping timeout: 240 seconds]
jonatack has joined #lisp
SAL9000 has quit [Quit: WeeChat 2.9]
<cage_> mfiano, thank you!
<cage_> abrevar is their nick, is it?
<mfiano> Ambrevar
<cage_> *ambrevar
<cage_> yes, thanks :)
Sheilong has joined #lisp
<cage_> seems i could be able to reach on the fediverse :)
jonatack has quit [Ping timeout: 256 seconds]
texno has quit [Ping timeout: 265 seconds]
sz0 has joined #lisp
jonatack has joined #lisp
Josh_2 has joined #lisp
sunset_NOVA has joined #lisp
sunset_NOVA has quit [Remote host closed the connection]
puchacz has joined #lisp
sunset_NOVA has joined #lisp
sunset_NOVA has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 246 seconds]
puchacz has quit [Client Quit]
dhil has joined #lisp
Nilby has joined #lisp
<jmercouris> cage_: you’re best off using his email from his website
<cage_> jmercouris, thanks! :)
jonatack has joined #lisp
skapata has joined #lisp
Josh_2 has quit [Remote host closed the connection]
Josh_2 has joined #lisp
<Josh_2> Afternoon all
ikrabbe|2 has joined #lisp
<Josh_2> Im tryna use cffi/c2ffi, I think I have my config correct but when I try to load the system with quicklisp I get an "the file .../spec/olm....spec does not exist"
<cage_> Josh_2, try to ask borodust, he is maintaning a fork IIRC
<Josh_2> I'm just tryna generate some C bindings automatically
<borodust> cage_ Josh_2: i'm not maintaining fork of cl-autowrap or cffi-c2ffi
<cage_> sorry :(
<borodust> cage_: no problem :)
<Josh_2> are there docs for claw anywhere?
<borodust> no
rumbler31 has joined #lisp
<borodust> Josh_2: your best bet for C wrapper autogeneration would be cl-autowrap atm
<borodust> if you don't mind a bit of manual hinting cffi+groveller might work for you
<Josh_2> Well this is my first rodeo, I looked at cffi+groveller but cant say I have a clue how it works
dbotton has joined #lisp
rumbler31 has quit [Ping timeout: 240 seconds]
<Josh_2> I'm trying to bind the megolm v1 library it has like 20 header files (the python library that binds it uses 6)
<borodust> Josh_2: gimme a link to sources, i can try to generate a wrapper - you then can tune it as you like
<borodust> lets see
<Josh_2> The python version which I need to copy only uses olm.h inbound_group_session.h outbout_group_session.h pk.h and sas.h
<Josh_2> need a tool to convert C/CPP to Common Lisp code :P
varjag has joined #lisp
hendursaga has quit [Remote host closed the connection]
SAL9000 has joined #lisp
hendursaga has joined #lisp
<Nilby> I am such a tool.
<Josh_2> Whys that?
<Nilby> I've done a lot of converting C/C++ to Lisp.
ebrasca has joined #lisp
<Josh_2> oh right, you can convert olm to CL if you want ;)
<Josh_2> to be fair the olm library is more the speciality of the folks who wrote Ironclad
<borodust> Josh_2: here you go: https://github.com/borodust/claw-olm
<borodust> Josh_2: be careful, i never tested if those actually work ;p
<borodust> those are generated for linux but if you would only call functions and use pointers to structs you should be safe on other systems too, fork and modify accordingly :)
<borodust> to load bindings, clone where asdf can find them, and (ql:register-local-projects) (ql:quickload :claw-olm)
<Josh_2> This is amazing
<borodust> :claw is not required
<Josh_2> thank you!
<borodust> no probs
<borodust> you can ignore :claw-olm/wrapper system, it is used for actual generation :)
<borodust> actually, one minor fix incoming ;p
<borodust> forgot to remove one thing while copypasting
<borodust> done
<Josh_2> Thanks, I'll give them a spin now!
zooey has quit [Quit: quit]
zooey has joined #lisp
<borodust> have fun :)
<Josh_2> ah
<Josh_2> well I noticed one problem that is my fault because of a spelling error on my part
<Josh_2> "olm/outbout_group_session.h" is supposed to be "olm/outbound_group_session.h"
jonatack has quit [Ping timeout: 272 seconds]
Bourne has joined #lisp
<Josh_2> borodust: how do I get claw to regenerate the bindings after I have fixed the spelling mistake with the .h?
jonatack has joined #lisp
theothornhill has joined #lisp
<borodust> Josh_2: you don't :) need to wait for me to regen them
theothornhill has quit [Ping timeout: 264 seconds]
<borodust> those bindings are generated by experimental claw branch (w/ cxx support)
<borodust> err, *by claw from experimental branch
<Josh_2> Oh I see
<Josh_2> Sorry for being such a pain :(
kenran has joined #lisp
iamFIREc1 has joined #lisp
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #lisp
puchacz has joined #lisp
puchacz has quit [Client Quit]
iamFIREc1 has quit [Ping timeout: 265 seconds]
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 256 seconds]
ralt has joined #lisp
toorevitimirp has joined #lisp
warweasle has joined #lisp
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 256 seconds]
contrapunctus has left #lisp ["Disconnected: closed"]
thmprover has joined #lisp
contrapunctus has joined #lisp
karswell has quit [Ping timeout: 264 seconds]
long4mud has quit [Quit: WeeChat 3.0.1]
jlarocco has joined #lisp
<jlarocco> Is there etiquette or guidelines for libraries adding values to *features* ?
<jlarocco> Or best practices
<borodust> Josh_2: actually, it seems like this header was included from somewhere else and bindings are generated for functions from that header :)
<borodust> Josh_2: I've pushed typo fix anyway
charles` has joined #lisp
<charles`> Good morning
<beach> Hello charles`.
warweasle has quit [Quit: rcirc on GNU Emacs 26.1]
<Nilby> jlarocco: I think most libraries shouldn't add anything to features. Modern etiquette is that it's for things that widely apply to the whole system, such as the OS version, or the CPU type. To check for things packages you can do find-package, and then something the package provides. And there's other ways to do conditional compilation, e.g. things in the ASD.
<Nilby> Just my opinion, of course.
<charles`> clhs read-from-string says that it is affected by none, but isn't it affected by *read-eval*?
theothornhill has joined #lisp
<Nilby> charles`: I think that's an error in CLHS. It's not in the actual CL specification.
theothornhill has quit [Ping timeout: 246 seconds]
carkh has quit [Remote host closed the connection]
gioyik has joined #lisp
<Nilby> One can assume it's affected by at least: *readtable* *read-default-float-format* *read-base* *read-suppress* *package* *read-eval*
<Nilby> since it says, it's as if "read" is called
<charles`> I know it isn't official spec, but it is what most people use,
toorevitimirp has quit [Remote host closed the connection]
<Nilby> charles`: Yes. Good catch. Also it does have side effects. I wonder if anyone dares to update CLHS? But it's true it proably doesn't have any addtional side effects, on top of calling read.
<Nilby> I actually always look at the draft spec version in emacs info. But it has problems too.
<charles`> while we are on the topic, is it safe to use read-from-string on user inputted strings as long as *read-eval* is nil?
jonatack has quit [Read error: Connection reset by peer]
<jlarocco> Nilby: thanks. I'll look into the ASD conditional compilation.
<Nilby> charles`: I wouldn't call it safe. It's safer, but not from truely malicious things. You might want to check out https://github.com/phoe/safe-read.
theothornhill has joined #lisp
wsinatra has joined #lisp
theothornhill has quit [Ping timeout: 264 seconds]
kenran has quit [Quit: leaving]
theothornhill has joined #lisp
nullman has quit [Remote host closed the connection]
aartaka has quit [Read error: Connection reset by peer]
theothornhill has quit [Ping timeout: 256 seconds]
aartaka has joined #lisp
long4mud has joined #lisp
ym has joined #lisp
imode has joined #lisp
charles` has quit [Ping timeout: 264 seconds]
lottaquestions_ has quit [Quit: Konversation terminated!]
<flip214> Is there some kind of stream that accepts ub8 vectors and strings?
ralt has quit [Quit: Connection closed for inactivity]
asarch has joined #lisp
aartaka has quit [Ping timeout: 265 seconds]
hjudt has joined #lisp
ym has quit [Ping timeout: 240 seconds]
anticrisis has joined #lisp
unimog has joined #lisp
SoTypicalNoob has quit [Ping timeout: 240 seconds]
nullman has joined #lisp
hjudt has quit [Ping timeout: 256 seconds]
nij has joined #lisp
<nij> Is it possible to define "functions" that have a fixed number of arguments?
<nij> I want to make currying more native in lisp...
dbotton has quit [Quit: This computer has gone to sleep]
charles` has joined #lisp
Nilby has quit [Ping timeout: 264 seconds]
<nij> Hmm I realize my question doesn't make sense. OF COURSE we can define functions that have a fixed number of arguments.
<nij> What I intended to ask is this: suppose I have (defun f (x y) (+ x y)).. how do I make (+ 3) return a function?
<nij> With #'curry I can probably use something like (curry #'+ 3), but that's too long.
asarch has quit [Quit: Leaving]
X-Scale` has joined #lisp
surabax has quit [Quit: Leaving]
X-Scale has quit [Ping timeout: 264 seconds]
X-Scale` is now known as X-Scale
dale has quit [Remote host closed the connection]
dale has joined #lisp
dale has quit [Remote host closed the connection]
dale has joined #lisp
ebrasca has quit [Remote host closed the connection]
<charles`> nij what syntax are you looking for? (curry #'+ 3) or (partial #'+ 3) seems pretty short to me
ralt has joined #lisp
dale has quit [Remote host closed the connection]
cage_ has quit [Quit: Leaving]
carkh has joined #lisp
dale has joined #lisp
charles` has quit [Ping timeout: 264 seconds]
McParen has joined #lisp
<nij> Perhaps.. [+ 3] ?
<nij> So I can happily run [[+ 3] 4]
<aeth> nij: How about #y(+ 3) instead? for currY
<aeth> (C's taken and R's taken)
<aeth> dispatch reader macro
terpri has quit [Quit: Leaving]
<nij> Ah.. i see it's again an issue of using reader macros. I should look into a list of basic examples of them to get familiar with.
luni has joined #lisp
<nij> aeth: can't I use []? or some other things like ||?
<aeth> it's easier to use #<letter>(...) than to use alternatives
<aeth> the only problem is that you'll soon run out of letters!
theothornhill has joined #lisp
<aeth> The ideal thing to do is to turn #<letter>(...) into (<macro> ...)
<nij> yeah it's quite sad that we only have ~30 letters
<nij> However! letters with ({[|$#@%]}) offer as a lot of variations
<nij> aeth: or we can start using unicodes, as aplers do
terpri has joined #lisp
theothornhill has quit [Ping timeout: 264 seconds]
<flip214> CL-PDF wants to write to a stream that accepts both WRITE-STRING and WRITE-BYTE. How can I get such a stream?
<aeth> have you tried trivial-gray-streams? Idk if it lets you do it.
citizenajb has joined #lisp
villanella has joined #lisp
<aeth> (fundamental-binary-output-stream fundamental-character-output-stream)
kam1 has joined #lisp
kam1 has quit [Read error: Connection reset by peer]
<flip214> aeth: do you have an example? Do I need to declare my own stream class for that
<flip214> ?
nij has left #lisp ["ERC (IRC client for Emacs 27.1)"]
<aeth> flip214: that would be my guess
<aeth> perhaps someone has provided one if they expect it, though
<aeth> you could try grepping for inheritance from those two classes if it was implemented the way I think it might be implemented
<aeth> At the very least, it looks like it's not an error so it looks like it's possible. (defclass foo (trivial-gray-streams:fundamental-binary-output-stream trivial-gray-streams:fundamental-character-output-stream) ())
theothornhill has joined #lisp
<aeth> All you need to define your own streams, at least afaik, is to put a queue in the object and define the methods described in http://www.nhplace.com/kent/CL/Issues/stream-definition-by-user.html
<aeth> But if they expect it they probably already have one in mind.
theothornhill has quit [Ping timeout: 264 seconds]
luni has quit [Quit: Connection closed]
akoana has joined #lisp
drl has joined #lisp
gioyik_ has joined #lisp
theothornhill has joined #lisp
dbotton has joined #lisp
gioyik has quit [Ping timeout: 268 seconds]
kpoeck has joined #lisp
theothornhill has quit [Ping timeout: 246 seconds]
puchacz has joined #lisp
puchacz has quit [Client Quit]
equwal[m] has joined #lisp
<Josh_2> borodust: thanks :)
McParen has left #lisp [#lisp]
<borodust> o7
<Josh_2> Now for the annoying part, converting this python code into CL
jeosol has quit [Quit: Connection closed]
unimog has left #lisp ["ERC (IRC client for Emacs 27.1.90)"]
ikrabbe has joined #lisp
ikrabbe|2 has quit [Ping timeout: 246 seconds]
Sheilong has quit []
gioyik has joined #lisp
gioyik_ has quit [Ping timeout: 268 seconds]
gaqwas has quit [Ping timeout: 272 seconds]
<edgar-rft> Josh_2: I've heard CL is less annoying than one might think :-)
Nilby has joined #lisp
charles` has joined #lisp
charles` has quit [Ping timeout: 264 seconds]
<antoszka> ;)
eta has quit [Quit: we're here, we're queer, connection reset by peer]
eta has joined #lisp
<Josh_2> edgar-rft: perhaps
mood_ has quit [Quit: Gone.]
mood has joined #lisp
<Josh_2> with CFFI I need to pass a void * <var name> to a foreign function, this can just be a pointer to an array or a string right?
shka_ has quit [Ping timeout: 265 seconds]
<Josh_2> In the python code I'm trying to copy they are using ffi.from_buffer(<string as utf8 array>) I don't know what the equivalent is in cffi
charles` has joined #lisp
holycow has quit [Disconnected by services]
dbotton has quit [Quit: This computer has gone to sleep]
holycow_ has joined #lisp
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 256 seconds]
villanella has quit [Quit: villanella]
dbotton has joined #lisp
pve has quit [Quit: leaving]
theothornhill has joined #lisp
dbotton has quit [Quit: This computer has gone to sleep]
theothornhill has quit [Ping timeout: 264 seconds]
equwal[m] is now known as equwal
kpoeck has quit [Ping timeout: 240 seconds]
dbotton has joined #lisp
charles` has quit [Ping timeout: 264 seconds]
holycow_ has quit [Quit: Lost terminal]
citizenajb has quit [Remote host closed the connection]
pillton has joined #lisp
Bourne has quit [Ping timeout: 246 seconds]
arpunk has quit [Remote host closed the connection]
charles` has joined #lisp
random-nick has quit [Ping timeout: 272 seconds]
rgherdt has quit [Ping timeout: 272 seconds]
dhil has quit [Ping timeout: 256 seconds]
varjag has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<jasom> Down to 35 test failures in nyaml
wsinatra has quit [Quit: WeeChat 3.0.1]
<jasom> flip214: search for "bivalent stream"
<jasom> flip214: sbcl provides these out-of-the-box, not sure if there is a trivial wrapper for them
<jasom> Josh_2: CFFI wil lautomatically convert a string to a char *, but you need to be careful of your encodings.
<jasom> Josh_2: it will *not* automatically convert byte arrays IIRC, so you need to allocate foreign storage and copy the array into it. There is a library (static-vectors?) that lets you allocate lisp vectors that may be directly passed to foreign code without copying.
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
<jasom> Josh_2: https://github.com/jasom/mymongrel2/blob/master/mymongrel2.lisp#L13 this converts *from* foreign to lisp, but you can just flip what's in the SETF and do a foreign-alloc to do the reverse
<jasom> Josh_2: there is a with-foreign-object macro, but it's bad for large object because it may stack allocate
<jasom> Josh_2: but with foreign-alloc you'll have to free it yourself
pankajsg has quit [Ping timeout: 256 seconds]
fubbiquantz has joined #lisp
edgar-rft has quit [Quit: Leaving]
lottaquestions has joined #lisp