| 5 Nov 2025 |
| Supermuskox joined the room. | 09:37:13 |
sterni (he/him) | what version of GHC? | 10:06:54 |
sterni (he/him) | I think for 9.4 this works, but in general it is not to be expected. You need to coax the rts linker into loading a shared archive which it doesn't necessarily like because it's tricky. dlopen of course only works for shared objects which is the normal way | 10:08:33 |
sterni (he/him) | (Haskell static archives/object files is not a problem, but arbitrary ones) | 10:08:56 |
chreekat | Ghc/Cabal is confusing af on this point. I'm spectating right now as people in #GHC:matrix.org try to figure out some forms of static linking | 10:56:00 |
sterni (he/him) | i mean this is not that great a mystery, only dynamic libs are designed so that they can be dynamically loaded at run time (instead of link time) | 12:05:15 |
sterni (he/him) | so you would not in general expect your repl to br able to do this | 12:05:34 |
chreekat | Well it's obvious now that you've said it 😄 | 12:15:35 |
keypusher | Redacted or Malformed Event | 14:12:49 |
| 6 Nov 2025 |
| @denbrahe:matrix.org left the room. | 15:24:22 |
| 7 Nov 2025 |
MangoIV | has anybody here thought about enabling -finfo-table-map in nixpkgs? | 15:29:15 |
maralorn | Yes | 16:20:44 |
maralorn | me | 16:20:45 |
maralorn | I discussed this with ben. The problem is, that it increases binary size significantly. So we probably can’t enable it by default. And its also not possible to strip it in binaries which don’t want it. | 16:21:59 |
maralorn | So the best available option would be to replace our profiling builds with an info-table-map build. | 16:22:30 |
maralorn | * So the best available option would be to replace our profiling builds with an info-table-map build by default. | 16:22:43 |
maralorn | But I actually really wanna do it. | 16:27:15 |
maralorn | So maybe we can try enabling it and see if anyone complains. 😄 | 16:27:32 |
Teo (he/him) | Also infotable map completely disabled dead code elimination since the table keeps every section alive | 17:34:54 |
Teo (he/him) | * | 17:35:00 |
Teo (he/him) | What would be great is being able to rebuild base with ipe info easily without rebuilding ghc | 17:42:16 |
sterni (he/him) | then that's a hard no… | 19:20:35 |
chreekat | Didn't I hear from mpickering in some talk recently that profiling mode is almost never what you want nowadays? You already get a bunch of great stuff "for free", and then when you want more you still don't usually want -fprof. I could be remembering this all wrong though | 19:21:25 |
maralorn | No, that is completely correct. | 19:24:09 |
maralorn | That’s why we should probably do something about it in nixpkgs. | 19:24:52 |
maralorn | The problem is, that profiling builds had another ending. I don’t think simply building libraries twice with different flags would just work. | 19:25:37 |
chreekat | Ahh that's a shame | 19:31:37 |
maralorn | But I haven’t looked into it much. It might be quite feasible. | 19:39:42 |
maralorn | But it would also be kinda a breaking change. Who knows whe relies on profiling builds. | 19:40:07 |
maralorn | * But it would also be kinda a breaking change. Who knows who relies on profiling builds. | 19:40:11 |