Logs on 2021-11-28 (liberachat/#haskell)
| 00:00:36 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 00:00:36 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Changing host) |
| 00:00:36 | → | wroathe joins (~wroathe@user/wroathe) |
| 00:02:31 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 00:09:41 | → | hololeap joins (~hololeap@user/hololeap) |
| 00:09:48 | × | hololeap_ quits (~hololeap@user/hololeap) (Ping timeout: 276 seconds) |
| 00:10:39 | → | justsomeguy joins (~justsomeg@user/justsomeguy) |
| 00:11:17 | × | random-jellyfish quits (~random-je@user/random-jellyfish) (Ping timeout: 256 seconds) |
| 00:14:13 | × | justsomeguy quits (~justsomeg@user/justsomeguy) (Client Quit) |
| 00:15:21 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 00:19:50 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 256 seconds) |
| 00:22:45 | × | Tuplanolla quits (~Tuplanoll@91-159-69-50.elisa-laajakaista.fi) (Quit: Leaving.) |
| 00:22:51 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 245 seconds) |
| 00:22:53 | → | werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) |
| 00:35:15 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 00:40:02 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 240 seconds) |
| 00:45:27 | × | Jing quits (~hedgehog@2604:a840:3::1065) (Remote host closed the connection) |
| 00:45:35 | → | lavaman joins (~lavaman@98.38.249.169) |
| 00:46:18 | → | Jing joins (~hedgehog@2604:a840:3::1065) |
| 01:01:39 | → | pfurla joins (~pfurla@201.17.118.230) |
| 01:03:25 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 256 seconds) |
| 01:04:41 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Remote host closed the connection) |
| 01:05:24 | → | Midjak2 joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 01:05:59 | × | Midjak2 quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Remote host closed the connection) |
| 01:06:37 | → | Midjak2 joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 01:07:49 | × | Midjak2 quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Client Quit) |
| 01:08:31 | → | Midjak2 joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 01:08:39 | × | Midjak quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Ping timeout: 260 seconds) |
| 01:10:05 | → | harveypwca joins (~harveypwc@2601:246:c180:a570:3828:d8:e523:3f67) |
| 01:10:42 | × | Midjak2 quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Client Quit) |
| 01:11:14 | → | Midjak joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 01:11:42 | × | albet70 quits (~xxx@2400:8902::f03c:92ff:fe60:98d8) (Remote host closed the connection) |
| 01:11:59 | × | jumper149 quits (~jumper149@static.6.71.203.116.clients.your-server.de) (Quit: WeeChat 3.3) |
| 01:13:04 | × | acidjnk_new quits (~acidjnk@p200300d0c7271e120859696da5d9d189.dip0.t-ipconnect.de) (Ping timeout: 268 seconds) |
| 01:17:50 | → | albet70 joins (~xxx@2400:8902::f03c:92ff:fe60:98d8) |
| 01:25:16 | → | renzhi joins (~xp@2607:fa49:6500:b100::5cef) |
| 01:26:09 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) (Remote host closed the connection) |
| 01:35:16 | × | Guest17 quits (~Guest17@eth-west-pareq2-46-193-4-100.wb.wifirst.net) (Quit: Client closed) |
| 01:37:28 | × | bollu quits (uid233390@id-233390.helmsley.irccloud.com) (Quit: Connection closed for inactivity) |
| 01:41:09 | → | x88x88x joins (~cheeg@gateway/vpn/pia/x88x88x) |
| 01:42:40 | × | jespada quits (~jespada@87.74.37.56) (Ping timeout: 268 seconds) |
| 01:43:21 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Quit: WeeChat 3.3) |
| 01:44:31 | × | ees quits (~user@pool-108-18-30-46.washdc.fios.verizon.net) (Ping timeout: 268 seconds) |
| 01:44:32 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Ping timeout: 240 seconds) |
| 01:44:33 | → | pretty_d1 joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 01:44:49 | → | jespada joins (~jespada@87.74.37.56) |
| 01:48:19 | → | justsomeguy joins (~justsomeg@user/justsomeguy) |
| 01:48:32 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 240 seconds) |
| 01:50:28 | × | Midjak quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Quit: This computer has gone to sleep) |
| 01:55:00 | × | yaroot quits (~yaroot@47.70.30.125.dy.iij4u.or.jp) (Ping timeout: 268 seconds) |
| 02:00:29 | × | pretty_d1 quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.3) |
| 02:05:23 | <ozzloy> | https://paste.tomsmeding.com/aiY7KeGt i want to take the length of a list, divide by 2, and see if the result is less than another number |
| 02:05:59 | <ozzloy> | > length [1,2] / 2 < 3 |
| 02:06:00 | <lambdabot> | error: |
| 02:06:00 | <lambdabot> | • No instance for (Fractional Int) arising from a use of ‘/’ |
| 02:06:00 | <lambdabot> | • In the first argument of ‘(<)’, namely ‘length [1, 2] / 2’ |
| 02:06:31 | <ozzloy> | > 2 / 2 |
| 02:06:33 | <lambdabot> | 1.0 |
| 02:06:40 | <ozzloy> | > 1.0 < 3 |
| 02:06:42 | <lambdabot> | True |
| 02:07:04 | <ozzloy> | > length [1,2] / 2 |
| 02:07:06 | <lambdabot> | error: |
| 02:07:06 | <lambdabot> | • No instance for (Fractional Int) arising from a use of ‘/’ |
| 02:07:06 | <lambdabot> | • In the expression: length [1, 2] / 2 |
| 02:07:49 | <EvanR> | there's / and there's `div` |
| 02:08:07 | <EvanR> | > 22 / 7 -- float division |
| 02:08:09 | <lambdabot> | 3.142857142857143 |
| 02:08:18 | <EvanR> | > 22 `div` 7 -- integer division |
| 02:08:19 | <lambdabot> | 3 |
| 02:08:23 | <ozzloy> | > length [1,2] |
| 02:08:24 | <lambdabot> | 2 |
| 02:08:27 | <ozzloy> | > 2 / 2 |
| 02:08:29 | <lambdabot> | 1.0 |
| 02:08:39 | <EvanR> | when you use / on literals they default to Double |
| 02:08:48 | <EvanR> | you can't use it on Ints |
| 02:09:10 | <ozzloy> | i see |
| 02:09:14 | <EvanR> | > length [1,2] `div` 2 |
| 02:09:15 | <lambdabot> | 1 |
| 02:09:18 | <EvanR> | > length [1,2,3] `div` 2 |
| 02:09:19 | <lambdabot> | 1 |
| 02:10:15 | <ozzloy> | so length gives back an integer, and '/' doesn't work on integers |
| 02:10:19 | → | superstar64 joins (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) |
| 02:10:21 | <EvanR> | pretty much |
| 02:10:46 | <EvanR> | unless you convert them to float first |
| 02:10:47 | <ozzloy> | i feel like it would be clearer if 2 / 2 also gave a type error |
| 02:10:57 | <EvanR> | heh |
| 02:11:29 | <ozzloy> | because as it stands, length [1,2] -> 2, and 2 / 2 works, but length [1,2] / 2 doesn't |
| 02:11:35 | <EvanR> | it's funny defaulting rules are probably there so beginners aren't so frustrated? |
| 02:11:39 | × | notzmv quits (~zmv@user/notzmv) (Ping timeout: 268 seconds) |
| 02:12:02 | <EvanR> | trying stuff on the terminal like we are doing xD |
| 02:12:21 | <ozzloy> | it sure looks like substitution doesn't work in this instance, you can't replace an expression with something that reduces to it |
| 02:12:37 | <EvanR> | it doesn't work, until you remember that numeric literals have additional magic |
| 02:12:42 | <ozzloy> | go hard, or go home |
| 02:12:44 | <EvanR> | 2 isn't just 2 |
| 02:12:58 | <EvanR> | it's a polymorphic value that depends on the results of type inference / checking |
| 02:13:07 | <ozzloy> | if you're going to go hard on types, go all the way |
| 02:13:12 | <EvanR> | :t 2 |
| 02:13:13 | <lambdabot> | Num p => p |
| 02:13:30 | <EvanR> | so when you use it with /, it's not obviously a type error |
| 02:13:37 | <EvanR> | it depends on p |
| 02:13:59 | <ozzloy> | > div 3 2 |
| 02:14:00 | <EvanR> | when you use it with length [1,2] :: Int, definitely a type error |
| 02:14:01 | <lambdabot> | 1 |
| 02:14:10 | <ozzloy> | > div -3 -2 |
| 02:14:11 | <lambdabot> | error: |
| 02:14:11 | <lambdabot> | • No instance for (Num (Integer -> Integer -> Integer)) |
| 02:14:11 | <lambdabot> | arising from a use of ‘e_132’ |
| 02:14:17 | <EvanR> | > div (-3) (-2) |
| 02:14:18 | <lambdabot> | 1 |
| 02:14:36 | <ozzloy> | > div (-3) 2 |
| 02:14:38 | <lambdabot> | -2 |
| 02:14:44 | <EvanR> | > quot (-3) (-2) |
| 02:14:45 | <lambdabot> | 1 |
| 02:14:58 | <boxscape_> | % :set -XLexicalNegation |
| 02:14:58 | <yahb> | boxscape_: |
| 02:14:59 | <ozzloy> | so div rounds towards negative infinity? |
| 02:15:01 | <EvanR> | > quot (-3) 2 |
| 02:15:03 | <lambdabot> | -1 |
| 02:15:06 | <boxscape_> | % quot -3 -2 |
| 02:15:06 | <yahb> | boxscape_: 1 |
| 02:15:58 | <EvanR> | > divMod (-3) 2 |
| 02:15:59 | <lambdabot> | (-2,1) |
| 02:16:01 | <ozzloy> | well, in this case, div will do |
| 02:16:04 | <EvanR> | > quotRem (-3) 2 |
| 02:16:05 | <lambdabot> | (-1,-1) |
| 02:16:20 | <EvanR> | they do the same thing if both arguments are positive |
| 02:19:18 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 02:20:51 | × | jmorris quits (uid433911@id-433911.hampstead.irccloud.com) (Quit: Connection closed for inactivity) |
| 02:21:55 | <EvanR> | ozzloy, you're going to hate this extension that lets you use "string literals" in the same way as number literals, they can be interpreted by a type class to become whatever value xD |
| 02:22:28 | <EvanR> | can be handy, and abuse xD |
| 02:22:34 | <EvanR> | d |
| 02:22:45 | <ozzloy> | heh |
| 02:22:58 | <boxscape_> | we've got the same thing for lists, too! |
| 02:23:04 | <ozzloy> | i am impressed and horrified |
| 02:24:57 | <ozzloy> | makes me think of #define i (rand() % i) from c |
| 02:25:00 | <dsal> | The list can lead to excitement. |
| 02:25:34 | <ozzloy> | that'll teach you to use single letter variables for iteration |
| 02:25:55 | <EvanR> | but single letter variables are awesome :'( |
| 02:26:39 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) |
| 02:26:53 | <ozzloy> | so, ok, it's implemented in a principled way |
| 02:27:13 | <ozzloy> | it's not a special hack for integers to sometimes be autoconverted to doubles |
| 02:28:17 | <boxscape_> | yeah implicit conversions aren't a thing in Haskell |
| 02:28:25 | <dsal> | No, you generally know what type you're dealing with. |
| 02:28:54 | <ozzloy> | well, maybe not me specifically, but someone well versed enough |
| 02:29:16 | <EvanR> | if you don't know what type you're dealing with, stop immediately |
| 02:29:26 | <ozzloy> | there are rules that can be learned that aren't just "except in that case, because." |
| 02:29:32 | <boxscape_> | the neat thing is you can usually tell what type you're dealing with by asking the compiler |
| 02:29:47 | <boxscape_> | > map ((+1) :: _) [1..5] |
| 02:29:49 | <lambdabot> | [2,3,4,5,6] |
| 02:29:57 | <boxscape_> | I expected it to tell me the type :( |
| 02:30:01 | <dsal> | Haha |
| 02:30:06 | <boxscape_> | % map ((+1) :: _) [1..5] |
| 02:30:06 | <yahb> | boxscape_: ; <interactive>:25:14: error:; * Found type wildcard `_' standing for `b -> b'; Where: `b' is a rigid type variable bound by; the inferred type of it :: (Enum b, Num b) => [b]; at <interactive>:25:1-22; To use the inferred type, enable PartialTypeSignatures; * In an expression type signature: _; In the first argument of `map', namely `((+ 1) :: _)'; |
| 02:30:08 | <dsal> | You could try a value hole |
| 02:30:18 | <boxscape_> | I guess lambdabot has -XPartialTypeSignatures |
| 02:30:53 | <ozzloy> | "dear compiler, how long has it been since our last conversation. i can barely recall. it is with great excitement that i come to you for help in my time of need, for i am most certain that you will know the answer to my queries... |
| 02:31:27 | <boxscape_> | There has been some discussion about making compiler messages friendlier and sounding less like it's yelling at you about mistakes :) |
| 02:31:49 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) (Ping timeout: 250 seconds) |
| 02:31:50 | <EvanR> | ozzloy, the relevant feature is called "defaults" ... https://www.haskell.org/onlinereport/decls.html#sect4.3.4 |
| 02:32:09 | <EvanR> | since its related to ambiguous types, it's worth knowing xD |
| 02:32:16 | <EvanR> | since that's a common compilation error |
| 02:34:44 | <EvanR> | the formatting here needs work xD |
| 02:34:51 | <ozzloy> | i feel like it would be great to have a primer on haskell's types all by itself |
| 02:35:32 | × | harveypwca quits (~harveypwc@2601:246:c180:a570:3828:d8:e523:3f67) (Quit: Leaving) |
| 02:36:31 | <EvanR> | the ahem... default "default" rule appears to be |
| 02:36:32 | × | xff0x quits (~xff0x@2001:1a81:53f8:4700:f0ef:5c35:fcd3:7767) (Ping timeout: 240 seconds) |
| 02:36:33 | <EvanR> | default (Integer, Double) |
| 02:37:12 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 02:37:13 | <EvanR> | if Integer works, Integer, else try Double, else give up |
| 02:37:25 | <ozzloy> | i see |
| 02:37:34 | × | neurocyte0132889 quits (~neurocyte@user/neurocyte) (Ping timeout: 268 seconds) |
| 02:38:23 | → | xff0x joins (~xff0x@2001:1a81:523b:c600:3d37:9c6b:bc10:3149) |
| 02:41:47 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 250 seconds) |
| 02:41:48 | → | notzmv joins (~zmv@user/notzmv) |
| 02:43:19 | <ozzloy> | https://paste.tomsmeding.com/rh1Fc6SX i have "helper (pieces + 1) xs" in 3 places for the function "repeats" at the bottom |
| 02:43:37 | <ozzloy> | i feel like it could be better |
| 02:43:38 | × | alzgh quits (~alzgh@user/alzgh) (Remote host closed the connection) |
| 02:44:13 | <EvanR> | as long as helper pieces and xs are referring to the same thing in each place, it can be lifted out |
| 02:44:53 | <ozzloy> | the goal of repeats is to find the longest subsequence of xs where xs is some positive whole number repeats of that subsequence |
| 02:44:55 | <EvanR> | I guess, as we just discussed, 1 has to refer to the same kind of 1 in each place xD |
| 02:45:12 | <ozzloy> | heh |
| 02:45:21 | <EvanR> | it's your recursion call |
| 02:45:48 | <EvanR> | you can still lift it out thanks to lazy evaluation xD |
| 02:45:55 | <ozzloy> | the one on line 79 should never happen |
| 02:46:13 | <ozzloy> | "lift it out" |
| 02:46:19 | <EvanR> | if true, you could put error "impossible" |
| 02:47:21 | <EvanR> | but yeah the function could use some tidying |
| 02:48:19 | <EvanR> | here's what lifted it out could look like |
| 02:48:23 | <EvanR> | where |
| 02:48:44 | <EvanR> | helper pieces xs = let loop = helper (pieces + 1) xs in |
| 02:48:55 | <EvanR> | (all that other code with loop substituted) |
| 02:49:06 | → | wei2912 joins (~wei2912@116.88.103.128) |
| 02:49:22 | × | wei2912 quits (~wei2912@116.88.103.128) (Client Quit) |
| 02:49:25 | <EvanR> | not saying it's easier to read but it's less repetitive |
| 02:49:32 | <ozzloy> | i see |
| 02:50:24 | <EvanR> | oh, you have guards... |
| 02:51:08 | → | jbox joins (~jbox@user/jbox) |
| 02:52:02 | × | ubert quits (~Thunderbi@p200300ecdf0ba253e6b318fffe838f33.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 02:53:35 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 268 seconds) |
| 02:54:06 | → | ubert joins (~Thunderbi@p200300ecdf0ba253e6b318fffe838f33.dip0.t-ipconnect.de) |
| 02:55:46 | × | justsomeguy quits (~justsomeg@user/justsomeguy) (Quit: WeeChat 3.3) |
| 02:55:54 | × | bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Remote host closed the connection) |
| 02:56:40 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 268 seconds) |
| 02:56:47 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) |
| 02:56:57 | <Square> | if i have : class MyClz a where ; type MyType a. How can a function "fkn :: MyClz a => MyType a -> SomeType" be "non injective" regarding MyType. I thought it would defined solely by MyClz a? |
| 02:59:14 | → | bitdex joins (~bitdex@gateway/tor-sasl/bitdex) |
| 02:59:29 | → | ubert1 joins (~Thunderbi@p200300ecdf0ba234e6b318fffe838f33.dip0.t-ipconnect.de) |
| 03:00:02 | × | renzhi quits (~xp@2607:fa49:6500:b100::5cef) (Ping timeout: 240 seconds) |
| 03:00:54 | × | ubert quits (~Thunderbi@p200300ecdf0ba253e6b318fffe838f33.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 03:00:54 | ubert1 | is now known as ubert |
| 03:04:41 | <EvanR> | I'm not sure but, MyType could certainly be non injective |
| 03:04:43 | <pavonia> | Square: "type" is just a type synonym, so different instances could define the same type |
| 03:04:50 | <EvanR> | ^ |
| 03:05:16 | <EvanR> | MyType a doesn't necessarily lead back to a |
| 03:05:24 | <EvanR> | only* |
| 03:08:25 | <Square> | yeah i saw that injectivity definition. f a ∼ f b implies a ∼ b |
| 03:11:36 | × | x88x88x quits (~cheeg@gateway/vpn/pia/x88x88x) (Ping timeout: 245 seconds) |
| 03:14:38 | <Square> | Oh seems TypeFamilyDependencies saved me for now atleast. |
| 03:17:15 | × | FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija))) |
| 03:17:15 | → | finn_elija joins (~finn_elij@user/finn-elija/x-0085643) |
| 03:17:15 | finn_elija | is now known as FinnElija |
| 03:19:07 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 03:21:32 | × | td_ quits (~td@94.134.91.117) (Ping timeout: 240 seconds) |
| 03:21:59 | × | n8ess163 quits (~b@pool-72-80-171-162.nycmny.fios.verizon.net) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 03:23:36 | → | td_ joins (~td@muedsl-82-207-238-244.citykom.de) |
| 03:24:41 | × | shapr quits (~user@pool-100-36-247-68.washdc.fios.verizon.net) (Ping timeout: 265 seconds) |
| 03:34:02 | × | boxscape_ quits (~boxscape_@p4ff0bb6c.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 03:40:00 | → | lbseale joins (~ep1ctetus@user/ep1ctetus) |
| 03:40:23 | → | n8ess163 joins (~b@pool-72-80-171-162.nycmny.fios.verizon.net) |
| 03:44:20 | <yin> | what does this mean: [__0] rejecting: aoc2021-0.1.0.0 (conflict: requires LexicalNegation) |
| 03:44:23 | <yin> | ? |
| 03:44:38 | <yin> | i can't use LexicalNegation? |
| 03:46:47 | × | lbseale quits (~ep1ctetus@user/ep1ctetus) (Read error: Connection reset by peer) |
| 03:48:47 | → | Robin_Jadoul joins (~Robin_Jad@152.67.64.160) |
| 03:49:09 | → | jmorris joins (uid433911@id-433911.hampstead.irccloud.com) |
| 03:52:17 | → | jkaye joins (~jkaye@2601:281:8300:7530:ee04:303f:9e4f:aa70) |
| 03:52:32 | × | machinedgod quits (~machinedg@24.105.81.50) (Ping timeout: 240 seconds) |
| 03:52:57 | <EvanR> | maybe your ghc doesn't support it |
| 03:57:05 | × | superstar64 quits (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) (Remote host closed the connection) |
| 03:57:23 | <yin> | i think that's it |
| 03:58:02 | <yin> | 8.10.7 |
| 03:58:20 | → | superstar64 joins (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) |
| 03:58:43 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 03:58:47 | × | Jing quits (~hedgehog@2604:a840:3::1065) (Remote host closed the connection) |
| 03:59:08 | <yushyin> | LexicalNegation is since 9.0.1 |
| 03:59:21 | → | Jing joins (~hedgehog@125.105.11.101) |
| 04:00:46 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 245 seconds) |
| 04:00:59 | × | hiruji quits (~hiruji@user/hiruji) (Quit: ZNC 1.8.2 - https://znc.in) |
| 04:03:33 | × | superstar64 quits (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) (Remote host closed the connection) |
| 04:05:02 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 240 seconds) |
| 04:14:43 | → | superstar64 joins (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) |
| 04:17:47 | → | hiruji joins (~hiruji@2606:6080:1002:9:ffc4:b9c1:20ad:82f9) |
| 04:17:51 | × | Robin_Jadoul quits (~Robin_Jad@152.67.64.160) (Ping timeout: 245 seconds) |
| 04:20:27 | × | jkaye quits (~jkaye@2601:281:8300:7530:ee04:303f:9e4f:aa70) (Ping timeout: 260 seconds) |
| 04:27:39 | × | curiousgay quits (~curiousga@77-120-141-90.kha.volia.net) (Read error: Connection reset by peer) |
| 04:27:47 | × | superstar64 quits (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) (Read error: Connection reset by peer) |
| 04:27:48 | × | n8ess163 quits (~b@pool-72-80-171-162.nycmny.fios.verizon.net) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 04:28:10 | → | curiousgay joins (~curiousga@77-120-141-90.kha.volia.net) |
| 04:31:22 | → | superstar64 joins (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) |
| 04:32:27 | <superstar64> | How do I debug non-termination? Running this program takes up all my swap. |
| 04:32:36 | <superstar64> | *system memory and swap. |
| 04:37:55 | <EvanR> | Well other than profiling fu... you could try to narrow down where in the program is happening by excising 1/2 of the program at a time |
| 04:38:16 | <EvanR> | where in the program the loop is happening |
| 04:38:35 | <EvanR> | are you sure its non-termination and not just something very inefficient |
| 04:38:54 | <EvanR> | (is there any print outs or anything during the loop) |
| 04:41:48 | <superstar64> | EvanR, I kinda have this problem where running the program makes my system unusable. |
| 04:42:07 | <EvanR> | so it's using a lot of memory |
| 04:42:39 | <EvanR> | can you run it and press control C very fast to recover |
| 04:42:55 | <EvanR> | if so, that's your ticket to starting to bisect search through it |
| 04:45:16 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 04:50:06 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 04:51:53 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 04:53:33 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 04:55:34 | × | img quits (~img@user/img) (Quit: ZNC 1.8.2 - https://znc.in) |
| 04:55:42 | × | ubert quits (~Thunderbi@p200300ecdf0ba234e6b318fffe838f33.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 04:55:51 | → | img joins (~img@user/img) |
| 04:57:19 | → | ubert joins (~Thunderbi@p200300ecdf0ba234e6b318fffe838f33.dip0.t-ipconnect.de) |
| 05:00:10 | justBOOMER | is now known as justache |
| 05:02:03 | × | zebrag quits (~chris@user/zebrag) (Quit: Konversation terminated!) |
| 05:10:18 | <yin> | if i do readFile "./file" from src/Main.hs inside a cabal project is the path relative to Main.hs or the project's root? |
| 05:13:10 | <EvanR> | I would guess neither |
| 05:14:39 | <EvanR> | once the exe is compiled and run, the working directory (which can be changed at runtime) is ...... *gets a book on unix* |
| 05:15:59 | → | dyeplexer joins (~dyeplexer@user/dyeplexer) |
| 05:17:02 | <EvanR> | https://en.wikipedia.org/wiki/Working_directory |
| 05:19:14 | <EvanR> | I actually have no idea what it is by default, but it could be e.g. the current working dir of the user who ran it for example. The cabal project is very unlikely as that will not be on the end users machine |
| 05:24:03 | × | mvk quits (~mvk@2607:fea8:5cc1:fa00::4702) (Ping timeout: 268 seconds) |
| 05:24:39 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 256 seconds) |
| 05:28:37 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 256 seconds) |
| 05:29:48 | × | [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Read error: Connection reset by peer) |
| 05:29:58 | × | gdown quits (~gavin@h69-11-248-109.kndrid.broadband.dynamic.tds.net) (Remote host closed the connection) |
| 05:35:30 | → | reumeth joins (~reumeth@user/reumeth) |
| 05:36:00 | <yin> | i'm trying to set up a cabal project for advent of code where i have a folder "input" with one input file per day. the goal is to have one module per day, each module reading it's own file from that folder |
| 05:37:08 | <sclv> | typically if you're running an executable, the cwd is whatever directory your terminal happened to be in when you ran it |
| 05:37:36 | <sclv> | which is usually the top level of the cabal project, but obviously it can be anywhere |
| 05:39:37 | <EvanR> | so make sure the exe and the user are in that folder |
| 05:40:11 | <sclv> | well the exe need not be in that folder |
| 05:40:55 | <EvanR> | it would make it convenient to organize the days and run it |
| 05:41:01 | <sclv> | like if your exe is in ./dist-newstyle/foo/x/something/foo and you invoke it with that path then that's fine |
| 05:41:17 | <sclv> | your cwd is still where you invoked it from |
| 05:41:42 | → | Gurkenglas joins (~Gurkengla@dslb-002-203-144-204.002.203.pools.vodafone-ip.de) |
| 05:41:45 | <sclv> | alternately just pass the damn thing a path to the desired directory |
| 05:42:04 | <EvanR> | yeah it is pretty easy to type ./dist-newstyle/build/x86_64-linux/ghc-8.10.7/Nov2021-C-0.1.0.0/x/Nov2021-C/build/Nov2021-C/N^C2021-C |
| 05:42:24 | <sclv> | it is for me, since its tab-complete, tab complete, tab complete |
| 05:42:25 | <EvanR> | when did cabal start doing this crap xD |
| 05:42:38 | <sclv> | and thenceforth its "uparrow" |
| 05:42:39 | <EvanR> | my autocomplete gets caught up 4 times |
| 05:42:57 | <sclv> | do you not have an up arrow on your keyboard |
| 05:43:04 | <EvanR> | I just cabal run usually |
| 05:43:09 | <sclv> | that works too :-P |
| 05:43:14 | <EvanR> | so the command is not in my history lol |
| 05:43:31 | <sclv> | also it prints the path at the end of a build, so its double-click to select, copy, paste |
| 05:43:52 | <sclv> | or cabal list-bin |
| 05:44:27 | → | alzgh joins (~alzgh@user/alzgh) |
| 05:45:20 | → | nahcetan joins (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) |
| 05:45:28 | × | n8chan quits (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) (Read error: Connection reset by peer) |
| 05:46:03 | <EvanR> | why does it seem like a duplicate build tree under /x/ |
| 05:46:27 | → | lavaman joins (~lavaman@98.38.249.169) |
| 05:49:06 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 05:49:57 | <sclv> | project structure means we need packages, and subcomponents both |
| 05:50:20 | <sclv> | i think potentially if we were very careful there's at most one too many directories |
| 05:50:46 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 245 seconds) |
| 05:51:10 | <sclv> | but most naive attempts to factor it away have failed -- they look like they work, but eventually two subcomponents or something end up trying to put things in the same directory and name clashes can occur |
| 05:53:16 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 245 seconds) |
| 05:54:34 | <sclv> | like i don't recall exactly why you need the additional thing after /build/ but iirc there's some stuff that doesn't go in there but that ends up in /build directly (maybe preprocessor-related?) and if you collapsed the two you could get certain possible clashes |
| 05:55:14 | <sclv> | arguably what would be nice is if the final artifact was _also_ auto-symlinked to somewhere pleasant high up in the tree |
| 06:11:24 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 06:15:21 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 06:15:52 | × | xff0x quits (~xff0x@2001:1a81:523b:c600:3d37:9c6b:bc10:3149) (Ping timeout: 268 seconds) |
| 06:16:34 | → | xff0x joins (~xff0x@2001:1a81:523b:c600:8cc:44db:ddba:ac5d) |
| 06:23:08 | × | bliminse quits (~bliminse@host86-188-36-178.range86-188.btcentralplus.com) (Quit: Lost terminal) |
| 06:26:52 | → | bliminse joins (~bliminse@host86-188-36-178.range86-188.btcentralplus.com) |
| 06:29:54 | → | takuan joins (~takuan@178-116-218-225.access.telenet.be) |
| 06:31:27 | → | whatsupdoc joins (uid509081@id-509081.hampstead.irccloud.com) |
| 06:31:38 | → | pragma- joins (~chaos@user/pragmatic-chaos) |
| 06:37:25 | → | phma_ joins (~phma@host-67-44-208-5.hnremote.net) |
| 06:37:27 | × | phma_ quits (~phma@host-67-44-208-5.hnremote.net) (Read error: Connection reset by peer) |
| 06:37:52 | → | phma_ joins (~phma@host-67-44-208-5.hnremote.net) |
| 06:38:08 | × | phma quits (phma@2001:5b0:2144:5518:1989:d92a:fa65:167d) (Read error: Connection reset by peer) |
| 06:42:17 | p3n_ | is now known as p3n |
| 06:42:27 | × | chexum quits (~quassel@gateway/tor-sasl/chexum) (Remote host closed the connection) |
| 06:42:49 | → | chexum joins (~quassel@gateway/tor-sasl/chexum) |
| 06:43:02 | × | jmorris quits (uid433911@id-433911.hampstead.irccloud.com) (Quit: Connection closed for inactivity) |
| 06:43:26 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 06:44:57 | → | lavaman joins (~lavaman@98.38.249.169) |
| 06:49:02 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 240 seconds) |
| 06:51:03 | → | kupi joins (uid212005@id-212005.hampstead.irccloud.com) |
| 06:56:20 | × | ubert quits (~Thunderbi@p200300ecdf0ba234e6b318fffe838f33.dip0.t-ipconnect.de) (Remote host closed the connection) |
| 06:56:28 | → | yaroot joins (~yaroot@52.102.13.160.dy.iij4u.or.jp) |
| 06:58:41 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 06:58:58 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:00:38 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:00:47 | → | ubert joins (~Thunderbi@p200300ecdf0ba234e6b318fffe838f33.dip0.t-ipconnect.de) |
| 07:00:56 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:01:18 | × | superstar64 quits (~superstar@2600:1700:ed80:50a0:d250:99ff:fe2c:53c4) (Quit: Leaving) |
| 07:04:55 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:05:13 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:09:20 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:09:38 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:13:25 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:13:43 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:15:23 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:15:41 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:15:46 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Ping timeout: 245 seconds) |
| 07:16:19 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 07:19:39 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:19:57 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:20:33 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 07:24:12 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:24:30 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:26:18 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:26:36 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:30:24 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:30:41 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:32:21 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:32:39 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:32:59 | × | davean quits (~davean@davean.sciesnet.net) (Quit: WeeChat 2.8) |
| 07:33:07 | → | davean joins (~davean@davean.sciesnet.net) |
| 07:34:47 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:35:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:36:02 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:36:19 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:37:59 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:39:56 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:41:36 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:41:54 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:43:34 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:43:52 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:46:07 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:46:24 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:48:04 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:48:22 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:49:35 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 07:50:29 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 07:50:31 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Remote host closed the connection) |
| 07:50:58 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 07:52:50 | × | ph88^ quits (~ph88@ip5f5af068.dynamic.kabel-deutschland.de) (Quit: Leaving) |
| 07:54:30 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:54:47 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:55:08 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 268 seconds) |
| 07:55:23 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Ping timeout: 256 seconds) |
| 07:55:23 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 256 seconds) |
| 07:57:03 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 07:57:20 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 07:58:50 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 268 seconds) |
| 08:01:01 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 08:01:19 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 08:02:19 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 08:05:05 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 08:06:37 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 08:06:54 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 08:07:34 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 08:07:50 | → | random-jellyfish joins (~random-je@user/random-jellyfish) |
| 08:10:39 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 08:13:20 | × | xcmw quits (~textual@dyn-72-33-0-245.uwnet.wisc.edu) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 08:15:34 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 08:20:44 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 08:21:40 | → | max22- joins (~maxime@lfbn-ren-1-762-224.w81-53.abo.wanadoo.fr) |
| 08:21:43 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 08:22:00 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 08:23:40 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 08:27:44 | → | chomwitt joins (~chomwitt@2a02:587:dc14:4600:12c3:7bff:fe6d:d374) |
| 08:30:59 | × | Sgeo quits (~Sgeo@user/sgeo) (Read error: Connection reset by peer) |
| 08:32:07 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 08:34:29 | × | namkeleser quits (~namkelese@101.175.102.188) (Ping timeout: 256 seconds) |
| 08:35:40 | → | aliosablack joins (~chomwitt@2a02:587:dc16:f200:12c3:7bff:fe6d:d374) |
| 08:38:12 | × | chomwitt quits (~chomwitt@2a02:587:dc14:4600:12c3:7bff:fe6d:d374) (Ping timeout: 265 seconds) |
| 08:39:34 | → | jonathanx joins (~jonathan@h-178-174-176-109.A357.priv.bahnhof.se) |
| 08:41:40 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer) |
| 08:42:15 | → | Vajb joins (~Vajb@nalkaylds2h97nzof-2.v6.elisa-mobile.fi) |
| 08:46:33 | → | x88x88x joins (~cheeg@gateway/vpn/pia/x88x88x) |
| 08:49:38 | → | mmhat joins (~mmh@55d4d614.access.ecotel.net) |
| 08:49:38 | × | Vajb quits (~Vajb@nalkaylds2h97nzof-2.v6.elisa-mobile.fi) (Read error: Connection reset by peer) |
| 08:50:01 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) |
| 08:54:38 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Ping timeout: 265 seconds) |
| 08:54:45 | → | SSCC joins (~SSCC@59-102-95-229.tpgi.com.au) |
| 08:54:57 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 268 seconds) |
| 08:55:28 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) |
| 08:57:37 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 08:58:54 | × | x88x88x quits (~cheeg@gateway/vpn/pia/x88x88x) (Remote host closed the connection) |
| 08:59:40 | × | tzh quits (~tzh@c-24-21-73-154.hsd1.or.comcast.net) (Quit: zzz) |
| 09:01:39 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 09:02:28 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Remote host closed the connection) |
| 09:07:36 | × | whatsupdoc quits (uid509081@id-509081.hampstead.irccloud.com) (Quit: Connection closed for inactivity) |
| 09:10:45 | × | random-jellyfish quits (~random-je@user/random-jellyfish) (Ping timeout: 256 seconds) |
| 09:10:56 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 09:14:47 | → | Tuplanolla joins (~Tuplanoll@91-159-69-50.elisa-laajakaista.fi) |
| 09:14:56 | × | aliosablack quits (~chomwitt@2a02:587:dc16:f200:12c3:7bff:fe6d:d374) (Ping timeout: 265 seconds) |
| 09:14:56 | → | acidjnk_new joins (~acidjnk@p200300d0c7271e120859696da5d9d189.dip0.t-ipconnect.de) |
| 09:15:14 | <arahael> | I'm trying to make sense of the new Amazonka 2.0 API, and it's very confusing. How should I make a "Paths"? (Reference: https://github.com/brendanhay/amazonka/blob/aeecded1501510d607082bb9a65aa5086755251f/lib/services/amazonka-cloudfront/gen/Amazonka/CloudFront/Types/Paths.hs ) |
| 09:15:25 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 265 seconds) |
| 09:15:57 | <arahael> | It seems to suggest that I should use 'newPaths', but the implementation doesn't make sense there... I've got a bunch of paths I want to invalidate, why would I use provide 'nothing'? |
| 09:17:48 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 09:17:48 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 09:17:51 | allbery_b | is now known as geekosaur |
| 09:18:02 | × | jonathanx quits (~jonathan@h-178-174-176-109.A357.priv.bahnhof.se) (Quit: Leaving) |
| 09:19:15 | <arahael> | I mean, the implementation is: newPaths pQuantity_ = Paths' { items = Prelude.Nothing, quantity = pQuantity_ } |
| 09:19:21 | <arahael> | That makes no sense, does it? |
| 09:23:13 | <jackdk> | arahael: general amazonka convention: newFoo makes a "minimal" value of a shape (all required fields provided) and then you use lenses to set the remaining fields |
| 09:23:45 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 09:25:09 | <jackdk> | arahael: https://github.com/brendanhay/amazonka/blob/0ccede621e56fb6f240e4850e205cde82d0e4a4b/examples/src/S3.hs#L129 look at the way `newTagging` is assembled |
| 09:27:25 | <arahael> | jackdk: Why would the number of items differ from the contents, though? It seems a bit weird. |
| 09:27:54 | <arahael> | jackdk: So basically I provide the paths twice - firstly in that 'newPaths' to set the count, and then using lenses again to give the actual paths again? |
| 09:28:31 | <arahael> | jackdk: I'm also getting the impression that, eg in that example, @"tagSet" isn't actually a string? |
| 09:29:20 | × | econo quits (uid147250@user/econo) (Quit: Connection closed for inactivity) |
| 09:29:42 | <jackdk> | arahael: it probably wouldn't - amazonka is generated by parsing service and payload defintions from aws' botocore project |
| 09:30:06 | <jackdk> | arahael: @"tagSet" is an explicit type application - that's the @ - of a type-level string "tagSet" |
| 09:30:14 | <jackdk> | arahael: see https://hackage.haskell.org/package/generic-lens |
| 09:31:52 | <arahael> | Well, that works. I guess I really do need to give generic-lens a proper read now, and figure out what "type-level strings" are. |
| 09:31:55 | <arahael> | Thanks again :) |
| 09:32:02 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds) |
| 09:32:40 | <arahael> | I'll rewrite the 'runAWST' using bit another time :) Slow-and-steady... Between nethack games, of course. :) |
| 09:33:18 | × | xkuru quits (~xkuru@user/xkuru) (Read error: Connection reset by peer) |
| 09:35:35 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 09:35:45 | × | curiousgay quits (~curiousga@77-120-141-90.kha.volia.net) (Quit: Leaving) |
| 09:35:54 | <jackdk> | arahael: I would probably shove the Env into whatever ReaderT you have lying around, and then write your own wrapper around `send` which feeds the Env to amazonka's send |
| 09:36:42 | <arahael> | jackdk: That's the thing, I very rarely even use ReaderT - infact, I've barely learnt about MonadTransformers, though I'm aware of the need to do 'liftIO' and the like when I need to get into that. |
| 09:39:32 | × | pfurla quits (~pfurla@201.17.118.230) (Read error: Connection reset by peer) |
| 09:39:38 | → | pfurla_ joins (~pfurla@2804:14d:5c81:4104:c02e:81ef:e775:3a9e) |
| 09:39:49 | → | lavaman joins (~lavaman@98.38.249.169) |
| 09:40:05 | <jackdk> | arahael: I see. https://github.com/qfpl/applied-fp-course might be a good read for you then, in particular bonus/mtl.md |
| 09:40:08 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) (Remote host closed the connection) |
| 09:41:03 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Ping timeout: 260 seconds) |
| 09:41:10 | <arahael> | jackdk: Thanks for the recommendation. :) I'll check it out. |
| 09:42:30 | <arahael> | Woo, and as a bonus, that's an example of markdown-based literate haskell. I was going to play with that for the Advent of Code! |
| 09:45:25 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 09:46:19 | → | random-jellyfish joins (~random-je@user/random-jellyfish) |
| 09:50:09 | × | SSCC quits (~SSCC@59-102-95-229.tpgi.com.au) (Quit: Client closed) |
| 09:50:13 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 265 seconds) |
| 09:51:09 | <arahael> | Hmm, I should probably find some time to do those data61 courses again. |
| 09:51:23 | <arahael> | (Probably lots I've forgotten or missed) |
| 09:59:41 | → | _ht joins (~quassel@82-169-194-8.biz.kpn.net) |
| 10:00:32 | × | Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 240 seconds) |
| 10:01:28 | → | Lord_of_Life joins (~Lord@user/lord-of-life/x-2819915) |
| 10:03:40 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 10:04:40 | → | boxscape_ joins (~boxscape_@p4ff0bb6c.dip0.t-ipconnect.de) |
| 10:05:22 | → | chomwitt joins (~chomwitt@2a02:587:dc16:f200:12c3:7bff:fe6d:d374) |
| 10:08:50 | × | ubert quits (~Thunderbi@p200300ecdf0ba234e6b318fffe838f33.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 10:09:47 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Quit: ZNC 1.8.2 - https://znc.in) |
| 10:10:00 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 10:10:12 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 10:11:55 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 10:12:12 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 10:15:53 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 10:16:11 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 10:16:20 | → | aliosablack joins (~chomwitt@2a02:587:dc16:f200:12c3:7bff:fe6d:d374) |
| 10:16:20 | × | chomwitt quits (~chomwitt@2a02:587:dc16:f200:12c3:7bff:fe6d:d374) (Read error: Connection reset by peer) |
| 10:18:00 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 10:18:16 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 10:20:31 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 10:20:48 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 10:21:30 | → | jmorris joins (uid433911@id-433911.hampstead.irccloud.com) |
| 10:22:27 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 10:24:57 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 10:30:39 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 256 seconds) |
| 10:30:47 | × | kupi quits (uid212005@id-212005.hampstead.irccloud.com) (Quit: Connection closed for inactivity) |
| 10:31:31 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 10:33:42 | → | hololeap_ joins (~hololeap@user/hololeap) |
| 10:33:48 | × | hololeap quits (~hololeap@user/hololeap) (Ping timeout: 276 seconds) |
| 10:34:38 | → | fef joins (~thedawn@user/thedawn) |
| 10:34:46 | → | x88x88x joins (~cheeg@218.212.160.154) |
| 10:36:39 | × | hololeap_ quits (~hololeap@user/hololeap) (Remote host closed the connection) |
| 10:37:54 | → | hololeap_ joins (~hololeap@user/hololeap) |
| 10:37:59 | × | xff0x quits (~xff0x@2001:1a81:523b:c600:8cc:44db:ddba:ac5d) (Ping timeout: 260 seconds) |
| 10:38:08 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 10:38:46 | → | xff0x joins (~xff0x@2001:1a81:523b:c600:f9b1:c475:746a:8f2c) |
| 10:40:32 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) |
| 10:42:33 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Ping timeout: 256 seconds) |
| 10:45:20 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) (Ping timeout: 268 seconds) |
| 10:49:37 | → | jstolarek joins (~jstolarek@137.220.120.162) |
| 10:52:11 | × | random-jellyfish quits (~random-je@user/random-jellyfish) (Ping timeout: 256 seconds) |
| 10:52:25 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 10:57:37 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection) |
| 10:57:51 | × | jstolarek quits (~jstolarek@137.220.120.162) (Ping timeout: 256 seconds) |
| 10:59:19 | × | linkedlistist quits (uid528169@lymington.irccloud.com) (Quit: Connection closed for inactivity) |
| 10:59:42 | × | fef quits (~thedawn@user/thedawn) (Remote host closed the connection) |
| 11:00:06 | → | fef joins (~thedawn@user/thedawn) |
| 11:01:08 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 11:15:37 | → | Robin_Jadoul joins (~Robin_Jad@152.67.64.160) |
| 11:21:54 | → | cosimone joins (~user@2001:b07:ae5:db26:a7aa:8027:6b4e:2fb3) |
| 11:24:48 | × | Robin_Jadoul quits (~Robin_Jad@152.67.64.160) (Ping timeout: 268 seconds) |
| 11:26:23 | × | zaquest quits (~notzaques@5.130.79.72) (Remote host closed the connection) |
| 11:27:23 | → | zaquest joins (~notzaques@5.130.79.72) |
| 11:28:36 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 11:29:35 | × | x88x88x quits (~cheeg@218.212.160.154) (Ping timeout: 256 seconds) |
| 11:35:18 | → | desantra joins (~skykanin@user/skykanin) |
| 11:35:32 | → | kennyd joins (~bc8165b6@cerf.good1.com) |
| 11:38:27 | ← | jakalx parts (~jakalx@base.jakalx.net) () |
| 11:40:54 | → | neurocyte0132889 joins (~neurocyte@94.16.91.65) |
| 11:40:54 | × | neurocyte0132889 quits (~neurocyte@94.16.91.65) (Changing host) |
| 11:40:54 | → | neurocyte0132889 joins (~neurocyte@user/neurocyte) |
| 11:42:18 | → | Robin_Jadoul joins (~Robin_Jad@152.67.64.160) |
| 11:43:59 | → | Midjak joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 11:45:10 | × | lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection) |
| 11:51:58 | → | Guest17 joins (~Guest17@eth-west-pareq2-46-193-4-100.wb.wifirst.net) |
| 11:53:53 | → | jstolarek joins (~jstolarek@137.220.120.162) |
| 11:56:44 | × | neurocyte0132889 quits (~neurocyte@user/neurocyte) (Quit: The Lounge - https://thelounge.chat) |
| 12:00:14 | × | jstolarek quits (~jstolarek@137.220.120.162) (Ping timeout: 256 seconds) |
| 12:01:41 | → | neurocyte0132889 joins (~neurocyte@94.16.91.65) |
| 12:01:41 | × | neurocyte0132889 quits (~neurocyte@94.16.91.65) (Changing host) |
| 12:01:41 | → | neurocyte0132889 joins (~neurocyte@user/neurocyte) |
| 12:03:08 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 265 seconds) |
| 12:06:44 | × | Midjak quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Quit: This computer has gone to sleep) |
| 12:07:51 | → | lyiriyah` joins (~lyiriyah@2a00:23c8:5f85:9101:2e5c:cadb:3fa7:7a3b) |
| 12:08:00 | × | lyiriyah` quits (~lyiriyah@2a00:23c8:5f85:9101:2e5c:cadb:3fa7:7a3b) (Remote host closed the connection) |
| 12:09:18 | × | rtsn quits (~nstr@c-c7fe225c.07-59-7570703.bbcust.telenor.se) (Ping timeout: 256 seconds) |
| 12:11:08 | × | Guest17 quits (~Guest17@eth-west-pareq2-46-193-4-100.wb.wifirst.net) (Quit: Client closed) |
| 12:16:19 | forell_ | is now known as forell |
| 12:16:56 | × | forell quits (~forell@host-178-216-90-220.sta.tvknaszapraca.pl) (Changing host) |
| 12:16:56 | → | forell joins (~forell@user/forell) |
| 12:19:03 | → | pfurla joins (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) |
| 12:22:28 | × | pfurla_ quits (~pfurla@2804:14d:5c81:4104:c02e:81ef:e775:3a9e) (Ping timeout: 265 seconds) |
| 12:23:49 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 12:27:04 | hskpractice | is now known as hskpr |
| 12:30:21 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 12:30:51 | × | boxscape_ quits (~boxscape_@p4ff0bb6c.dip0.t-ipconnect.de) (Quit: Connection closed) |
| 12:35:17 | × | hskpr quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 12:35:35 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 12:39:21 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 12:39:39 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 12:41:04 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 12:41:15 | × | pfurla quits (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) (Quit: gone to sleep. ZZZzzz…) |
| 12:43:05 | → | namkeleser joins (~namkelese@101.175.102.188) |
| 12:44:57 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 256 seconds) |
| 12:46:23 | → | lavaman joins (~lavaman@98.38.249.169) |
| 12:48:04 | → | _ht_ joins (~quassel@94.198.43.109) |
| 12:48:05 | × | _ht quits (~quassel@82-169-194-8.biz.kpn.net) (Ping timeout: 265 seconds) |
| 12:50:48 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 12:51:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 12:51:11 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 256 seconds) |
| 12:52:37 | → | machinedgod joins (~machinedg@24.105.81.50) |
| 12:53:01 | → | pfurla joins (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) |
| 12:54:03 | × | pfurla quits (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) (Client Quit) |
| 12:55:13 | → | pfurla joins (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) |
| 12:56:09 | × | pfurla quits (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) (Client Quit) |
| 12:57:49 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 12:58:06 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 12:59:36 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 12:59:53 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 13:01:33 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 13:01:58 | → | MoC joins (~moc@user/moc) |
| 13:03:32 | × | koz quits (~koz@121.99.240.58) (Ping timeout: 240 seconds) |
| 13:04:18 | × | nckx quits (~nckx@tobias.gr) (Ping timeout: 260 seconds) |
| 13:05:21 | × | namkeleser quits (~namkelese@101.175.102.188) (Ping timeout: 256 seconds) |
| 13:07:49 | → | curiousgay joins (~curiousga@77-120-141-90.kha.volia.net) |
| 13:10:24 | → | koz joins (~koz@121.99.240.58) |
| 13:10:41 | → | namkeleser joins (~namkelese@101.175.102.188) |
| 13:16:05 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 13:17:52 | × | MoC quits (~moc@user/moc) (Quit: Konversation terminated!) |
| 13:18:43 | → | lavaman joins (~lavaman@98.38.249.169) |
| 13:19:31 | × | namkeleser quits (~namkelese@101.175.102.188) (Ping timeout: 256 seconds) |
| 13:20:23 | × | shriekingnoise quits (~shrieking@186.137.144.80) (Quit: Quit) |
| 13:21:39 | <yin> | how can I cabal run with command line arguments? |
| 13:22:44 | <Franciman> | cabal run progname -- arguments |
| 13:22:56 | <Franciman> | I don't remember if you actually need -- |
| 13:23:22 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 265 seconds) |
| 13:23:48 | × | mcglk_ quits (~mcglk@131.191.49.120) (Read error: Connection reset by peer) |
| 13:24:07 | → | [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470) |
| 13:25:03 | <yin> | ah, i was missing progname |
| 13:25:18 | <yin> | thanks |
| 13:29:40 | <geekosaur> | you need -- if it takes options starting with -, otherwise they'll be eaten by cabal |
| 13:29:56 | → | n8ess163 joins (~b@pool-72-80-171-162.nycmny.fios.verizon.net) |
| 13:29:57 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 13:33:39 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 13:34:32 | × | mikoto-chan quits (~mikoto-ch@esm-84-240-99-143.netplaza.fi) (Quit: mikoto-chan) |
| 13:34:40 | → | mikoto-chan joins (~mikoto-ch@esm-84-240-99-143.netplaza.fi) |
| 13:47:54 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 13:49:51 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 13:53:33 | → | betelgeuse9 joins (~betelgeus@94-225-47-8.access.telenet.be) |
| 13:56:34 | × | reumeth quits (~reumeth@user/reumeth) (Ping timeout: 260 seconds) |
| 13:58:17 | × | betelgeuse9 quits (~betelgeus@94-225-47-8.access.telenet.be) (Read error: Connection reset by peer) |
| 13:59:00 | <albet70> | what kleisli arrow is used for? |
| 13:59:15 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 13:59:50 | → | betelgeuse9 joins (~betelgeus@94-225-47-8.access.telenet.be) |
| 14:00:16 | × | betelgeuse9 quits (~betelgeus@94-225-47-8.access.telenet.be) (Read error: Connection reset by peer) |
| 14:01:12 | × | jmorris quits (uid433911@id-433911.hampstead.irccloud.com) (Quit: Connection closed for inactivity) |
| 14:01:15 | <Rembane_> | :t (>=>) -- Are you thinking of this one, albet70? |
| 14:01:16 | <lambdabot> | Monad m => (a -> m b) -> (b -> m c) -> a -> m c |
| 14:01:35 | <albet70> | yes |
| 14:01:48 | → | betelgeuse9 joins (~betelgeus@94-225-47-8.access.telenet.be) |
| 14:01:55 | <albet70> | effect? |
| 14:02:23 | × | betelgeuse9 quits (~betelgeus@94-225-47-8.access.telenet.be) (Remote host closed the connection) |
| 14:04:19 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:04:20 | × | cheater quits (~Username@user/cheater) (Ping timeout: 256 seconds) |
| 14:04:22 | → | cheater1__ joins (~Username@user/cheater) |
| 14:04:25 | cheater1__ | is now known as cheater |
| 14:04:35 | → | narendraj9 joins (~user@2a02:8109:b63f:ff7c::57b2) |
| 14:05:09 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:05:26 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:07:06 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:07:08 | → | shapr joins (~user@pool-100-36-247-68.washdc.fios.verizon.net) |
| 14:07:43 | <albet70> | >>= is an advanced version of <$> which can do if-else, is >=> an advanced version of >>=? |
| 14:08:10 | <hpc> | @src (>=>) |
| 14:08:10 | <lambdabot> | Source not found. Do you think like you type? |
| 14:08:14 | <hpc> | bah |
| 14:08:18 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:08:27 | <hpc> | (>=>) is defined in terms of (>>=) |
| 14:08:41 | → | zer0bitz joins (~zer0bitz@dsl-hkibng31-54fabc-15.dhcp.inet.fi) |
| 14:08:43 | <hpc> | https://hackage.haskell.org/package/base-4.16.0.0/docs/src/Control.Monad.html#%3E%3D%3E |
| 14:09:29 | <hpc> | if you consider (<=<) instead, it has some nice parallels to (.) |
| 14:09:31 | <hpc> | :t (<=<) |
| 14:09:32 | <lambdabot> | Monad m => (b -> m c) -> (a -> m b) -> a -> m c |
| 14:09:35 | <hpc> | :t (.) |
| 14:09:36 | <lambdabot> | (b -> c) -> (a -> b) -> a -> c |
| 14:09:57 | <hpc> | so it's like function composition with extra goodies |
| 14:10:47 | → | jstolarek joins (~jstolarek@137.220.120.162) |
| 14:11:38 | <hpc> | :t (=<<) |
| 14:11:39 | <lambdabot> | Monad m => (a -> m b) -> m a -> m b |
| 14:11:40 | <hpc> | :t ($) |
| 14:11:40 | <lambdabot> | (a -> b) -> a -> b |
| 14:11:49 | <hpc> | ^ is another point of comparison |
| 14:12:42 | → | cosimone` joins (~user@93-44-184-115.ip98.fastwebnet.it) |
| 14:14:02 | × | cosimone quits (~user@2001:b07:ae5:db26:a7aa:8027:6b4e:2fb3) (Ping timeout: 240 seconds) |
| 14:14:22 | <albet70> | . is a subset of <=<? |
| 14:15:19 | <albet70> | why people prefer <<= than <=<? |
| 14:15:32 | × | Robin_Jadoul quits (~Robin_Jad@152.67.64.160) (Quit: Robin_Jadoul) |
| 14:15:48 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 14:16:00 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 14:16:06 | <albet70> | :t (<<=) |
| 14:16:07 | <lambdabot> | error: |
| 14:16:07 | <lambdabot> | • Variable not in scope: <<= |
| 14:16:07 | <lambdabot> | • Perhaps you meant one of these: |
| 14:16:21 | <Rembane_> | albet70: If you already have a value =<< is much easier to work with. :) |
| 14:16:49 | → | helby joins (helby@alpine/moderator/helby) |
| 14:16:57 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 14:17:07 | <Rembane_> | albet70: getLine >>= putStrLn -- is easier than: |
| 14:17:09 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 14:17:36 | <hpc> | yeah, (<=<) is more useful for the theoretical connections |
| 14:17:45 | <Rembane_> | albet70: (const getLine) >=> putStrLn () |
| 14:18:12 | <hpc> | being able to wave your hands and say "Kleisli is a category" makes various other things possible |
| 14:18:16 | <Rembane_> | Indeed, although both (<=<) and (>=>) are very nice for doing pointless style programming with monads. |
| 14:18:40 | → | lavaman joins (~lavaman@98.38.249.169) |
| 14:21:31 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:21:38 | <helby> | Hello people, I got some error during cabal build > linux-musl/bin/ld: cannot find -lffi Any idea? https://envs.sh/Eub.txt |
| 14:21:49 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:22:59 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 256 seconds) |
| 14:25:47 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:26:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:26:47 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Remote host closed the connection) |
| 14:28:18 | × | acidjnk_new quits (~acidjnk@p200300d0c7271e120859696da5d9d189.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 14:28:24 | <helby> | I would say, I failed in fail |
| 14:28:35 | <helby> | hups not, here |
| 14:31:13 | <albet70> | >>= :: (e->a) -> (a->e->b) ->e -> b is ok? |
| 14:31:24 | → | fusion86 joins (~fusion@2a02-a44c-e6e5-1-f563-676f-4b4e-88fc.fixed6.kpn.net) |
| 14:31:49 | <geekosaur> | % :t (>>=) @((->) _) |
| 14:31:49 | <yahb> | geekosaur: (w -> a) -> (a -> w -> b) -> w -> b |
| 14:33:08 | <geekosaur> | which is the same as: (w -> a) -> (a -> w -> b) -> (w -> b) |
| 14:33:23 | → | lbseale joins (~ep1ctetus@user/ep1ctetus) |
| 14:33:45 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 256 seconds) |
| 14:33:51 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.3) |
| 14:34:15 | <albet70> | :% :t (<=<) @((->) _) |
| 14:34:36 | <albet70> | % :t (<=<) @((->) _) |
| 14:34:36 | <yahb> | albet70: (b -> w -> c) -> (a -> w -> b) -> a -> w -> c |
| 14:36:33 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:36:51 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:39:37 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection) |
| 14:41:26 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 14:42:46 | <fusion86> | Hey all, for a homework assignment we have to write a simple ical parser. So far so good. However I am currently stuck on verifying whether the lexed tokens actually from a valid structure. For this I need to check whether a token at a given position is of a certain type. I currently do this with a crappy pattern match, but I was wondering whether there is a better way to solve this. Code: https://paste.tomsmeding.co |
| 14:42:46 | <fusion86> | m/aML9L05e |
| 14:43:01 | <fusion86> | Non-linebroken link: https://paste.tomsmeding.com/aML9L05e |
| 14:43:03 | × | desantra quits (~skykanin@user/skykanin) (Quit: WeeChat 3.3) |
| 14:44:01 | <fusion86> | This does use an in house parser, but the pattern match thingy should be understandable without knowing about the parser lib. |
| 14:44:57 | → | acidjnk_new joins (~acidjnk@p200300d0c7271e12682d634f453929c6.dip0.t-ipconnect.de) |
| 14:45:11 | → | renzhi joins (~xp@2607:fa49:6500:b100::5cef) |
| 14:45:46 | <helby> | fixed, missed libffi-dev crap |
| 14:47:26 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:47:44 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:49:24 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:49:26 | <albet70> | % :t (>=>) @((->) _) |
| 14:49:26 | <yahb> | albet70: (a -> w -> b) -> (b -> w -> c) -> a -> w -> c |
| 14:49:41 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:51:21 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 14:51:39 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 14:52:19 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 260 seconds) |
| 14:54:13 | → | waleee joins (~waleee@h-82-196-111-63.NA.cust.bahnhof.se) |
| 14:56:26 | → | haask joins (~harry@92.234.0.237) |
| 14:57:08 | × | haask quits (~harry@92.234.0.237) (Remote host closed the connection) |
| 14:58:33 | → | haask joins (~harry@92.234.0.237) |
| 14:59:16 | hololeap_ | is now known as hololeap |
| 15:02:03 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 15:02:20 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 15:03:02 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 15:03:50 | × | waleee quits (~waleee@h-82-196-111-63.NA.cust.bahnhof.se) (Ping timeout: 256 seconds) |
| 15:04:33 | <albet70> | I wonder what's the case to use >>= and >=> on function form |
| 15:05:15 | → | jkaye joins (~jkaye@2601:281:8300:7530:9397:8874:2ff1:8d72) |
| 15:06:01 | <geekosaur> | we don't, usually. but the Functor instance is useful and we get the Applicative and Monad instances "for free", as it were |
| 15:06:21 | <geekosaur> | every so often we use those, but they tend to make for really confusing code |
| 15:07:33 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Ping timeout: 250 seconds) |
| 15:07:53 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 15:08:19 | <geekosaur> | people's minds just don't seem to generalize that way |
| 15:08:28 | <hpc> | there's Reader, if you don't count newtype wrappers |
| 15:08:58 | <hpc> | but you probably should in this case, you go crazy pretty quickly without it :D |
| 15:10:38 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 15:10:55 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 15:12:35 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 15:12:43 | <geekosaur> | (there's a bit of "just because you can, doesn't mean you should" in here) |
| 15:12:53 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 15:13:10 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 15:14:48 | → | x88x88x joins (~cheeg@218.212.160.154) |
| 15:16:00 | × | narendraj9 quits (~user@2a02:8109:b63f:ff7c::57b2) (Quit: ERC 5.4.1 (IRC client for GNU Emacs 29.0.50)) |
| 15:17:25 | → | x88x88x- joins (~cheeg@gateway/vpn/pia/x88x88x) |
| 15:17:32 | × | _ht_ quits (~quassel@94.198.43.109) (Ping timeout: 240 seconds) |
| 15:17:35 | → | zebrag joins (~chris@user/zebrag) |
| 15:18:18 | → | _ht joins (~quassel@82-169-194-8.biz.kpn.net) |
| 15:18:24 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 265 seconds) |
| 15:19:05 | → | benjamin[m]12 joins (~benjaminm@2001:470:69fc:105::1:3f2f) |
| 15:19:39 | × | x88x88x quits (~cheeg@218.212.160.154) (Ping timeout: 256 seconds) |
| 15:20:03 | <albet70> | so Reader is useless? |
| 15:20:19 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer) |
| 15:20:54 | → | waleee joins (~waleee@h-82-196-111-63.NA.cust.bahnhof.se) |
| 15:21:24 | → | Vajb joins (~Vajb@nalkaylds2h97nzof-2.v6.elisa-mobile.fi) |
| 15:22:45 | × | kronicmage quits (user72429@neotame.csclub.uwaterloo.ca) (Quit: WeeChat 3.0.1) |
| 15:22:46 | <hpc> | Reader is useful, doing Reader stuff with bare (->) is what geekosaur is refering to |
| 15:25:51 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 15:26:09 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 15:27:35 | <geekosaur> | right, Reader adds just enough that it's sane to work with. ((->) e) directly is mind-bending |
| 15:29:37 | × | acidjnk_new quits (~acidjnk@p200300d0c7271e12682d634f453929c6.dip0.t-ipconnect.de) (Ping timeout: 268 seconds) |
| 15:29:51 | × | alzgh quits (~alzgh@user/alzgh) (Ping timeout: 256 seconds) |
| 15:34:34 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 15:35:15 | × | lbseale quits (~ep1ctetus@user/ep1ctetus) (Read error: Connection reset by peer) |
| 15:36:39 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 15:36:39 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Changing host) |
| 15:36:39 | → | wroathe joins (~wroathe@user/wroathe) |
| 15:38:41 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 245 seconds) |
| 15:40:09 | × | jstolarek quits (~jstolarek@137.220.120.162) (Ping timeout: 265 seconds) |
| 15:41:14 | × | waleee quits (~waleee@h-82-196-111-63.NA.cust.bahnhof.se) (Ping timeout: 256 seconds) |
| 15:41:15 | × | bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 276 seconds) |
| 15:41:48 | → | ees joins (~user@pool-108-18-30-46.washdc.fios.verizon.net) |
| 15:43:28 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 15:43:39 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 15:43:46 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 15:43:58 | → | alzgh joins (alzgh@user/alzgh) |
| 15:45:12 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) |
| 15:45:23 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 15:47:23 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 15:47:41 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 15:47:57 | → | narendraj9 joins (~user@2a02:8109:b63f:ff7c::57b2) |
| 15:49:19 | → | bitdex joins (~bitdex@gateway/tor-sasl/bitdex) |
| 15:49:32 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) (Ping timeout: 240 seconds) |
| 15:50:07 | → | pfurla joins (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) |
| 15:52:17 | × | fusion86 quits (~fusion@2a02-a44c-e6e5-1-f563-676f-4b4e-88fc.fixed6.kpn.net) (Remote host closed the connection) |
| 15:52:39 | → | fusion86 joins (~fusion@2a02-a44c-e6e5-1-f563-676f-4b4e-88fc.fixed6.kpn.net) |
| 15:53:48 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 15:55:31 | × | xff0x quits (~xff0x@2001:1a81:523b:c600:f9b1:c475:746a:8f2c) (Ping timeout: 268 seconds) |
| 15:57:33 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 265 seconds) |
| 15:58:07 | → | hiruji` joins (~hiruji@pool-100-4-208-71.albyny.fios.verizon.net) |
| 15:58:16 | × | hiruji quits (~hiruji@2606:6080:1002:9:ffc4:b9c1:20ad:82f9) (Ping timeout: 245 seconds) |
| 15:58:24 | × | hiruji` quits (~hiruji@pool-100-4-208-71.albyny.fios.verizon.net) (Remote host closed the connection) |
| 15:59:19 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 256 seconds) |
| 15:59:29 | → | mcglk joins (~mcglk@131.191.49.120) |
| 15:59:33 | → | hiruji joins (~hiruji@user/hiruji) |
| 15:59:48 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 16:00:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 16:00:09 | × | lambdap quits (~lambdap@static.167.190.119.168.clients.your-server.de) (Quit: lambdap) |
| 16:00:24 | → | lambdap joins (~lambdap@static.167.190.119.168.clients.your-server.de) |
| 16:01:41 | ← | helby parts (helby@alpine/moderator/helby) () |
| 16:01:46 | × | hiruji quits (~hiruji@user/hiruji) (Client Quit) |
| 16:03:39 | → | hiruji joins (~hiruji@user/hiruji) |
| 16:04:19 | × | koz quits (~koz@121.99.240.58) (Ping timeout: 265 seconds) |
| 16:04:25 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Ping timeout: 256 seconds) |
| 16:08:24 | × | alzgh quits (alzgh@user/alzgh) (Remote host closed the connection) |
| 16:10:18 | → | slowButPresent joins (~slowButPr@user/slowbutpresent) |
| 16:11:33 | × | fusion86 quits (~fusion@2a02-a44c-e6e5-1-f563-676f-4b4e-88fc.fixed6.kpn.net) (Quit: Leaving) |
| 16:13:33 | ← | jakalx parts (~jakalx@base.jakalx.net) () |
| 16:14:01 | → | alzgh joins (alzgh@user/alzgh) |
| 16:15:38 | phma_ | is now known as phma |
| 16:17:28 | → | xff0x joins (~xff0x@2001:1a81:523b:c600:f9b1:c475:746a:8f2c) |
| 16:19:54 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Remote host closed the connection) |
| 16:21:46 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 16:22:59 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 16:26:20 | → | bollu joins (uid233390@id-233390.helmsley.irccloud.com) |
| 16:26:31 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 256 seconds) |
| 16:28:29 | × | cheater quits (~Username@user/cheater) (Ping timeout: 265 seconds) |
| 16:28:43 | → | zincy_ joins (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) |
| 16:29:25 | → | koz joins (~koz@121.99.240.58) |
| 16:31:22 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 16:32:31 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 16:33:27 | → | tzh joins (~tzh@c-24-21-73-154.hsd1.wa.comcast.net) |
| 16:34:51 | → | cheater joins (~Username@user/cheater) |
| 16:35:06 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 16:35:15 | × | x88x88x- quits (~cheeg@gateway/vpn/pia/x88x88x) (Ping timeout: 265 seconds) |
| 16:36:08 | × | curiousgay quits (~curiousga@77-120-141-90.kha.volia.net) (Remote host closed the connection) |
| 16:36:29 | → | curiousgay joins (~curiousga@77-120-141-90.kha.volia.net) |
| 16:37:40 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 265 seconds) |
| 16:41:47 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 16:42:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 16:43:02 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 240 seconds) |
| 16:45:39 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 16:45:58 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) |
| 16:48:00 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 16:48:57 | × | kennyd quits (~bc8165b6@cerf.good1.com) (Quit: CGI:IRC (Session timeout)) |
| 16:49:14 | × | hiruji quits (~hiruji@user/hiruji) (Ping timeout: 256 seconds) |
| 16:52:15 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 260 seconds) |
| 16:54:49 | × | haask quits (~harry@92.234.0.237) (Remote host closed the connection) |
| 16:59:21 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 16:59:29 | × | narendraj9 quits (~user@2a02:8109:b63f:ff7c::57b2) (Remote host closed the connection) |
| 16:59:39 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 17:00:20 | × | ees quits (~user@pool-108-18-30-46.washdc.fios.verizon.net) (Remote host closed the connection) |
| 17:00:29 | → | narendraj9 joins (~user@2a02:8109:b63f:ff7c::57b2) |
| 17:03:19 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 17:04:11 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 17:04:38 | × | zincy_ quits (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) (Remote host closed the connection) |
| 17:04:46 | → | random-jellyfish joins (~random-je@user/random-jellyfish) |
| 17:07:48 | × | ph88 quits (~ph88@2a02:8109:9e00:71d0:cdf3:eec1:2823:7459) (Quit: Leaving) |
| 17:07:52 | → | fendor joins (~fendor@77.119.160.165.wireless.dyn.drei.com) |
| 17:08:00 | → | haask joins (~harry@92.234.0.237) |
| 17:08:01 | × | jkaye quits (~jkaye@2601:281:8300:7530:9397:8874:2ff1:8d72) (Ping timeout: 250 seconds) |
| 17:08:17 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 17:12:57 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 265 seconds) |
| 17:14:25 | <koz> | A while back, someone posted a link in here which argued that 'constant time' access is really Theta(sqrt(n)) due to (among other things) limitations of our physics. I can't seem to find that link anymore - does anyone know what I'm looking for? |
| 17:14:53 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 265 seconds) |
| 17:15:43 | <hpc> | haha, that's awesome |
| 17:16:30 | × | n8ess163 quits (~b@pool-72-80-171-162.nycmny.fios.verizon.net) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 17:17:08 | → | Hanicef joins (~gustaf@81-229-9-108-no92.tbcn.telia.com) |
| 17:20:22 | → | reumeth joins (~reumeth@user/reumeth) |
| 17:23:37 | → | n8ess163 joins (~b@pool-72-80-171-162.nycmny.fios.verizon.net) |
| 17:24:40 | × | n8ess163 quits (~b@pool-72-80-171-162.nycmny.fios.verizon.net) (Client Quit) |
| 17:29:23 | <EvanR> | true, try implementing constant time lookup in conway life |
| 17:30:23 | <EvanR> | you can only access at most order of t^2 things around you in a given time |
| 17:30:47 | → | Sgeo joins (~Sgeo@user/sgeo) |
| 17:31:34 | <hpc> | wouldn't it be the light-sphere's volume, not its surface area? |
| 17:32:04 | <koz> | hpc: The thing I'm trying to find specifies why it's not volume. |
| 17:32:06 | <EvanR> | the volume of the light sphere is a square xD |
| 17:32:19 | <EvanR> | proof by cellular automaton |
| 17:32:44 | → | sheb joins (~sheb@31.223.228.71) |
| 17:33:20 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 17:34:36 | <hpc> | also space is expanding, so you only have a few hundred trillion years to work with |
| 17:34:42 | <hpc> | so asymptotic notation doesn't really work :D |
| 17:36:32 | × | pavonia quits (~user@user/siracusa) (Quit: Bye!) |
| 17:38:02 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds) |
| 17:39:42 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 17:40:38 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Remote host closed the connection) |
| 17:40:39 | × | shapr quits (~user@pool-100-36-247-68.washdc.fios.verizon.net) (Read error: Connection reset by peer) |
| 17:42:03 | <[exa]> | koz: it's called "the myth of ram" |
| 17:42:16 | <[exa]> | koz: http://www.ilikebigbits.com/2014_04_21_myth_of_ram_1.html |
| 17:42:19 | <EvanR> | holographic principle says all information in the volume is encoded on the surface |
| 17:42:26 | <koz> | [exa]: Thank you! |
| 17:43:18 | <dolio> | The holographic principle explanation is silly, though. |
| 17:44:00 | × | dyeplexer quits (~dyeplexer@user/dyeplexer) (Remote host closed the connection) |
| 17:44:31 | <[exa]> | hard computer science truths: 1] universe is finite 2] dimensions are few |
| 17:45:06 | <EvanR> | keep your universe to yourself |
| 17:45:07 | <dolio> | The actual relevant reason is that chips are flat, and will probably remain mostly flat, because of heat dissipation. |
| 17:45:44 | × | fef quits (~thedawn@user/thedawn) (Quit: Leaving) |
| 17:45:47 | → | lavaman joins (~lavaman@98.38.249.169) |
| 17:46:26 | <yin> | how do i tell cabal to run with -O2 by default? |
| 17:47:07 | <sclv> | you can put it in ghc options in the ~/.cabal/config file |
| 17:47:08 | → | mvk joins (~mvk@2607:fea8:5cc1:fa00::4702) |
| 17:47:10 | <sclv> | i dont recommend it tho |
| 17:47:20 | <yin> | ghc-options: -O2 ? |
| 17:48:00 | <yin> | can't i put it in my projectname.cabal file? |
| 17:48:11 | <yin> | and why not? |
| 17:48:26 | <sclv> | well then it only runs on that package by default |
| 17:48:28 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 17:48:35 | <sclv> | which isn't what i thought you were asking |
| 17:48:39 | <sclv> | but yes, you can also put it there! |
| 17:48:42 | × | pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Client Quit) |
| 17:48:43 | <yin> | sclv: that's exactly what i wat |
| 17:48:46 | <yin> | *want |
| 17:48:47 | <sclv> | ok, then put it there :-) |
| 17:48:56 | <yin> | i did |
| 17:49:05 | <yin> | it's not working |
| 17:49:53 | <yin> | cabal run myporject is using -O1 (which is the default, according to docs) |
| 17:49:56 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 17:50:05 | <yin> | project, even |
| 17:50:25 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 17:50:36 | <EvanR> | so constant time is both not physically accurate for RAM and theoretically misleading for hashtables since they're based on finite ints, got it |
| 17:51:28 | <EvanR> | or with finite anything everything is O(1), and then it's really not |
| 17:52:29 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 17:53:35 | <[exa]> | EvanR: there's O, theta and omega. Everything is O(1) in an universe that ends with the big-antibang, but we're usually going for the average/lower/amortized complexity |
| 17:54:01 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 17:54:24 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 256 seconds) |
| 17:55:31 | <[exa]> | in this view, you're usually trying to get the average/amortized complexity, where universe size is luckily not relevant |
| 17:57:11 | <EvanR> | actually how did physics even sneak in. Don't you usually just identify what it is you are counting as basic operations and say that has cost 1 or size 1 and go from there. And the result is relative to that and not stephen hawking shit |
| 17:57:11 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Ping timeout: 256 seconds) |
| 17:57:14 | <dolio> | O doesn't have anything to do with what sort of performance you're measuring. |
| 17:59:25 | <[exa]> | EvanR: physics sneaks in because it creates the O bound on the amount of RAM vs latency. (in 2D universe the RAM access would be A(n)). |
| 17:59:44 | <EvanR> | A? |
| 18:00:14 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 18:00:14 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Changing host) |
| 18:00:14 | → | wroathe joins (~wroathe@user/wroathe) |
| 18:00:15 | <[exa]> | dolio: I'm usually using O for asymptotic upper bound, theta for both-bounds, omega for lower bound, A for amortized time ( <- EvanR ) |
| 18:00:37 | <[exa]> | we might just be clashing on notation, sorry :] |
| 18:01:21 | <dolio> | There are upper bounds, both bounds and lower bounds for worst case, average case and amortized cost. |
| 18:02:32 | <[exa]> | dolio: that sounds overly complicated (like, average case is amortized right, by beancounting), do you have a link to definitions? |
| 18:03:30 | <dolio> | Wikipedia. O, Ω, Θ, o, etc. have nothing inherently to do with costs of algorithms. |
| 18:03:51 | <dolio> | They are abount bounds on functions. |
| 18:04:54 | <dolio> | Average, worst, amortized, etc. identifies which cost function is being analyzed. |
| 18:05:00 | <[exa]> | that checks, I was pointing out that the finite-universe shortcut to O(1) doesn't work with Θ |
| 18:05:05 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 18:05:22 | → | econo joins (uid147250@user/econo) |
| 18:05:35 | <EvanR> | (also who invited the big anti-bang?) |
| 18:05:57 | <[exa]> | EvanR: I couldn't remember how's the end of universe called. Big shrink? Big squash? |
| 18:06:08 | <EvanR> | big crunch? |
| 18:06:14 | <[exa]> | ah yes, likely |
| 18:06:40 | → | lorenzuru_ joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:06:45 | <hpc> | that only happens in desitter spaces |
| 18:07:05 | <EvanR> | last I checked expansion is accelerating |
| 18:07:08 | <hpc> | our universe will accelerate its expansion until light-cones are too small to support mass |
| 18:07:40 | <hpc> | and then if roger penrose is correct, really weird stuff happens |
| 18:07:49 | <EvanR> | yawn xD |
| 18:07:52 | × | lorenzuru_ quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Remote host closed the connection) |
| 18:08:05 | → | lorenzuru_ joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:08:05 | <EvanR> | let him have his toilet paper |
| 18:08:30 | × | lorenzuru_ quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:08:51 | <hpc> | ? |
| 18:09:30 | <EvanR> | penrose tiling IP scandal |
| 18:09:38 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 18:10:00 | <dolio> | Also, amortized is not the same as average. Amortized analysis involves attributing some costs of expensive operations to cheaper operations, and ensuring the enough cheap operations occur between expensive ones to ensure that the total cost is less per operation than the expensive ones. |
| 18:10:35 | × | notzmv quits (~zmv@user/notzmv) (Ping timeout: 268 seconds) |
| 18:10:47 | <dolio> | Whereas average case is about the performance of 'most' inputs or something. |
| 18:10:49 | <hpc> | EvanR: link? |
| 18:11:53 | <EvanR> | http://bit-player.org/2017/sir-roger-penroses-toilet-paper |
| 18:11:56 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 18:12:53 | <[exa]> | dolio: we usually did beancounting and divided that by the number of operations, which sounds a lot like average... although "average" might be over a different set, yeah |
| 18:13:04 | <dolio> | Like, quicksort's average case might be some function of log n, because most inputs will sort in log time. |
| 18:13:44 | <hpc> | heh |
| 18:13:51 | <dolio> | Er, n*(log n). |
| 18:13:55 | → | lorenzuru_ joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:14:41 | <[exa]> | ah yeah "average run over a random input of size n" vs "average in a series of related runs" |
| 18:14:52 | [exa] | punishes self |
| 18:15:29 | × | fendor quits (~fendor@77.119.160.165.wireless.dyn.drei.com) (Remote host closed the connection) |
| 18:15:47 | <dolio> | Yeah. And amortized is better than that, even, I think. It's like, something 'expensive' doesn't happen until you've accumulated enough slack from cheap stuff. |
| 18:16:05 | → | Algernon69 joins (~Algernon6@2a04:cec0:11d8:d959:c93d:9f3e:f0b5:db46) |
| 18:16:19 | <dolio> | So, it's not just averaging out randomly. |
| 18:16:34 | × | lorenzuru_ quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:16:47 | → | lorenzuru_ joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:17:05 | × | lorenzuru_ quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:17:14 | × | cheater quits (~Username@user/cheater) (Ping timeout: 265 seconds) |
| 18:17:17 | → | cheater1__ joins (~Username@user/cheater) |
| 18:17:19 | × | lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection) |
| 18:17:21 | cheater1__ | is now known as cheater |
| 18:17:31 | → | lavaman joins (~lavaman@98.38.249.169) |
| 18:20:23 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 18:20:41 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 18:21:02 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 256 seconds) |
| 18:22:41 | → | lorenzuru_ joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:22:45 | → | Lycurgus joins (~juan@98.4.112.204) |
| 18:22:51 | × | lorenzuru_ quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:24:19 | → | lorenzuru_ joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:24:28 | × | lorenzuru_ quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:24:57 | → | lorenzuru joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:25:05 | × | lorenzuru quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Quit: Client closed) |
| 18:25:11 | × | danso quits (~danso@23-233-111-52.cpe.pppoe.ca) (Quit: WeeChat 3.3) |
| 18:25:26 | → | danso joins (~danso@23-233-111-52.cpe.pppoe.ca) |
| 18:26:46 | → | lorenzuru joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:27:03 | × | lorenzuru quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:27:16 | → | lorenzuru joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:27:30 | × | lorenzuru quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:27:43 | → | lorenzuru joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:30:22 | → | n8ess163 joins (~b@pool-72-80-171-162.nycmny.fios.verizon.net) |
| 18:32:53 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 256 seconds) |
| 18:32:53 | × | Vajb quits (~Vajb@nalkaylds2h97nzof-2.v6.elisa-mobile.fi) (Read error: Connection reset by peer) |
| 18:33:33 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) |
| 18:35:42 | <yin> | how do we pass command line arguments to ghcid? |
| 18:36:17 | → | lemmyd joins (~bc8165b6@cerf.good1.com) |
| 18:37:10 | ← | lemmyd parts (~bc8165b6@cerf.good1.com) () |
| 18:37:20 | <Hecate> | --setup |
| 18:37:39 | → | jollygood2 joins (~bc8165b6@cerf.good1.com) |
| 18:37:48 | ← | jollygood2 parts (~bc8165b6@cerf.good1.com) () |
| 18:38:36 | × | Lycurgus quits (~juan@98.4.112.204) (Quit: Exeunt) |
| 18:40:06 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 18:44:45 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 18:44:56 | → | jstolarek joins (~jstolarek@137.220.120.162) |
| 18:45:03 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 18:45:07 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Remote host closed the connection) |
| 18:45:51 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 18:48:17 | → | gdown joins (~gavin@h69-11-248-109.kndrid.broadband.dynamic.tds.net) |
| 18:48:21 | → | boxscape_ joins (~boxscape_@p4ff0bb6c.dip0.t-ipconnect.de) |
| 18:49:44 | → | justsomeguy joins (~justsomeg@user/justsomeguy) |
| 18:50:35 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 265 seconds) |
| 18:51:01 | × | Hanicef quits (~gustaf@81-229-9-108-no92.tbcn.telia.com) (Quit: leaving) |
| 18:51:11 | → | Midjak joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 18:51:45 | × | lorenzuru quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Quit: lorenzuru) |
| 18:51:58 | → | lorenzuru joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 18:52:26 | × | lorenzuru quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Client Quit) |
| 18:54:56 | × | cosimone` quits (~user@93-44-184-115.ip98.fastwebnet.it) (Ping timeout: 265 seconds) |
| 18:56:03 | → | dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net) |
| 18:56:39 | → | zincy_ joins (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) |
| 18:59:39 | × | curiousgay quits (~curiousga@77-120-141-90.kha.volia.net) (Remote host closed the connection) |
| 19:00:42 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 256 seconds) |
| 19:01:47 | × | max22- quits (~maxime@lfbn-ren-1-762-224.w81-53.abo.wanadoo.fr) (Ping timeout: 256 seconds) |
| 19:02:10 | × | danso quits (~danso@23-233-111-52.cpe.pppoe.ca) (Quit: WeeChat 3.3) |
| 19:02:29 | → | danso joins (~danso@23-233-111-52.cpe.pppoe.ca) |
| 19:02:34 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 19:02:34 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Changing host) |
| 19:02:34 | → | wroathe joins (~wroathe@user/wroathe) |
| 19:02:56 | × | danso quits (~danso@23-233-111-52.cpe.pppoe.ca) (Client Quit) |
| 19:03:09 | × | Algernon69 quits (~Algernon6@2a04:cec0:11d8:d959:c93d:9f3e:f0b5:db46) (Ping timeout: 265 seconds) |
| 19:03:16 | → | danso joins (~danso@23-233-111-52.cpe.pppoe.ca) |
| 19:05:16 | × | zincy_ quits (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) (Remote host closed the connection) |
| 19:06:45 | → | zincy_ joins (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) |
| 19:09:07 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:09:25 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:10:43 | → | xkuru joins (~xkuru@user/xkuru) |
| 19:13:03 | → | Guest878 joins (~Guest87@93-42-90-100.ip86.fastwebnet.it) |
| 19:13:23 | × | zincy_ quits (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) (Remote host closed the connection) |
| 19:15:21 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:15:39 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:18:07 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection) |
| 19:19:47 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:19:48 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 19:20:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:20:09 | <yin> | i did --run=":main args" |
| 19:20:51 | ← | jakalx parts (~jakalx@base.jakalx.net) (Error from remote client) |
| 19:20:51 | <yin> | culdn't seem to get setup to work |
| 19:21:00 | <yin> | i'm sure i'm missing something |
| 19:21:18 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 19:21:28 | <yin> | also for some reason --no-status is not working |
| 19:21:39 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 19:28:37 | → | max22- joins (~maxime@2a01cb0883359800f9d5861d99da2e2e.ipv6.abo.wanadoo.fr) |
| 19:30:39 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:30:56 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:31:21 | × | ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 276 seconds) |
| 19:32:21 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 19:32:58 | → | yauhsien joins (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) |
| 19:33:28 | glider_ | is now known as glider |
| 19:34:14 | × | hays quits (rootvegeta@fsf/member/hays) (Quit: hays) |
| 19:34:18 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 19:34:33 | → | hays joins (rootvegeta@fsf/member/hays) |
| 19:34:48 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 19:36:53 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:37:11 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:37:29 | × | yauhsien quits (~yauhsien@61-231-63-167.dynamic-ip.hinet.net) (Ping timeout: 256 seconds) |
| 19:39:09 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:39:26 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:39:45 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 256 seconds) |
| 19:41:26 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:41:43 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:42:40 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:42:58 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 19:47:05 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 19:49:20 | <Franciman> | yin: |
| 19:49:38 | → | lorenzuru joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 19:49:47 | <Franciman> | are you trying to pass arguents to cabal? |
| 19:49:57 | × | lorenzuru quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Remote host closed the connection) |
| 19:50:48 | <geekosaur> | ghcid, if I read scrollback correctly |
| 19:50:57 | → | zincy_ joins (~zincy@host86-181-60-139.range86-181.btcentralplus.com) |
| 19:52:30 | → | cosimone joins (~user@93-44-184-115.ip98.fastwebnet.it) |
| 19:54:02 | → | curiousgay joins (~curiousga@77-120-141-90.kha.volia.net) |
| 19:54:15 | → | lorenzuru joins (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) |
| 19:54:19 | × | lorenzuru quits (~lorenzuru@host-82-54-5-120.retail.telecomitalia.it) (Remote host closed the connection) |
| 19:56:53 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 19:56:53 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Changing host) |
| 19:56:53 | → | wroathe joins (~wroathe@user/wroathe) |
| 19:57:43 | × | narendraj9 quits (~user@2a02:8109:b63f:ff7c::57b2) (Remote host closed the connection) |
| 19:58:37 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:852c:89ad:25b7:fe51) (Remote host closed the connection) |
| 20:00:29 | × | gehmehgeh quits (~user@user/gehmehgeh) (Quit: Leaving) |
| 20:01:01 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 20:01:17 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 256 seconds) |
| 20:04:59 | × | juhp quits (~juhp@128.106.188.82) (Ping timeout: 260 seconds) |
| 20:07:14 | → | juhp joins (~juhp@128.106.188.82) |
| 20:09:22 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 265 seconds) |
| 20:10:38 | × | justsomeguy quits (~justsomeg@user/justsomeguy) (Quit: WeeChat 3.3) |
| 20:11:57 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 20:12:26 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 20:12:39 | → | zava joins (~zava@ip5f5bdf0f.dynamic.kabel-deutschland.de) |
| 20:13:19 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 20:14:40 | × | dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3) |
| 20:17:05 | × | n8ess163 quits (~b@pool-72-80-171-162.nycmny.fios.verizon.net) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 20:17:09 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Ping timeout: 256 seconds) |
| 20:19:23 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 20:19:43 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 20:20:42 | × | zava quits (~zava@ip5f5bdf0f.dynamic.kabel-deutschland.de) (Quit: WeeChat 3.3) |
| 20:20:58 | → | zava joins (~zava@ip5f5bdf0f.dynamic.kabel-deutschland.de) |
| 20:23:21 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 20:23:39 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 20:23:43 | × | albet70 quits (~xxx@2400:8902::f03c:92ff:fe60:98d8) (Remote host closed the connection) |
| 20:24:52 | × | burnsidesLlama quits (~burnsides@dhcp168-015.wadham.ox.ac.uk) (Remote host closed the connection) |
| 20:25:23 | → | curiousgay_ joins (~curiousga@77-120-141-90.kha.volia.net) |
| 20:25:30 | → | notzmv joins (~zmv@user/notzmv) |
| 20:25:31 | × | curiousgay quits (~curiousga@77-120-141-90.kha.volia.net) (Read error: Connection reset by peer) |
| 20:25:39 | × | Guest878 quits (~Guest87@93-42-90-100.ip86.fastwebnet.it) (Ping timeout: 256 seconds) |
| 20:26:17 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 265 seconds) |
| 20:26:21 | → | x_kuru joins (~xkuru@user/xkuru) |
| 20:28:16 | → | waleee joins (~waleee@h-82-196-111-63.na.cust.bahnhof.se) |
| 20:29:06 | × | xkuru quits (~xkuru@user/xkuru) (Ping timeout: 245 seconds) |
| 20:29:51 | → | albet70 joins (~xxx@2400:8902::f03c:92ff:fe60:98d8) |
| 20:31:51 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 20:32:09 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 20:33:38 | × | reumeth quits (~reumeth@user/reumeth) (Ping timeout: 268 seconds) |
| 20:35:28 | <sm> | @where paste, yin |
| 20:35:28 | <lambdabot> | I know nothing about paste,. |
| 20:35:34 | → | mreh joins (~matthew@host81-157-195-163.range81-157.btcentralplus.com) |
| 20:35:50 | <Hecate> | @where paste |
| 20:35:50 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 20:36:12 | <sm> | (a similarish ghcid command works here) |
| 20:37:35 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:356c:6df7:ff7f:48a3) |
| 20:37:57 | <hpc> | @where paste -- ooh, does that error message mean this works now? |
| 20:37:57 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 20:38:00 | <mreh> | could someone explain the type of runF? |
| 20:38:00 | <hpc> | yessssss |
| 20:38:18 | → | narendraj9 joins (~user@2a02:8109:b63f:ff7c::57b2) |
| 20:39:05 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 20:39:06 | <mreh> | I'm not quite sure how to use it |
| 20:39:49 | × | xff0x quits (~xff0x@2001:1a81:523b:c600:f9b1:c475:746a:8f2c) (Ping timeout: 265 seconds) |
| 20:40:00 | mreh | reads http://comonad.com/reader/2011/free-monads-for-less-2/ |
| 20:40:13 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 20:40:40 | → | xff0x joins (~xff0x@2001:1a81:523b:c600:e658:9e80:725:12f4) |
| 20:41:40 | × | ec quits (~ec@gateway/tor-sasl/ec) (Remote host closed the connection) |
| 20:41:47 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 20:42:18 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 20:43:39 | → | burnsidesLlama joins (~burnsides@dhcp168-015.wadham.ox.ac.uk) |
| 20:43:47 | → | cjb joins (~cjb@user/cjb) |
| 20:43:49 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 250 seconds) |
| 20:43:55 | <sm> | hpc, this also works: |
| 20:43:55 | <sm> | @where paste (@ must be in column 0, argument word must have nothing next to it) |
| 20:43:55 | <lambdabot> | Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com |
| 20:44:15 | → | nckx joins (~nckx@tobias.gr) |
| 20:44:58 | <sm> | it would save some noise if it were a little more forgiving |
| 20:46:57 | <edwardk> | mreh: runF takes come computation in the 'free' monad, how to convert 'a's at the leaves to values of type 'r' and the ability to convert layers of 'f r -> r' and runs the whole tree of actions represented by the free monad. |
| 20:47:45 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Ping timeout: 256 seconds) |
| 20:48:01 | <edwardk> | e.g. if you have some other monad 'm', you might pick r = 'm a' pass it 'pure as the first argument, and something that converts f (m a) -> m a as the second. and interpret into the other monad |
| 20:48:52 | <edwardk> | that is what 'fromF' does, using runF. |
| 20:50:30 | → | P1RATEZ joins (piratez@user/p1ratez) |
| 20:53:51 | → | acidjnk_new joins (~acidjnk@p200300d0c7271e27c5c24316ea6f3b87.dip0.t-ipconnect.de) |
| 20:56:15 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 20:56:32 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 20:59:08 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 20:59:27 | × | _ht quits (~quassel@82-169-194-8.biz.kpn.net) (Remote host closed the connection) |
| 21:02:27 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:02:45 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:05:51 | × | Hecate quits (~mariposa@163.172.211.189) (Changing host) |
| 21:05:51 | → | Hecate joins (~mariposa@user/hecate) |
| 21:07:03 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 21:07:12 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 21:08:31 | × | mreh quits (~matthew@host81-157-195-163.range81-157.btcentralplus.com) (Ping timeout: 250 seconds) |
| 21:10:57 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:11:15 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:12:21 | × | zincy_ quits (~zincy@host86-181-60-139.range86-181.btcentralplus.com) (Remote host closed the connection) |
| 21:13:02 | × | alx741 quits (~alx741@181.196.69.248) (Ping timeout: 240 seconds) |
| 21:14:38 | × | dsrt^ quits (~dsrt@68.101.58.90) (Remote host closed the connection) |
| 21:15:57 | → | x88x88x joins (~cheeg@gateway/vpn/pia/x88x88x) |
| 21:16:01 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 21:16:31 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 21:18:08 | curiousgay_ | is now known as curiousgay |
| 21:19:48 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:19:48 | × | haask quits (~harry@92.234.0.237) (Read error: Connection reset by peer) |
| 21:20:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:21:00 | → | mreh joins (~matthew@host81-157-195-163.range81-157.btcentralplus.com) |
| 21:21:11 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Ping timeout: 256 seconds) |
| 21:24:07 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:24:13 | → | Algernon69 joins (~Algernon6@2a01:e0a:511:6ce0:c935:9328:4c7f:5838) |
| 21:24:25 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:25:55 | → | alx741 joins (~alx741@181.196.69.176) |
| 21:27:52 | → | deadmarshal joins (~deadmarsh@95.38.228.7) |
| 21:28:17 | → | nitrix joins (~nitrix@user/nitrix) |
| 21:28:38 | × | Algernon69 quits (~Algernon6@2a01:e0a:511:6ce0:c935:9328:4c7f:5838) (Ping timeout: 265 seconds) |
| 21:30:47 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:31:05 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:32:31 | × | deadmarshal quits (~deadmarsh@95.38.228.7) (Ping timeout: 256 seconds) |
| 21:34:45 | → | Pickchea joins (~private@user/pickchea) |
| 21:34:53 | → | n8ess163 joins (~b@pool-72-80-171-162.nycmny.fios.verizon.net) |
| 21:36:10 | × | n8ess163 quits (~b@pool-72-80-171-162.nycmny.fios.verizon.net) (Client Quit) |
| 21:38:44 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 21:39:31 | × | mreh quits (~matthew@host81-157-195-163.range81-157.btcentralplus.com) (Ping timeout: 245 seconds) |
| 21:39:42 | → | zincy_ joins (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) |
| 21:39:45 | × | jstolarek quits (~jstolarek@137.220.120.162) (Ping timeout: 265 seconds) |
| 21:40:32 | × | mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection) |
| 21:42:51 | → | ec joins (~ec@gateway/tor-sasl/ec) |
| 21:43:24 | → | mastarija joins (~mastarija@2a05:4f46:e0e:5000:d2c:da22:1ce0:f7f1) |
| 21:43:51 | × | takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection) |
| 21:48:57 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:49:15 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:51:13 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:51:31 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:53:11 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:53:29 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:54:24 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:356c:6df7:ff7f:48a3) (Remote host closed the connection) |
| 21:57:25 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 21:57:43 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 21:58:29 | × | mastarija quits (~mastarija@2a05:4f46:e0e:5000:d2c:da22:1ce0:f7f1) (Quit: Leaving) |
| 22:02:37 | → | mreh joins (~matthew@host81-157-195-163.range81-157.btcentralplus.com) |
| 22:02:59 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 22:03:28 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 22:05:44 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 22:06:14 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 22:07:01 | × | gnyeki quits (~gnyeki@li578-216.members.linode.com) (Changing host) |
| 22:07:01 | → | gnyeki joins (~gnyeki@user/gnyeki) |
| 22:09:22 | × | n3t quits (~n3t@user/n3t) (Quit: WeeChat 2.9) |
| 22:09:30 | × | Pickchea quits (~private@user/pickchea) (Quit: Leaving) |
| 22:10:13 | → | n3t joins (n3t@s45.mydevil.net) |
| 22:10:19 | × | n3t quits (n3t@s45.mydevil.net) (Changing host) |
| 22:10:19 | → | n3t joins (n3t@user/n3t) |
| 22:11:39 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Ping timeout: 265 seconds) |
| 22:12:45 | × | zer0bitz quits (~zer0bitz@dsl-hkibng31-54fabc-15.dhcp.inet.fi) (Ping timeout: 256 seconds) |
| 22:13:12 | × | gehmehgeh quits (~user@user/gehmehgeh) (Ping timeout: 276 seconds) |
| 22:13:57 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 22:19:31 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 22:19:49 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 22:20:40 | → | pavonia joins (~user@user/siracusa) |
| 22:22:48 | × | mreh quits (~matthew@host81-157-195-163.range81-157.btcentralplus.com) (Ping timeout: 268 seconds) |
| 22:25:41 | → | nuh^ joins (~nuh@68.101.58.90) |
| 22:27:30 | × | ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 276 seconds) |
| 22:32:40 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 22:32:57 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 22:33:24 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 22:35:04 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 22:35:21 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 22:37:28 | × | narendraj9 quits (~user@2a02:8109:b63f:ff7c::57b2) (Remote host closed the connection) |
| 22:39:59 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 22:41:23 | → | shapr joins (~user@pool-100-36-247-68.washdc.fios.verizon.net) |
| 22:41:43 | <EvanR> | https://paste.tomsmeding.com/RyJqXSBg 😎 |
| 22:43:53 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 22:44:11 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 22:45:15 | <EvanR> | dangit I think I missed something |
| 22:46:32 | → | nautical joins (~nautical@2601:602:900:1630::396f) |
| 22:46:40 | <nautical> | help |
| 22:47:16 | <EvanR> | to integrate I need an initial value |
| 22:48:12 | <Axman6> | @help |
| 22:48:12 | <lambdabot> | help <command>. Ask for help for <command>. Try 'list' for all commands |
| 22:49:53 | <EvanR> | and I only had one pair of shades |
| 22:50:03 | <geekosaur> | nautical, what is your problem? |
| 22:50:18 | <nautical> | sorry, that was an accident |
| 22:51:07 | → | harveypwca joins (~harveypwc@2601:246:c180:a570:3828:d8:e523:3f67) |
| 22:52:47 | × | zincy_ quits (~zincy@2a00:23c8:970c:4801:4cc1:c671:40b5:6186) (Remote host closed the connection) |
| 22:52:59 | × | alzgh quits (alzgh@user/alzgh) (Ping timeout: 256 seconds) |
| 22:53:02 | × | nautical quits (~nautical@2601:602:900:1630::396f) (Quit: WeeChat 3.3) |
| 22:53:18 | → | nautical joins (~nautical@2601:602:900:1630::396f) |
| 22:54:54 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:356c:6df7:ff7f:48a3) |
| 22:56:55 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 22:57:12 | × | lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection) |
| 22:57:13 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 22:57:29 | → | alzgh joins (~alzgh@user/alzgh) |
| 22:59:09 | × | gehmehgeh quits (~user@user/gehmehgeh) (Quit: Leaving) |
| 23:00:21 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:356c:6df7:ff7f:48a3) (Ping timeout: 245 seconds) |
| 23:03:36 | <EvanR> | https://paste.tomsmeding.com/h0Aqsfh3 this nonsense brought to you by differential geometry |
| 23:04:13 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 23:04:19 | × | alx741 quits (~alx741@181.196.69.176) (Ping timeout: 256 seconds) |
| 23:04:23 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 23:06:01 | → | mreh joins (~matthew@host81-157-195-163.range81-157.btcentralplus.com) |
| 23:07:41 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 23:08:00 | → | hskpractice joins (~hskpracti@94-255-217-215.cust.bredband2.com) |
| 23:09:51 | × | xff0x quits (~xff0x@2001:1a81:523b:c600:e658:9e80:725:12f4) (Ping timeout: 250 seconds) |
| 23:10:37 | × | machinedgod quits (~machinedg@24.105.81.50) (Ping timeout: 265 seconds) |
| 23:10:53 | → | xff0x joins (~xff0x@2001:1a81:523b:c600:eb6a:2c7d:ead9:34e8) |
| 23:10:58 | × | pfurla quits (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) (Quit: gone to sleep. ZZZzzz…) |
| 23:11:45 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:356c:6df7:ff7f:48a3) |
| 23:13:29 | → | Midjak2 joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 23:13:56 | × | Midjak2 quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Remote host closed the connection) |
| 23:14:00 | × | Midjak quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Ping timeout: 265 seconds) |
| 23:14:31 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 256 seconds) |
| 23:14:33 | → | Midjak2 joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 23:14:42 | → | Midjak joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 23:14:46 | <EvanR> | its too bad that exploiting local linearity requires ridiculously small step sizes, relative to better integration method |
| 23:15:17 | × | Midjak quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Read error: Connection reset by peer) |
| 23:15:47 | × | Midjak2 quits (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) (Client Quit) |
| 23:16:21 | → | Midjak joins (~Midjak@may53-1-78-226-116-92.fbx.proxad.net) |
| 23:17:30 | → | alx741 joins (~alx741@181.196.69.176) |
| 23:19:15 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 23:19:44 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 23:19:58 | → | pfurla joins (~pfurla@2804:14d:5c81:4104:40b9:a545:8d47:6552) |
| 23:20:31 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Remote host closed the connection) |
| 23:20:35 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 23:20:35 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Changing host) |
| 23:20:35 | → | wroathe joins (~wroathe@user/wroathe) |
| 23:21:17 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 23:23:11 | yin | pkills -9 ghc for the 9th time today |
| 23:24:11 | <yushyin> | not cool |
| 23:24:12 | × | cosimone quits (~user@93-44-184-115.ip98.fastwebnet.it) (Quit: ERC (IRC client for Emacs 27.1)) |
| 23:25:30 | yin | yushes |
| 23:25:51 | × | jonatanb quits (~accio@31-178-144-108.dynamic.chello.pl) (Ping timeout: 256 seconds) |
| 23:25:51 | × | Gurkenglas quits (~Gurkengla@dslb-002-203-144-204.002.203.pools.vodafone-ip.de) (Ping timeout: 256 seconds) |
| 23:26:02 | <geekosaur> | what's going wrong? |
| 23:26:05 | × | aliosablack quits (~chomwitt@2a02:587:dc16:f200:12c3:7bff:fe6d:d374) (Ping timeout: 265 seconds) |
| 23:26:14 | <yin> | EvanR: why dt and not δ |
| 23:26:17 | <geekosaur> | does ghc -v tell you where it's getting stuck? |
| 23:26:26 | → | shapr` joins (~user@pool-100-36-247-68.washdc.fios.verizon.net) |
| 23:26:43 | <EvanR> | laziness |
| 23:27:32 | <Axman6> | I had some fun with the DAML compiler the other day (which is based on GHC) where it would take an hour to finally report a type error. I thought it was just getting stuck but someone else compiled my branch and forgot about it and came back an hour later to find an error. fun times |
| 23:27:33 | × | shapr quits (~user@pool-100-36-247-68.washdc.fios.verizon.net) (Ping timeout: 256 seconds) |
| 23:28:15 | × | jle` quits (~jle`@2603-8001-3b02-84d4-0000-0000-0000-025d.res6.spectrum.com) (Quit: WeeChat 3.3) |
| 23:28:15 | <mreh> | prime.haskell.org is down |
| 23:28:53 | <Axman6> | try #haskell-infrastructure |
| 23:29:03 | <mreh> | Bezos getting litigious? |
| 23:29:08 | <mreh> | Axman6: thanks |
| 23:29:12 | <yin> | geekosaur: it's not really getting stuck, i mean... i ^C out of ghcid and after a while i notice there's a zombie ghc process hogging my cpu. |
| 23:29:32 | <geekosaur> | oh |
| 23:29:48 | geekosaur | already notified #haskell-infrastructure |
| 23:30:00 | <geekosaur> | yin, windows by any chance? |
| 23:30:26 | <yin> | no, but 32bit arm |
| 23:30:53 | <yin> | ubuntu in this instance |
| 23:31:03 | <geekosaur> | hm. I know there are problems with subprocesses on windows, but that should not affect arm ubuntu |
| 23:31:20 | <geekosaur> | then again I think I have heard of this happening before, so it might be a ghcid bug |
| 23:31:36 | <geekosaur> | or yet another bug in the process library, I guess |
| 23:32:08 | × | mreh quits (~matthew@host81-157-195-163.range81-157.btcentralplus.com) (Quit: leaving) |
| 23:33:50 | × | hskpractice quits (~hskpracti@94-255-217-215.cust.bredband2.com) (Remote host closed the connection) |
| 23:34:11 | → | mreh joins (~matthew@host81-157-195-163.range81-157.btcentralplus.com) |
| 23:35:36 | <yin> | i think it also happened when i did "watch ghc ...", which i used t do before finding out about ghcid |
| 23:36:40 | <geekosaur> | mm, wonder if anyone'[s watching the infra tonight |
| 23:37:48 | <mreh> | geekosaur: where's it hosted? UK? |
| 23:38:02 | <mreh> | UCL IIRC |
| 23:39:48 | <geekosaur> | don't know |
| 23:40:07 | → | machinedgod joins (~machinedg@24.105.81.50) |
| 23:40:17 | <geekosaur> | just thinking it's sunday evening in the US, midnight in the UK, past midnight in Europe |
| 23:40:26 | <geekosaur> | probably a really bad time to find anyone around |
| 23:41:04 | <mreh> | I'm about to go to bed, so I'm not so bothered! |
| 23:41:15 | <hpc> | maybe in australia |
| 23:42:15 | × | stiell quits (~stiell@gateway/tor-sasl/stiell) (Remote host closed the connection) |
| 23:42:17 | <mreh> | I was fixing something, wanted to check on the deal with Control.Monad.Fail |
| 23:42:36 | → | stiell joins (~stiell@gateway/tor-sasl/stiell) |
| 23:42:48 | <mreh> | Docs say it's been in since base-4.9.0.0, I think at least |
| 23:43:33 | <geekosaur> | you might also be able to check it on the proposals github? |
| 23:43:46 | <mreh> | ah, okay |
| 23:43:50 | <mreh> | thanks |
| 23:45:28 | <mreh> | geekosaur: do you have a link? |
| 23:46:09 | <mreh> | is it ghc-proposals? |
| 23:46:44 | × | adium quits (adium@user/adium) (Quit: Stable ZNC by #bnc4you) |
| 23:47:16 | × | xff0x quits (~xff0x@2001:1a81:523b:c600:eb6a:2c7d:ead9:34e8) (Ping timeout: 268 seconds) |
| 23:47:22 | <mreh> | can't see it, oh well |
| 23:47:34 | × | zava quits (~zava@ip5f5bdf0f.dynamic.kabel-deutschland.de) (Quit: WeeChat 3.3) |
| 23:48:03 | → | xff0x joins (~xff0x@2001:1a81:523b:c600:ed55:79c2:75f9:f2e2) |
| 23:48:21 | → | maplike joins (~maplike@31.209.100.216) |
| 23:48:24 | <geekosaur> | yes and I don't see it either |
| 23:48:31 | × | wroathe quits (~wroathe@user/wroathe) (Ping timeout: 256 seconds) |
| 23:48:42 | <geekosaur> | must hyave come before the proposals process as I see several follow-ons but not MonadFail itself |
| 23:48:49 | <geekosaur> | oh well |
| 23:49:12 | <mreh> | This lib imports it and is supposed to support base >=4.7 |
| 23:49:19 | → | jonatanb joins (~accio@31-178-144-108.dynamic.chello.pl) |
| 23:50:32 | → | kilolympus joins (~kilolympu@31.205.200.235) |
| 23:50:43 | <maplike> | I have a `[(a,b)]` and I'd like to aggregate all the `b`s per `a`, into a `[a,[b]]`. I though something like `fromList` or `foldMap` might help but my aggregate is not the same type as the values. How should I be thinking about this? |
| 23:50:48 | <mreh> | Anyway, the code compiles, my work is done... |
| 23:50:49 | <mreh> | gn |
| 23:51:11 | <mreh> | :t partition |
| 23:51:11 | × | arkeet quits (~arkeet@moriya.ca) (Ping timeout: 245 seconds) |
| 23:51:12 | <lambdabot> | (a -> Bool) -> [a] -> ([a], [a]) |
| 23:51:28 | <mreh> | Hmm, no |
| 23:52:16 | <maplike> | same issue - - probably a SemiGroup thing :) |
| 23:52:32 | <mreh> | maplike: I would fold over a Map personally |
| 23:52:58 | × | max22- quits (~maxime@2a01cb0883359800f9d5861d99da2e2e.ipv6.abo.wanadoo.fr) (Remote host closed the connection) |
| 23:53:21 | <maplike> | ... still need to create the Map (that is why I looked at fromList) |
| 23:54:14 | <jackdk> | https://hackage.haskell.org/package/containers-0.6.4.1/docs/Data-Map-Lazy.html#v:fromListWith would be the simple choice |
| 23:54:28 | <mreh> | fold the list into a Map a [(a, b)] and then `fmap snd` |
| 23:54:31 | <maplike> | I think I tried that one too |
| 23:55:42 | <mreh> | [a,[b]] looks like a heterogenous list to me |
| 23:55:56 | <jackdk> | I assumed it was a typo of `[(a, [b])]` |
| 23:56:18 | <maplike> | no |
| 23:56:33 | <maplike> | otherwise there'd be plenty of choices |
| 23:56:48 | <geekosaur> | casn you assign a type to this [a,[b]] ? |
| 23:57:03 | <mreh> | sure a = [b] |
| 23:57:26 | → | lavaman joins (~lavaman@98.38.249.169) |
| 23:57:41 | <maplike> | think [Country, Language], for example |
| 23:57:44 | <mreh> | but I don't think that's what maplike wants |
| 23:58:02 | <maplike> | and, some coutries have multiple languages, but Language is not a monoid |
| 23:58:10 | <mreh> | maplike: are Country and Language different types? |
| 23:58:13 | <maplike> | yes |
| 23:58:30 | <geekosaur> | you cannot have such a list, is the point we're trying to make |
| 23:58:42 | <mreh> | I'm off to bed ;) |
| 23:58:46 | <maplike> | it seems that in Haskell, that data-structure is not a good fit for the behaviours I would want |
| 23:58:56 | <maplike> | really?! |
| 23:59:01 | <geekosaur> | lists are collections of all one type |
| 23:59:08 | <mreh> | it's 12am |
| 23:59:10 | <mreh> | bye! |
| 23:59:13 | <geekosaur> | > [1,'A'] |
| 23:59:15 | <lambdabot> | error: |
| 23:59:15 | <lambdabot> | • No instance for (Num Char) arising from the literal ‘1’ |
| 23:59:15 | <lambdabot> | • In the expression: 1 |
| 23:59:24 | <geekosaur> | hm, not the best example |
| 23:59:24 | × | mreh quits (~matthew@host81-157-195-163.range81-157.btcentralplus.com) (Quit: leaving) |
| 23:59:25 | <maplike> | thanks mreh |
| 23:59:31 | <geekosaur> | > [1::Int,'A'] |
| 23:59:33 | <lambdabot> | error: |
| 23:59:33 | <lambdabot> | • Couldn't match expected type ‘Int’ with actual type ‘Char’ |
| 23:59:33 | <lambdabot> | • In the expression: 'A' |
| 23:59:37 | <maplike> | I see |
| 23:59:59 | <maplike> | it is a typo, the elements are tuples |
All times are in UTC on 2021-11-28.