Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 409 410 411 412 413 414 415 416 417 418 419 .. 5022
502,152 events total
2020-10-04 15:58:58 hackage simple-cabal 0.1.3 - Cabal file wrapper library https://hackage.haskell.org/package/simple-cabal-0.1.3 (JensPetersen)
2020-10-04 15:59:27 × justsomeguy quits (~justsomeg@unaffiliated/--/x-3805311) (Ping timeout: 240 seconds)
2020-10-04 16:00:19 wroathe joins (~wroathe@c-73-24-27-54.hsd1.mn.comcast.net)
2020-10-04 16:01:17 Rudd0 joins (~Rudd0@185.189.115.108)
2020-10-04 16:04:02 LKoen joins (~LKoen@81.255.219.130)
2020-10-04 16:06:52 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-10-04 16:07:22 GyroW_ joins (~GyroW@d54C03E98.access.telenet.be)
2020-10-04 16:07:22 × GyroW_ quits (~GyroW@d54C03E98.access.telenet.be) (Changing host)
2020-10-04 16:07:22 GyroW_ joins (~GyroW@unaffiliated/gyrow)
2020-10-04 16:07:34 Gerula joins (~Gerula@unaffiliated/gerula)
2020-10-04 16:08:25 × GyroW quits (~GyroW@unaffiliated/gyrow) (Ping timeout: 240 seconds)
2020-10-04 16:09:24 mpickering_ is now known as mpicekring
2020-10-04 16:09:27 mpicekring is now known as mpickering
2020-10-04 16:09:43 chrpape joins (~user@2a01:4f9:c010:632d::1)
2020-10-04 16:11:04 DavidEichmann joins (~david@43.240.198.146.dyn.plus.net)
2020-10-04 16:11:16 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 246 seconds)
2020-10-04 16:12:22 <tomsmeding> is there a simple way to make command-line hoogle print the _package_ a particular module is from?
2020-10-04 16:19:25 × aarvar quits (~foewfoiew@50.35.43.33) (Ping timeout: 240 seconds)
2020-10-04 16:21:06 × raehik1 quits (~raehik@cpc96984-rdng25-2-0-cust109.15-3.cable.virginm.net) (Ping timeout: 256 seconds)
2020-10-04 16:23:10 raehik1 joins (~raehik@cpc96984-rdng25-2-0-cust109.15-3.cable.virginm.net)
2020-10-04 16:24:55 × xff0x quits (~fox@2001:1a81:52c9:f600:1d0d:f15:77e4:d5da) (Ping timeout: 240 seconds)
2020-10-04 16:25:40 notzmv` joins (~user@177.45.26.174)
2020-10-04 16:26:08 xff0x joins (~fox@2001:1a81:52c9:f600:f5f2:9982:d51b:11e1)
2020-10-04 16:27:53 knupfer1 joins (~Thunderbi@200116b82c67780049b0f8914a41620c.dip.versatel-1u1.de)
2020-10-04 16:28:36 <c_wraith> can't ghc-pkg do that?
2020-10-04 16:28:59 ping is now known as niko
2020-10-04 16:30:12 <c_wraith> yeah... it depends on having a package database, of course, but ghc-pkg find-module does exist
2020-10-04 16:30:52 × notzmv` quits (~user@177.45.26.174) (Ping timeout: 258 seconds)
2020-10-04 16:31:17 × knupfer quits (~Thunderbi@200116b82c677800151afd79b449efac.dip.versatel-1u1.de) (Ping timeout: 260 seconds)
2020-10-04 16:31:17 knupfer1 is now known as knupfer
2020-10-04 16:31:53 × notzmv quits (~user@unaffiliated/zmv) (Ping timeout: 260 seconds)
2020-10-04 16:32:25 × renzhi quits (~renzhi@modemcable070.17-177-173.mc.videotron.ca) (Ping timeout: 240 seconds)
2020-10-04 16:34:40 vicfred joins (~vicfred@unaffiliated/vicfred)
2020-10-04 16:38:28 hackage irc-client 1.1.2.0 - An IRC client library. https://hackage.haskell.org/package/irc-client-1.1.2.0 (barrucadu)
2020-10-04 16:38:42 Sheilong joins (uid293653@gateway/web/irccloud.com/x-kqkqyowmnuomwlmo)
2020-10-04 16:38:56 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-10-04 16:40:06 conal joins (~conal@64.71.133.70)
2020-10-04 16:41:30 × wroathe quits (~wroathe@c-73-24-27-54.hsd1.mn.comcast.net) (Quit: leaving)
2020-10-04 16:41:54 wroathe joins (~wroathe@c-73-24-27-54.hsd1.mn.comcast.net)
2020-10-04 16:43:12 <tomsmeding> c_wraith: oh that's exactly what I wanted!
2020-10-04 16:43:42 <tomsmeding> though I still wonder why hoogle can't seem to, especially since its web interface does list the source package :p
2020-10-04 16:47:01 × machinedgod quits (~machinedg@d67-193-126-196.home3.cgocable.net) (Ping timeout: 264 seconds)
2020-10-04 16:48:04 constR joins (uid58205@gateway/web/irccloud.com/x-tksgpowcrsjwxjgo)
2020-10-04 16:48:33 dcoutts_ joins (~duncan@70.14.75.194.dyn.plus.net)
2020-10-04 16:48:33 × dcoutts_ quits (~duncan@70.14.75.194.dyn.plus.net) (Changing host)
2020-10-04 16:48:33 dcoutts_ joins (~duncan@unaffiliated/dcoutts)
2020-10-04 16:50:49 × dcoutts quits (~duncan@unaffiliated/dcoutts) (Ping timeout: 246 seconds)
2020-10-04 16:52:22 <[exa]> (also ghc-pkg doesn't really help you if you don't have the package installed, right?)
2020-10-04 16:52:50 <geekosaur> right
2020-10-04 16:53:37 dcoutts joins (~duncan@90.14.75.194.dyn.plus.net)
2020-10-04 16:53:37 × dcoutts quits (~duncan@90.14.75.194.dyn.plus.net) (Changing host)
2020-10-04 16:53:37 dcoutts joins (~duncan@unaffiliated/dcoutts)
2020-10-04 16:53:45 Jeanne-Kamikaze joins (~Jeanne-Ka@68.235.43.110)
2020-10-04 16:53:49 <ibloom> Let's say I have a buffer that I created in the IO monad using mallocBytes. I wrote a bunch of data to it in using poke. Is there a way I can freeze that buffer and access it, read only, from a pure function.
2020-10-04 16:54:07 mirrorbird joins (~psutcliff@2a00:801:42a:82eb:6edc:4c78:a574:2a8f)
2020-10-04 16:54:11 × mirrorbird quits (~psutcliff@2a00:801:42a:82eb:6edc:4c78:a574:2a8f) (Remote host closed the connection)
2020-10-04 16:54:25 × dcoutts_ quits (~duncan@unaffiliated/dcoutts) (Ping timeout: 240 seconds)
2020-10-04 16:55:08 dcoutts_ joins (~duncan@33.14.75.194.dyn.plus.net)
2020-10-04 16:55:08 × dcoutts_ quits (~duncan@33.14.75.194.dyn.plus.net) (Changing host)
2020-10-04 16:55:08 dcoutts_ joins (~duncan@unaffiliated/dcoutts)
2020-10-04 16:55:51 × DataComputist quits (~lumeng@static-50-43-26-251.bvtn.or.frontiernet.net) (Quit: Leaving...)
2020-10-04 16:56:07 <rotaerk> ibloom, it would involve copying the contents of it into a pure value
2020-10-04 16:56:07 × conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.)
2020-10-04 16:56:45 <ibloom> Would I need to actually copy it or can I tell the compiler that it's frozen somehow?
2020-10-04 16:56:45 <[exa]> there are some ways for wrapping it in a "nice" interface, e.g. ByteString can be created from ForeignPtr
2020-10-04 16:56:58 <[exa]> (without copying ofc)
2020-10-04 16:57:00 <c_wraith> ibloom: mallocBytes and poke are part of the FFI, they're not really designed to support freezing. the array/vector packages give you an interface that does support freezing.
2020-10-04 16:57:11 Franciman joins (~francesco@host-212-171-42-250.retail.telecomitalia.it)
2020-10-04 16:57:30 <[exa]> ibloom: why the raw malloc btw?
2020-10-04 16:57:51 <ibloom> The reason I'm doing this is because I have functions in OpenCL, Cuda and reference functions in Haskell.
2020-10-04 16:58:20 <ibloom> I'd like the haskell functions to just read from the same structures.
2020-10-04 16:58:23 <[exa]> probably better allocate an unboxed vector, convert it to Ptr and send that pointer
2020-10-04 16:58:30 × dcoutts quits (~duncan@unaffiliated/dcoutts) (Ping timeout: 256 seconds)
2020-10-04 16:58:51 <[exa]> or are the structures allocated in the foreign code?
2020-10-04 17:00:02 <ibloom> The other reason I'm using malloc is because I homebrewed an append only buffer that can grow indefinitely. So maybe what I'm looking for is a package with a datatype that can be appended indefinitely and then frozen.
2020-10-04 17:00:30 justsomeguy joins (~justsomeg@unaffiliated/--/x-3805311)
2020-10-04 17:00:47 × natechan quits (~natechan@108-233-125-227.lightspeed.sntcca.sbcglobal.net) (Quit: WeeChat 2.9)
2020-10-04 17:00:55 <rotaerk> the problem with freezing-without-copying is that it can still be mutated through the original pointer to it
2020-10-04 17:01:14 <rotaerk> unless it's an interface that forces the pointer to go out of scope just before the freeze
2020-10-04 17:01:21 <ski> (unless you ensure that you have a unique reference to the mutable block)
2020-10-04 17:01:45 <ski> ibloom : `realloc' ?
2020-10-04 17:02:23 <ibloom> I'm currently using realloc to grow my homebrew buffers.
2020-10-04 17:02:56 <ibloom> Basically I serialize haskell structures into buffers to send them to the GPU. I'm also maintaining haskell versions of the GPU code and I'd like that code to read the same buffers while being pretty clean.
2020-10-04 17:04:03 <ski> you could look at how <https://hackage.haskell.org/package/bytestring-0.11.0.0/docs/Data-ByteString-Internal.html> does things, e.g.
2020-10-04 17:04:49 × ryansmccoy quits (~ryansmcco@68.235.48.108) (Ping timeout: 246 seconds)
2020-10-04 17:05:20 ryansmccoy joins (~ryansmcco@193.37.254.27)
2020-10-04 17:05:42 <ibloom> ski: I'll take a look at that thanks. I read about a newer variable size vector implementation a while back but I forgot the name.
2020-10-04 17:07:06 conal joins (~conal@64.71.133.70)
2020-10-04 17:08:01 × michalrus quits (m@michalrus.com) (Ping timeout: 264 seconds)
2020-10-04 17:08:37 × snakemasterflex quits (~snakemast@213.100.206.23) (Ping timeout: 264 seconds)
2020-10-04 17:10:27 cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net)
2020-10-04 17:11:39 × mathlover3 quits (~mathlover@cpe-67-248-97-14.nycap.res.rr.com) (Quit: Leaving)
2020-10-04 17:17:13 ddellacosta joins (~dd@86.106.121.168)
2020-10-04 17:17:50 × conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.)
2020-10-04 17:18:07 × sphalerite quits (~sphalerit@NixOS/user/lheckemann) (Quit: boot, boot, boot, boot, reboot the outdated server)
2020-10-04 17:19:26 × nschoe quits (~quassel@2a01:e0a:3c4:c7b0:49a5:212c:e2d5:4010) (Remote host closed the connection)
2020-10-04 17:20:29 machinedgod joins (~machinedg@45.78.189.122)
2020-10-04 17:22:19 sphalerite joins (~sphalerit@NixOS/user/lheckemann)
2020-10-04 17:23:23 mav1 joins (~mav@i5E86200D.versanet.de)
2020-10-04 17:24:24 × blase quits (~blase@4e69b241.skybroadband.com) (Ping timeout: 265 seconds)

All times are in UTC.