Newest at the top
2024-08-22 10:40:03 +0200 | <dminuoso> | Oh you mean with a reverse writer? |
2024-08-22 10:39:53 +0200 | <[exa]> | and sometimes there's a small binary blob in the skiplist, which is in bytestring before serialization |
2024-08-22 10:39:28 +0200 | <[exa]> | I'm writing a huge skiplist where the integer sizes vary, so I have to build it from "behind" to know how much to skip (thus knowing how much to allocate for the skips) |
2024-08-22 10:38:46 +0200 | <[exa]> | np :] |
2024-08-22 10:38:45 +0200 | youthlic | (~Thunderbi@user/youthlic) (Quit: youthlic) |
2024-08-22 10:38:32 +0200 | <dminuoso> | I cant quite recall, I'm sorry. |
2024-08-22 10:38:12 +0200 | <[exa]> | dminuoso: actually still working on that data structure I was asking about last time... I recall it was you sending me the custom binary writer, right? :] |
2024-08-22 10:35:27 +0200 | ash3en | (~Thunderbi@2a02:3100:7f16:9100:608a:f1cc:9baf:7491) |
2024-08-22 10:32:16 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-08-22 10:30:02 +0200 | econo_ | (uid147250@id-147250.tinside.irccloud.com) (Quit: Connection closed for inactivity) |
2024-08-22 10:29:56 +0200 | ThePenguin | (~ThePengui@cust-95-80-24-166.csbnet.se) |
2024-08-22 10:29:23 +0200 | ThePenguin | (~ThePengui@cust-95-80-24-166.csbnet.se) (Remote host closed the connection) |
2024-08-22 10:27:33 +0200 | cfricke | (~cfricke@user/cfricke) (Ping timeout: 248 seconds) |
2024-08-22 10:24:28 +0200 | danse-nr3 | (~danse-nr3@user/danse-nr3) (Quit: on the move) |
2024-08-22 10:23:39 +0200 | CiaoSen | (~Jura@2a05:5800:2d3:fb00:ca4b:d6ff:fec1:99da) (Ping timeout: 252 seconds) |
2024-08-22 10:21:12 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 246 seconds) |
2024-08-22 10:16:09 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-08-22 10:13:29 +0200 | gmg | (~user@user/gehmehgeh) |
2024-08-22 10:12:43 +0200 | gmg | (~user@user/gehmehgeh) (Remote host closed the connection) |
2024-08-22 10:08:17 +0200 | RedFlamingos | (~RedFlamin@user/RedFlamingos) (Ping timeout: 248 seconds) |
2024-08-22 10:05:20 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds) |
2024-08-22 10:00:44 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-08-22 09:59:11 +0200 | <dminuoso> | Is there any chance you could perhaps just use the ForeignPtr itself? |
2024-08-22 09:59:05 +0200 | <dminuoso> | data ByteString = BS {-# UNPACK #-} !(ForeignPtr Word8) {-# UNPACK #-} !Int |
2024-08-22 09:58:19 +0200 | <dminuoso> | [exa]: Mind my asking, what is the context? |
2024-08-22 09:58:16 +0200 | neuroevolutus | (~neuroevol@206.217.205.48) (Quit: Client closed) |
2024-08-22 09:55:50 +0200 | paddymahoney | (~paddymaho@pool-99-250-30-88.cpe.net.cable.rogers.com) |
2024-08-22 09:51:57 +0200 | tomku | (~tomku@user/tomku) |
2024-08-22 09:51:43 +0200 | tomku | (~tomku@user/tomku) (Ping timeout: 264 seconds) |
2024-08-22 09:51:27 +0200 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
2024-08-22 09:49:42 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 246 seconds) |
2024-08-22 09:44:14 +0200 | <jackdk> | At which point you're copying out the bytes, aren't you? |
2024-08-22 09:43:17 +0200 | <geekosaur> | sadly, I think you can't do this without using unsafe functions |
2024-08-22 09:42:44 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-08-22 09:40:47 +0200 | <[exa]> | at this point I found that I can do `unsafeUseAsCStringLen` and then `copyBytes` but see, there's the `unsafe` keyword there :) |
2024-08-22 09:40:22 +0200 | <[exa]> | that copies out the CString, which is a little inconvenient |
2024-08-22 09:36:57 +0200 | ubert | (~Thunderbi@77.119.163.30.wireless.dyn.drei.com) |
2024-08-22 09:36:36 +0200 | <jackdk> | https://hackage.haskell.org/package/bytestring-0.11.2.0/docs/Data-ByteString.html#g:25 ? |
2024-08-22 09:35:01 +0200 | machinedgod | (~machinedg@d50-99-47-73.abhsia.telus.net) |
2024-08-22 09:35:00 +0200 | <[exa]> | is there some easiest canonical way to "poke" a ByteString into memory pointed to by a Ptr? |
2024-08-22 09:31:56 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 255 seconds) |
2024-08-22 09:28:27 +0200 | alexherbo2 | (~alexherbo@2a02-8440-330d-60ad-6486-5b77-842e-76f1.rev.sfr.net) |
2024-08-22 09:21:48 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-08-22 09:12:02 +0200 | acidjnk | (~acidjnk@p200300d6e72cfb236432b07e57e26028.dip0.t-ipconnect.de) |
2024-08-22 09:11:01 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds) |
2024-08-22 09:10:58 +0200 | gmg | (~user@user/gehmehgeh) |
2024-08-22 09:06:23 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-08-22 09:04:39 +0200 | kuribas | (~user@2a02:1808:2:13d8:2f9b:f5f:e070:ae5e) (Ping timeout: 260 seconds) |
2024-08-22 09:00:53 +0200 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2024-08-22 08:57:02 +0200 | kuribas | (~user@2a02:1808:2:13d8:2f9b:f5f:e070:ae5e) |