2024/10/19

Newest at the top

2024-10-19 13:51:04 +0200 <mreh> yeah, I've got the Ptr which has been `malloc`ed already
2024-10-19 13:51:03 +0200td_(~td@i53870911.versanet.de) (Quit: waking up from the american dream ...)
2024-10-19 13:50:39 +0200 <tomsmeding> assuming that you have data behind a Ptr and want to use it as a vector
2024-10-19 13:50:26 +0200 <tomsmeding> but you need to create the vector somehow :)
2024-10-19 13:50:13 +0200 <mreh> tomsmeding: I only need to read from it
2024-10-19 13:49:13 +0200 <tomsmeding> and then unsafeFreeze it to obtain an immutable vector
2024-10-19 13:49:05 +0200 <tomsmeding> but you can use unsafeWith from Data.Vector.Storable.Mutable
2024-10-19 13:48:41 +0200 <tomsmeding> mreh: read the docs of unsafeWith, that's not for writing
2024-10-19 13:48:08 +0200 <mreh> thanks guys
2024-10-19 13:48:02 +0200 <mreh> tomsmeding: ah yeah, unsafeWith right?
2024-10-19 13:47:51 +0200xff0x(~xff0x@2405:6580:b080:900:b1c9:c57e:b0f1:f862) (Quit: xff0x)
2024-10-19 13:47:13 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-10-19 13:42:47 +0200target_i(~target_i@user/target-i/x-6023099) target_i
2024-10-19 13:42:43 +0200lxsameer(~lxsameer@Serene/lxsameer) (Ping timeout: 264 seconds)
2024-10-19 13:41:33 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
2024-10-19 13:31:50 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-10-19 13:30:20 +0200 <tomsmeding> mreh: Data.Vector.Storable?
2024-10-19 13:28:52 +0200 <Rembane> mreh: Got it.
2024-10-19 13:27:26 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-10-19 13:26:42 +0200ash3en1ash3en
2024-10-19 13:26:41 +0200ash3en(~Thunderbi@193.32.248.167) (Ping timeout: 248 seconds)
2024-10-19 13:26:20 +0200ash3en1(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) ash3en
2024-10-19 13:25:38 +0200 <mreh> I've got a Storable instance for each pixel
2024-10-19 13:25:08 +0200 <mreh> Rembane: looking up pixels from a opengl texture
2024-10-19 13:24:53 +0200ljdarj(~Thunderbi@user/ljdarj) ljdarj
2024-10-19 13:24:32 +0200 <Rembane> Without knowing your usecase: Array or ByteString?
2024-10-19 13:20:52 +0200 <mreh> something a bit more abstract than just a raw Ptr
2024-10-19 13:20:40 +0200 <mreh> is there a random access data structure I can quickly marshall data from a Ptr into?
2024-10-19 13:19:24 +0200todi(~todi@p57803331.dip0.t-ipconnect.de) (Remote host closed the connection)
2024-10-19 13:09:36 +0200ash3en(~Thunderbi@193.32.248.167) ash3en
2024-10-19 13:08:30 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 276 seconds)
2024-10-19 13:06:58 +0200ljdarj(~Thunderbi@user/ljdarj) (Ping timeout: 248 seconds)
2024-10-19 13:06:41 +0200gioyik(~gioyik@gateway/tor-sasl/gioyik) gioyik
2024-10-19 13:05:31 +0200ash3en(~Thunderbi@193.32.248.167) (Remote host closed the connection)
2024-10-19 13:05:28 +0200Inst(~Inst@user/Inst) Inst
2024-10-19 13:05:02 +0200Inst(~Inst@user/Inst) (Remote host closed the connection)
2024-10-19 13:03:27 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-10-19 13:02:58 +0200natto(~natto@129.154.243.159) natto
2024-10-19 13:02:43 +0200glguy(glguy@libera/staff/glguy) glguy
2024-10-19 13:02:30 +0200caconym(~caconym@user/caconym) caconym
2024-10-19 13:02:24 +0200ghoulguy(glguy@libera/staff/glguy) (Read error: Connection reset by peer)
2024-10-19 13:00:04 +0200caconym(~caconym@user/caconym) (Quit: bye)
2024-10-19 12:56:43 +0200natto17(~natto@129.154.243.159) (Quit: a.)
2024-10-19 12:52:14 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-10-19 12:45:25 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-10-19 12:39:52 +0200qqe(~qqq@92.43.167.61) (Client Quit)
2024-10-19 12:38:52 +0200qqe(~qqq@92.43.167.61)
2024-10-19 12:36:44 +0200ash3en(~Thunderbi@193.32.248.167) ash3en
2024-10-19 12:34:52 +0200merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 265 seconds)
2024-10-19 12:34:22 +0200ash3en(~Thunderbi@193.32.248.167) (Ping timeout: 265 seconds)