Logs: freenode/#haskell
| 2021-05-10 11:50:26 | <dminuoso> | (to be precise, cabal is a sat solver) |
| 2021-05-10 11:50:27 | hackage | vcs-ignore 0.0.1.0 - Library for handling files ignored by VCS systems. https://hackage.haskell.org/package/vcs-ignore-0.0.1.0 (xwinus) |
| 2021-05-10 11:50:29 | × | tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Remote host closed the connection) |
| 2021-05-10 11:51:56 | → | fendor joins (~fendor@91.141.0.25.wireless.dyn.drei.com) |
| 2021-05-10 11:52:14 | <tomsmeding> | dminuoso: given that safinaskar wrote "then actually build, if build fails, ...", I think they mean a tool that not only checks the version bounds, but actually tries to build a package using the chosen plan and backtracks if that fails |
| 2021-05-10 11:52:49 | <tomsmeding> | I don't think such a tool exists, but if it would exist it would be terribly slow, since there are usually many many possible version combinations |
| 2021-05-10 11:53:01 | <dminuoso> | ah |
| 2021-05-10 11:53:02 | <safinaskar> | hpc: "hackage's matrix thing" - can it help me to build particular package? |
| 2021-05-10 11:53:45 | <tomsmeding> | safinaskar: if you happen to know that a particular version of some dependency would make the build work, you can use the --constraint argument of 'cabal build' to add an extra version constraint to the solver |
| 2021-05-10 11:54:17 | <safinaskar> | dminuoso: "If its just the versions from hackage, then again, that's exactly what cabal does" - i want to build package with possibly incorrect bounds. i. e. if "normal" build fails, i want some automatic tool to try to pick some dependency with earlier version |
| 2021-05-10 11:54:18 | <tomsmeding> | safinaskar: https://matrix.hackage.haskell.org/ tries to build packages with a number of different ghc versions |
| 2021-05-10 11:54:28 | <tomsmeding> | you may want to check out your package to see if it has a successful build listed |
| 2021-05-10 11:55:20 | → | geowiesnot joins (~user@87-89-181-157.abo.bbox.fr) |
| 2021-05-10 11:55:56 | <safinaskar> | tomsmeding: "if you happen to know that a particular version of some dependency would make the build work" - i don't know any good combination |
| 2021-05-10 11:56:00 | <tomsmeding> | if the correct set of dependency versions is really outside package-specified bounds, i.e. the bounds are really _incorrect_ (unlikely, since presumably it worked at some point in the past), then you have no choice except building it manually, locally; I'm not sure if there are guides on that, but we could help if this becomes necessary |
| 2021-05-10 11:56:38 | <tomsmeding> | safinaskar: even if you don't know a good combination, you can use that '--constraint' argument to experiment :) |
| 2021-05-10 11:56:42 | <tomsmeding> | which package are you talking about |
| 2021-05-10 11:57:11 | → | rodriga joins (~quassel@134.204.25.66) |
| 2021-05-10 11:57:12 | → | boxscape joins (54a350dc@gateway/web/cgi-irc/kiwiirc.com/ip.84.163.80.220) |
| 2021-05-10 11:57:14 | → | urodna joins (~urodna@unaffiliated/urodna) |
| 2021-05-10 11:58:57 | <safinaskar> | tomsmeding: "https://matrix.hackage.haskell.org/ tries to build packages with a number of different ghc versions" - wow, thanks |
| 2021-05-10 11:59:17 | <safinaskar> | tomsmeding: i need package "syntax". and i actually see some good combinations in table |
| 2021-05-10 11:59:22 | <safinaskar> | tomsmeding: thanks, i will try them |
| 2021-05-10 11:59:34 | <tomsmeding> | safinaskar: mind that what it does is start with a number of different ghc versions, then solve the bounds using cabal normally, then try to build -- it doesn't do this after-build-fail backtracking that you suggested |
| 2021-05-10 11:59:41 | <tomsmeding> | nice! |
| 2021-05-10 12:00:19 | <tomsmeding> | safinaskar: hm, only a very old version of that package (0.1.1.0) seems to build |
| 2021-05-10 12:00:36 | <tomsmeding> | the "OK (no-ip)" isn't success, it means no install plan was found |
| 2021-05-10 12:01:59 | × | m_shiraeeshi quits (~shiraeesh@46.34.206.81) (Ping timeout: 265 seconds) |
| 2021-05-10 12:02:22 | <tomsmeding> | hpc: I can't seem to load a build log for a failed build on the matrix builder; is that expected? (e.g. https://matrix.hackage.haskell.org/#/package/syntax/1.0.0.0/ghc-8.4.4@1595320698 ) |
| 2021-05-10 12:03:28 | → | heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-05-10 12:03:29 | <hpc> | maybe? |
| 2021-05-10 12:04:35 | × | fendor quits (~fendor@91.141.0.25.wireless.dyn.drei.com) (Remote host closed the connection) |
| 2021-05-10 12:04:57 | hackage | nvfetcher 0.1.0.0 - Generate nix sources expr for the latest version of packages https://hackage.haskell.org/package/nvfetcher-0.1.0.0 (berberman) |
| 2021-05-10 12:05:02 | → | drbean_ joins (~drbean@TC210-63-209-88.static.apol.com.tw) |
| 2021-05-10 12:05:22 | → | geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com) |
| 2021-05-10 12:05:34 | <tomsmeding> | hm the corresponding server api response doesn't include a log, perhaps that's why (successful: https://matrix.hackage.haskell.org/api/v2/units/6061cd13-7a63-5383-939f-e4241baee04e ; failing: https://matrix.hackage.haskell.org/api/v2/units/9e955ece-52d8-9803-7636-2399b170fb29 ) |
| 2021-05-10 12:06:07 | → | fendor joins (~fendor@91.141.0.25.wireless.dyn.drei.com) |
| 2021-05-10 12:07:46 | × | heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds) |
| 2021-05-10 12:07:47 | <tomsmeding> | ah that package is from pre-MonadFail |
| 2021-05-10 12:09:06 | → | tromp joins (~tromp@dhcp-077-249-230-040.chello.nl) |
| 2021-05-10 12:10:07 | → | machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca) |
| 2021-05-10 12:10:53 | <siers> | I'd like to make a work queue (I guess channel) for scheduling computations on multiple processors. I can't just run forkIO willy nilly, because I run out of ram. What should I make it out of? |
| 2021-05-10 12:11:20 | → | EvilMagix joins (~aVikingTr@2001:8003:340d:d00:b2de:b98:7a93:b0ea) |
| 2021-05-10 12:11:36 | <hpc> | siers: use a Chan and a fixed number of threads maybe? |
| 2021-05-10 12:12:14 | <hpc> | you can feed it data for what computations to run and have each thread in a loop |
| 2021-05-10 12:12:33 | <hpc> | or you can even feed it the actions themselves, and have it be a Chan (IO ()) or similar |
| 2021-05-10 12:14:53 | <siers> | ok, then I need the "process this list (foreverM (readChan chan)) on N processors and start it on a new one, when possible" part |
| 2021-05-10 12:15:44 | ← | safinaskar parts (~user@109-252-90-136.nat.spd-mgts.ru) () |
| 2021-05-10 12:16:16 | × | cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.1) |
| 2021-05-10 12:16:19 | → | pagnol joins (~user@014198154145.ctinets.com) |
| 2021-05-10 12:16:19 | <siers> | this might have something like that, but I do not really understand how to use it https://hackage.haskell.org/package/parallel |
| 2021-05-10 12:17:28 | × | star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Ping timeout: 268 seconds) |
| 2021-05-10 12:17:50 | → | nineonine joins (~nineonine@2604:3d08:7783:f200:7199:d608:f167:a45a) |
| 2021-05-10 12:18:10 | × | todda7 quits (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) (Remote host closed the connection) |
| 2021-05-10 12:18:31 | → | todda7 joins (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) |
| 2021-05-10 12:18:54 | × | frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 265 seconds) |
| 2021-05-10 12:19:46 | → | cfricke joins (~cfricke@unaffiliated/cfricke) |
| 2021-05-10 12:19:51 | → | ddellaco_ joins (~ddellacos@ool-44c73afa.dyn.optonline.net) |
| 2021-05-10 12:21:01 | → | renzhi joins (~renzhi@2607:fa49:6500:bc00::e7b) |
| 2021-05-10 12:22:43 | × | nineonine quits (~nineonine@2604:3d08:7783:f200:7199:d608:f167:a45a) (Ping timeout: 276 seconds) |
| 2021-05-10 12:24:26 | × | ddellaco_ quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 260 seconds) |
| 2021-05-10 12:25:11 | → | star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) |
| 2021-05-10 12:26:30 | <pagnol> | Anyone familiar with http-client? I'm getting an exception even though the server responded with 200 and I can't figure out the reason |
| 2021-05-10 12:27:36 | → | nineonine joins (~nineonine@2604:3d08:7783:f200:7199:d608:f167:a45a) |
| 2021-05-10 12:27:47 | × | CrazyPython quits (~crazypyth@98.122.164.118) () |
| 2021-05-10 12:30:53 | → | tsaka__ joins (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) |
| 2021-05-10 12:33:44 | × | todda7 quits (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) (Remote host closed the connection) |
| 2021-05-10 12:34:59 | × | star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Excess Flood) |
| 2021-05-10 12:35:00 | <siers> | not sure how to write such a strategy with parallel |
| 2021-05-10 12:35:40 | × | tsaka__ quits (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) (Excess Flood) |
| 2021-05-10 12:36:09 | → | tsaka__ joins (~torstein@2a02:587:3724:1a75:aca:df22:9d82:969f) |
| 2021-05-10 12:37:24 | × | timCF quits (~i.tkachuk@200-149-20-81.sta.estpak.ee) (Quit: leaving) |
| 2021-05-10 12:38:56 | → | star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) |
| 2021-05-10 12:40:02 | → | malumore_ joins (~malumore@151.62.127.121) |
| 2021-05-10 12:41:56 | × | olligobber quits (olligobber@gateway/vpn/privateinternetaccess/olligobber) (Ping timeout: 246 seconds) |
| 2021-05-10 12:42:26 | × | malumore quits (~malumore@151.62.127.121) (Ping timeout: 240 seconds) |
| 2021-05-10 12:42:52 | → | Lord_of_Life joins (~Lord@unaffiliated/lord-of-life/x-0885362) |
| 2021-05-10 12:43:37 | → | idhugo joins (~idhugo@80-62-116-231-mobile.dk.customer.tdc.net) |
| 2021-05-10 12:46:36 | × | troydm quits (~troydm@unaffiliated/troydm) (Ping timeout: 260 seconds) |
| 2021-05-10 12:47:25 | × | nineonine quits (~nineonine@2604:3d08:7783:f200:7199:d608:f167:a45a) (Ping timeout: 276 seconds) |
| 2021-05-10 12:48:13 | → | nineonine joins (~nineonine@2604:3d08:7783:f200:5c3d:ae41:1644:7ac) |
| 2021-05-10 12:48:44 | × | star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Excess Flood) |
| 2021-05-10 12:49:57 | × | bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 240 seconds) |
| 2021-05-10 12:49:57 | → | star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) |
| 2021-05-10 12:52:39 | <tomsmeding> | siers: perhaps something like this? parInNThreads nthreads l = concat (withStrategy (parList rpar) (transpose (chunk nthreads l))), where chunk is like in https://hackage.haskell.org/package/parallel-3.2.2.0/docs/src/Control.Parallel.Strategies.html#chunk |
| 2021-05-10 12:52:48 | <tomsmeding> | (untested) |
| 2021-05-10 12:54:21 | × | finn_elija quits (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) (Ping timeout: 240 seconds) |
| 2021-05-10 12:54:46 | → | ddellacosta joins (~ddellacos@ool-44c73afa.dyn.optonline.net) |
| 2021-05-10 12:55:36 | <siers> | @hoogle chunk |
| 2021-05-10 12:55:36 | <lambdabot> | Data.ByteString.Lazy.Internal chunk :: ByteString -> ByteString -> ByteString |
| 2021-05-10 12:55:36 | <lambdabot> | Data.Text.Internal.Lazy chunk :: Text -> Text -> Text |
| 2021-05-10 12:55:36 | <lambdabot> | Text.Megaparsec chunk :: MonadParsec e s m => Tokens s -> m (Tokens s) |
| 2021-05-10 12:56:07 | × | stree quits (~stree@68.36.8.116) (Ping timeout: 265 seconds) |
| 2021-05-10 12:56:18 | <siers> | I understand that you're assuming we have some `chunk' that works the way we expect, ok |
| 2021-05-10 12:56:39 | → | finn_elija joins (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) |
| 2021-05-10 12:56:51 | <siers> | I think haskell's runtime settings also limit the most number of processors it uses, so maybe it's fine to just parList? |
| 2021-05-10 12:57:49 | × | nineonine quits (~nineonine@2604:3d08:7783:f200:5c3d:ae41:1644:7ac) (Ping timeout: 276 seconds) |
| 2021-05-10 12:58:04 | <siers> | tomsmeding, http://sprunge.us/1AYyH3 what the hell? |
| 2021-05-10 12:59:16 | × | ddellacosta quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 252 seconds) |
| 2021-05-10 13:00:06 | <tomsmeding> | siers: what exactly are you trying to show? |
All times are in UTC.