Newest at the top
2024-05-31 18:50:53 +0200 | <geekosaur> | it's usually optimized away since they're very simple wrappers |
2024-05-31 18:50:16 +0200 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2024-05-31 18:50:15 +0200 | <andrewboltachev> | Is using StateT/ReaderT fast? Or that's not how people handle that |
2024-05-31 18:49:21 +0200 | <geekosaur> | although exponential is more common |
2024-05-31 18:49:04 +0200 | <geekosaur> | algorithm also matters, if you've accidentally done something like Ackermann it'll really suck with large inputs |
2024-05-31 18:48:32 +0200 | euleritian | (~euleritia@dynamic-176-000-194-148.176.0.pool.telefonica.de) |
2024-05-31 18:48:24 +0200 | <andrewboltachev> | wow I don't have to use '@' sorry |
2024-05-31 18:48:13 +0200 | zmt00 | (~zmt00@user/zmt00) |
2024-05-31 18:47:50 +0200 | <lambdabot> | Unknown command, try @list |
2024-05-31 18:47:50 +0200 | <andrewboltachev> | @geekosaur: yes. might be! I have a tree-like data structure. When I have array of 16 (big) items, and process one by one, it handles very quickly. But 16 items together in an array, and wrapped in another thing (I use Vector) just hangs |
2024-05-31 18:47:37 +0200 | euleritian | (~euleritia@77.22.252.56) (Ping timeout: 272 seconds) |
2024-05-31 18:45:10 +0200 | superbil | (~superbil@1-34-176-171.hinet-ip.hinet.net) |
2024-05-31 18:44:48 +0200 | Sgeo | (~Sgeo@user/sgeo) |
2024-05-31 18:44:19 +0200 | <geekosaur> | which is likely if you're running it in ghci |
2024-05-31 18:44:09 +0200 | <geekosaur> | that, or you're just very unoptimized |
2024-05-31 18:42:59 +0200 | <geekosaur> | that is, they appear to have data dependencies that might not exist, leading to excessive recomputation? |
2024-05-31 18:42:38 +0200 | <geekosaur> | although your problem sounds more like it's reprocessing stuff, which may mean you have code that's being interpreted as functions |
2024-05-31 18:42:35 +0200 | <lambdabot> | https://wiki.haskell.org/Learning_Haskell |
2024-05-31 18:42:35 +0200 | <andrewboltachev> | @Leary thanks. Will try |
2024-05-31 18:40:34 +0200 | <Leary> | andrewboltachev: I don't know about memory limits, but code interpreted by ghci isn't optimised. If you actually compile the code with -O and run the binary, it should execute many times faster and will likely use less memory too. |
2024-05-31 18:39:51 +0200 | fireking04 | (~user@112.206.71.35) |
2024-05-31 18:37:28 +0200 | <lxsameer> | EvanR: my aim was to replace Env in my test env with a mock |
2024-05-31 18:36:08 +0200 | andrei_n | (~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f) |
2024-05-31 18:35:51 +0200 | andrei_n | (~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f) (Remote host closed the connection) |
2024-05-31 18:35:41 +0200 | <andrewboltachev> | I run "stack ghci" and then "main" (or other function) there. Can that be true? |
2024-05-31 18:35:41 +0200 | <andrewboltachev> | Hello. I'm trying to use a Haskell project of mine to handle some decently big amount of data (source code tree). The program either hangs or runs very slowly at cretain point. I was trying very different example, but it seems that when pieces of data become reasonably small it work fine. So there's (likely) no endless resursion going on. I've looked at htop program and have strong impression that might be a limit of 3.5Gb memory usage. |
2024-05-31 18:34:34 +0200 | sord937_ | sord937 |
2024-05-31 18:34:34 +0200 | <EvanR> | fcustom = field1 |
2024-05-31 18:34:22 +0200 | <EvanR> | you could just make a function which accesses the field in the record if you want a different name |
2024-05-31 18:34:01 +0200 | <EvanR> | a way to rename the fields? |
2024-05-31 18:33:46 +0200 | <EvanR> | I'm not sure what you are accomplishing with that class in the first place, it is sort of acting like your record is... a record which it already is |
2024-05-31 18:33:20 +0200 | superbil | (~superbil@1-34-176-171.hinet-ip.hinet.net) (Ping timeout: 265 seconds) |
2024-05-31 18:31:48 +0200 | sord937_ | (~sord937@gateway/tor-sasl/sord937) |
2024-05-31 18:31:18 +0200 | kuribas | (~user@ip-188-118-57-242.reverse.destiny.be) (Remote host closed the connection) |
2024-05-31 18:30:07 +0200 | andrewboltachev | (~andrey@178.141.226.53) |
2024-05-31 18:26:37 +0200 | <lxsameer> | EvanR: is there any better option than using the Environment class here? what about the Lens library? |
2024-05-31 18:23:34 +0200 | chele | (~chele@user/chele) (Remote host closed the connection) |
2024-05-31 18:15:54 +0200 | paddymahoney | (~paddymaho@pool-99-250-26-190.cpe.net.cable.rogers.com) |
2024-05-31 18:13:08 +0200 | <lxsameer> | EvanR: ahhh got it, thank you |
2024-05-31 18:12:38 +0200 | andrei_n | (~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f) |
2024-05-31 18:12:24 +0200 | <EvanR> | or even if the environment is not a literal record but comes with a set of views |
2024-05-31 18:12:20 +0200 | andrei_n | (~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f) (Remote host closed the connection) |
2024-05-31 18:11:59 +0200 | econo_ | (uid147250@id-147250.tinside.irccloud.com) |
2024-05-31 18:11:44 +0200 | <EvanR> | when the environment is a dumb record of stuff it saves a step |
2024-05-31 18:11:16 +0200 | yin | (~yin@user/zero) |
2024-05-31 18:11:07 +0200 | <lxsameer> | ah instead of ask in the f4 to grab the counter directly. right? |
2024-05-31 18:10:06 +0200 | <EvanR> | e.g. asks getCounter |
2024-05-31 18:09:46 +0200 | <lambdabot> | MonadReader r m => (r -> a) -> m a |
2024-05-31 18:09:44 +0200 | <EvanR> | :t asks |
2024-05-31 18:09:43 +0200 | <EvanR> | you might also like: |