Sender | Message | Time |
---|---|---|
25 Apr 2024 | ||
geekosaur | strictness isn't what I'm after here. size and location of pointers | 14:40:15 |
geekosaur | the GC information | 14:40:23 |
Bowuigi | The C FFI might have that, unsure though | 14:41:39 |
zeroid | My Haskell-learning of today. I am 63 years "old". When I play in ghci I feel like 16 or even younger (under 10). runState ((,) <$> (get >>= put . succ >> return "hello" ) <*> (get >>= put . negate >> return "applicative")) 3 I wish we've had Haskell when in school. | 17:04:37 |
zeroid | * I am 63 years "old". When I play in ghci I feel like 16 or even younger (under 10). My Haskell-learning of today. runState ((,) <$> (get >>= put . succ >> return "hello" ) <*> (get >>= put . negate >> return "applicative")) 3 I wish we've had Haskell when in school. | 17:06:37 |
Sean | Well then programming was a lot harder when you were 10 in general | 17:06:49 |
zeroid | Haskell is not functional programming . Haskell is time-travelling and "fountain of youth" ("Jungbrunnen" in german). 😅 | 17:10:49 |
zeroid | Some "improvement" / progress ... runState (((++) . (++ " wonderfull Haskell ")) <$> (get >>= put . succ >> return "hello" ) <*> (get >>= put . negate >> return "applicative")) 3 | 18:24:47 |
zeroid | * Some "improvement" / progress ...runState (((++) . (++ " wonderfull Haskell ")) <$> (get >>= put . succ >> return "hello" ) <*> (get >>= put . negate >> return "applicative")) 3 | 18:25:21 |
Sean | Definitely better | 18:26:06 |
zeroid | * Some "improvement" / progress ...runState (((++) . (++ " wonderfull Haskell ")) <$> (get >>= put . succ >> return "hello") <*> (get >>= put . negate >> return "applicative")) 3 | 18:33:30 |
Alex | In reply to @zeroidone:matrix.org Some tips:
Applied: | 18:37:25 |
Alex | In reply to @zeroidone:matrix.orgThis comment about time-travelling is surprisingly fitting. See http://web.archive.org/web/20190430061601/https://lukepalmer.wordpress.com/2008/08/10/mindfuck-the-reverse-state-monad/ | 18:45:02 |
zeroid | Cooooool. Thxs. ghci spits out some "horrible looking" (=terrifying 😅) error messages when I copy & paste your statement into it, Alex. But ... I guess ... I just need to import some module / library currently not loaded. Allright, let's go and find out why them are hiding from us (me & ghci). 😀 | 18:47:40 |
Alex | Uhh I didn't test it so let me double check. | 18:47:58 |
Alex | It only needs two imports:
| 18:50:52 |
Alex | In reply to @zeroidone:matrix.orgIn case you don't already know about it: Hoogle is a great tool for finding symbols defined in other modules (haskell-language-server can also suggest imports for missing symbols). | 18:54:10 |
zeroid | Done!:m + Data.Functor (my) ghci sends greetings to Alex | 18:58:12 |
zeroid | * Done!:m + Data.Functor (my) ghci sends best greetings to Alex | 18:59:43 |
Alex | Don't be terrified by the length of GHC's error messages: they are rich with information. Only the first line of an error message is truly essential. | 19:00:02 |
zeroid | Alex, the "problem" is not GHC's (error) messages. The problem is that I am an analphabet with respect to its language. But ... I will and want to master this language. | 19:09:06 |
Alex | Yes, reading them takes some getting used to. That will come with experience. | 19:09:29 |
zeroid | In reply to @alex:tunstall.xyzJust opened the link. "Mindfuck: The Reverse State Monad" ??? Definitely something I will look into tomorrow. Thxs. | 19:15:41 |
Alex | In reply to @zeroidone:matrix.orgIf after reading it you find yourself in need of a more thorough explanation of how reverse state works, you may want to read this detailed blog post about time travelling state. | 19:22:01 |
geekosaur | https://math.andrej.com/2007/09/28/seemingly-impossible-functional-programs/ is another good one, although it's not about reverse state per se | 20:26:32 |
geekosaur | https://github.com/quchen/articles/blob/master/loeb-moeb.md is another fun one, if you're looking for "impossible" data/control flow | 21:19:53 |
zeroid | zeroid sends best greetings to geekosaur. | 22:01:46 |
jecxjo changed their profile picture. | 22:38:40 | |
tzlil changed their profile picture. | 22:52:43 | |
rupalibangla_rahat joined the room. | 23:43:48 |