💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-11-05.txt captured on 2022-07-17 at 03:17:31.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2020-11-05T04:21:32 #kisslinux <dylanaraps> o/ 2020-11-05T04:43:41 #kisslinux <sh4rm4^bnc> o 2020-11-05T15:42:02 #kisslinux <icyphox> Hey folks. 2020-11-05T15:42:08 #kisslinux <midfavila> Heya 2020-11-05T15:42:10 #kisslinux <icyphox> Anyone with Xlib experience here? 2020-11-05T15:42:30 #kisslinux <icyphox> I can't, for the life of me, figure out this seemingly trivial thing. 2020-11-05T15:42:43 #kisslinux <midfavila> Hmm... I doubt it. What're you doing, working with raw Xlib, if I can ask? 2020-11-05T15:44:06 #kisslinux <icyphox> I'm trying to write a program that listens for keypress events globally, grabs the ones that are single- and double-quotes ('/"), and converts them to smartquotes (‘’/“”). 2020-11-05T15:44:35 #kisslinux <icyphox> Basically what macOS has built in. 2020-11-05T15:45:13 #kisslinux <icyphox> I've got the general logic down, but I can't figure out/debug why the program won't enter the event loop in the first place. 2020-11-05T15:45:16 #kisslinux <icyphox> https://termbin.com/26o4 2020-11-05T15:45:57 #kisslinux <icyphox> I think Dylan's worked with Xlib (sowm). 2020-11-05T15:46:37 #kisslinux <midfavila> Aah. I'm not very knowledgeable about C in general, so this might be a stupid question, but what does your while (true) reference? 2020-11-05T15:47:40 #kisslinux <icyphox> Well true here is a boolean, from stdbool.h. The loop runs forever. 2020-11-05T15:47:46 #kisslinux <icyphox> Unless you're asking something else. 2020-11-05T15:48:13 #kisslinux <icyphox> I can also write while (1), but that doesn't really make a difference here haha. 2020-11-05T15:48:29 #kisslinux <midfavila> Askin' something else. Only experience with scripting/programming I have is shell and python, so normally I would be explicitly evaluting the content of a variable to determine whether it's true or false 2020-11-05T15:48:45 #kisslinux <midfavila> so like... while foo = 1 kind of thing. 2020-11-05T15:49:01 #kisslinux <midfavila> seeing it without any sort of external reference is a little odd to me. 2020-11-05T15:49:07 #kisslinux <icyphox> Ah, no you can do the same thing in Python too. Think `while True:` 2020-11-05T15:49:50 #kisslinux <icyphox> Think of it as a conditional that's always true. 2020-11-05T15:49:57 #kisslinux <midfavila> ...Ooooooooooooooh 2020-11-05T15:50:02 #kisslinux <midfavila> Okay, that makes way more sense 2020-11-05T15:50:07 #kisslinux <icyphox> :D 2020-11-05T15:50:24 #kisslinux <midfavila> I don't really do much programming, so I'm kind of a brainlet right now, haha 2020-11-05T15:50:33 #kisslinux <icyphox> No worries! 2020-11-05T15:50:54 #kisslinux <icyphox> I'm not that much of a "programmer" either. 2020-11-05T15:51:06 #kisslinux <icyphox> I just do meme shit to scratch my itches. 2020-11-05T15:51:25 #kisslinux <midfavila> Fair enough 2020-11-05T15:51:42 #kisslinux <midfavila> I've been really tempted to try out a dialect of LISP recently 2020-11-05T15:51:47 #kisslinux <midfavila> a friend recommended Racket 2020-11-05T15:52:08 #kisslinux <icyphox> Oh nice. I don't know too much about Lisps. 2020-11-05T15:52:20 #kisslinux <midfavila> well 2020-11-05T15:52:20 #kisslinux <midfavila> one 2020-11-05T15:52:20 #kisslinux <midfavila> they're fucking ancient 2020-11-05T15:52:31 #kisslinux <midfavila> like... C is babby compared to LISP in terms of age 2020-11-05T15:52:35 #kisslinux <icyphox> The whole FP thing goes way over my head. 2020-11-05T15:52:47 #kisslinux <midfavila> so that immediately makes it "wow vintage cool" to me 2020-11-05T15:52:55 #kisslinux <icyphox> Oh ahah. 2020-11-05T15:53:00 #kisslinux <icyphox> Gotcha 2020-11-05T15:53:08 #kisslinux <icyphox> Do you use emacs? 2020-11-05T15:53:14 #kisslinux <midfavila> Nah 2020-11-05T15:53:29 #kisslinux <midfavila> I like Emacs' command-chords, but it has a lot of features that I don't want in a text editor 2020-11-05T15:53:51 #kisslinux <midfavila> if there was a way to strip emacs down to literally just text editing then I'd be more interested in it 2020-11-05T15:54:02 #kisslinux <midfavila> (mind, I also haven't looked into it a ton...) 2020-11-05T15:54:10 #kisslinux <icyphox> I like the idea of emacs. The all-in-one productivity tool for hackers. 2020-11-05T15:54:23 #kisslinux <icyphox> But it's all elisp and I find that retarded. 2020-11-05T15:54:53 #kisslinux <icyphox> Also, I've been using vim for years now and I literally cannot be arsed to switch to a new editor now haha. 2020-11-05T15:55:00 #kisslinux <midfavila> just use evil mode smh 2020-11-05T15:55:00 #kisslinux <icyphox> Configuring things has become such a chore. 2020-11-05T15:55:17 #kisslinux <icyphox> I mean yeah, but I don't want to have to set up emacs from scratch. 2020-11-05T15:55:27 #kisslinux <midfavila> fair 2020-11-05T15:55:36 #kisslinux <icyphox> Neither do I want to use some off the shelf distribution. 2020-11-05T15:55:59 #kisslinux <midfavila> Honestly, I tinker with stuff like that as a hobby, so it's not a terribly awful thing for me. That's part of why I like KISS 2020-11-05T15:56:20 #kisslinux <icyphox> Yeah for sure. You learn a whole lot that way. 2020-11-05T15:56:25 #kisslinux <midfavila> ...and, of course, the first thing I did was install glibc and the GNU utils, but that's neither here nor there 2020-11-05T15:56:37 #kisslinux <icyphox> lol 2020-11-05T15:56:55 #kisslinux <midfavila> seriously. I'm not a fan of busybox, and some of my programs really dislike musl 2020-11-05T15:57:19 #kisslinux <midfavila> so it's either change my entire workflow from the ground up or use GNU cruft 2020-11-05T15:57:46 #kisslinux <icyphox> I'm not a fan of glibc. It's kinda like the Chromium of libcs. Everyone's slowly switching to that as the primary one, and there's hardly any libc diversity. 2020-11-05T15:58:04 #kisslinux <midfavila> yeah, that's totally fair. in terms of what I personally like, musl is obviously better 2020-11-05T15:58:10 #kisslinux <midfavila> diet and ulib are nice too 2020-11-05T15:58:24 #kisslinux <icyphox> I use OpenBSD libc. ;) 2020-11-05T15:58:29 #kisslinux <midfavila> the more I use KISS the more I dislike GNU tbh :v 2020-11-05T15:58:47 #kisslinux <icyphox> lol 2020-11-05T15:58:53 #kisslinux <midfavila> because their goal is admirable, but monopolies are bad, even in the free software world 2020-11-05T15:59:05 #kisslinux <icyphox> +1 2020-11-05T15:59:32 #kisslinux <neeasade> <icyphox> I mean yeah, but I don't want to have to set up emacs from scratch. 2020-11-05T15:59:34 #kisslinux <neeasade> v fair 2020-11-05T15:59:36 #kisslinux <midfavila> if I could I'd just compile all my software for glibc and then replace the GNU and busybox tooling with plan 9 stuff 2020-11-05T15:59:41 #kisslinux <neeasade> I'm invested in the hole, so I'm already there 2020-11-05T15:59:43 #kisslinux <icyphox> Ayy neeasade good to see ya here. 2020-11-05T15:59:46 #kisslinux <neeasade> hihi 2020-11-05T15:59:50 #kisslinux <neeasade> emacs is in my highlights lol 2020-11-05T15:59:51 #kisslinux <midfavila> since it's narrowly POSIX or w/e 2020-11-05T16:00:01 #kisslinux <midfavila> and you know what, maybe I'll check out emacs 2020-11-05T16:00:04 #kisslinux <icyphox> Yeah, same. My vim config is years old. 2020-11-05T16:00:05 #kisslinux <midfavila> it's still GTK2 right? 2020-11-05T16:00:25 #kisslinux <icyphox> midfavila: emacs -nw 2020-11-05T16:00:34 #kisslinux <neeasade> midfavila: gtk3 I think 2020-11-05T16:00:39 #kisslinux <midfavila> fuck 2020-11-05T16:00:51 #kisslinux <neeasade> I don't use it in the terminal b/c I like mixing font styles :') 2020-11-05T16:01:04 #kisslinux <icyphox> Oh you don't use emacs in the terminal? 2020-11-05T16:01:16 #kisslinux <neeasade> that's correct 2020-11-05T16:01:24 #kisslinux <midfavila> i'm lame and just like the look of GUI programs 2020-11-05T16:01:25 #kisslinux <icyphox> Wait, who was that exwm fella. 2020-11-05T16:01:33 #kisslinux <midfavila> as based and ebic as terminal stuff is 2020-11-05T16:01:42 #kisslinux <icyphox> Oh someone from #homescreen I think. 2020-11-05T16:01:54 #kisslinux <neeasade> yeah I love bspwm 2much to leave it 2020-11-05T16:01:56 #kisslinux <icyphox> midfavila: I cannot stand GUIs anymore. 2020-11-05T16:02:17 #kisslinux <icyphox> Ah yeah bspwm. I think my endgame WM is cwm. 2020-11-05T16:02:31 #kisslinux <neeasade> I like serifs and variable width text, but terminal's are nice. these are all emacs though (excl. browser, panel: https://0x0.st/idlj.png) 2020-11-05T16:02:36 #kisslinux <midfavila> don't even use a WM smh 2020-11-05T16:02:42 #kisslinux <midfavila> use xutil and xdotool 2020-11-05T16:02:44 #kisslinux <icyphox> Honestly, I can use 2bwm just fine too, since I'm always in tmux. 2020-11-05T16:02:52 #kisslinux <icyphox> midfavila: based 2020-11-05T16:02:58 #kisslinux <midfavila> kek 2020-11-05T16:03:05 #kisslinux <midfavila> I just use FVWM. 2020-11-05T16:03:10 #kisslinux <midfavila> the Emacs of window managers 2020-11-05T16:03:14 #kisslinux <neeasade> lol 2020-11-05T16:03:21 #kisslinux <icyphox> https://x.icyphox.sh/3Dj1W.png 2020-11-05T16:03:37 #kisslinux <neeasade> tbf the way I use bspwm is a little odd -- I use tags, and one desktop, and then use the tags to toggle hidden flags 2020-11-05T16:03:45 #kisslinux <neeasade> window-group type of thing 2020-11-05T16:03:55 #kisslinux <neeasade> icyphox: yummy 2020-11-05T16:04:02 #kisslinux <icyphox> :D 2020-11-05T16:04:13 #kisslinux <midfavila> that's pretty neat, but far too bright for me, haha 2020-11-05T16:04:31 #kisslinux <icyphox> I've been using this colorscheme for the past 8 months ish. 2020-11-05T16:04:39 #kisslinux <neeasade> I'm all in on the brightness baby https://0x0.st/idwL.png 2020-11-05T16:04:41 #kisslinux <midfavila> Oh, hey, wait a sec- 2020-11-05T16:04:45 #kisslinux <neeasade> light schemes for like 4 years now 2020-11-05T16:04:45 #kisslinux <icyphox> I've tried to switch to something else, but I literally cannot. 2020-11-05T16:04:46 #kisslinux <midfavila> you're the workman guy 2020-11-05T16:04:54 #kisslinux <icyphox> lol yes. 2020-11-05T16:05:06 #kisslinux <icyphox> Have we met? 2020-11-05T16:05:09 #kisslinux <neeasade> how can I get a reputation as the colemak-dh guy 2020-11-05T16:05:16 #kisslinux <icyphox> neeasade: Pretty! 2020-11-05T16:05:17 #kisslinux <midfavila> nope, but I came across your layout files about a year ago 2020-11-05T16:05:19 #kisslinux <midfavila> they're pretty comfy 2020-11-05T16:05:22 #kisslinux <neeasade> that's ok, I'll settle for "colemak-dh guy who comments on the workman guys post" 2020-11-05T16:05:31 #kisslinux <neeasade> icyphox: tyty 2020-11-05T16:05:48 #kisslinux <midfavila> I can't use it for long enough to adjust though. Maybe I should reprogram my Soarer's to switch between the two layouts... 2020-11-05T16:05:53 #kisslinux <neeasade> satisfying part of this rice is also mirroring it to my site: https://notes.neeasade.net/adhoc-executable-patching-on-nix.html 2020-11-05T16:05:55 #kisslinux <icyphox> midfavila: Wait what? I've been using Workman for ~1.5 months lolol. 2020-11-05T16:06:06 #kisslinux <icyphox> How did you find my layout files a year ago lmao 2020-11-05T16:06:15 #kisslinux <neeasade> midfavila: icy posted about learning workman on lobsters v recently 2020-11-05T16:06:17 #kisslinux <midfavila> i'm being hyperbolic :v 2020-11-05T16:06:25 #kisslinux <midfavila> it was a while ago, is what I'm saying 2020-11-05T16:06:42 #kisslinux <icyphox> Ahhh, yeah. 2020-11-05T16:06:54 #kisslinux <icyphox> Also neeasade your blog looks so nice. 2020-11-05T16:07:01 #kisslinux <neeasade> icyphox: THANKS 2020-11-05T16:07:02 #kisslinux <midfavila> isn't lobsters that one site similar to reddit but super pretentious or w/e 2020-11-05T16:07:04 #kisslinux <neeasade> now to just write stuff 2020-11-05T16:07:07 #kisslinux <icyphox> Also wait -- you're a RC alum?!? 2020-11-05T16:07:10 #kisslinux <icyphox> an* 2020-11-05T16:07:16 #kisslinux <neeasade> icyphox: yeah, Jan-Mar of this year 2020-11-05T16:07:21 #kisslinux <icyphox> midfavila: Yeah it's very based. 2020-11-05T16:07:24 #kisslinux <neeasade> ejected nyc as the pandemic hit 2020-11-05T16:07:27 #kisslinux <midfavila> RC? 2020-11-05T16:07:29 #kisslinux <icyphox> Nice. 2020-11-05T16:07:36 #kisslinux <icyphox> midfavila: Recurse Center 2020-11-05T16:07:42 #kisslinux <neeasade> midfavila: https://www.recurse.com/ 2020-11-05T16:07:44 #kisslinux <icyphox> Would you recommend it neeasade? 2020-11-05T16:08:03 #kisslinux <midfavila> Oh, wow 2020-11-05T16:08:05 #kisslinux <midfavila> That's pretty cool 2020-11-05T16:08:07 #kisslinux <neeasade> yes -- it's a really chill vibe, and they've put a lot of effort into the remote experience with current situation 2020-11-05T16:08:22 #kisslinux <icyphox> I see. 2020-11-05T16:08:32 #kisslinux <neeasade> like I'll still attend events and stuff through zoom and give talks occasionally 2020-11-05T16:08:37 #kisslinux <icyphox> I'm not sure if I'm that heavily invested in "programming" to attend. 2020-11-05T16:08:57 #kisslinux <icyphox> Yeah, I peeped their website and read about how things happen now. 2020-11-05T16:09:05 #kisslinux <icyphox> Interesting. 2020-11-05T16:09:27 #kisslinux <icyphox> Does your site have an RSS feed, BTW? 2020-11-05T16:09:29 #kisslinux <neeasade> ¯_(ツ)_/¯ "programming" is soooo open ended -- you participate as much as you like pretty much, and are encouraged to share and do checkins on occasion 2020-11-05T16:09:36 #kisslinux <neeasade> icyphox: it does -- do you want the curated or full one 2020-11-05T16:09:48 #kisslinux <icyphox> I'll take everything that you post, TYVM. 2020-11-05T16:09:57 #kisslinux <neeasade> https://notes.neeasade.net/rss_full.xml 2020-11-05T16:10:05 #kisslinux <icyphox> Basado 2020-11-05T16:10:14 #kisslinux <neeasade> baste 2020-11-05T16:10:22 #kisslinux <midfavila> man, that reminds me, I need to rewrite my site... it's super web 1.0 2020-11-05T16:10:30 #kisslinux <icyphox> Let's see it. 2020-11-05T16:10:38 #kisslinux <midfavila> nah, it's embarassing, haha 2020-11-05T16:10:46 #kisslinux <icyphox> Mine used to be super flashy, but I think I've mellowed down a lot in my style. 2020-11-05T16:10:48 #kisslinux <midfavila> it's literally just like 2020-11-05T16:10:48 #kisslinux <midfavila> a single div with some buttons and a blurb 2020-11-05T16:10:52 #kisslinux <icyphox> lol 2020-11-05T16:11:05 #kisslinux <midfavila> and I've got this purple tiling tux background 2020-11-05T16:11:08 #kisslinux <midfavila> and that's it 2020-11-05T16:11:09 #kisslinux <midfavila> :v 2020-11-05T16:11:25 #kisslinux <midfavila> I'll probably upload my KISS repo and make it browsable in the future 2020-11-05T16:11:26 #kisslinux <neeasade> 🅱urble 2020-11-05T16:11:34 #kisslinux <icyphox> neeasade: Why do a lot of posts show up as 'nil'? 2020-11-05T16:11:39 #kisslinux <icyphox> No title? 2020-11-05T16:11:56 #kisslinux <neeasade> icyphox: oh oops. I'll take a look 2020-11-05T16:12:42 #kisslinux <neeasade> ah I see the issue. sec 2020-11-05T16:13:23 #kisslinux <icyphox> What are you using to generate your site? Some org-mode thing? 2020-11-05T16:14:32 #kisslinux <neeasade> icyphox: yepp -- and the issue was I was not falling back to regular title when no rss title was provided (that's now I selectively include stuff in the other feed) 2020-11-05T16:14:44 #kisslinux <neeasade> icyphox: fixed now? 2020-11-05T16:15:50 #kisslinux <icyphox> Yes! 2020-11-05T16:15:52 #kisslinux <icyphox> Nice. 2020-11-05T16:15:57 #kisslinux <neeasade> org can be "meta" -- I'm using elisp to generate the org markup from the list of posts: https://raw.githubusercontent.com/neeasade/neeasade.github.io/71009b4cc9f665c03855b5c1505425beb1502a20/rss/rss_full.org 2020-11-05T16:16:04 #kisslinux <neeasade> icyphox: thanks for confirming 2020-11-05T16:16:10 #kisslinux <icyphox> You should also add your post content in the <description>. 2020-11-05T16:16:33 #kisslinux <neeasade> I was back and forth on that, but I forget why 2020-11-05T16:16:39 #kisslinux <neeasade> I think I was overthinking the possibility of a fat feed 2020-11-05T16:16:47 #kisslinux <icyphox> It's just a link to your post right now. Which is not a bad thing, but people (me included), like reading posts from within their feedreader. 2020-11-05T16:17:00 #kisslinux <neeasade> I'll add it in there 2020-11-05T16:17:01 #kisslinux <icyphox> Nah, I think it's fine. I do it too. 2020-11-05T16:17:05 #kisslinux <icyphox> Based. 2020-11-05T16:17:10 #kisslinux <neeasade> based on what? 2020-11-05T16:17:12 #kisslinux <midfavila> the slow resurgence of RSS is fantastic 2020-11-05T16:17:13 #kisslinux <neeasade> the girl readin this 2020-11-05T16:17:17 #kisslinux <icyphox> lol 2020-11-05T16:17:24 #kisslinux <icyphox> midfavila: It's always been there man. 2020-11-05T16:17:31 #kisslinux <icyphox> or woman 2020-11-05T16:17:47 #kisslinux <midfavila> Well, yeah, but it sort of fell out of popularity as far as I was aware 2020-11-05T16:18:07 #kisslinux <icyphox> I guess it's just bigcorps trying to monopolize things. 2020-11-05T16:18:19 #kisslinux <icyphox> I think Twitter had an RSS feed too, at one point. 2020-11-05T16:18:24 #kisslinux <icyphox> Or I'm misremembering. 2020-11-05T16:18:26 #kisslinux <midfavila> who knows 2020-11-05T16:18:37 #kisslinux <icyphox> But yeah, RSS all the things! 2020-11-05T16:18:58 #kisslinux <midfavila> I've found myself gradually migrating to RSS, USENET and IRC over the past little while for all my stuff 2020-11-05T16:19:12 #kisslinux <midfavila> as opposed to stretching across platforms. which is just annoying... 2020-11-05T16:19:16 #kisslinux <icyphox> Nice. 2020-11-05T16:19:31 #kisslinux <icyphox> IRC is probably the best "tech" thing I discovered as a kid. 2020-11-05T16:19:49 #kisslinux <midfavila> when I was younger I spent a lot of time on web BBSes 2020-11-05T16:19:49 #kisslinux <icyphox> Oh god I sound old. I'm just 20. 2020-11-05T16:20:10 #kisslinux <icyphox> Oh, I don't think I ever did that 2020-11-05T16:20:46 #kisslinux <midfavila> I've always preferred forums 'cuz they're more slow-paced 2020-11-05T16:21:10 #kisslinux <icyphox> neeasade: Aren't you a cosmere fan? Or like, you've read a few books in the series right? 2020-11-05T16:21:41 #kisslinux <neeasade> I've read the mistborn trilogy icyphox 2020-11-05T16:21:53 #kisslinux <neeasade> or rather, listened to them 2020-11-05T16:22:24 #kisslinux <icyphox> Oh. 2020-11-05T16:22:29 #kisslinux <midfavila> What's Cosmere? 2020-11-05T16:22:48 #kisslinux <neeasade> https://coppermind.net/wiki/Cosmere 2020-11-05T16:22:52 #kisslinux <icyphox> midfavila: https://en.wikipedia.org/wiki/Cosmere 2020-11-05T16:23:30 #kisslinux <icyphox> neeasade: I finished the Stormlight books till Oathbringer, including Edgedancer. And I also read Warbreaker. 2020-11-05T16:23:44 #kisslinux <icyphox> Anyway, I asked because Rhythm of War is coming out. 2020-11-05T16:23:47 #kisslinux <midfavila> >wants to avoid people needing to buy ridiculous number of books 2020-11-05T16:23:47 #kisslinux <midfavila> >estimates that his story will conclude at around forty 2020-11-05T16:23:49 #kisslinux <icyphox> In 2 weeks. 2020-11-05T16:23:49 #kisslinux <midfavila> nice 2020-11-05T16:23:53 #kisslinux <neeasade> icyphox: hype for you 2020-11-05T16:24:01 #kisslinux <icyphox> Yehhh 2020-11-05T16:24:10 #kisslinux <neeasade> there's a fantasy books youtube channel, and I gather sanderson is a hype lord 2020-11-05T16:24:11 #kisslinux <E5ten> midfavila: the point isn't that there won't be a lot of books, it's that you don't need to read the others to be able to read a series 2020-11-05T16:24:18 #kisslinux <neeasade> (no unjustified) 2020-11-05T16:24:20 #kisslinux <neeasade> not* 2020-11-05T16:24:22 #kisslinux <icyphox> midfavila: If you have nothing better to do, you should get into it. 2020-11-05T16:24:36 #kisslinux <midfavila> Yeah, I figured. I'm just messing around 2020-11-05T16:24:36 #kisslinux <midfavila> and tbh I'm busy with college right now icyphox 2020-11-05T16:24:55 #kisslinux <E5ten> I've read them all so far except the second mistborn series (I've read the first book in that so far) 2020-11-05T16:25:00 #kisslinux <icyphox> Oh, yeah me too. But college is from home and I'm not that great academically anyway so lmao. 2020-11-05T16:25:06 #kisslinux <midfavila> honestly same 2020-11-05T16:25:16 #kisslinux <icyphox> E5ten: Awesome. I'm reading Elantris right now. 2020-11-05T16:25:33 #kisslinux <icyphox> Don't want to start the whole series of Mistborn before RoW. 2020-11-05T16:25:44 #kisslinux <E5ten> oh nice, that was the first one I read, a friend recommended it 2020-11-05T16:25:54 #kisslinux <midfavila> for me I just can't motivate myself right now. signed up for a computer administration and security course, so far it's just been "here's the CompTIA Project+ textbook, do everything in it, and also learn MS Word." 2020-11-05T16:26:04 #kisslinux <icyphox> lmao 2020-11-05T16:26:11 #kisslinux <midfavila> it's so fucking boring 2020-11-05T16:26:12 #kisslinux <icyphox> midfavila: Are you a freshman? 2020-11-05T16:26:15 #kisslinux <midfavila> Yeah 2020-11-05T16:26:20 #kisslinux <midfavila> I just graduated high school this summer 2020-11-05T16:26:23 #kisslinux <icyphox> Ah, I'm in my 7th semester. 2020-11-05T16:26:29 #kisslinux <icyphox> Nearly done with this meme. 2020-11-05T16:26:34 #kisslinux <midfavila> Nice. 2020-11-05T16:26:35 #kisslinux <icyphox> CS is a joke NGL. 2020-11-05T16:26:37 #kisslinux <E5ten> icyphox: oh my god I forgot that the new stormlight was coming out so soon, hell yeah 2020-11-05T16:26:43 #kisslinux <midfavila> I wish I could have taken CS at my local uni 2020-11-05T16:26:44 #kisslinux <icyphox> E5ten: Yessss! 2020-11-05T16:26:53 #kisslinux <midfavila> but they want all these stupid prereqs in high school and I'd have to do another year there 2020-11-05T16:26:56 #kisslinux <midfavila> which is just 2020-11-05T16:26:56 #kisslinux <midfavila> no 2020-11-05T16:27:01 #kisslinux <icyphox> lol 2020-11-05T16:27:11 #kisslinux <icyphox> E5ten: Dawnbreaker too. 2020-11-05T16:27:21 #kisslinux <icyphox> It's going to be about Rysn. 2020-11-05T16:27:59 #kisslinux <E5ten> nice 2020-11-05T16:28:01 #kisslinux <icyphox> Okay folks, I think I'm going to settle down with my book and go to bed soon after. Good talk! 2020-11-05T16:28:08 #kisslinux <midfavila> See you. 2020-11-05T16:28:15 #kisslinux <icyphox> o/ 2020-11-05T16:28:27 #kisslinux <neeasade> later 2020-11-05T16:32:40 #kisslinux <neeasade> icyphox: do you put markdown in your description or just the html output 2020-11-05T16:34:59 #kisslinux <neeasade> icyphox: o I see the html output 2020-11-05T16:35:00 #kisslinux <neeasade> ok yolo 2020-11-05T16:50:26 #kisslinux <midfavila> on the topic of sites though... you know what project actually has a really nice site? 2020-11-05T16:50:30 #kisslinux <midfavila> abiword, of all things 2020-11-05T16:51:23 #kisslinux <neeasade> JPG https://www.abisource.com/gfx/abilogo.jpg 2020-11-05T16:51:50 #kisslinux <midfavila> What about it? 2020-11-05T18:04:07 #kisslinux <midfavila> oh man, the default kiss package for emacs uses Xaw 2020-11-05T18:04:07 #kisslinux <midfavila> that's fantastic :v 2020-11-05T20:01:47 #kisslinux <muevoid> Hey mcf you have a pretty decent experience in c right? 2020-11-05T20:06:22 #kisslinux <xmn11> icyphox: add a newline, "in the loopn" 2020-11-05T20:06:45 #kisslinux <xmn11> Otherwise input is stuck in the buffer 2020-11-05T20:06:55 #kisslinux <xmn11> A newline flushes the buffer 2020-11-05T20:07:10 #kisslinux <xmn11> So, technically you should have entered the loop 2020-11-05T20:07:38 #kisslinux <midfavila> I hate bugs like that. Ones where you technically didn't do anything wrong, that is 2020-11-05T20:10:50 #kisslinux <muevoid> does "read(...)" cause futex to be ran? 2020-11-05T20:21:24 #kisslinux <mcf> muevoid: sorry, i don't know much about how futexes work. my best suggestion is write a test program to check the behavior 2020-11-05T20:22:22 #kisslinux <muevoid> No problem! My library has random freezes I tried using strace to connect to the process the main thread uses read(...) as the last call and freezes. But I don't call read anywhere *shrug* 2020-11-05T20:24:57 #kisslinux <mcf> the read could come from libc or one of your dependencies. can you get a backtrace with gdb to see where it's coming from? 2020-11-05T20:25:06 #kisslinux <mcf> are you sure it is freezing, or is it just a blocking read? 2020-11-05T20:26:04 #kisslinux <muevoid> Not sure. The weirdest part is it can take a few seconds from launching the application or ive had it take as long as 30 mins 2020-11-05T20:26:09 #kisslinux <muevoid> I will try to get a backtrace here 2020-11-05T20:27:31 #kisslinux <mcf> i tend to avoid threads as much as possible. debugging these sort of synchronization bugs is really difficult 2020-11-05T20:28:00 #kisslinux <muevoid> I don't even have any threads in my application itself I'm assuming it's from one of the libs I am using but not sure from where. I only use glfw and libGLESv2 2020-11-05T20:33:33 #kisslinux <muevoid> with debugging symbols it isn't freezing so far lately it has been freezing more frequently so this is strange 2020-11-05T20:35:42 #kisslinux <muevoid> I was thinking it may be optimization but I was only using O1 so im not sure 2020-11-05T20:36:46 #kisslinux <xmn11> https://www.oreilly.com/library/view/xlib-reference-manual/9780937175262/13_appendix-e.html 2020-11-05T20:37:30 #kisslinux <xmn11> icyphox: >The keyboard focus is a window that has been designated as the one to receive all keyboard input irrespective of the pointer position. Only the keyboard focus window and its descendants receive keyboard events. By default, the focus window is the root window. Since all Most window managers allow the user to set a focus window, to avoid the problem where the pointer sometimes gets bumped into the 2020-11-05T20:37:32 #kisslinux <xmn11> wrong window and your typing doesn't go to the intended window. If the pointer is pointing at the root window, all typing is usually lost since there is no application for this input to propagate to. Some applications may set the keyboard focus so that they can get all keyboard input for a given period of time, but this practice is not encouraged. 2020-11-05T20:41:43 #kisslinux <muevoid> Ill be back I'm gonna try upgrading my kernel *shrug* 2020-11-05T21:06:56 #kisslinux <muevoid> No luck :( 2020-11-05T21:11:06 #kisslinux <mcf> muevoid: what file descriptor is it trying to read from? what's the context around the read? 2020-11-05T21:11:51 #kisslinux <muevoid> I tried using gdb even with -g for both the lib and application I can't seem to get any meaninful help 2020-11-05T21:12:26 #kisslinux <muevoid> just the following which is of no help https://termbin.com/02av 2020-11-05T21:13:37 #kisslinux <mcf> what about a backtrace? 2020-11-05T21:14:07 #kisslinux <muevoid> Backtrace of all the threads says the same thing basically 2020-11-05T21:15:43 #kisslinux <muevoid> I think the most annoying part is there is no consistent way to reproduce it and it is random 2020-11-05T21:15:54 #kisslinux <xmn11> muevoid: source code? 2020-11-05T21:16:04 #kisslinux <mcf> what about context in the strace where you determined that the read was hanging? 2020-11-05T21:16:17 #kisslinux <mcf> you should be able to determine what was happening in your program around that time 2020-11-05T21:16:44 #kisslinux <muevoid> https://github.com/muevoid/vinox is the library that I believe is causing it. And then https://github.com/orbernum is what is freezing 2020-11-05T21:17:08 #kisslinux <muevoid> I had to attach it after the fact so no meaninful information before hand I am attempting to reproduce right now 2020-11-05T21:17:35 #kisslinux <xmn11> The second one is 404 2020-11-05T21:18:01 #kisslinux <muevoid> My bad https://github.com/muevoid/orbernumlib 2020-11-05T21:21:01 #kisslinux <muevoid> I really wonder if it some optimization flag cause with -g or no -O anything it doesn't seem to happen as often (I thought i had -g on for the gdb outlog I sent I didn't) 2020-11-05T21:21:11 #kisslinux <muevoid> So I wonder what optimization could possibly be causing this 2020-11-05T21:22:32 #kisslinux <muevoid> I would just have it be built without -O anything but it is quite slow then I would like to at least have -O1 2020-11-05T21:22:37 #kisslinux <muevoid> but even that seems to cause issues 2020-11-05T21:22:45 #kisslinux <muevoid> (if that is the problem) 2020-11-05T21:26:37 #kisslinux <muevoid> Yeah still no freeze with -g 2020-11-05T21:28:39 #kisslinux <muevoid> be back in a bit