2024/10/28

Newest at the top

2024-10-28 20:22:06 +0100 <sclv> if you pass a different content type you will get json not html
2024-10-28 20:21:43 +0100 <sclv> the hackage api is restful json and self-documented, the lib to interact with it is wreq or any equivalent
2024-10-28 20:21:42 +0100 <lxsameer> *html
2024-10-28 20:21:37 +0100 <lxsameer> but it only returns http
2024-10-28 20:21:34 +0100 <[exa]> there's a /package/???/dependencies endpoint but that's not API per se, it returns HTML
2024-10-28 20:21:32 +0100 <lxsameer> [exa]: it has the endpoint for it according to https://hackage.haskell.org/api#serverapi
2024-10-28 20:21:16 +0100weary-traveler(~user@user/user363627) user363627
2024-10-28 20:20:33 +0100 <[exa]> ok not sure if that's in hackage API, intuitively I'd say you download and parse the .cabal file
2024-10-28 20:19:02 +0100 <lxsameer> oh so do you know how to get a list of dependencies of a package? given the name of the package only and not a cabal file
2024-10-28 20:18:10 +0100 <[exa]> ah the dependency solver is hardly a part of the API
2024-10-28 20:17:45 +0100 <lxsameer> and hackage-api seems to lack the dependency resolving part
2024-10-28 20:17:17 +0100 <[exa]> :(
2024-10-28 20:16:54 +0100 <lxsameer> [exa]: cabal-install does not export that module as far as I know
2024-10-28 20:16:35 +0100morb(~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 252 seconds)
2024-10-28 20:13:33 +0100sadmax(~user@64.130.91.66)
2024-10-28 20:11:35 +0100sawilagar(~sawilagar@user/sawilagar) sawilagar
2024-10-28 20:10:48 +0100sawilagar(~sawilagar@user/sawilagar) (Remote host closed the connection)
2024-10-28 20:09:35 +0100morb(~morb@pool-108-41-100-120.nycmny.fios.verizon.net)
2024-10-28 20:09:12 +0100 <[exa]> (not at all sure how complete that is. cabal-install pkg has Distribution.Client.xxx modules that might contain interesting stuff too)
2024-10-28 20:07:01 +0100 <[exa]> lxsameer: https://hackage.haskell.org/package/hackage-api ?
2024-10-28 20:03:59 +0100philopsos(~caecilius@user/philopsos) (Quit: Lost terminal)
2024-10-28 20:03:45 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 248 seconds)
2024-10-28 20:03:07 +0100tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-10-28 20:00:38 +0100caconym(~caconym@user/caconym) caconym
2024-10-28 20:00:27 +0100alioguzhan(~Thunderbi@78.173.91.30)
2024-10-28 20:00:01 +0100caconym(~caconym@user/caconym) (Quit: bye)
2024-10-28 19:59:16 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-10-28 19:51:28 +0100weary-traveler(~user@user/user363627) (Remote host closed the connection)
2024-10-28 19:48:38 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 272 seconds)
2024-10-28 19:47:07 +0100jumper149(~jumper149@base.felixspringer.xyz) jumper149
2024-10-28 19:46:01 +0100 <lxsameer> hey folks, do you know any library to interact with hackage API?
2024-10-28 19:42:51 +0100ham(~ham@user/ham) (Ping timeout: 252 seconds)
2024-10-28 19:41:12 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-10-28 19:40:50 +0100hamster(~ham@user/ham) ham
2024-10-28 19:37:18 +0100tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
2024-10-28 19:33:22 +0100kuribas(~user@ptr-17d51epnnpcnu3v8qjj.18120a2.ip6.access.telenet.be) (Remote host closed the connection)
2024-10-28 19:23:15 +0100euleritian(~euleritia@dynamic-176-006-145-033.176.6.pool.telefonica.de)
2024-10-28 19:22:38 +0100euleritian(~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 255 seconds)
2024-10-28 19:21:16 +0100 <haskellbridge> <Bowuigi> Likely, yeah, smalltt is interpreted (very quickly, haven't yet seen benchmarks against Lua/LuaJIT tho) so it can't get low level and super optimized
2024-10-28 19:19:19 +0100 <dolio> I think you can write things that are very fast, though.
2024-10-28 19:18:58 +0100 <dolio> And questionable amounts of actual dependent typing.
2024-10-28 19:18:48 +0100 <dolio> ATS is a frankenstein's monster system with all kinds of low-levelish stuff.
2024-10-28 19:17:55 +0100 <haskellbridge> <Bowuigi> Building can't get much faster than it is now, maybe changing the shell helps but likely not much. As usual, other measures to make compilation quicker (ccache, using a faster linker, etc) could also help
2024-10-28 19:16:41 +0100 <haskellbridge> <Bowuigi> The slowest parts of Nix are importing nixpkgs and actually building. We can fix the first one by, well, not using a huge record defined across a gazillion files. Separate the ecosystem into categories and import each separately, heavily reducing the IO operations and the execution time
2024-10-28 19:16:13 +0100morb(~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 245 seconds)
2024-10-28 19:14:48 +0100Nachtgespenst(~user@user/siracusa) (Quit: Bye!)
2024-10-28 19:14:28 +0100 <haskellbridge> <Bowuigi> Indeed, row types are supposed to work well with records and variants, and since Nix uses both extensively (mkForce, mkDefault and friends are variants that change the behaviour of record merging)
2024-10-28 19:12:56 +0100 <sshine> sorry, vice versa
2024-10-28 19:12:41 +0100vglfr(~vglfr@2607:fb90:a837:c1df:ad6:1a51:e325:8c1) vglfr
2024-10-28 19:12:40 +0100 <sshine> it occurs to me that Nix is particularly well-suited for row types