2024/05/15

Newest at the top

2024-05-15 10:02:38 +0200 <lortabac> sometimes an efficient implementation with vectors is so inconvenient that lists are preferrable
2024-05-15 10:01:53 +0200gmg(~user@user/gehmehgeh)
2024-05-15 10:01:48 +0200 <lortabac> kuribas: it depends
2024-05-15 10:01:15 +0200 <kuribas> If you need to append, use a chunked lists.
2024-05-15 10:01:00 +0200 <kuribas> Even by a factors of 500 or so.
2024-05-15 10:00:45 +0200 <kuribas> I may have missed some context, but using vectors is even better for performance.
2024-05-15 09:59:24 +0200 <lortabac> rarely for performance
2024-05-15 09:59:15 +0200 <lortabac> I end up using sets, maps and Data.Sequence mostly for clarity
2024-05-15 09:58:49 +0200 <lortabac> interestingly in most of my real use cases lists have proved to be faster because of the constant factors
2024-05-15 09:55:50 +0200kuribas(~user@ip-188-118-57-242.reverse.destiny.be)
2024-05-15 09:52:31 +0200gorignak(~gorignak@user/gorignak) (Ping timeout: 255 seconds)
2024-05-15 09:51:16 +0200libertyprime(~libertypr@118-92-68-68.dsl.dyn.ihug.co.nz) (Quit: leaving)
2024-05-15 09:48:55 +0200ezzieyguywuf(~Unknown@user/ezzieyguywuf)
2024-05-15 09:44:53 +0200gorignak(~gorignak@user/gorignak)
2024-05-15 09:42:13 +0200cfricke(~cfricke@user/cfricke)
2024-05-15 09:40:50 +0200 <ncf> O(n log m) instead of O(nm)
2024-05-15 09:40:23 +0200 <ph88> tomsmeding, is the implementation with Set faster ?
2024-05-15 09:39:31 +0200ph88(~ph88@2a02:8109:9e26:c800:10df:b906:15db:a9b1)
2024-05-15 09:35:18 +0200oo_miguel(~Thunderbi@78-11-181-16.static.ip.netia.com.pl)
2024-05-15 09:32:17 +0200ezzieyguywuf(~Unknown@user/ezzieyguywuf) (Ping timeout: 256 seconds)
2024-05-15 09:31:03 +0200JamesMowery(~JamesMowe@ip174-74-159-82.ph.ph.cox.net)
2024-05-15 09:27:37 +0200libertyprime(~libertypr@118-92-68-68.dsl.dyn.ihug.co.nz)
2024-05-15 09:27:33 +0200ph88(~ph88@2a02:8109:9e26:c800:232d:2352:35f8:f282) (Ping timeout: 268 seconds)
2024-05-15 09:24:15 +0200ezzieyguywuf(~Unknown@user/ezzieyguywuf)
2024-05-15 09:23:43 +0200ezzieyguywuf(~Unknown@user/ezzieyguywuf) (Ping timeout: 255 seconds)
2024-05-15 09:23:24 +0200tzh(~tzh@c-76-115-131-146.hsd1.or.comcast.net) (Quit: zzz)
2024-05-15 09:07:30 +0200__monty__(~toonn@user/toonn)
2024-05-15 09:05:42 +0200euleritian(~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
2024-05-15 09:05:23 +0200euleritian(~euleritia@dynamic-176-006-195-027.176.6.pool.telefonica.de) (Read error: Connection reset by peer)
2024-05-15 09:04:37 +0200philopsos1(~caecilius@user/philopsos)
2024-05-15 09:04:21 +0200philopsos1(~caecilius@user/philopsos) (Client Quit)
2024-05-15 09:03:29 +0200philopsos1(~caecilius@user/philopsos)
2024-05-15 09:03:13 +0200philopsos1(~caecilius@user/philopsos) (Client Quit)
2024-05-15 09:03:04 +0200philopsos1(~caecilius@user/philopsos)
2024-05-15 09:02:59 +0200JamesMowery(~JamesMowe@ip98-171-80-211.ph.ph.cox.net) (Ping timeout: 252 seconds)
2024-05-15 09:01:41 +0200 <tomsmeding> \a b -> let bs = Set.fromList b in filter (`Set.notMember` bs) a
2024-05-15 08:58:37 +0200philopsos(~caecilius@user/philopsos) (Ping timeout: 246 seconds)
2024-05-15 08:56:27 +0200d34df00d(~d34df00d@2600:1702:4f1b:7c10::43) (Ping timeout: 260 seconds)
2024-05-15 08:51:29 +0200Square2(~Square4@user/square)
2024-05-15 08:50:31 +0200 <lambdabot> [2,4,5,4,2]
2024-05-15 08:50:30 +0200 <probie> > foldr (filter . (/=)) [1,2,3,4,5,4,3,2,1] [1,3]
2024-05-15 08:50:10 +0200 <lambdabot> (Foldable t, Eq a) => [a] -> t a -> [a]
2024-05-15 08:50:09 +0200 <probie> :t foldr (filter . (/=))
2024-05-15 08:48:31 +0200echoreply(~echoreply@45.32.163.16)
2024-05-15 08:47:12 +0200echoreply(~echoreply@2001:19f0:9002:1f3b:5400:ff:fe6f:8b8d) (Quit: WeeChat 2.8)
2024-05-15 08:45:39 +0200 <ph88> Does someone know a function similar to this https://hackage.haskell.org/package/base-4.19.1.0/docs/Data-List.html#v:-92--92- but it deletes all elements from the first list that are find in the second list? Instead of deleting only the first occurrence?
2024-05-15 08:44:58 +0200ph88(~ph88@2a02:8109:9e26:c800:232d:2352:35f8:f282)
2024-05-15 08:43:44 +0200gorignak(~gorignak@user/gorignak) (Ping timeout: 252 seconds)
2024-05-15 08:42:09 +0200hgolden(~hgolden@2603:8000:9d00:3ed1:f849:272c:fda5:33c9)
2024-05-15 08:40:11 +0200hgolden(~hgolden@2603:8000:9d00:3ed1:2678:8497:aa5c:7fa9) (Remote host closed the connection)