💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-10-10.txt captured on 2024-06-16 at 13:47:12.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2020-10-10T04:21:56 #kisslinux <muevoid> o/ 2020-10-10T05:33:48 #kisslinux <dylanaraps> E5ten: Fixed, thanks again 2020-10-10T05:40:30 #kisslinux <muevoid> dylanaraps i'm working on a game library with no xorg libs and trying to keep a kiss philosphy while doing so. 2020-10-10T05:41:30 #kisslinux <dylanaraps> muevoid: Nice 2020-10-10T05:41:48 #kisslinux <dylanaraps> I'm working on the C package manager again :P 2020-10-10T05:41:53 #kisslinux <muevoid> Ooo nice 2020-10-10T05:42:05 #kisslinux <muevoid> I got caught up in this project before ever attempting that 2020-10-10T05:43:15 #kisslinux <muevoid> How's it going? 2020-10-10T05:45:21 #kisslinux <dylanaraps> It's going good 2020-10-10T05:45:33 #kisslinux <dylanaraps> Source is here: https://github.com/dylanaraps/k 2020-10-10T05:47:11 #kisslinux <muevoid> have you looked at stretchy buffers? 2020-10-10T05:47:18 #kisslinux <muevoid> Yeah I git cloned it 2020-10-10T05:48:20 #kisslinux <dylanaraps> That looks nice 2020-10-10T05:48:30 #kisslinux <muevoid> It's what I use in my projects 2020-10-10T05:48:36 #kisslinux <dylanaraps> I may write my own however 2020-10-10T05:48:46 #kisslinux <dylanaraps> Just to understand how it works underneath 2020-10-10T05:49:05 #kisslinux <muevoid> Yeah that's fair enough simple ones shouldn't be too hard to do 2020-10-10T05:49:08 #kisslinux <muevoid> Yeah 2020-10-10T05:50:44 #kisslinux <muevoid> What are you planning on doing for git? Just using system calls or libgit2? 2020-10-10T05:51:17 #kisslinux <muevoid> Also in switch (action) it's always good to have a default case 2020-10-10T05:51:54 #kisslinux <dylanaraps> That's one of the big hurdles. libgit2 requires cmake which would pull it into the core repsository. Calling the git utility removes the whole "self-contained, statically linked binary" benefit of the utility. 2020-10-10T05:52:04 #kisslinux <muevoid> Yeah 2020-10-10T05:52:06 #kisslinux <dylanaraps> The same goes for tar archives 2020-10-10T05:52:23 #kisslinux <muevoid> How complicated are the libgit2 sources? 2020-10-10T05:52:43 #kisslinux <muevoid> does libarchive require cmake? 2020-10-10T05:52:58 #kisslinux <konimex> no 2020-10-10T05:52:58 #kisslinux <dylanaraps> No 2020-10-10T05:53:07 #kisslinux <dylanaraps> libgit2 is 220k LOC 2020-10-10T05:53:11 #kisslinux <konimex> dylan: just a heads up, FF81.0.1 broke with rust 1.47.0 2020-10-10T05:53:11 #kisslinux <dylanaraps> According to cloc 2020-10-10T05:53:31 #kisslinux <dylanaraps> konimex: Will move rust back to testing for now. Any error message? 2020-10-10T05:54:14 #kisslinux <konimex> https://termbin.com/zsr5 here's my log 2020-10-10T05:54:17 #kisslinux <muevoid> Possibly making a custom build script or makefile? 2020-10-10T05:54:17 #kisslinux <dylanaraps> libarchive is another 200k LOC fyi 2020-10-10T05:55:21 #kisslinux <muevoid> To bad this isn't maintained https://github.com/rxi/microtar 2020-10-10T05:55:23 #kisslinux <konimex> done a patch here https://raw.githubusercontent.com/wyvertux/wyverkiss/72ec046095a11f25227700a56c50b751aa63ac4d/extra/firefox/patches/D89473.patch, should be removed by FF 82 2020-10-10T05:55:38 #kisslinux <dylanaraps> muevoid: What I'll do initially is fork/exec tar/git/compression formats. Then move towards something in C. 2020-10-10T05:55:50 #kisslinux <dylanaraps> ie, get it working firs. 2020-10-10T05:55:55 #kisslinux <muevoid> Yeah that makes the most sense imo for rn 2020-10-10T05:56:46 #kisslinux <dylanaraps> konimex: nice 2020-10-10T05:57:06 #kisslinux <dylanaraps> That's a large patch. 2020-10-10T05:57:27 #kisslinux <konimex> yep, outdated crates, apparently 2020-10-10T05:57:44 #kisslinux <dylanaraps> Does this break builds for rust < 1.47.0 ? 2020-10-10T05:57:47 #kisslinux <dylanaraps> I'd imagine so 2020-10-10T05:57:53 #kisslinux <muevoid> What all does kiss need from git? cloning, pulling, and signing anything else? 2020-10-10T05:58:19 #kisslinux <muevoid> At a high level of course 2020-10-10T05:58:36 #kisslinux <konimex> no, it doesn't break builds with rust 1.46.0 2020-10-10T05:58:43 #kisslinux <dylanaraps> konimex: Wonderful 2020-10-10T05:58:54 #kisslinux <konimex> eh wait, that one's not tested yet 2020-10-10T05:59:44 #kisslinux <konimex> currently building ff-esr with the patch (since I'm also rebuilding for LLVM 11), I think I'll do another test with the patch for rust 1.46.0 2020-10-10T05:59:53 #kisslinux <dylanaraps> Alright 2020-10-10T06:00:53 #kisslinux <muevoid> What arguments does kiss pkg manager use for tar? 2020-10-10T06:00:57 #kisslinux <dylanaraps> muevoid: sources: (git init, git remote, git fetch, git checkout) updates: (git remote, git rev-parse, git config, git pull, git submodule) 2020-10-10T06:01:06 #kisslinux <muevoid> Kk 2020-10-10T06:01:22 #kisslinux <dylanaraps> muevoid: for tar: xf tf cf 2020-10-10T06:01:58 #kisslinux <dylanaraps> I should be able to avoid libarchive by handling compression myself and then using some tiny tar lib. 2020-10-10T06:01:59 #kisslinux <E5ten> dylanaraps: I'd use fputc('n' instead of fputs("n" 2020-10-10T06:02:05 #kisslinux <konimex> I think at some point someone might try to use something like rsync to sync kiss repositories 2020-10-10T06:02:08 #kisslinux <dylanaraps> E5ten: will do 2020-10-10T06:02:16 #kisslinux <dylanaraps> konimex: Cem has done this already. 2020-10-10T06:02:22 #kisslinux <konimex> ah 2020-10-10T06:02:22 #kisslinux <muevoid> Maybe you could edit the source code of a really simple tar implementation and make it into a lib 2020-10-10T06:02:27 #kisslinux <muevoid> sltar is around 200 loc 2020-10-10T06:02:43 #kisslinux <muevoid> doesn't have f but I imagine that wouldn't be too difficult to implement 2020-10-10T06:03:14 #kisslinux <dylanaraps> f is just file input 2020-10-10T06:03:32 #kisslinux <muevoid> Oh yeah duh 2020-10-10T06:03:35 #kisslinux <muevoid> https://github.com/Gottox/sltar 2020-10-10T06:04:10 #kisslinux <dylanaraps> part of the problem is that there are mutliple tar formats no? 2020-10-10T06:04:18 #kisslinux <muevoid> yeah 2020-10-10T06:04:47 #kisslinux <dylanaraps> And we'll be dealing with random tarballs 2020-10-10T06:04:58 #kisslinux <dylanaraps> tarballs created by the package manager will be known beforehand 2020-10-10T06:05:02 #kisslinux <dylanaraps> Talking about sources 2020-10-10T06:05:23 #kisslinux <dylanaraps> We may need something that supports the GNU extensions 2020-10-10T06:06:05 #kisslinux <dylanaraps> Here's the thing... I can cheat a statically linked binary while still calling tar as a command from busybox ;) 2020-10-10T06:06:20 #kisslinux <muevoid> That's true 2020-10-10T06:06:42 #kisslinux <muevoid> Git is the only large problem I can think of as in it being one static binary 2020-10-10T06:06:58 #kisslinux <dylanaraps> What I mean is embedding the package manager in busybox compiled with only tar enabled. Then 'mv busybox kiss'. 2020-10-10T06:07:12 #kisslinux <muevoid> Ahhhh 2020-10-10T06:07:23 #kisslinux <dylanaraps> I have a package that does this to the shell package manager 2020-10-10T06:09:59 #kisslinux <muevoid> Did you make str.h yourself? 2020-10-10T06:10:57 #kisslinux <dylanaraps> Yes 2020-10-10T06:11:04 #kisslinux <muevoid> nice 2020-10-10T06:11:09 #kisslinux <dylanaraps> Started as one function and grew 2020-10-10T06:11:14 #kisslinux <muevoid> Gotcha 2020-10-10T06:11:27 #kisslinux <muevoid> Why is HDR in the Makefile? What purpose does it serve 2020-10-10T06:11:32 #kisslinux <dylanaraps> One function had to be a macro so I made the whole thing a macro 2020-10-10T06:11:34 #kisslinux <dylanaraps> lol 2020-10-10T06:11:41 #kisslinux <muevoid> lol 2020-10-10T06:11:45 #kisslinux <dylanaraps> s/a macro/macros/ 2020-10-10T06:12:54 #kisslinux <dylanaraps> muevoid: Makes it so changes to header files are also tracked 2020-10-10T06:13:35 #kisslinux <dylanaraps> ie, 'make' -> 'is up to date', modify header, 'make' -> works 2020-10-10T06:13:55 #kisslinux <konimex> the patch I'm using doesn't work in ff-esr, unfortunately, now trying rust 1.46.0 with my patch (mainline firefox) 2020-10-10T06:14:42 #kisslinux <dylanaraps> We may have to hold 1.47.0 back until Firefox 82 is released 2020-10-10T06:17:44 #kisslinux <dylanaraps> valgrind always reports "still reachable" memory under musl. When I check under glibc allocs/frees match up 1:1. 2020-10-10T06:18:21 #kisslinux <dylanaraps> Alpine have a .supp file for this (which hides these false positives) but they seem to depend on everything having debug symbols (for detection) 2020-10-10T06:18:46 #kisslinux <muevoid> Gotcha I just haven't seen it done like that before I have depend: $(SRCS) then inside of that makedepend $(INCLUDES) $^ 2020-10-10T06:19:35 #kisslinux <dylanaraps> muevoid: Honestly, I just always run 'make -B' as full builds take zero time anywya 2020-10-10T06:19:41 #kisslinux <dylanaraps> anyway* 2020-10-10T06:20:04 #kisslinux <muevoid> Yeah 2020-10-10T06:20:30 #kisslinux <dylanaraps> valgrind reports memory allocated by musl's setenv() as still reachable memory for example 2020-10-10T06:20:46 #kisslinux <muevoid> linking takes like 2 seconds for vinox(the framework im working on) I didn't know you could do make -B I always do make clean && make 2020-10-10T06:21:07 #kisslinux <muevoid> That's really nice 2020-10-10T06:21:22 #kisslinux <muevoid> mcpcpc[m] just so you know I'm not getting messages until I send a message 2020-10-10T06:22:25 #kisslinux <dylanaraps> make -B: real 0m 0.01s 2020-10-10T06:22:26 #kisslinux <dylanaraps> lol 2020-10-10T06:22:42 #kisslinux <dylanaraps> There's not much code here yet to be fair 2020-10-10T06:22:45 #kisslinux <muevoid> How do you get the time? 2020-10-10T06:22:50 #kisslinux <dylanaraps> time make -B 2020-10-10T06:22:58 #kisslinux <dylanaraps> I just pasted it like that 2020-10-10T06:23:24 #kisslinux <muevoid> 2.06s 2020-10-10T06:23:39 #kisslinux <muevoid> most likely mainly due to opengl 2020-10-10T06:24:27 #kisslinux <dylanaraps> Yeah 2020-10-10T06:24:38 #kisslinux <dylanaraps> I'm not linking to anything other than the c library yet 2020-10-10T06:24:48 #kisslinux <dylanaraps> First will be curl 2020-10-10T06:25:03 #kisslinux <muevoid> It's only around 663 loc of code right now 2020-10-10T06:25:10 #kisslinux <muevoid> according to scc 2020-10-10T06:25:19 #kisslinux <muevoid> So my guess is mainly opengl itself 2020-10-10T06:25:25 #kisslinux <muevoid> or just linking the library 2020-10-10T06:25:56 #kisslinux <muevoid> Looks like k has 655 2020-10-10T06:26:21 #kisslinux <dylanaraps> cloc gives me 579 2020-10-10T06:26:22 #kisslinux <dylanaraps> lol 2020-10-10T06:26:59 #kisslinux <muevoid> If I only count headers and c files it is 579 2020-10-10T06:27:11 #kisslinux <dylanaraps> Ah 2020-10-10T06:27:16 #kisslinux <dylanaraps> That's what I did 2020-10-10T06:27:17 #kisslinux <dylanaraps> lol 2020-10-10T06:27:47 #kisslinux <muevoid> Then my project is 557 not including makefile, markdown, and license 2020-10-10T06:30:02 #kisslinux <muevoid> Any ideas for a simple game I can try to make to test out my library some more? 2020-10-10T06:30:48 #kisslinux <dylanaraps> snake is pretty simple 2020-10-10T06:30:55 #kisslinux <dylanaraps> tic-tac-toe too 2020-10-10T06:31:00 #kisslinux <muevoid> Yeah I'll do that 2020-10-10T06:31:06 #kisslinux <muevoid> I've done breakout and pong so far 2020-10-10T06:31:24 #kisslinux <muevoid> Maybe tetris 2020-10-10T06:31:32 #kisslinux <muevoid> Just looking to add more examples 2020-10-10T06:31:41 #kisslinux <muevoid> before I do I should really clean some stuff up 2020-10-10T06:32:03 #kisslinux <muevoid> I have a bad tendency when adding new features putting it anywhere and then making myself clean it up after the fact. 2020-10-10T06:40:53 #kisslinux <muevoid> I'mma get off nice talking o/ 2020-10-10T06:43:06 #kisslinux <dylanaraps> o/ 2020-10-10T07:58:35 #kisslinux <aosync> claudia02: Hi, could you retry my ungoogled-chromium-bin package now? 2020-10-10T09:45:36 #kisslinux <claudia02> aosync: http://ix.io/2Ahl 2020-10-10T09:47:43 #kisslinux <claudia02> the 'ungoogled-chromium-bin' package that is 2020-10-10T10:24:00 #kisslinux <aosync> Could you try with --no-sandbox 2020-10-10T10:26:15 #kisslinux <claudia02> aosync: Thats was already with '--no-sandbox' 2020-10-10T10:26:49 #kisslinux <aosync> Mhmm *why* lol 2020-10-10T10:43:34 #kisslinux <eudaldgr> Who is working on a ungoogled-chromium ? 2020-10-10T10:45:27 #kisslinux <claudia02> eudaldgr: Have a look here https://github.com/aosync/kiss-aosync/tree/master/ungoogled-chromium-bin 2020-10-10T10:46:36 #kisslinux <aosync> It's the ungoogled chromium binary they release for musl distros 2020-10-10T10:47:12 #kisslinux <aosync> It works for me, obviously. claudia02 is the only other person to have tried it but it doesn't work for them 2020-10-10T10:49:24 #kisslinux <eudaldgr> i want to try 2020-10-10T10:50:49 #kisslinux <eudaldgr> ouch.. it needs eudev? 2020-10-10T10:52:00 #kisslinux <claudia02> I have just commented eudev out and used libudev-zero 2020-10-10T10:52:45 #kisslinux <eudaldgr> i'm trying it 2020-10-10T10:53:05 #kisslinux <eudaldgr> aosync: you have some nice things packaged 2020-10-10T10:54:13 #kisslinux <aosync> thanks 2020-10-10T11:56:14 #kisslinux <aosync> verdict? 2020-10-10T12:14:24 #kisslinux <mcpcpc[m]> <muevoid "mcpcpc just so you know I'm not "> expected behavior as this protected user input from being clobbered. although, i might be able to drop it with the 0.1.5 release 2020-10-10T14:55:08 #kisslinux <eudaldgr> someone know how to @mention people with `birch`? 2020-10-10T16:16:39 #kisslinux <aosync> 3 ] [ merakor ] [ pong ] [ thePiGrepper ] 2020-10-10T16:16:40 #kisslinux <aosync> 18:14 [ barm ] [ eudaldgr] [ kinkinkijkin ] [ merakor282272144] [ psydruid ] [ TinyTimmyTokyo] 2020-10-10T16:16:42 #kisslinux <aosync> 18:14 [ barpthewire] [ Fulton ] [ kinozawa ] [ midfavila ] [ pta2002 ] [ tuxcanfly ] 2020-10-10T16:16:46 #kisslinux <aosync> woops 2020-10-10T17:36:27 #kisslinux <Humaid_02> Hello. @aosync. 2020-10-10T17:36:53 #kisslinux <Humaid_02> I tested the ungoogled-chromium-bin and it works fine 2020-10-10T19:36:02 #kisslinux <pong> aosync what the fuck