bitmapper has quit [Quit: Connection closed for inactivity]
<Josh_2>
well I can't figure it out
<Josh_2>
Some functions which expect base64 strings as input work just fine and then these two (so far) keep failing :(
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
zxq2 has quit [Ping timeout: 272 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 264 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<Josh_2>
hmm seems the pickle functions take a void * while the ones causing issues require uint8_t *, how do I create uint8_t * with cffi?
<Nilby>
cffi has a built-in :uint8 type
<Josh_2>
So I have to turn my nice string into an array whose elements are of type uint8
<Josh_2>
bit of a pita but whatever
<Nilby>
You can ususally just use the cffi string type, but you have to make sure the cffi encoding matches the expected encoding of the foreign functions.
<Josh_2>
thats what I've been doing, but I tried utf-8 which is what the python version is using, and I've tried ascii
<mfiano>
#'babel:string-to-octets or ironclad:ascii-string-to-byte-array
<Nilby>
Hmmm. Well uint8_t * could be any encoding or no encoding.
<Nilby>
If it's base64 I imagine it's converting aribtrary binary data, so you don't want a character encoding conversion.
<Josh_2>
okay
<Josh_2>
I'll try using an array instead
Bike has joined #lisp
<Nilby>
On some platforms you can even use the lisp array data directly without conversion with cffi:with-pointer-to-vector-data.
toorevitimirp has joined #lisp
Stanley00 has joined #lisp
<leo_song>
lukego: try use cffi-grovel to wrap by yourself? I find it pretty easy to use.
<Josh_2>
well when I use (cffi:with-foreign-array ..) I get an error about not being able to find an applicable method relating to cffi:dimensions
<Josh_2>
cffi:with-pointer-to-vector-data doesn't do that though, not that I can find that function in the online
<Josh_2>
in the online manual
iskander- has joined #lisp
iskander has quit [Ping timeout: 256 seconds]
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
X-Scale` has joined #lisp
iamFIREc1 has joined #lisp
X-Scale has quit [Ping timeout: 265 seconds]
X-Scale` is now known as X-Scale
iamFIREc1 has quit [Ping timeout: 240 seconds]
zyz_ has joined #lisp
zyz__ has quit [Ping timeout: 246 seconds]
judson_ has joined #lisp
<Josh_2>
Well I'm not getting invalid-base64, now I'm getting bad-message-version
<Josh_2>
so I guess thats progress :P
wxie1 has joined #lisp
wxie has quit [Ping timeout: 264 seconds]
wxie1 is now known as wxie
skapata has quit [Remote host closed the connection]
zyz__ has joined #lisp
zyz_ has quit [Ping timeout: 260 seconds]
prxq_ has joined #lisp
<Josh_2>
Well I got it to work!!
<Josh_2>
Thanks for the heads up Nilby & mfiano
recalloc has quit [Ping timeout: 272 seconds]
prxq has quit [Ping timeout: 240 seconds]
karlosz has joined #lisp
Alfr_ has joined #lisp
<Nilby>
Nice. So good when things actually work after a struggle.
pillton has joined #lisp
Alfr has quit [Ping timeout: 240 seconds]
devon has quit [Ping timeout: 246 seconds]
<Josh_2>
bit of a pita that I'm not longer using with-foreign-string as that automatically freed pointers
recalloc has joined #lisp
<beach>
Good morning everyone!
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilby>
Good morning.
<Nilby>
Josh_2: You might be able to use with-foreign-object, but really either way it's just an unwind protect wrapper.
devon has joined #lisp
<Josh_2>
exactly
<Josh_2>
Morning beach
contrapunctus has left #lisp ["Disconnected: Replaced by new connection"]
contrapunctus has joined #lisp
bitmapper has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
judson_ has joined #lisp
varjag has joined #lisp
varjag has quit [Ping timeout: 264 seconds]
zyz__ has quit [Remote host closed the connection]
dbotton has joined #lisp
dbotton has quit [Client Quit]
wxie has quit [Ping timeout: 264 seconds]
screwtape` has joined #lisp
<mfiano>
Morning
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
<beach>
Hello mfiano.
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
<mfiano>
I recently took a break from game development, after approximately 20 years. I'm really having a lot of fun developing another project with Common Lisp.
<beach>
Great!
<beach>
... the Common Lisp part, that is.
<mfiano>
I've been writing a game engine/games in CL for about 15, but my burnout meter said I needed a break.
recalloc has quit [Ping timeout: 260 seconds]
contrapunctus has left #lisp ["Disconnected: closed"]
thmprover has quit [Quit: For Here, I Hope, Begins Our Lasting Joy]
contrapunctus has joined #lisp
<beach>
mfiano: I can understand that.
orivej has quit [Ping timeout: 240 seconds]
<mfiano>
I started a rather ambitious project that requires performance and interactive development, so Common Lisp makes perfect sense. But it's in its infancy, only about 10kloc so far.
gioyik_ has joined #lisp
<beach>
Can you give a short description of the project?
gioyik has quit [Ping timeout: 268 seconds]
Bike has quit [Quit: Connection closed]
<mfiano>
It will be a library and end-user application for procedurally generating images such as abstract art or 3D textures than can wrap a game actor using math. Their is another project, called WEIR, which is a similar yet with a very different, limited use-case.
<mfiano>
s/Their/There/
<beach>
That does sound ambitious.
<mfiano>
So far I have about 25 coherent noise algorithms and a bunch of transformations you can apply to them in a graph. Not much, but yes, it is ambitious. I made this example the other day with the limited tools I have implemented: https://i.lisp.cl/temp/art.png
<mfiano>
Lacking any sort of color composition as you can see :)
zdm has quit [Remote host closed the connection]
<beach>
I need to take your word for it. :)
anticrisis has joined #lisp
<mfiano>
It's a single hue, if you can't see that.
<mfiano>
One day you might be able to drag graph nodes and connect transformer edges to each other and see results in real time outside of Emacs :)
<mfiano>
(in McCLIM)
<beach>
Now I see it.
theothornhill has joined #lisp
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #lisp
narimiran has joined #lisp
theothornhill has quit [Ping timeout: 256 seconds]
krkini has joined #lisp
shka_ has joined #lisp
kini has quit [Ping timeout: 264 seconds]
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aindilis has quit [Ping timeout: 264 seconds]
ikrabbe has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 265 seconds]
asarch has joined #lisp
galex-713 has joined #lisp
judson_ has joined #lisp
akoana has left #lisp ["Leaving"]
pillton has quit [Quit: ERC (IRC client for Emacs 27.1)]
theothornhill has joined #lisp
krkini has quit [Ping timeout: 240 seconds]
theothornhill has quit [Ping timeout: 240 seconds]
kini has joined #lisp
gzj has quit [Quit: Leaving]
gzj has joined #lisp
sz0 has joined #lisp
recalloc has joined #lisp
aartaka has joined #lisp
gzj has quit [Quit: Leaving]
gzj has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
karlosz_ has joined #lisp
karlosz has quit [Read error: Connection reset by peer]
karlosz_ is now known as karlosz
_whitelogger has joined #lisp
rumbler31 has quit [Remote host closed the connection]
pankajsg has quit [Quit: Konversation terminated!]
pankajsg has joined #lisp
karlosz has quit [Remote host closed the connection]
pankajsg has quit [Client Quit]
karlosz has joined #lisp
pankajsg has joined #lisp
anticrisis has quit [Read error: Connection reset by peer]
yangby has joined #lisp
hjudt has joined #lisp
attila_lendvai has joined #lisp
karlosz has quit [Ping timeout: 240 seconds]
vsync_ has quit [Ping timeout: 258 seconds]
iskander has joined #lisp
iskander- has quit [Ping timeout: 240 seconds]
v3ga has quit [Quit: WeeChat 2.8]
v3ga has joined #lisp
a0 has joined #lisp
lowryder has quit [Ping timeout: 264 seconds]
lowryder has joined #lisp
kini has quit [Quit: bye]
yangby has quit [Quit: Go out for a walk and buy a drink.]
Keyboard1orrier has joined #lisp
KeyboardWorrier has quit [Ping timeout: 264 seconds]
kini has joined #lisp
vsync has joined #lisp
karlosz has joined #lisp
rogersm has joined #lisp
imode has quit [Ping timeout: 272 seconds]
epony has quit [Ping timeout: 240 seconds]
ljavorsk has joined #lisp
aindilis has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
CookE[] has joined #lisp
iamFIREc1 has joined #lisp
Cymew has joined #lisp
a0 has quit [Ping timeout: 268 seconds]
kini has quit [Ping timeout: 264 seconds]
kini has joined #lisp
kini has quit [Excess Flood]
skapata has joined #lisp
kini has joined #lisp
gioyik_ has quit [Quit: WeeChat 3.0]
karlosz has quit [Quit: karlosz]
bitmapper has quit [Quit: Connection closed for inactivity]
CookE[] has quit [Quit: Leaving]
CookE[] has joined #lisp
karlosz has joined #lisp
CookE[] has quit [Client Quit]
chen has joined #lisp
ljavorsk has quit [Remote host closed the connection]
ljavorsk has joined #lisp
karlosz has quit [Remote host closed the connection]
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 256 seconds]
kini has quit [Remote host closed the connection]
kini has joined #lisp
karlosz has joined #lisp
epony has joined #lisp
villanella has joined #lisp
scymtym has quit [Remote host closed the connection]
TMA has joined #lisp
scymtym has joined #lisp
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
pve has joined #lisp
villanella has quit [Ping timeout: 240 seconds]
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 240 seconds]
hendursa1 has joined #lisp
hendursaga has quit [Ping timeout: 268 seconds]
heisig has joined #lisp
asarch has quit [Quit: Leaving]
luni has joined #lisp
asarch has joined #lisp
contrapunctus has left #lisp ["Disconnected: Replaced by new connection"]
contrapunctus has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
norserob has quit [Quit: leaving]
engblom has quit [Read error: Connection reset by peer]
engblom has joined #lisp
loskutak has joined #lisp
aartaka_d has joined #lisp
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #lisp
aartaka_d has quit [Ping timeout: 240 seconds]
aindilis has quit [Remote host closed the connection]
asarch has quit [Quit: Leaving]
aindilis has joined #lisp
theothornhill has joined #lisp
villanella has joined #lisp
theothornhill has quit [Ping timeout: 240 seconds]
gzj has quit [Remote host closed the connection]
gzj has joined #lisp
aeth has quit [Ping timeout: 272 seconds]
aeth has joined #lisp
mrchampion has quit [Ping timeout: 246 seconds]
mrchampion has joined #lisp
villanella has quit [Ping timeout: 264 seconds]
screwtape` has quit [Ping timeout: 240 seconds]
iamFIREcracker has joined #lisp
iamFIREc1 has quit [Ping timeout: 265 seconds]
ukari has quit [Remote host closed the connection]
skapata has quit [Remote host closed the connection]
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 240 seconds]
Aurora_v_kosmose has quit [Ping timeout: 268 seconds]
madage has quit [Ping timeout: 268 seconds]
villanella has joined #lisp
Aurora_v_kosmose has joined #lisp
rozenglass has joined #lisp
madage has joined #lisp
orivej has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
iamFIREcracker has quit [Read error: Connection reset by peer]
vegansbane6963 has joined #lisp
ukari has quit [Remote host closed the connection]
luni has quit [Quit: Connection closed]
ukari has joined #lisp
surabax has joined #lisp
iamFIREcracker has joined #lisp
frgo has quit [Remote host closed the connection]
theothornhill has joined #lisp
frgo has joined #lisp
skapata has joined #lisp
kam1 has joined #lisp
theothornhill has quit [Ping timeout: 240 seconds]
jeosol has quit [Quit: Connection closed]
kam1 has quit [Ping timeout: 240 seconds]
theothornhill has joined #lisp
theothornhill has quit [Ping timeout: 272 seconds]
theothornhill has joined #lisp
theothor` has joined #lisp
theothornhill has quit [Remote host closed the connection]
theothor` has quit [Ping timeout: 246 seconds]
<Josh_2>
Afternoon
theothor` has joined #lisp
Stanley00 has quit [Remote host closed the connection]
theothor` has quit [Ping timeout: 260 seconds]
<beach>
Hello Josh_2.
gzj has quit [Remote host closed the connection]
ukari has quit [Remote host closed the connection]
ukari has joined #lisp
long4mud has quit [Quit: WeeChat 3.0.1]
aeth has quit [Ping timeout: 272 seconds]
aeth has joined #lisp
luni has joined #lisp
ljavorsk has quit [Ping timeout: 272 seconds]
ikki has joined #lisp
bitmapper has joined #lisp
aggin has joined #lisp
zaquest has quit [Quit: Leaving]
zaquest has joined #lisp
Bike has joined #lisp
<Josh_2>
cffi is causing my program to hang when I attempt to free a pointer created with (with-pointer-to-vector-data ..)
<Josh_2>
from what I can tell the pointer is not being used anymore
<Josh_2>
maybe It's foreign-array-free
<Josh_2>
nope
<Nilby>
with-pointer-to-vector-data is not without problems, because to be safe on has to not have garbage collection happen while C is using it
<Josh_2>
ah
<Josh_2>
is there a safer alternative?
<Josh_2>
with-pointer-to-vector-data performs perfectly and I get the expected result I just can't free the pointer
<Nilby>
yes, becase with-* allocates copies
<Josh_2>
so what do I do?
<Nilby>
oh
<Nilby>
i mean you can't free it, because it belong to lisp
<Josh_2>
oh
<Josh_2>
well that makes things easier I suppose
<Josh_2>
it'll just get garbage collected when I'm done with it?
<Nilby>
with-pointer-to-vector-data is just giving the lisp pointer to C code. with-foreign-string , with-foregin-object, etc. allocates and frees non-gc memory so it's safer
<Nilby>
with-pointer-to-vector-data is kind of a hack to make things fast, and zero copy when you know it's safe to do
<Josh_2>
huh
<Nilby>
yes
<Nilby>
it should be the just a pointer to memory lisp uses for the vector
<Josh_2>
well if I'm within the body of (with-pointer-to-vector-data .. it won't garbage collect the buffer will it?
<Nilby>
it should be gc as usual
<Nilby>
perhaps, as long as long as you stay in C code, and gc doesn't happen from another thread or something
<Josh_2>
Well I'll just stick with it then
<Josh_2>
Thanks
pfdietz has joined #lisp
<Nilby>
You're welcome, I've probably done too much with CFFI for my own good. The problems with with-pointer-to-vector-data is probably why it isn't mentioned in the manual.
aartaka has quit [Read error: Connection reset by peer]
aartaka_d has joined #lisp
<Josh_2>
Well I really appreciate the help, you have been a life saver
aggin has quit [Quit: WeeChat 3.0.1]
aggin has joined #lisp
thonkpod has quit [Ping timeout: 240 seconds]
<Nilby>
It seems like maybe I helped you make more powerful bugs (:
thonkpod has joined #lisp
francogrex has joined #lisp
<Josh_2>
haha yes
<Josh_2>
fixing one problem and finding a new
<Josh_2>
seems to be working properly now tho
<Nilby>
Cool.
<Nilby>
Lisp by itself is usually pretty safe, but With proper application of CFFI and other CL things I've managed to make Lisp crash itself, the window it's in, the window system, the OS, and even make the hardware overheat and break.
<Josh_2>
oh yikes
<contrapunctus>
lol
<Josh_2>
how do I convert a :uint32 pointer back to an integer?
<Nilby>
It should usually convert automaticlly, but if it doesn't you can use cffi:translate-from-foreign
<francogrex>
anyone here reading this has experience with sbcl VOP?
<heisig>
francogrex: Yes, I have used VOPs a few times.
<minion>
heisig, memo from flip214_: DANKE!!!
<Josh_2>
well the C function takes an argument of type uint32_t *, so I (foreign-alloc :uint32) as pass that, but it isn't being converted back to a nice integer
<Nilby>
Josh_2: Ah, I guess you would normally convert that with mem-ref then
<Josh_2>
oh maybe I should try mem-aref
<Nilby>
or mem-aref if it's an array
<Josh_2>
lemme see
<francogrex>
heisig: ok I suppose it was more trial and error (because I haven't seen any sort of comprehensive manual) yet
<Josh_2>
yep, mem-aref worked
jlarocco has quit [Ping timeout: 264 seconds]
Stanley00 has joined #lisp
aggin has quit [Quit: WeeChat 3.0.1]
aggin has joined #lisp
<Josh_2>
Now I just have to figure out why when I encrypt "test" and then decrypt it i get "test ... " followed by a bunch of random characters like #\Return
Stanley00 has quit [Ping timeout: 240 seconds]
<Bike>
sounds like you're reading out of bounds
luni has quit [Quit: Connection closed]
<Nilby>
Josh_2: Maybe there's a uint8 zero before those which C thinks should stop you, but Lisp is like whatever.
<Josh_2>
I got it
<Josh_2>
I was reading out of bounds like Bike said
lottaquestions_ has quit [Ping timeout: 258 seconds]
Sheilong has joined #lisp
villanella1 has joined #lisp
aggin has quit [Quit: WeeChat 3.0.1]
villanella has quit [Ping timeout: 240 seconds]
aeth has quit [Ping timeout: 256 seconds]
aeth has joined #lisp
choegusung has joined #lisp
aartaka_d has quit [Ping timeout: 260 seconds]
choegusung has quit [Client Quit]
ldb has joined #lisp
pfdietz has quit [Quit: Connection closed]
sjl has joined #lisp
villanella1 has quit [Ping timeout: 260 seconds]
villanella has joined #lisp
toorevitimirp has quit [Remote host closed the connection]
random-nick has joined #lisp
villanella has quit [Ping timeout: 260 seconds]
ailrk has quit [Quit: WeeChat 3.0]
villanella has joined #lisp
waleee-cl has joined #lisp
villanella has quit [Client Quit]
perrier-jouet has quit [Quit: WeeChat 3.0]
francogrex has quit [Remote host closed the connection]
perrier-jouet has joined #lisp
villanella has joined #lisp
villanella has quit [Ping timeout: 260 seconds]
aartaka has joined #lisp
judson_ has joined #lisp
cognemo has quit [Quit: cognemo]
cognemo has joined #lisp
admich has joined #lisp
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 240 seconds]
Stanley00 has joined #lisp
lottaquestions_ has joined #lisp
notzmv has quit [Remote host closed the connection]
notzmv has joined #lisp
ukari has quit [Remote host closed the connection]
ym has joined #lisp
ukari has joined #lisp
notzmv has quit [Remote host closed the connection]
v3ga has quit [Ping timeout: 272 seconds]
v3ga has joined #lisp
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bilegeek has joined #lisp
madnificent_ has quit [Ping timeout: 240 seconds]
Cymew has quit [Ping timeout: 265 seconds]
judson_ has joined #lisp
cage_ has joined #lisp
frgo_ has joined #lisp
frgo has quit [Ping timeout: 264 seconds]
frgo has joined #lisp
frgo_ has quit [Read error: Connection reset by peer]
meursault has joined #lisp
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
judson_ has joined #lisp
Nilby has quit [Ping timeout: 264 seconds]
madnificent has joined #lisp
varjag has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
ukari has quit [Remote host closed the connection]
mrchampion has quit [Read error: Connection reset by peer]
ukari has joined #lisp
imode has joined #lisp
meursault has quit [Quit: Leaving]
galex-713 has quit [Ping timeout: 272 seconds]
mrchampion has joined #lisp
contrapunctus has joined #lisp
ldb has quit [Ping timeout: 260 seconds]
iskander has quit [Quit: bye]
rumbler31 has joined #lisp
eoyath has joined #lisp
galex-713 has joined #lisp
long4mud has joined #lisp
lotuseater has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
contrapunctus has joined #lisp
notzmv has joined #lisp
iskander has joined #lisp
Stanley00 has quit []
long4mud has quit [Remote host closed the connection]
rumbler31 has quit [Remote host closed the connection]
Sheilong has quit [Quit: Connection closed for inactivity]
<dbotton>
Is there a way to execute a command from asdf? So that so when someone does a quicklisp load of my project it runs a git command to git clone a JS component?
rumbler31 has joined #lisp
<dbotton>
Or some other more official way?
aeth_ has joined #lisp
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
<shinohai>
dbotton: Can't use uiop ?
<dbotton>
I guess can, can check if present and if not run uiop
* shinohai
admits to abusing uiop-run-program quite often ....
<dbotton>
But is there an official method for projects to execute things when compiling?