Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-03-13 21:03:16 <hpc> i did the whole thing in libreoffice
2021-03-13 21:03:21 shapr blinks
2021-03-13 21:03:32 <geekosaur> spreadsheet?
2021-03-13 21:03:36 <hpc> yep
2021-03-13 21:04:02 <MarcelineVQ> it's funny to me that the best cooling module in the game is named "Cooling Module"
2021-03-13 21:04:18 × Jesin quits (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) (Quit: Leaving)
2021-03-13 21:04:18 <shapr> hpc: write it up, I'll put a guest post on my blog :-P
2021-03-13 21:04:28 <hpc> hah
2021-03-13 21:05:27 × marinelli quits (~marinelli@gateway/tor-sasl/marinelli) (Quit: marinelli)
2021-03-13 21:06:03 monadmatt joins (~user@119-17-128-101.771180.mel.nbn.aussiebb.net)
2021-03-13 21:06:04 × plutoniix quits (~q@node-uj8.pool-125-24.dynamic.totinternet.net) (Ping timeout: 276 seconds)
2021-03-13 21:06:40 × bobiusbillius quits (~bobiusbil@2a00:23c7:9909:5b01:9143:54d3:f1e8:156d) (Quit: To the neversphere.)
2021-03-13 21:07:49 fendor_ joins (~fendor@91.141.1.110.wireless.dyn.drei.com)
2021-03-13 21:09:36 × tinhatcat quits (~tsranso@108-91-101-161.lightspeed.gnvlsc.sbcglobal.net) (Quit: Leaving)
2021-03-13 21:09:57 sm2n joins (~sm2n@bras-base-hmtnon143hw-grc-15-70-54-78-219.dsl.bell.ca)
2021-03-13 21:09:59 plutoniix joins (~q@node-uj8.pool-125-24.dynamic.totinternet.net)
2021-03-13 21:10:05 × hexfive quits (~hexfive@50.35.83.177) (Quit: i must go. my people need me.)
2021-03-13 21:10:17 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-03-13 21:11:15 × monadmatt quits (~user@119-17-128-101.771180.mel.nbn.aussiebb.net) (Ping timeout: 265 seconds)
2021-03-13 21:11:15 × fendor quits (~fendor@178.115.131.242.wireless.dyn.drei.com) (Ping timeout: 265 seconds)
2021-03-13 21:15:00 × ADG1089__ quits (~aditya@106.212.74.137) (Remote host closed the connection)
2021-03-13 21:15:08 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 260 seconds)
2021-03-13 21:15:10 Jesin joins (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net)
2021-03-13 21:15:14 Vra joins (8077caad@natp-128-119-202-173.wireless.umass.edu)
2021-03-13 21:15:52 × Jesin quits (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) (Remote host closed the connection)
2021-03-13 21:19:47 <duairc> Does anyone know if this use of `unsafeCoerce` is "safe"? https://paste.tomsmeding.com/frUzLTeS
2021-03-13 21:19:56 × fuzzypixelz quits (2ec10464@eth-west-pareq2-46-193-4-100.wb.wifirst.net) (Quit: Connection closed)
2021-03-13 21:20:01 Jesin joins (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net)
2021-03-13 21:20:37 × Jesin quits (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) (Remote host closed the connection)
2021-03-13 21:23:10 Jesin joins (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net)
2021-03-13 21:24:33 <edwardk> duairc looks sound to me
2021-03-13 21:25:58 <tapas> deploy it in production to test
2021-03-13 21:26:46 × Jesin quits (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) (Client Quit)
2021-03-13 21:27:11 hackage ory-kratos 0.0.5.5 - API bindings for Ory Kratos https://hackage.haskell.org/package/ory-kratos-0.0.5.5 (njaremko)
2021-03-13 21:27:50 Jesin joins (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net)
2021-03-13 21:27:58 <duairc> edwardk: Thanks!
2021-03-13 21:29:42 <edwardk> +1 for deploying directly to production
2021-03-13 21:30:20 <Rembane> If it typechecks, ship it!
2021-03-13 21:30:21 <edwardk> on the other hand i wrote not one but two illegal applicatives yesterday and plan to ship them in a library i expect all sorts of people to build atop.
2021-03-13 21:30:29 <edwardk> so maybe seek a second or third opinion
2021-03-13 21:31:26 jathan joins (~jathan@69.61.93.38)
2021-03-13 21:31:40 <edwardk> https://github.com/ekmett/distributive/blob/2f58c1d5839c9c78b3ba0f82f52b09323b0fcb42/src/Data/Distributive.hs#L933 <- yolo
2021-03-13 21:31:54 <geekosaur> you know you're doing it, though
2021-03-13 21:32:27 <edwardk> that isn't always the case. ;)
2021-03-13 21:32:31 <hugo> Using Network.Socket (from networ), is there a way to recvieve data if available, alterantively check if data is available and only recieve then?
2021-03-13 21:32:42 <hugo> Without some socket to file descriptor hack?
2021-03-13 21:33:33 raehik1 joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
2021-03-13 21:33:51 × usr25 quits (~usr25@unaffiliated/usr25) (Quit: Leaving)
2021-03-13 21:35:10 × neightchan quits (~natechan@108-233-125-227.lightspeed.sntcca.sbcglobal.net) (Quit: WeeChat 2.9)
2021-03-13 21:35:13 <geekosaur> hugo, usually we read in a separate thread
2021-03-13 21:36:21 <geekosaur> anyway, it's not really designed for that use case, so no
2021-03-13 21:37:03 natechan joins (~natechan@108-233-125-227.lightspeed.sntcca.sbcglobal.net)
2021-03-13 21:40:28 <hugo> geekosaur: Sepparate threads would solve it. But it would require a major redesign. I'm getting synchronous and asyncronous messages over the same connection, and want to be able to check for eventual asynchrounous messages any time.
2021-03-13 21:41:11 orion_ is now known as orion
2021-03-13 21:41:40 orion is now known as Guest25944
2021-03-13 21:42:20 Guest25944 is now known as orion
2021-03-13 21:42:23 × orion quits (~orion@c-76-19-236-20.hsd1.ct.comcast.net) (Changing host)
2021-03-13 21:42:23 orion joins (~orion@unaffiliated/orion)
2021-03-13 21:42:27 × geekosaur quits (82650c7a@130.101.12.122) (Quit: Connection closed)
2021-03-13 21:43:34 borne joins (~fritjof@200116b86494d20065fd8eaafdc5f06e.dip.versatel-1u1.de)
2021-03-13 21:47:32 × mikoto-chan quits (~anass@gateway/tor-sasl/mikoto-chan) (Quit: mikoto-chan)
2021-03-13 21:47:43 mikoto-chan joins (~anass@gateway/tor-sasl/mikoto-chan)
2021-03-13 21:47:47 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-13 21:49:30 fendor_ is now known as fendor
2021-03-13 21:50:03 × CitizenSnips quits (~CitizenSn@irc.refl.club) (Quit: ZNC 1.8.2 - https://znc.in)
2021-03-13 21:50:06 <fendor> Just received a bug report that executable bits are missing for my hackage sdist... Can I fix that?
2021-03-13 21:50:53 CitizenSnips joins (~CitizenSn@irc.refl.club)
2021-03-13 21:51:33 × supercoven quits (~Supercove@dsl-hkibng31-54fabd-233.dhcp.inet.fi) (Ping timeout: 264 seconds)
2021-03-13 21:53:41 hackage ory-kratos 0.0.5.6 - API bindings for Ory Kratos https://hackage.haskell.org/package/ory-kratos-0.0.5.6 (njaremko)
2021-03-13 21:56:00 machinedgod joins (~machinedg@24.105.81.50)
2021-03-13 21:57:34 <minoru_shiraeesh> hugo: there are two modules: Network.Socket.ByteString and Network.Socket.ByteString.Lazy
2021-03-13 21:58:15 <minoru_shiraeesh> in ByteString one there is a recv function
2021-03-13 21:58:55 <minoru_shiraeesh> in ByteString.Lazy one there is a recv and getContents function
2021-03-13 21:59:58 <hugo> minoru_shiraeesh: I'm using the strict variant, since that's what attoparsec wanted
2021-03-13 22:00:19 <hugo> Both recv comes with the notice "This function may block until a message arrives.", which is exacly my problem
2021-03-13 22:00:26 Rudd0 joins (~Rudd0@185.189.115.103)
2021-03-13 22:00:40 × puffnfresh quits (~puffnfres@119-17-138-164.77118a.mel.static.aussiebb.net) (Ping timeout: 276 seconds)
2021-03-13 22:01:48 puffnfresh joins (~puffnfres@119-17-138-164.77118a.mel.static.aussiebb.net)
2021-03-13 22:03:18 <minoru_shiraeesh> one of the options is to call recv in a loop and write to a channel
2021-03-13 22:03:30 <minoru_shiraeesh> and then read from that channel in another thread, right?
2021-03-13 22:03:53 <dmj`> yea, use synchronization primitives and threads liberally
2021-03-13 22:04:21 ADG1089__ joins (~aditya@106.212.74.137)
2021-03-13 22:04:41 <hugo> minoru_shiraeesh: That could work.
2021-03-13 22:05:21 × Franciman quits (~francesco@host-82-49-79-189.retail.telecomitalia.it) (Quit: Leaving)
2021-03-13 22:05:34 <minoru_shiraeesh> iirc you can check a channel for a new message in a non-blocking way, in stm
2021-03-13 22:07:06 <minoru_shiraeesh> yes, there are tryReadTChan and tryPeekTChan functions
2021-03-13 22:07:37 <minoru_shiraeesh> and isEmptyTChan
2021-03-13 22:10:46 <minoru_shiraeesh> Control.Concurrent.Chan has getChanContents function that returns a lazy list, but I doubt that it's possible to check for a new message in a non-blocking way
2021-03-13 22:10:57 <koz_> For newArray, what is the tuple of indices argument meant to mean?
2021-03-13 22:11:02 <koz_> (rows, columns) or something else?
2021-03-13 22:11:21 <monochrom> Data.Array's newArray? lower and upper bounds.
2021-03-13 22:11:29 <koz_> Ah, thanks!
2021-03-13 22:11:33 <koz_> That makes worlds of sense.
2021-03-13 22:11:40 × plutoniix quits (~q@node-uj8.pool-125-24.dynamic.totinternet.net) (Ping timeout: 265 seconds)
2021-03-13 22:12:10 <monochrom> The Algol and Pascal days when arrays were programmer-based, not 0-based or 1-based.
2021-03-13 22:12:40 <monochrom> @quote monochrom pointless.debate
2021-03-13 22:12:40 <lambdabot> monochrom says: All pointless debates can be settled by going polymorphic.
2021-03-13 22:12:42 plutoniix joins (~q@node-uj8.pool-125-24.dynamic.totinternet.net)
2021-03-13 22:13:21 <hpc> all pointless debates are pointful debates with variables omitted
2021-03-13 22:13:22 <monochrom> One more sanity that C killed.

All times are in UTC.