Logs: freenode/#haskell
| 2021-04-06 16:25:24 | <tomsmeding> | yeah making the bytestring _explicitly_ streaming instead of only implicitly via laziness is probably the way out |
| 2021-04-06 16:25:45 | <maerwald> | and streamly interacts well with bytestring, so it can be done incrementally |
| 2021-04-06 16:26:07 | <dmj`> | tomsmeding: main = do { [n] <- fmap read <$> getArgs; let xs = [1..n]; print (sum xs / fromIntegral (length xs)) } |
| 2021-04-06 16:26:12 | <dmj`> | tomsmeding: that will OOM your process for large n |
| 2021-04-06 16:26:45 | × | jpds quits (~jpds@gateway/tor-sasl/jpds) (Ping timeout: 240 seconds) |
| 2021-04-06 16:27:09 | <dmj`> | tomsmeding: I don't think inlining can save you here |
| 2021-04-06 16:27:26 | × | Sornaensis quits (~Sornaensi@077213203030.dynamic.telenor.dk) (Ping timeout: 240 seconds) |
| 2021-04-06 16:28:47 | × | heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection) |
| 2021-04-06 16:29:04 | <dmj`> | tomsmeding: running with +RTS -s -RTS will be like 0% productivity |
| 2021-04-06 16:30:41 | × | MidAutumnHotaru quits (~MidAutumn@unaffiliated/midautumnhotaru) (Quit: Quit 啾) |
| 2021-04-06 16:31:21 | → | MidAutumnHotaru joins (~MidAutumn@unaffiliated/midautumnhotaru) |
| 2021-04-06 16:32:46 | → | alx741 joins (~alx741@181.196.68.238) |
| 2021-04-06 16:33:41 | → | heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-04-06 16:34:38 | × | MidAutumnHotaru quits (~MidAutumn@unaffiliated/midautumnhotaru) (Client Quit) |
| 2021-04-06 16:35:43 | → | MidAutumnHotaru joins (~MidAutumn@unaffiliated/midautumnhotaru) |
| 2021-04-06 16:37:18 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-04-06 16:37:41 | × | mkDoku quits (~TheMule@aftr-37-201-195-134.unity-media.net) (Ping timeout: 240 seconds) |
| 2021-04-06 16:37:50 | → | geekosaur joins (82650c7a@130.101.12.122) |
| 2021-04-06 16:38:51 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 2021-04-06 16:39:08 | <tomsmeding> | dmj`: inlining + horizontal fusion can fix that because it yields the same as your handwritten foldr |
| 2021-04-06 16:39:08 | → | howdoi joins (uid224@gateway/web/irccloud.com/x-unpvrllwptrnqqhb) |
| 2021-04-06 16:39:30 | <tomsmeding> | ghc does the inlining but not the hor. fusion |
| 2021-04-06 16:41:19 | → | qqqq3 joins (3e1d4450@62.29.68.80) |
| 2021-04-06 16:42:39 | × | zyklotomic quits (~ethan@unaffiliated/chocopuff) (Remote host closed the connection) |
| 2021-04-06 16:42:41 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 260 seconds) |
| 2021-04-06 16:43:05 | → | zyklotomic joins (~ethan@66.154.104.2) |
| 2021-04-06 16:43:42 | <qqqq3> | Hello everyone, im faced with this error https://paste.tomsmeding.com/siTshGL1. Can someone explain this to me ? |
| 2021-04-06 16:44:24 | → | jpds joins (~jpds@gateway/tor-sasl/jpds) |
| 2021-04-06 16:45:09 | × | xourt quits (d4c620ea@212-198-32-234.rev.numericable.fr) (Quit: Connection closed) |
| 2021-04-06 16:45:34 | <geekosaur> | what were you expecting (xs "-") to do? |
| 2021-04-06 16:46:09 | <geekosaur> | it's complaining because it expects xs to be a function, since it's applied to a string argument, but it's not |
| 2021-04-06 16:46:37 | <qqqq3> | how can i spesify my input to be char? |
| 2021-04-06 16:47:45 | <dcbdan> | '-' is a Char, "-" == ['-'] is a String |
| 2021-04-06 16:48:21 | <qqqq3> | so if i do a function like this test 'x' = x |
| 2021-04-06 16:48:29 | <qqqq3> | would the test function only expect chars ? |
| 2021-04-06 16:49:13 | <joel135> | :t \x -> 'x' == x |
| 2021-04-06 16:49:14 | <lambdabot> | Char -> Bool |
| 2021-04-06 16:49:25 | <geekosaur> | yes |
| 2021-04-06 16:49:37 | <qqqq3> | Thanks everyone |
| 2021-04-06 16:50:06 | × | zaquest quits (~notzaques@5.128.210.178) (Read error: Connection reset by peer) |
| 2021-04-06 16:50:34 | → | zaquest joins (~notzaques@5.128.210.178) |
| 2021-04-06 16:51:40 | <fresheyeball> | error, called at compiler/utils/Maybes.hs:55:27 in ghc:Maybes |
| 2021-04-06 16:51:42 | <fresheyeball> | expectJust, called at compiler/ghci/Linker.hs:719:28 in ghc:Linker |
| 2021-04-06 16:51:45 | <fresheyeball> | how can I begin debugging this? |
| 2021-04-06 16:51:50 | <fresheyeball> | I have no idea how to begin |
| 2021-04-06 16:51:59 | <fresheyeball> | I think this is an issue with backpack and TH |
| 2021-04-06 16:54:47 | × | ericsagn1 quits (~ericsagne@2405:6580:0:5100:3c1:b586:27b7:7153) (Ping timeout: 260 seconds) |
| 2021-04-06 16:55:24 | → | esp32_prog joins (~esp32_pro@91.193.4.202) |
| 2021-04-06 16:55:44 | × | cafce25 quits (~cafce25@ipbcc3009d.dynamic.kabel-deutschland.de) (Remote host closed the connection) |
| 2021-04-06 16:55:54 | <dcbdan> | I don't know. Could it be that a Nothing is being passed in incorrectly? |
| 2021-04-06 16:56:09 | → | rdivyanshu joins (uid322626@gateway/web/irccloud.com/x-gwsdixqwmnlinkah) |
| 2021-04-06 16:56:37 | <geekosaur> | that error is buried somewhere inside of ghc itself |
| 2021-04-06 16:56:43 | → | haskellstudent joins (~quassel@213-225-9-45.nat.highway.a1.net) |
| 2021-04-06 16:59:40 | × | heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection) |
| 2021-04-06 17:00:29 | → | Tuplanolla joins (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi) |
| 2021-04-06 17:01:00 | → | aerona joins (~aerona@2600:6c54:4600:f300:17d9:d4ff:325b:67dc) |
| 2021-04-06 17:01:09 | → | kritzefitz joins (~kritzefit@212.86.56.80) |
| 2021-04-06 17:02:29 | → | cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) |
| 2021-04-06 17:04:31 | → | Enrico63 joins (520efe97@cpc92708-cmbg20-2-0-cust150.5-4.cable.virginm.net) |
| 2021-04-06 17:04:43 | × | mupf quits (~micha@v22017094964653601.ultrasrv.de) (Quit: WeeChat 3.0) |
| 2021-04-06 17:05:11 | <Enrico63> | Hello there, can anybody help me get started with http://mightybyte.github.io/monad-challenges/ |
| 2021-04-06 17:05:12 | <Enrico63> | ? |
| 2021-04-06 17:05:15 | → | mupf joins (~micha@v22017094964653601.ultrasrv.de) |
| 2021-04-06 17:05:18 | × | qqqq3 quits (3e1d4450@62.29.68.80) (Quit: Connection closed) |
| 2021-04-06 17:05:26 | <fresheyeball> | Enrico63: what do you need help with? |
| 2021-04-06 17:06:17 | <Enrico63> | I've posted a message on the github page: https://github.com/mightybyte/monad-challenges/issues/81 . In short, when I do `ghci Set1.hs` I get the error `ghc: unexpected RTS argument: Set1.hs` |
| 2021-04-06 17:06:21 | → | notzmv joins (~zmv@unaffiliated/zmv) |
| 2021-04-06 17:07:48 | <Enrico63> | fresheyeball, I have to mention that following the instruction I run `cabal install` in the directory of the repo. Then when I found that issue on the github page, I also run `cabal install --package-env /PATH_TO_YOUR_FOLDER --lib` (with `/PATH_TO_YOUR_FOLDER` changed to `$PWD`, and I was in the repo's dir). |
| 2021-04-06 17:07:54 | → | ericsagn1 joins (~ericsagne@2405:6580:0:5100:a729:cf9f:aaab:a664) |
| 2021-04-06 17:08:45 | → | mkDoku joins (~TheMule@aftr-37-201-195-134.unity-media.net) |
| 2021-04-06 17:09:38 | → | heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-04-06 17:09:46 | × | solvr quits (57e3c46d@87.227.196.109) (Quit: Connection closed) |
| 2021-04-06 17:10:13 | × | heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection) |
| 2021-04-06 17:10:29 | → | heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-04-06 17:10:58 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds) |
| 2021-04-06 17:12:11 | → | molehillish joins (~molehilli@ip98-165-87-166.ph.ph.cox.net) |
| 2021-04-06 17:12:16 | × | molehillish quits (~molehilli@ip98-165-87-166.ph.ph.cox.net) (Client Quit) |
| 2021-04-06 17:12:27 | <joel135> | https://hoogle.haskell.org/?hoogle=Application |
| 2021-04-06 17:12:56 | <joel135> | There are no parentheses in the second entry! "type Application = Request -> Response -> IO ResponseReceived -> IO ResponseReceived" |
| 2021-04-06 17:14:33 | <monochrom> | Are they even remotely related? |
| 2021-04-06 17:14:51 | <geekosaur> | the parentheses are in the originals, if you click through |
| 2021-04-06 17:15:01 | <joel135> | yes they are there when i click |
| 2021-04-06 17:15:11 | <Enrico63> | Hello there, can anybody help me get started with http://mightybyte.github.io/monad-challenges/ ? I've posted a message on the github page: https://github.com/mightybyte/monad-challenges/issues/81 . In short, when I do `ghci Set1.hs` I get the error `ghc: unexpected RTS argument: Set1.hs`. I have to mention that following the instruction I run |
| 2021-04-06 17:15:11 | <Enrico63> | `cabal install` in the directory of the repo. Then when I found that issue on the github page, I also run `cabal install --package-env /PATH_TO_YOUR_FOLDER --lib` (with `/PATH_TO_YOUR_FOLDER` changed to `$PWD`, and I was in the repo's dir). |
| 2021-04-06 17:15:57 | <geekosaur> | Enrico63, do you have an alias for ghci, perhaps? |
| 2021-04-06 17:16:38 | <Enrico63> | Yes, `alias ghci='ghci +RTS -M100M -c30'`. I forgot about that. And I don't even know why I have it :/ |
| 2021-04-06 17:16:49 | <Enrico63> | i suppose `command ghci` will be enough..? |
| 2021-04-06 17:16:59 | <Enrico63> | yes |
| 2021-04-06 17:16:59 | <geekosaur> | yes |
| 2021-04-06 17:17:04 | <monochrom> | Well that's easy. ghci='ghci +RTS -M100M -c30 -RTS' |
| 2021-04-06 17:17:06 | <geekosaur> | or add '-RTS' to the end of that aliass |
| 2021-04-06 17:17:32 | <monochrom> | This is why remote tech support is impossible. |
| 2021-04-06 17:18:11 | <Enrico63> | monochrom, what? Forgetting we have some settings/aliases? |
| 2021-04-06 17:18:17 | <monochrom> | Yes. |
| 2021-04-06 17:18:29 | × | bahamas quits (~lucian@unaffiliated/bahamas) (Quit: leaving) |
| 2021-04-06 17:18:33 | <Enrico63> | Eh, that happens when we're new to some things, I suppose |
| 2021-04-06 17:19:12 | → | ADG1089 joins (~aditya@122.163.139.43) |
| 2021-04-06 17:19:15 | → | solvr joins (57e3c46d@87.227.196.109) |
| 2021-04-06 17:19:23 | <Enrico63> | If that alias is there, it's for some reason I thought was good, at that time. I vaguely remember ghci using a load of RAM |
| 2021-04-06 17:19:54 | <Enrico63> | However, it seems geekosaur makes impossible things, then :D |
All times are in UTC.