Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2020-11-23 20:21:06 <nh2> geekosaur: Do you know if it always dlopens stuff, or only for specific functionality? Because my basic button example works so far here: https://github.com/nh2/static-haskell-nix/releases/tag/c-static-gtk3-apps-button-example-2020-11-23
2020-11-23 20:21:17 <kuribas> lightwave: learn you a haskell
2020-11-23 20:21:25 <maerwald> and that's usually when ppl start saying it's a user error, although all I did wat following the instructions :o
2020-11-23 20:21:43 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2020-11-23 20:21:45 <kuribas> lightwave: http://learnyouahaskell.com It's focussing a lot on examples.
2020-11-23 20:21:47 <geekosaur> specific functionality. in particular there's a mode where it can load a UI from a file and then iirc it dlopen()s the components iidentified in the file
2020-11-23 20:21:48 knupfer joins (~Thunderbi@i59F7FFC3.versanet.de)
2020-11-23 20:22:09 <dminuoso> 21:19:58 maerwald | dminuoso: LOCALE_ARCHIVE=/usr/lib/locale/locale-archive nix-script
2020-11-23 20:22:13 <geekosaur> since the components may not be linked into the executable
2020-11-23 20:22:18 <dminuoso> Id argue the more proper solution is
2020-11-23 20:22:23 <dminuoso> LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
2020-11-23 20:22:27 <lightwave> Thanks!
2020-11-23 20:22:32 × gproto23 quits (~gproto23@unaffiliated/gproto23) (Ping timeout: 272 seconds)
2020-11-23 20:22:45 <dminuoso> Presumably this happens inside travis ci?
2020-11-23 20:22:53 <nh2> geekosaur: Are you referring to e.g. when you make UIs with `glade` (which IIRC saves them to XML files)?
2020-11-23 20:23:02 <geekosaur> yes
2020-11-23 20:23:07 <maerwald> dminuoso: no, on my computer
2020-11-23 20:23:28 <geekosaur> I haven't played with gtk in some years though, something may have changed since I last did it
2020-11-23 20:23:29 <maerwald> my project is glade, seems like a perfect test then
2020-11-23 20:24:53 <monochrom> "learn by examples" fails for Haskell as soon as you need I/O because Haskell's I/O story requires accepting a tiny little bit of theory upfront.
2020-11-23 20:24:55 <nh2> geekosaur: thanks, I've written it down in https://github.com/nh2/static-haskell-nix/issues/50#issuecomment-732405876 and will try it out; I've used glade in the past but only from Python
2020-11-23 20:25:06 × lightwave quits (~u931732@bras-vprn-nwmkon8540w-lp130-10-142-112-210-136.dsl.bell.ca) (Remote host closed the connection)
2020-11-23 20:25:19 × ggole quits (~ggole@2001:8003:8119:7200:1c3c:45be:a6d:c507) (Quit: Leaving)
2020-11-23 20:26:25 <hseg> maerwald: that's why we need a diverse OS/packaging ecosystem. done properly, it serves to fuzz test programs
2020-11-23 20:26:43 <monochrom> I say that out of real observations here. There were beginners who tried "learn by examples", it quickly degenerated to cargo culting in vain because the beginners could not grasp the difference between "map putStrLn myListOfString" and "mapM_ putStrLn myListOfStrings" because they didn't learn the prerequisite theory.
2020-11-23 20:26:49 <maerwald> hseg: who's doing that properly?
2020-11-23 20:27:13 <boxscape> what's the function to see what the class of a particular unicode character is again?
2020-11-23 20:27:33 <geekosaur> generalCategory
2020-11-23 20:27:33 <hseg> can't think of anyone off the top of my head right now
2020-11-23 20:27:42 takuan joins (~takuan@178-116-218-225.access.telenet.be)
2020-11-23 20:27:44 <maerwald> I know of maybe two distros where I'd call a subsections of the packaging done properly. And then there's still a huge part around it that's just outright bad
2020-11-23 20:28:33 <boxscape> % generalCategory <$> "ꓱ∃"
2020-11-23 20:28:33 <yahb> boxscape: [OtherLetter,MathSymbol]
2020-11-23 20:28:36 <boxscape> thanks geekosaur
2020-11-23 20:29:27 <dminuoso> maerwald: Do you have old packages installed through nix-env?
2020-11-23 20:29:36 <maerwald> dminuoso: no, I wiped it out several times
2020-11-23 20:30:09 × copypasteque_ quits (~copypaste@2001:41d0:8:b325::1) (Quit: WeeChat 2.8)
2020-11-23 20:30:13 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 264 seconds)
2020-11-23 20:30:30 <hseg> fair. that's the immediate counterargument -- it's quite possible the fuzzing benefits are outweighed by the costs of disjoint projects trying to interface with each other
2020-11-23 20:30:37 <dminuoso> maerwald: Mmm, I dont quite understand the state of affairs.. but the underlying cause is a quite interesting change in glibc: https://sourceware.org/glibc/wiki/Release/2.27#Statically_compiled_applications_using_locales
2020-11-23 20:30:57 <maerwald> hseg: it gets worse when distros start breaking other distros (yes, there are ways to achieve that)
2020-11-23 20:30:58 <dminuoso> At any rate, the problem shouldn't be apparent anymore. You aren't on an old nix channel, are you?
2020-11-23 20:31:32 <maerwald> dminuoso: I have no idea. I'm just running a shell script that does nix stuff
2020-11-23 20:31:53 <hseg> wait what?
2020-11-23 20:32:07 × kuribas quits (~user@ptr-25vy0i8kkf9triykmnn.18120a2.ip6.access.telenet.be) (Remote host closed the connection)
2020-11-23 20:32:34 <hseg> are you referring to socially-leading distros making bad decisions that then get cargo-culted?
2020-11-23 20:32:44 <hseg> or distros using each other's patches blindly?
2020-11-23 20:33:23 <dminuoso> maerwald: Mmm, yeah. This particular bug is still a sad thing, in part it was ignored because a) there's a workaround (that you have to dig for) and b) it doesn't really apply to nixos users..
2020-11-23 20:33:37 <maerwald> hseg: famous instance is skype being broken on gentoo, because debian messed with SONAMEs of a library and the developers built skype on debian. The fix wasn't hard, but yeah.
2020-11-23 20:34:01 <hseg> :-o
2020-11-23 20:34:28 <maerwald> rockstar attitude of packagers
2020-11-23 20:34:43 <maerwald> (debian has a history of that...)
2020-11-23 20:34:53 <dminuoso> To be fair, it's not like you're paying for any of it. These are just volunteers..
2020-11-23 20:35:08 christo joins (~chris@81.96.113.213)
2020-11-23 20:35:11 <maerwald> dminuoso: I know. I did packaging for 5 years.
2020-11-23 20:36:21 × alp quits (~alp@2a01:e0a:58b:4920:99e8:704d:3180:71f2) (Ping timeout: 272 seconds)
2020-11-23 20:37:01 <maerwald> And there's not much between internal hierarchy fights on the one side and yelling users on the other... such rewarding work :D
2020-11-23 20:37:13 alp joins (~alp@88.126.45.36)
2020-11-23 20:37:15 × _deepfire quits (~user@80.92.100.69) (Read error: Connection reset by peer)
2020-11-23 20:37:38 <dminuoso> Like you just did. :-)
2020-11-23 20:37:45 <dminuoso> Well, at least it wasn't directed at them
2020-11-23 20:38:35 <maerwald> I don't have any expectations of nix devs
2020-11-23 20:38:53 <maerwald> It's when users have expectations and voice them aggressively
2020-11-23 20:39:07 <maerwald> I just move on and pick another tool
2020-11-23 20:39:34 × christo quits (~chris@81.96.113.213) (Remote host closed the connection)
2020-11-23 20:39:48 christo joins (~chris@81.96.113.213)
2020-11-23 20:40:30 hackage numhask 0.7.0.0 - A numeric class heirarchy. https://hackage.haskell.org/package/numhask-0.7.0.0 (tonyday567)
2020-11-23 20:43:08 redmp joins (~redmp@mobile-166-137-178-102.mycingular.net)
2020-11-23 20:45:00 <maerwald> nh2: I think we're out of luck. I can't find static library files of gtk+3 in alpine
2020-11-23 20:45:16 × solonarv quits (~solonarv@astrasbourg-653-1-156-4.w90-6.abo.wanadoo.fr) (Ping timeout: 240 seconds)
2020-11-23 20:45:17 <nh2> maerwald: can we build them?
2020-11-23 20:49:19 geowiesnot joins (~user@i15-les02-ix2-87-89-181-157.sfr.lns.abo.bbox.fr)
2020-11-23 20:49:34 × hseg quits (~gesh@185.120.126.113) (Ping timeout: 265 seconds)
2020-11-23 20:50:32 × taurux quits (~taurux@net-188-152-78-21.cust.vodafonedsl.it) (Ping timeout: 265 seconds)
2020-11-23 20:50:34 <maerwald> https://mail.gnome.org/archives/gtk-list/2018-January/msg00006.html
2020-11-23 20:51:07 × Aquazi quits (uid312403@gateway/web/irccloud.com/x-kgipcwwyhxxkjxhq) (Quit: Connection closed for inactivity)
2020-11-23 20:51:31 × AlterEgo- quits (~ladew@124-198-158-163.dynamic.caiway.nl) (Quit: Leaving)
2020-11-23 20:53:52 × jcd quits (~user@2601:282:1300:7cb0::adb4) (Remote host closed the connection)
2020-11-23 20:54:03 <nh2> maerwald: that's a bit outdated, see https://github.com/nh2/static-haskell-nix/issues/50#issuecomment-554589400 -- the author of that email merged my fixes to GTK accidentally breaking its static build in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1172
2020-11-23 20:55:01 <nh2> (it did also work before in autotools, they probably broke it by accident when moving to meson)
2020-11-23 20:55:52 × jamm_ quits (~jamm@unaffiliated/jamm) (Remote host closed the connection)
2020-11-23 20:56:09 × Franciman quits (~francesco@host-82-54-193-143.retail.telecomitalia.it) (Quit: Leaving)
2020-11-23 20:56:19 × geowiesnot quits (~user@i15-les02-ix2-87-89-181-157.sfr.lns.abo.bbox.fr) (Ping timeout: 260 seconds)
2020-11-23 20:56:21 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2020-11-23 20:56:21 <nh2> the backport for gtk3 is https://gitlab.gnome.org/GNOME/gtk/merge_requests/1196 -- should be in gtk3 >= 3.24.13, so the alpine package should have that fix
2020-11-23 20:58:08 <hekkaidekapus> nh2, maerwald: <https://gitlab.alpinelinux.org/alpine/aports/blob/master/main/gtk+3.0/APKBUILD>
2020-11-23 20:59:44 × czwartyeon quits (~czwartyeo@77-45-55-99.sta.asta-net.com.pl) (Remote host closed the connection)
2020-11-23 21:00:46 <nh2> maerwald hekkaidekapus: Yes (thanks!), 3.24.23, so that should have my fix in. So you'd just have to pass the "-Ddefault_library=both" flag to get `.a` files
2020-11-23 21:01:10 <Uniaika> hey everyone
2020-11-23 21:01:25 <hekkaidekapus> hello
2020-11-23 21:01:25 <Uniaika> what can I read in order to better understand fundeps errors in GHC?
2020-11-23 21:01:27 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds)
2020-11-23 21:02:51 <Uniaika> s/in/with/
2020-11-23 21:03:05 vicfred_ joins (~vicfred@unaffiliated/vicfred)
2020-11-23 21:03:08 taurux joins (~taurux@net-188-152-78-21.cust.vodafonedsl.it)
2020-11-23 21:03:49 × vicfred quits (~vicfred@unaffiliated/vicfred) (Ping timeout: 264 seconds)
2020-11-23 21:04:16 × vicfred_ quits (~vicfred@unaffiliated/vicfred) (Max SendQ exceeded)
2020-11-23 21:04:44 vicfred_ joins (~vicfred@unaffiliated/vicfred)
2020-11-23 21:05:43 × vicfred_ quits (~vicfred@unaffiliated/vicfred) (Max SendQ exceeded)
2020-11-23 21:06:15 vicfred_ joins (~vicfred@unaffiliated/vicfred)

All times are in UTC.