libera/#commonlisp - IRC Chatlog
Search
2:36:59
aeth
pjb: Not really. Only SBCL with (safety 0) will possibly behave like you're talking about in practice. If you do want that sort of { int x; *(double*)&x=3.14d0; } behavior you can get it, via abusing the CFFI
2:54:36
aeth
(pointless in that THE could behave many different ways, so there's always a better way to get the desired behavior in a more precise, specified way)
2:59:19
lotuseater
one told me that even more the good data structures were responsible that Quake 3 ran performant on small machines :)
5:45:07
montxero
I'm having some trouble fetching data with dexador. Specifically, the JSON returned from (dex:get "https://api.alternative.me/v2/listings/") is missing the final closing "}"
6:06:48
montxero
Perhaps I'm missing something. I get the same issue with drakma using the following snippet
6:06:48
montxero
(flexi-streams:octets-to-string (drakma:http-request "https://api.alternative.me/v2/listings/"))
6:08:10
montxero
I don't have the same problem with the Python request library. Also the raw json from the link seems to be correct.
6:15:26
raeda
wget isn't getting the closing bracket either. I'm guessing the server has a content length issue and Python is silently fixing it?
6:51:29
montxero
raeda: That'd be interesting. Chromium and firefox seem to read it just fine as well. Perhaps they are compensating for malformed JSON as well?
8:47:03
lukego
Hey what library do I want for writing binary values to a stream using more-or-less C datatypes e.g. little-endian 32-bit signed integer, etc?