Logs: freenode/#haskell
| 2021-03-03 18:16:15 | × | geekosaur quits (82650c7a@130.101.12.122) (Quit: Connection closed) |
| 2021-03-03 18:16:32 | → | geekosaur joins (82650c7a@130.101.12.122) |
| 2021-03-03 18:16:51 | → | gxt joins (~gxt@gateway/tor-sasl/gxt) |
| 2021-03-03 18:17:30 | <dminuoso> | Plus you can reuse a lot of architecture and optimization ideas from existing compilers, go doesn't really have any novelties to it. |
| 2021-03-03 18:17:57 | → | deviantfero joins (~deviantfe@190.150.27.58) |
| 2021-03-03 18:18:09 | × | boxscape quits (4ff0baf3@gateway/web/cgi-irc/kiwiirc.com/ip.79.240.186.243) (Ping timeout: 256 seconds) |
| 2021-03-03 18:18:10 | → | kenran joins (~kenran@i577BCDB3.versanet.de) |
| 2021-03-03 18:18:43 | × | rajivr quits (uid269651@gateway/web/irccloud.com/x-ayknupbaawowskzf) (Quit: Connection closed for inactivity) |
| 2021-03-03 18:20:38 | × | gxt quits (~gxt@gateway/tor-sasl/gxt) (Client Quit) |
| 2021-03-03 18:21:08 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Quit: WeeChat 3.0) |
| 2021-03-03 18:21:38 | × | coeus quits (~coeus@p200300d0274c930028b50fb1d864e965.dip0.t-ipconnect.de) (Ping timeout: 264 seconds) |
| 2021-03-03 18:22:17 | × | barnowl quits (~barnowl@gateway/tor-sasl/barnowl) (Remote host closed the connection) |
| 2021-03-03 18:22:25 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 2021-03-03 18:22:39 | → | barnowl joins (~barnowl@gateway/tor-sasl/barnowl) |
| 2021-03-03 18:25:20 | × | Guest_88 quits (5619784f@cpc143846-cosh20-2-0-cust78.6-1.cable.virginm.net) (Quit: Ping timeout (120 seconds)) |
| 2021-03-03 18:26:06 | × | kderme quits (4fa758c1@ppp079167088193.access.hol.gr) (Quit: Connection closed) |
| 2021-03-03 18:26:43 | × | fendor quits (~fendor@91.141.0.81.wireless.dyn.drei.com) (Remote host closed the connection) |
| 2021-03-03 18:28:13 | → | stree joins (~stree@68.36.8.116) |
| 2021-03-03 18:28:44 | → | fendor joins (~fendor@91.141.0.81.wireless.dyn.drei.com) |
| 2021-03-03 18:29:35 | → | fendor_ joins (~fendor@91.141.0.81.wireless.dyn.drei.com) |
| 2021-03-03 18:30:00 | × | vgtw quits (~vgtw@gateway/tor-sasl/vgtw) (Remote host closed the connection) |
| 2021-03-03 18:30:29 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 245 seconds) |
| 2021-03-03 18:30:35 | × | heatsink quits (~heatsink@2600:1700:bef1:5e10:dd5f:6f4f:a50:215d) (Remote host closed the connection) |
| 2021-03-03 18:30:37 | × | kenran quits (~kenran@i577BCDB3.versanet.de) (Ping timeout: 276 seconds) |
| 2021-03-03 18:31:22 | × | fendor quits (~fendor@91.141.0.81.wireless.dyn.drei.com) (Remote host closed the connection) |
| 2021-03-03 18:32:21 | → | rayyyy joins (~nanoz@gateway/tor-sasl/nanoz) |
| 2021-03-03 18:32:26 | × | fendor_ quits (~fendor@91.141.0.81.wireless.dyn.drei.com) (Remote host closed the connection) |
| 2021-03-03 18:32:44 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 2021-03-03 18:33:24 | → | apache801 joins (~rishi@wsip-70-168-153-252.oc.oc.cox.net) |
| 2021-03-03 18:33:55 | × | geekosaur quits (82650c7a@130.101.12.122) (Quit: Connection closed) |
| 2021-03-03 18:34:12 | → | geekosaur joins (82650c7a@130.101.12.122) |
| 2021-03-03 18:34:47 | × | terrorjack quits (~terrorjac@ec2-18-162-149-225.ap-east-1.compute.amazonaws.com) (Quit: The Lounge - https://thelounge.chat) |
| 2021-03-03 18:36:38 | × | conal quits (~conal@64.71.133.70) (Ping timeout: 265 seconds) |
| 2021-03-03 18:38:18 | <ezzieyguywuf> | ok, so `cabal install cabal-install` then `cabal unpack diagrama-contrib` cd into the dir amd `cabal test` should reproduce the random-1.2 conflict |
| 2021-03-03 18:38:38 | <ezzieyguywuf> | is this just a non-intended use for cabal? |
| 2021-03-03 18:38:57 | → | coeus joins (~coeus@p200300d027267600bb8cfa912d4fc1ef.dip0.t-ipconnect.de) |
| 2021-03-03 18:38:59 | → | jamm_ joins (~jamm@unaffiliated/jamm) |
| 2021-03-03 18:40:00 | → | conal joins (~conal@192.145.118.103) |
| 2021-03-03 18:40:09 | → | fendor joins (~fendor@91.141.0.81.wireless.dyn.drei.com) |
| 2021-03-03 18:40:17 | <monochrom> | "cabal test" is always an intended use. |
| 2021-03-03 18:40:34 | × | zebrag quits (~inkbottle@aaubervilliers-654-1-83-46.w86-212.abo.wanadoo.fr) (Quit: Konversation terminated!) |
| 2021-03-03 18:40:36 | <monochrom> | But I get cabal-install from ghcup. I don't bother building it. |
| 2021-03-03 18:40:57 | → | zebrag joins (~inkbottle@aaubervilliers-654-1-83-46.w86-212.abo.wanadoo.fr) |
| 2021-03-03 18:41:02 | → | Mrbuck joins (~Mrbuck@gateway/tor-sasl/mrbuck) |
| 2021-03-03 18:41:08 | <sclv> | its possible you have a ghc env file accidentally created by calling `cabal install` |
| 2021-03-03 18:41:10 | × | larryba quits (~bc8134e3@217.29.117.252) (Quit: http://www.okay.uz/) |
| 2021-03-03 18:41:31 | <sclv> | on intermediate versions of cabal-install it created them too frequently even when just installing executables and not libs |
| 2021-03-03 18:41:52 | <sclv> | this is now fixed, but the env file could still be around |
| 2021-03-03 18:42:55 | <maerwald> | `cabal install cabal-install` isn't guaranteed to work (may depend on your GHC etc) |
| 2021-03-03 18:43:26 | × | jamm_ quits (~jamm@unaffiliated/jamm) (Ping timeout: 240 seconds) |
| 2021-03-03 18:44:07 | <monochrom> | But the env file is actively ignored in package contexts and project contexts. Hell I think almost most cabal commands. |
| 2021-03-03 18:44:25 | <monochrom> | s/almost most/almost all/ |
| 2021-03-03 18:44:53 | → | heatsink joins (~heatsink@2600:1700:bef1:5e10:dd5f:6f4f:a50:215d) |
| 2021-03-03 18:45:57 | → | Guest_88 joins (5619784f@cpc143846-cosh20-2-0-cust78.6-1.cable.virginm.net) |
| 2021-03-03 18:47:25 | → | romesrf joins (~romesrf@44.190.189.46.rev.vodafone.pt) |
| 2021-03-03 18:48:05 | × | Mrbuck quits (~Mrbuck@gateway/tor-sasl/mrbuck) (Quit: WeeChat 1.9.1) |
| 2021-03-03 18:48:14 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 265 seconds) |
| 2021-03-03 18:50:10 | <romesrf> | hey all, how would I run a foldl until the value is bigger than x |
| 2021-03-03 18:50:38 | <monochrom> | And then you want it to stop? |
| 2021-03-03 18:50:50 | <monochrom> | I'm afraid foldl doesn't do early stop. |
| 2021-03-03 18:50:51 | <romesrf> | i.e. foldl (+) 1 (listOfPrimes [] 2) : how can i run this until the 'accumulator value' is > 2000000 |
| 2021-03-03 18:51:03 | × | geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds) |
| 2021-03-03 18:51:52 | <romesrf> | listOfPrimes is infinite, so i'm thinking i need an additional construction to stop it midwhile with fold, but i decided to ask since as a beginner i might not be seeing the easier ways |
| 2021-03-03 18:52:05 | <swarmcollective> | romesrf: maybe use: take 2000000 (listOfPrimes [] 2) |
| 2021-03-03 18:52:09 | × | kritzefitz quits (~kritzefit@212.86.56.80) (Ping timeout: 245 seconds) |
| 2021-03-03 18:52:59 | × | knupfer quits (~Thunderbi@i5E86B4BE.versanet.de) (Ping timeout: 245 seconds) |
| 2021-03-03 18:53:01 | <romesrf> | swarmcollective: i had this, but i quit it after 3minutes running :) -> (sum (takeWhile (\x -> x < 2000000) (listOfPrimes [] 2))) + 1 |
| 2021-03-03 18:53:15 | <romesrf> | oh wait |
| 2021-03-03 18:54:09 | <romesrf> | using fold is probably not going to solve my problems :) |
| 2021-03-03 18:54:20 | <swarmcollective> | Oh, you are summing the primes. Sorry, I misread. |
| 2021-03-03 18:54:21 | <romesrf> | at a point i thought the overhead could be because of the long list |
| 2021-03-03 18:54:30 | <romesrf> | swarmcollective: no worries |
| 2021-03-03 18:54:59 | × | CodeAlways quits (uid272474@gateway/web/irccloud.com/x-ubvhdubmvytegxuj) (Quit: Connection closed for inactivity) |
| 2021-03-03 18:55:09 | <monochrom> | Most people's codings of "list of primes" are dog slow. |
| 2021-03-03 18:55:28 | <romesrf> | yeah, i think i might need to finally implement a sieve algorithm |
| 2021-03-03 18:55:38 | × | massma quits (~user@dyn-160-39-62-152.dyn.columbia.edu) (Remote host closed the connection) |
| 2021-03-03 18:57:09 | <romesrf> | this is the correct way to share code right: https://paste.tomsmeding.com/nwpaIRYb |
| 2021-03-03 18:57:32 | <swarmcollective> | That is a correct way. |
| 2021-03-03 18:59:04 | <monochrom> | This adds two quadratic slowdowns on top of division slowdown. |
| 2021-03-03 18:59:27 | <monochrom> | "null xs" takes constant time. "length xs == 0" takes linear time. |
| 2021-03-03 19:00:49 | <romesrf> | monochrom: i laughed out loud reading that ahahahahaaha |
| 2021-03-03 19:01:09 | <romesrf> | beginner mistakes is not understanding the complexities in the things i'm using |
| 2021-03-03 19:01:39 | <romesrf> | null xs, i'll do that optimization |
| 2021-03-03 19:02:08 | × | __minoru__shirae quits (~shiraeesh@109.166.56.89) (Ping timeout: 245 seconds) |
| 2021-03-03 19:02:15 | × | jpds quits (~jpds@gateway/tor-sasl/jpds) (Remote host closed the connection) |
| 2021-03-03 19:02:17 | → | __minoru__shirae joins (~shiraeesh@46.34.206.213) |
| 2021-03-03 19:02:25 | × | deviantfero quits (~deviantfe@190.150.27.58) (Ping timeout: 256 seconds) |
| 2021-03-03 19:02:49 | → | jpds joins (~jpds@gateway/tor-sasl/jpds) |
| 2021-03-03 19:02:59 | × | finn_elija quits (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) (Remote host closed the connection) |
| 2021-03-03 19:03:18 | → | notzmv joins (~zmv@unaffiliated/zmv) |
| 2021-03-03 19:03:26 | × | berberman_ quits (~berberman@unaffiliated/berberman) (Ping timeout: 240 seconds) |
| 2021-03-03 19:03:33 | → | berberman joins (~berberman@unaffiliated/berberman) |
| 2021-03-03 19:03:36 | → | finn_elija joins (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) |
| 2021-03-03 19:03:49 | <Guest_88> | hi I'm a massive noob to Haskell and I'm trying to get the average of 3 integers using from integral. This is what I have so far - `averageThree :: Int -> Int -> Int -> Float |
| 2021-03-03 19:03:49 | <Guest_88> | averageThree a b c = (fromIntegral a + fromIntegral b + fromIntegral c) / 3.0` |
| 2021-03-03 19:04:20 | → | Wuzzy joins (~Wuzzy@p5b0df7c2.dip0.t-ipconnect.de) |
| 2021-03-03 19:04:26 | <Guest_88> | any idea on why this is wrong? |
| 2021-03-03 19:04:57 | <__minoru__shirae> | romesrf: my suggestion is to write a short-circuiting function and then use it with foldr |
| 2021-03-03 19:05:03 | <__minoru__shirae> | if it is possible in this case |
| 2021-03-03 19:05:12 | <tomsmeding> | Guest_88: how is it wrong? |
All times are in UTC.