Search
Sunday, 15th of April 2018, 12:41:00 UTC
13:38:37
Shinmera
Kevslinger: what's up?
13:39:30
Kevslinger
Shimmera: just wanted to find you when we got to Marbella. Turns out you were already there waiting for us :)
15:41:01
Shinmera
Kevslinger: I'll be fetching Xof from the bus station at 18:50 in case you want to meet up again. Not sure what we'll do after aside from accompanying him to his hotel. It'll be too early for dinner by at least one hour.
20:11:47
Kevslinger
Bike and I are still alive, hanging in our hotel room
20:11:59
Kevslinger
Excited for some 2 days action-packed full of Lisp!
23:05:04
drmeister
I'm messing with javascript
23:06:04
drmeister
The browser isn't refreshing the javascript - it's very haphazard when it does it.
0:22:11
drmeister
CFFI question - what encoding does not change a string at all? *default-foreign-encoding* :utf-8 is screwing me up.
0:22:38
drmeister
frgo: Are you online?
0:22:38
stassats
the correct encoding
0:25:20
drmeister
Whatever that is. I have a string that contains characters that I do not want touched in any way.
0:25:20
drmeister
https://github.com/quicklisp/quicklisp-client/blob/master/dists/quicklisp/software/pzmq-20170403-git/c-api.lisp#L509
0:25:52
stassats
well, do not modify the string
0:25:59
stassats
and the characters won't be touched
0:26:07
drmeister
The pzmq library is modifying the string.
0:26:35
drmeister
It's a string that contains the binary representation of a bunch of float values.
0:27:33
stassats
then it's not really a string, is it?
0:28:32
drmeister
https://github.com/orivej/pzmq/blob/master/c-api.lisp#L500
0:28:59
drmeister
I have a talk to give tomorrow - I'm implementing shipping binary data from the Clasp kernel to the browser.
0:29:14
drmeister
I need to ship an array of floats as a binary blob of data.
0:29:24
stassats
don't let buf be a string
0:30:45
drmeister
SHIT - I was using a simple byte8 array hours ago - something else must have confused me.
0:31:08
stassats
i don't think it accepts simple arrays
0:31:39
stassats
at least not readily
0:31:47
drmeister
What's it going to accept in buf?
0:31:58
drmeister
I have a specialized simple array of byte8 - not that?
0:32:04
stassats
well, you can look at its docstring for starters
0:32:08
drmeister
This is why I put it into a string
0:32:51
drmeister
A foreign byte array - what would that look like.
0:33:20
stassats
well, it's you who should know
0:34:08
drmeister
It's probably our ForeignData_O type.
0:34:22
stassats
well, whatever you use for cffi
0:34:44
drmeister
Yeah - I'm pretty sure it's that.
0:35:14
stassats
well, better keep your code sensible and portable and use cffi
0:39:08
drmeister
I see what I'm supposed to do.
Monday, 16th of April 2018, 0:41:00 UTC