💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2022-12-08.txt captured on 2024-03-21 at 15:51:30.
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
[2022-12-08T00:49:38Z] <phoebos> midfavila: your URI regex doesn't work on openbsd, it has the bit you want to be the fqdn just empty [2022-12-08T00:49:42Z] <phoebos> https://tmp.bvnf.space/0001-uri-fix-regex.patch [2022-12-08T00:49:48Z] <phoebos> this fixes it [2022-12-08T00:50:13Z] <phoebos> why did you have the second + as well as the * anyway? [2022-12-08T00:51:26Z] <midfavila> i'd give you an answer but i can't remember :D [2022-12-08T00:51:36Z] <midfavila> the day i worked on the regex initially is completely gone [2022-12-08T00:51:45Z] <phoebos> :V [2022-12-08T00:51:50Z] <midfavila> chronic sleep deprivation is a hell of a drug kids [2022-12-08T00:52:04Z] <phoebos> that it be [2022-12-08T00:52:40Z] <phoebos> was also gonna ask why you made a subexpression for fqdn and path together, as well as separately [2022-12-08T00:52:55Z] <phoebos> like ((fqdn)(path)) [2022-12-08T00:53:13Z] <midfavila> i copied the regex from the RFC and tweaked it until it mostly did what I wanted to [2022-12-08T00:53:26Z] <midfavila> i don't have much experience with extended regex so [2022-12-08T03:09:46Z] <testuser[m]> Hi [2022-12-08T05:28:43Z] <virutalmachineus> HI [2022-12-08T05:30:40Z] <wael[m]> Hi [2022-12-08T08:05:44Z] <aelspire> Hi [2022-12-08T08:39:40Z] <sad_plan> hi [2022-12-08T10:04:54Z] <wael[m]> Holt shit its sad_an [2022-12-08T10:04:58Z] <wael[m]> Hello sad an [2022-12-08T10:05:00Z] <wael[m]> Sed_pan [2022-12-08T10:05:02Z] <wael[m]> Sad_plan [2022-12-08T10:05:10Z] <sad_plan> hey wael[m] [2022-12-08T10:05:24Z] <wael[m]> Sign my toaster plz [2022-12-08T10:05:51Z] <sad_plan> sure. just.. hurl it over here :p [2022-12-08T10:08:18Z] <aelspire> I didn't like how zig-bootstrap compile llvm twice and trying to fix it [2022-12-08T10:08:36Z] <aelspire> I'm at my 8th recompilation of llvm [2022-12-08T10:09:09Z] <sad_plan> yeah I can see why thats not favorable :p llvm takes some time to build :p [2022-12-08T10:09:21Z] <aelspire> If my calculation are correct around 2038 my hard work will pay off if current iteration will succeded [2022-12-08T10:09:31Z] <sad_plan> lol [2022-12-08T10:15:31Z] <wael[m]> Why do you need to recompile llvm [2022-12-08T10:16:14Z] <sad_plan> zig does that, if I didnt get that wrong [2022-12-08T10:16:22Z] <aelspire> yes [2022-12-08T10:16:52Z] <aelspire> bootstrap compiles llvm to compile stage2 zig compiler [2022-12-08T10:17:05Z] <aelspire> and than recompiles llvm using zig [2022-12-08T10:17:15Z] <aelspire> to link it to stage 3 [2022-12-08T10:17:39Z] <aelspire> I'm trying to remove second llvm recompilation [2022-12-08T10:18:03Z] <aelspire> and in result zig compiler reports that is has version SEGFAULT [2022-12-08T10:18:37Z] <sad_plan> should you be able to make a switch for it or something, to avoid bootstrapping, if youve built zig already on that system? [2022-12-08T10:19:04Z] <aelspire> if there was some more interesting error message somewhere I would know what is wrong [2022-12-08T10:19:12Z] <aelspire> but it just segfaults [2022-12-08T10:19:28Z] <sad_plan> run valgrind on it? [2022-12-08T10:19:29Z] <aelspire> so I'm not even sure where to look for problem [2022-12-08T10:20:11Z] <aelspire> ideally it should link to system llvm [2022-12-08T10:20:26Z] <aelspire> but haven't reached this step yet [2022-12-08T10:20:32Z] <sad_plan> yeah, or that [2022-12-08T10:21:21Z] <aelspire> building zig with zig is pretty useless [2022-12-08T10:21:39Z] <aelspire> as you can only build current version with current version [2022-12-08T10:21:53Z] <aelspire> so no building current version with older version [2022-12-08T10:21:57Z] <sad_plan> thats stupid [2022-12-08T10:22:00Z] <aelspire> I really want to like zig [2022-12-08T10:22:15Z] <aelspire> but if I cannot build it normally how can I? [2022-12-08T10:22:42Z] <aelspire> it leaves rust for my main lang… [2022-12-08T10:22:44Z] <aelspire> I [2022-12-08T10:23:12Z] <aelspire> I'll try untill evening and pass on zig if there is no way to build this compiler [2022-12-08T10:23:33Z] <aelspire> I need something that works *now* not 10+ years in future [2022-12-08T10:23:48Z] <sad_plan> you can see if alpine has a bin for it though, and just use that one instead? [2022-12-08T10:23:49Z] <wael[m]> ok i guess ill not look into zig bevause of that [2022-12-08T10:24:00Z] <aelspire> If it will work in future I will make switch in future [2022-12-08T10:24:25Z] <aelspire> it has official binary for musl ready to download [2022-12-08T10:24:41Z] <aelspire> this is how I was evaluating this language [2022-12-08T10:24:44Z] <sad_plan> a switch would probably be favorable. similarly to how gcc has, to avoid bootstrapping if youre building the same version or a minor version bump [2022-12-08T10:24:55Z] <sad_plan> ah, I see [2022-12-08T10:25:20Z] <aelspire> but not fucked build system is one of my requirement for language I want to by my main [2022-12-08T10:25:26Z] <aelspire> be* [2022-12-08T10:40:25Z] <aelspire> yup, even official bootstrap fails [2022-12-08T10:40:46Z] <aelspire> on version 0.10.0 [2022-12-08T10:40:55Z] <aelspire> ok, so nope for me [2022-12-08T10:41:08Z] <aelspire> I'll wait for 1.0 and reevaluate then [2022-12-08T10:41:23Z] <aelspire> if I do not fall in love in rust untill then [2022-12-08T11:24:54Z] <aelspire> To clarify as I never like to bitch about other people's passion projects [2022-12-08T11:25:09Z] <aelspire> zig is not bad, just not ready yet [2022-12-08T11:25:25Z] <aelspire> and I want to have something to play with this holidays [2022-12-08T11:25:32Z] <aelspire> so working now is requirement [2022-12-08T11:39:36Z] <testuser[m]> aelspire: buildn host llvm with all targets enabled [2022-12-08T11:39:48Z] <testuser[m]> or patch zig in one file to not use undefined llvm functions [2022-12-08T11:39:56Z] <testuser[m]> i got it to build but idk it keeps setting _start to 0x000 [2022-12-08T11:40:04Z] <testuser[m]> same issue with official binary [2022-12-08T11:40:07Z] <aelspire> I tried official unmodified zig-bootstrap repo last time [2022-12-08T11:40:23Z] <aelspire> version 0.10.0 [2022-12-08T11:40:33Z] <aelspire> so no bleeding-edge [2022-12-08T11:40:49Z] <aelspire> and it succeded but zig compiler segfaults immediately [2022-12-08T11:41:42Z] <aelspire> so this is not the problem with removing second recompilation of LLVM [2022-12-08T11:41:52Z] <aelspire> but something isn't working in zig [2022-12-08T11:41:53Z] <testuser[m]> did u check what _start is set to [2022-12-08T11:41:57Z] <testuser[m]> symbol [2022-12-08T11:42:05Z] <aelspire> nope [2022-12-08T11:42:19Z] <testuser[m]> check its probably null [2022-12-08T11:45:20Z] <aelspire> libc is linked to ldd [2022-12-08T11:45:25Z] <aelspire> weird [2022-12-08T11:46:24Z] <testuser[m]> thats irrelevnt [2022-12-08T11:47:28Z] <aelspire> what is current pastebin fad? [2022-12-08T11:47:43Z] <aelspire> or just paste command out on IRC? [2022-12-08T11:49:16Z] <aelspire> $ readelf -h ./zig gives Entry point address: 0x2dcba40 [2022-12-08T11:49:30Z] <aelspire> is this reliable? [2022-12-08T11:50:16Z] <aelspire> what I see and def is weird that all that hoops in bootstrap is so zig will be statically linked [2022-12-08T11:50:25Z] <aelspire> and this is dynamic linked [2022-12-08T12:34:28Z] <aelspire> I've installed gdb [2022-12-08T12:34:35Z] <aelspire> and zig crashes in address 0x0 [2022-12-08T12:34:49Z] <aelspire> so start is indeed 0x0 [2022-12-08T12:34:55Z] <aelspire> what does it mean? [2022-12-08T14:36:25Z] <testuser[m]> something causes zig to tell linker to set that as the start address instead of addr of main [2022-12-08T14:37:16Z] <aelspire> well, it has version 0.10.0 [2022-12-08T14:37:29Z] <aelspire> I'll give it more time and see [2022-12-08T14:37:45Z] <aelspire> I've lost my motivation to compile llvm again [2022-12-08T14:38:10Z] <aelspire> as first compilation of llvm is probably skippable [2022-12-08T14:38:23Z] <aelspire> second one is compiled by zig compiler stage2 [2022-12-08T14:38:37Z] <aelspire> probably not skippable I think [2022-12-08T14:39:35Z] <aelspire> rust is interesting too and uses system's llvm [2022-12-08T14:40:09Z] <aelspire> I've played with rust w few times since it doesn't even had version 1.0 yet [2022-12-08T14:40:18Z] <aelspire> but nothing too deep [2022-12-08T14:40:28Z] <testuser[m]> zig can use system llvm too [2022-12-08T14:40:51Z] <testuser[m]> if you make a 5 line patch for it, or build system llvm with more targets for cross compilation [2022-12-08T14:40:51Z] <aelspire> it should but I'm not sure why it SEGFAULT [2022-12-08T14:41:04Z] <aelspire> so I tried official bootstrap script [2022-12-08T14:41:17Z] <aelspire> and it doesn't work too [2022-12-08T14:41:25Z] <testuser[m]> might be musl related [2022-12-08T14:41:43Z] <aelspire> I'm not sure if this is musl problem [2022-12-08T14:41:46Z] <testuser[m]> i mean the addr not being set properly by zig [2022-12-08T14:41:50Z] <testuser[m]> not musl bug [2022-12-08T14:41:52Z] <aelspire> zig defaults to musl on linux [2022-12-08T14:42:37Z] <aelspire> so basically building it on musl is as official as it can get [2022-12-08T14:43:11Z] <aelspire> https://github.com/ziglang/zig-bootstrap#supported-triples [2022-12-08T14:43:16Z] <aelspire> Note: Generally, for Linux targets, we prefer the musl libc builds over the glibc builds here, because musl builds end up producing a static binary, which is more portable across Linux distributions. [2022-12-08T14:55:52Z] <wael[m]> gnupg good or bad [2022-12-08T15:04:35Z] <jslick> fwiw I was able to build & run ncdu2 a while back in a musl gentoo chroot a while back using dev-lang/zig from the gentoo repository, but still wasn't sure how to get it to work with kiss zig [2022-12-08T15:05:28Z] <testuser[m]> wael: bad [2022-12-08T15:05:31Z] <testuser[m]> extreme bad [2022-12-08T15:31:21Z] <aelspire> wael: gnupg pinentry is pretty funny [2022-12-08T15:32:03Z] <aelspire> instead of opening GUI or whatever to ask for password and return password to stdout which can be forwarded to app [2022-12-08T15:32:28Z] <aelspire> it has its own special protocol to ask for pin etc [2022-12-08T15:33:05Z] <aelspire> but there is no real replacement for gnupg AFAIK [2022-12-08T16:16:51Z] <wael[m]> gnupg is cool [2022-12-08T16:17:00Z] <wael[m]> i like to have a key to expire when i die [2022-12-08T16:17:21Z] <wael[m]> (made a key 9000 times because i kept losinv jt [2022-12-08T18:26:25Z] <horo> hello [2022-12-08T18:27:33Z] <horo> i'm currently learning about the linux console and how to render glyphs with different console fonts (the .psf.gz type) [2022-12-08T18:28:11Z] <horo> is there a tool what will simply dump the entire character set of a font? Ideally with corrisponding mapping? [2022-12-08T19:07:33Z] <horo> nvm, it's "showconsolefont" [2022-12-08T19:15:28Z] <horo> hmmm, still don't know how to escape the various glyphs for ascii art purposes