Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,789,515 events total
2026-04-03 21:30:36 <tomsmeding> observationally, yes
2026-04-03 21:30:54 <tomsmeding> ideologically it's a little more nuanced
2026-04-03 21:31:00 <monochrom> At least there is a strong correlation between unoptimized and bad code working fine.
2026-04-03 21:31:21 <tomsmeding> what kind of warnings would become more important under optimisations?
2026-04-03 21:31:37 <tomsmeding> warning about = vs == is independent of optimisations
2026-04-03 21:31:42 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 21:32:11 <monochrom> I forgot. I seem to recall that unused-return-value is one of them.
2026-04-03 21:32:44 <tomsmeding> that... has nothing to do with optimisations? fork() doesn't care whether you used -O2 if it wants to fail
2026-04-03 21:33:22 <tomsmeding> not saying there are none, I just can't think of any :)
2026-04-03 21:34:32 <monochrom> OK I have: int main(void) {char b[100]; read(0, b, 100); ...
2026-04-03 21:34:41 <monochrom> No warning until -O2
2026-04-03 21:35:14 <monochrom> So I still don't know why! :)
2026-04-03 21:35:52 <tomsmeding> the manual doesn't elucidate: https://gcc.gnu.org/onlinedocs/gcc/Common-Attributes.html#index-warn_005funused_005fresult
2026-04-03 21:35:53 × synchromesh quits (~john@2406:5a00:2412:2c00:343e:4e23:bce:73a3) (Read error: Connection reset by peer)
2026-04-03 21:36:19 <tomsmeding> I guess https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result is the better link
2026-04-03 21:36:55 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-04-03 21:37:56 synchromesh joins (~john@2406:5a00:2412:2c00:343e:4e23:bce:73a3)
2026-04-03 21:43:41 <monochrom> Adding "int r; r =" kills the warning under -O2. So it is not even like "we need an elaborate live-variable analysis to discover unused results" :)
2026-04-03 21:44:00 <tomsmeding> yes, I'm a little confused too
2026-04-03 21:44:41 <tomsmeding> monochrom: although now you have a -Wunused-but-set-variable ;)
2026-04-03 21:47:05 <monochrom> When confronted with an unused-value problem, some people go, "I know, I will store it in a fresh variable!". Now they have two problems. >:)
2026-04-03 21:47:07 <tomsmeding> monochrom: I do not share your observations, I get no -Wunused-result for read(2) whatsoever on my system (linux, gcc 15.2.1), but I do get that warning for realloc() regardless of the optimisation level
2026-04-03 21:47:55 <tomsmeding> same for clang 21.1.6
2026-04-03 21:48:49 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 21:56:07 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-04-03 22:05:10 × puke quits (~puke@user/puke) (Ping timeout: 250 seconds)
2026-04-03 22:06:51 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 22:07:59 × Guest20 quits (~Guest20@149.3.7.235) (Quit: Client closed)
2026-04-03 22:08:59 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 265 seconds)
2026-04-03 22:09:33 machinedgod joins (~machinedg@d172-219-48-230.abhsia.telus.net)
2026-04-03 22:11:08 emmanuelux joins (~em@user/emmanuelux)
2026-04-03 22:11:30 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-04-03 22:12:53 Sgeo joins (~Sgeo@user/sgeo)
2026-04-03 22:22:38 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 22:26:05 divlamir_ joins (~divlamir@user/divlamir)
2026-04-03 22:26:15 × divlamir quits (~divlamir@user/divlamir) (Read error: Connection reset by peer)
2026-04-03 22:27:45 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 255 seconds)
2026-04-03 22:30:23 × divlamir_ quits (~divlamir@user/divlamir) (Ping timeout: 244 seconds)
2026-04-03 22:32:59 Digitteknohippie is now known as Digit
2026-04-03 22:37:03 divlamir joins (~divlamir@user/divlamir)
2026-04-03 22:38:40 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 22:44:07 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-04-03 22:54:27 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 22:58:45 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
2026-04-03 22:59:21 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-04-03 23:05:00 × arandombit quits (~arandombi@user/arandombit) (Ping timeout: 244 seconds)
2026-04-03 23:10:21 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 23:15:32 arandombit joins (~arandombi@user/arandombit)
2026-04-03 23:17:34 × wennefer0 quits (~wennefer0@user/wennefer0) (Quit: Textual IRC Client: www.textualapp.com)
2026-04-03 23:20:18 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-04-03 23:24:32 × tremon quits (~tremon@83.80.159.219) (Quit: getting boxed in)
2026-04-03 23:26:54 humasect joins (~humasect@dyn-192-249-132-90.nexicom.net)
2026-04-03 23:29:19 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2026-04-03 23:30:21 <EvanR> haha that whole issue boiled down to what -Wall means actually and culturally
2026-04-03 23:30:50 <EvanR> it doesn't have all warnings no but someone decided it has all warnings that must be taken seriously
2026-04-03 23:31:08 <EvanR> extra warnings in another flag are secondary
2026-04-03 23:31:14 <EvanR> don't even enable it
2026-04-03 23:33:50 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-03 23:38:35 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds)
2026-04-03 23:43:32 × tromp quits (~textual@2001:1c00:340e:2700:f5b2:b468:1c7d:8570) (Quit: My iMac has gone to sleep. ZZZzzz…)
2026-04-03 23:47:57 <geekosaur> "-Wall" isn't all warnings, use "-Weverything" "-Weverything isn't all warnings either, there are some that must be enabled explicitly"
2026-04-03 23:50:53 merijn joins (~merijn@62.45.136.136)
2026-04-03 23:55:57 × merijn quits (~merijn@62.45.136.136) (Ping timeout: 255 seconds)
2026-04-04 00:06:37 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 00:11:34 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 245 seconds)
2026-04-04 00:14:07 × absurdvoid quits (~absurdvoi@user/absurdvoid) (Ping timeout: 264 seconds)
2026-04-04 00:16:33 × Tuplanolla quits (~Tuplanoll@88-114-89-88.elisa-laajakaista.fi) (Quit: Leaving.)
2026-04-04 00:22:31 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 00:27:15 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 245 seconds)
2026-04-04 00:34:35 craunts795335385 joins (~craunts@152.32.99.2)
2026-04-04 00:36:37 absurdvoid joins (~absurdvoi@user/absurdvoid)
2026-04-04 00:38:27 merijn joins (~merijn@62.45.136.136)
2026-04-04 00:43:39 × merijn quits (~merijn@62.45.136.136) (Ping timeout: 255 seconds)
2026-04-04 01:03:43 td_ joins (~td@i53870907.versanet.de)
2026-04-04 01:09:22 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 01:11:56 × synchromesh quits (~john@2406:5a00:2412:2c00:343e:4e23:bce:73a3) (Read error: Connection reset by peer)
2026-04-04 01:13:08 synchromesh joins (~john@2406:5a00:2412:2c00:343e:4e23:bce:73a3)
2026-04-04 01:14:00 × synchromesh quits (~john@2406:5a00:2412:2c00:343e:4e23:bce:73a3) (Read error: Connection reset by peer)
2026-04-04 01:14:17 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-04-04 01:14:46 synchromesh joins (~john@2406:5a00:2412:2c00:343e:4e23:bce:73a3)
2026-04-04 01:21:22 humasect is now known as whomasect
2026-04-04 01:25:10 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 01:30:22 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 265 seconds)
2026-04-04 01:33:58 × whomasect quits (~humasect@dyn-192-249-132-90.nexicom.net) (Quit: Leaving...)
2026-04-04 01:33:59 × Vizious quits (~bes@user/Vizious) (Ping timeout: 252 seconds)
2026-04-04 01:36:06 Vizious joins (~bes@user/Vizious)
2026-04-04 01:41:02 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 01:45:54 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-04-04 01:56:43 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 01:59:14 × Nosrep quits (~jimothy@user/nosrep) (Quit: Konversation terminated!)
2026-04-04 01:59:38 Nosrep joins (~jimothy@user/nosrep)
2026-04-04 02:01:45 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-04-04 02:12:30 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 02:17:43 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds)
2026-04-04 02:19:30 × machinedgod quits (~machinedg@d172-219-48-230.abhsia.telus.net) (Ping timeout: 248 seconds)
2026-04-04 02:26:08 × vidak quits (~vidak@2407:e400:7800:2c01:d0be:76f8:cc84:bd4a) (Read error: Connection reset by peer)
2026-04-04 02:27:36 vidak joins (~vidak@2407:e400:7800:2c01:c4db:d9c4:aac4:94f6)
2026-04-04 02:28:05 peterbecich joins (~Thunderbi@71.84.33.135)
2026-04-04 02:28:34 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-04 02:29:44 × synchromesh quits (~john@2406:5a00:2412:2c00:343e:4e23:bce:73a3) (Read error: Connection reset by peer)

All times are in UTC.