2024/05/31

Newest at the top

2024-05-31 18:45:10 +0200superbil(~superbil@1-34-176-171.hinet-ip.hinet.net)
2024-05-31 18:44:48 +0200Sgeo(~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 +0200fireking04(~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 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f)
2024-05-31 18:35:51 +0200andrei_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 +0200sord937_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 +0200superbil(~superbil@1-34-176-171.hinet-ip.hinet.net) (Ping timeout: 265 seconds)
2024-05-31 18:31:48 +0200sord937_(~sord937@gateway/tor-sasl/sord937)
2024-05-31 18:31:18 +0200kuribas(~user@ip-188-118-57-242.reverse.destiny.be) (Remote host closed the connection)
2024-05-31 18:30:07 +0200andrewboltachev(~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 +0200chele(~chele@user/chele) (Remote host closed the connection)
2024-05-31 18:15:54 +0200paddymahoney(~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 +0200andrei_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 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f) (Remote host closed the connection)
2024-05-31 18:11:59 +0200econo_(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 +0200yin(~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:
2024-05-31 18:08:23 +0200raehik(~raehik@rdng-25-b2-v4wan-169990-cust1344.vm39.cable.virginm.net) (Ping timeout: 264 seconds)
2024-05-31 18:07:16 +0200 <lxsameer> does it make sense
2024-05-31 18:07:12 +0200 <lxsameer> ncf: since you're nice to help me, could you please have a look at this. https://play.haskell.org/saved/3LJ34iTG
2024-05-31 18:06:08 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f)
2024-05-31 18:05:50 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f) (Remote host closed the connection)
2024-05-31 18:01:27 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:66f8:a011:89:520f)
2024-05-31 18:01:03 +0200Tuplanolla(~Tuplanoll@91-159-69-59.elisa-laajakaista.fi)
2024-05-31 18:00:03 +0200 <EvanR> dyslexia ruined it
2024-05-31 17:59:59 +0200 <lambdabot> "abcd"
2024-05-31 17:59:57 +0200 <raehik> > ['a'..'d']
2024-05-31 17:59:04 +0200 <EvanR> dbca