2024/08/22

Newest at the top

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 +0200neuroevolutus(~neuroevol@206.217.205.48) (Quit: Client closed)
2024-08-22 09:55:50 +0200paddymahoney(~paddymaho@pool-99-250-30-88.cpe.net.cable.rogers.com)
2024-08-22 09:51:57 +0200tomku(~tomku@user/tomku)
2024-08-22 09:51:43 +0200tomku(~tomku@user/tomku) (Ping timeout: 264 seconds)
2024-08-22 09:51:27 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-08-22 09:49:42 +0200merijn(~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 +0200merijn(~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 +0200ubert(~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 +0200machinedgod(~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 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 255 seconds)
2024-08-22 09:28:27 +0200alexherbo2(~alexherbo@2a02-8440-330d-60ad-6486-5b77-842e-76f1.rev.sfr.net)
2024-08-22 09:21:48 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl)
2024-08-22 09:12:02 +0200acidjnk(~acidjnk@p200300d6e72cfb236432b07e57e26028.dip0.t-ipconnect.de)
2024-08-22 09:11:01 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds)
2024-08-22 09:10:58 +0200gmg(~user@user/gehmehgeh)
2024-08-22 09:06:23 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl)
2024-08-22 09:04:39 +0200kuribas(~user@2a02:1808:2:13d8:2f9b:f5f:e070:ae5e) (Ping timeout: 260 seconds)
2024-08-22 09:00:53 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
2024-08-22 08:57:02 +0200kuribas(~user@2a02:1808:2:13d8:2f9b:f5f:e070:ae5e)
2024-08-22 08:55:54 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 260 seconds)
2024-08-22 08:50:59 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl)
2024-08-22 08:39:31 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-08-22 08:33:33 +0200xal(~xal@mx1.xal.systems)
2024-08-22 08:33:05 +0200xal(~xal@mx1.xal.systems) (Quit: bye)
2024-08-22 08:32:12 +0200lortabac(~lortabac@88-125-6-227.subs.proxad.net)
2024-08-22 08:28:25 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl)
2024-08-22 08:27:59 +0200cfricke(~cfricke@user/cfricke)
2024-08-22 08:22:35 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-08-22 08:12:45 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 246 seconds)
2024-08-22 08:12:24 +0200CiaoSen(~Jura@2a05:5800:2d3:fb00:ca4b:d6ff:fec1:99da)
2024-08-22 08:10:01 +0200m1dnight(~christoph@78-20-63-126.access.telenet.be)
2024-08-22 08:08:28 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl)
2024-08-22 08:07:46 +0200m1dnight(~christoph@78-20-63-126.access.telenet.be) (Quit: WeeChat 4.4.1)
2024-08-22 08:03:13 +0200peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 252 seconds)
2024-08-22 07:57:39 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds)
2024-08-22 07:57:06 +0200danse-nr3(~danse-nr3@user/danse-nr3)
2024-08-22 07:53:03 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl)
2024-08-22 07:47:28 +0200neuroevolutus(~neuroevol@206.217.205.48)
2024-08-22 07:44:53 +0200jle`(~jle`@2603:8001:3b02:84d4:2809:1e29:1db7:65cb)
2024-08-22 07:43:49 +0200jle`(~jle`@2603:8001:3b02:84d4:b870:ffa:630b:cc32) (Ping timeout: 248 seconds)
2024-08-22 07:41:57 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 246 seconds)