2020-11-05T04:21:32 #kisslinux o/ 2020-11-05T04:43:41 #kisslinux o 2020-11-05T15:42:02 #kisslinux Hey folks. 2020-11-05T15:42:08 #kisslinux Heya 2020-11-05T15:42:10 #kisslinux Anyone with Xlib experience here? 2020-11-05T15:42:30 #kisslinux I can't, for the life of me, figure out this seemingly trivial thing. 2020-11-05T15:42:43 #kisslinux Hmm... I doubt it. What're you doing, working with raw Xlib, if I can ask? 2020-11-05T15:44:06 #kisslinux 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 Basically what macOS has built in. 2020-11-05T15:45:13 #kisslinux 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 https://termbin.com/26o4 2020-11-05T15:45:57 #kisslinux I think Dylan's worked with Xlib (sowm). 2020-11-05T15:46:37 #kisslinux 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 Well true here is a boolean, from stdbool.h. The loop runs forever. 2020-11-05T15:47:46 #kisslinux Unless you're asking something else. 2020-11-05T15:48:13 #kisslinux I can also write while (1), but that doesn't really make a difference here haha. 2020-11-05T15:48:29 #kisslinux 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 so like... while foo = 1 kind of thing. 2020-11-05T15:49:01 #kisslinux seeing it without any sort of external reference is a little odd to me. 2020-11-05T15:49:07 #kisslinux Ah, no you can do the same thing in Python too. Think `while True:` 2020-11-05T15:49:50 #kisslinux Think of it as a conditional that's always true. 2020-11-05T15:49:57 #kisslinux ...Ooooooooooooooh 2020-11-05T15:50:02 #kisslinux Okay, that makes way more sense 2020-11-05T15:50:07 #kisslinux :D 2020-11-05T15:50:24 #kisslinux I don't really do much programming, so I'm kind of a brainlet right now, haha 2020-11-05T15:50:33 #kisslinux No worries! 2020-11-05T15:50:54 #kisslinux I'm not that much of a "programmer" either. 2020-11-05T15:51:06 #kisslinux I just do meme shit to scratch my itches. 2020-11-05T15:51:25 #kisslinux Fair enough 2020-11-05T15:51:42 #kisslinux I've been really tempted to try out a dialect of LISP recently 2020-11-05T15:51:47 #kisslinux a friend recommended Racket 2020-11-05T15:52:08 #kisslinux Oh nice. I don't know too much about Lisps. 2020-11-05T15:52:20 #kisslinux well 2020-11-05T15:52:20 #kisslinux one 2020-11-05T15:52:20 #kisslinux they're fucking ancient 2020-11-05T15:52:31 #kisslinux like... C is babby compared to LISP in terms of age 2020-11-05T15:52:35 #kisslinux The whole FP thing goes way over my head. 2020-11-05T15:52:47 #kisslinux so that immediately makes it "wow vintage cool" to me 2020-11-05T15:52:55 #kisslinux Oh ahah. 2020-11-05T15:53:00 #kisslinux Gotcha 2020-11-05T15:53:08 #kisslinux Do you use emacs? 2020-11-05T15:53:14 #kisslinux Nah 2020-11-05T15:53:29 #kisslinux 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 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 (mind, I also haven't looked into it a ton...) 2020-11-05T15:54:10 #kisslinux I like the idea of emacs. The all-in-one productivity tool for hackers. 2020-11-05T15:54:23 #kisslinux But it's all elisp and I find that retarded. 2020-11-05T15:54:53 #kisslinux 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 just use evil mode smh 2020-11-05T15:55:00 #kisslinux Configuring things has become such a chore. 2020-11-05T15:55:17 #kisslinux I mean yeah, but I don't want to have to set up emacs from scratch. 2020-11-05T15:55:27 #kisslinux fair 2020-11-05T15:55:36 #kisslinux Neither do I want to use some off the shelf distribution. 2020-11-05T15:55:59 #kisslinux 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 Yeah for sure. You learn a whole lot that way. 2020-11-05T15:56:25 #kisslinux ...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 lol 2020-11-05T15:56:55 #kisslinux seriously. I'm not a fan of busybox, and some of my programs really dislike musl 2020-11-05T15:57:19 #kisslinux so it's either change my entire workflow from the ground up or use GNU cruft 2020-11-05T15:57:46 #kisslinux 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 yeah, that's totally fair. in terms of what I personally like, musl is obviously better 2020-11-05T15:58:10 #kisslinux diet and ulib are nice too 2020-11-05T15:58:24 #kisslinux I use OpenBSD libc. ;) 2020-11-05T15:58:29 #kisslinux the more I use KISS the more I dislike GNU tbh :v 2020-11-05T15:58:47 #kisslinux lol 2020-11-05T15:58:53 #kisslinux because their goal is admirable, but monopolies are bad, even in the free software world 2020-11-05T15:59:05 #kisslinux +1 2020-11-05T15:59:32 #kisslinux I mean yeah, but I don't want to have to set up emacs from scratch. 2020-11-05T15:59:34 #kisslinux v fair 2020-11-05T15:59:36 #kisslinux 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 I'm invested in the hole, so I'm already there 2020-11-05T15:59:43 #kisslinux Ayy neeasade good to see ya here. 2020-11-05T15:59:46 #kisslinux hihi 2020-11-05T15:59:50 #kisslinux emacs is in my highlights lol 2020-11-05T15:59:51 #kisslinux since it's narrowly POSIX or w/e 2020-11-05T16:00:01 #kisslinux and you know what, maybe I'll check out emacs 2020-11-05T16:00:04 #kisslinux Yeah, same. My vim config is years old. 2020-11-05T16:00:05 #kisslinux it's still GTK2 right? 2020-11-05T16:00:25 #kisslinux midfavila: emacs -nw 2020-11-05T16:00:34 #kisslinux midfavila: gtk3 I think 2020-11-05T16:00:39 #kisslinux fuck 2020-11-05T16:00:51 #kisslinux I don't use it in the terminal b/c I like mixing font styles :') 2020-11-05T16:01:04 #kisslinux Oh you don't use emacs in the terminal? 2020-11-05T16:01:16 #kisslinux that's correct 2020-11-05T16:01:24 #kisslinux i'm lame and just like the look of GUI programs 2020-11-05T16:01:25 #kisslinux Wait, who was that exwm fella. 2020-11-05T16:01:33 #kisslinux as based and ebic as terminal stuff is 2020-11-05T16:01:42 #kisslinux Oh someone from #homescreen I think. 2020-11-05T16:01:54 #kisslinux yeah I love bspwm 2much to leave it 2020-11-05T16:01:56 #kisslinux midfavila: I cannot stand GUIs anymore. 2020-11-05T16:02:17 #kisslinux Ah yeah bspwm. I think my endgame WM is cwm. 2020-11-05T16:02:31 #kisslinux 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 don't even use a WM smh 2020-11-05T16:02:42 #kisslinux use xutil and xdotool 2020-11-05T16:02:44 #kisslinux Honestly, I can use 2bwm just fine too, since I'm always in tmux. 2020-11-05T16:02:52 #kisslinux midfavila: based 2020-11-05T16:02:58 #kisslinux kek 2020-11-05T16:03:05 #kisslinux I just use FVWM. 2020-11-05T16:03:10 #kisslinux the Emacs of window managers 2020-11-05T16:03:14 #kisslinux lol 2020-11-05T16:03:21 #kisslinux https://x.icyphox.sh/3Dj1W.png 2020-11-05T16:03:37 #kisslinux 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 window-group type of thing 2020-11-05T16:03:55 #kisslinux icyphox: yummy 2020-11-05T16:04:02 #kisslinux :D 2020-11-05T16:04:13 #kisslinux that's pretty neat, but far too bright for me, haha 2020-11-05T16:04:31 #kisslinux I've been using this colorscheme for the past 8 months ish. 2020-11-05T16:04:39 #kisslinux I'm all in on the brightness baby https://0x0.st/idwL.png 2020-11-05T16:04:41 #kisslinux Oh, hey, wait a sec- 2020-11-05T16:04:45 #kisslinux light schemes for like 4 years now 2020-11-05T16:04:45 #kisslinux I've tried to switch to something else, but I literally cannot. 2020-11-05T16:04:46 #kisslinux you're the workman guy 2020-11-05T16:04:54 #kisslinux lol yes. 2020-11-05T16:05:06 #kisslinux Have we met? 2020-11-05T16:05:09 #kisslinux how can I get a reputation as the colemak-dh guy 2020-11-05T16:05:16 #kisslinux neeasade: Pretty! 2020-11-05T16:05:17 #kisslinux nope, but I came across your layout files about a year ago 2020-11-05T16:05:19 #kisslinux they're pretty comfy 2020-11-05T16:05:22 #kisslinux that's ok, I'll settle for "colemak-dh guy who comments on the workman guys post" 2020-11-05T16:05:31 #kisslinux icyphox: tyty 2020-11-05T16:05:48 #kisslinux 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 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 midfavila: Wait what? I've been using Workman for ~1.5 months lolol. 2020-11-05T16:06:06 #kisslinux How did you find my layout files a year ago lmao 2020-11-05T16:06:15 #kisslinux midfavila: icy posted about learning workman on lobsters v recently 2020-11-05T16:06:17 #kisslinux i'm being hyperbolic :v 2020-11-05T16:06:25 #kisslinux it was a while ago, is what I'm saying 2020-11-05T16:06:42 #kisslinux Ahhh, yeah. 2020-11-05T16:06:54 #kisslinux Also neeasade your blog looks so nice. 2020-11-05T16:07:01 #kisslinux icyphox: THANKS 2020-11-05T16:07:02 #kisslinux isn't lobsters that one site similar to reddit but super pretentious or w/e 2020-11-05T16:07:04 #kisslinux now to just write stuff 2020-11-05T16:07:07 #kisslinux Also wait -- you're a RC alum?!? 2020-11-05T16:07:10 #kisslinux an* 2020-11-05T16:07:16 #kisslinux icyphox: yeah, Jan-Mar of this year 2020-11-05T16:07:21 #kisslinux midfavila: Yeah it's very based. 2020-11-05T16:07:24 #kisslinux ejected nyc as the pandemic hit 2020-11-05T16:07:27 #kisslinux RC? 2020-11-05T16:07:29 #kisslinux Nice. 2020-11-05T16:07:36 #kisslinux midfavila: Recurse Center 2020-11-05T16:07:42 #kisslinux midfavila: https://www.recurse.com/ 2020-11-05T16:07:44 #kisslinux Would you recommend it neeasade? 2020-11-05T16:08:03 #kisslinux Oh, wow 2020-11-05T16:08:05 #kisslinux That's pretty cool 2020-11-05T16:08:07 #kisslinux 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 I see. 2020-11-05T16:08:32 #kisslinux like I'll still attend events and stuff through zoom and give talks occasionally 2020-11-05T16:08:37 #kisslinux I'm not sure if I'm that heavily invested in "programming" to attend. 2020-11-05T16:08:57 #kisslinux Yeah, I peeped their website and read about how things happen now. 2020-11-05T16:09:05 #kisslinux Interesting. 2020-11-05T16:09:27 #kisslinux Does your site have an RSS feed, BTW? 2020-11-05T16:09:29 #kisslinux ¯_(ツ)_/¯ "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 icyphox: it does -- do you want the curated or full one 2020-11-05T16:09:48 #kisslinux I'll take everything that you post, TYVM. 2020-11-05T16:09:57 #kisslinux https://notes.neeasade.net/rss_full.xml 2020-11-05T16:10:05 #kisslinux Basado 2020-11-05T16:10:14 #kisslinux baste 2020-11-05T16:10:22 #kisslinux man, that reminds me, I need to rewrite my site... it's super web 1.0 2020-11-05T16:10:30 #kisslinux Let's see it. 2020-11-05T16:10:38 #kisslinux nah, it's embarassing, haha 2020-11-05T16:10:46 #kisslinux Mine used to be super flashy, but I think I've mellowed down a lot in my style. 2020-11-05T16:10:48 #kisslinux it's literally just like 2020-11-05T16:10:48 #kisslinux a single div with some buttons and a blurb 2020-11-05T16:10:52 #kisslinux lol 2020-11-05T16:11:05 #kisslinux and I've got this purple tiling tux background 2020-11-05T16:11:08 #kisslinux and that's it 2020-11-05T16:11:09 #kisslinux :v 2020-11-05T16:11:25 #kisslinux I'll probably upload my KISS repo and make it browsable in the future 2020-11-05T16:11:26 #kisslinux 🅱urble 2020-11-05T16:11:34 #kisslinux neeasade: Why do a lot of posts show up as 'nil'? 2020-11-05T16:11:39 #kisslinux No title? 2020-11-05T16:11:56 #kisslinux icyphox: oh oops. I'll take a look 2020-11-05T16:12:42 #kisslinux ah I see the issue. sec 2020-11-05T16:13:23 #kisslinux What are you using to generate your site? Some org-mode thing? 2020-11-05T16:14:32 #kisslinux 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 icyphox: fixed now? 2020-11-05T16:15:50 #kisslinux Yes! 2020-11-05T16:15:52 #kisslinux Nice. 2020-11-05T16:15:57 #kisslinux 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 icyphox: thanks for confirming 2020-11-05T16:16:10 #kisslinux You should also add your post content in the . 2020-11-05T16:16:33 #kisslinux I was back and forth on that, but I forget why 2020-11-05T16:16:39 #kisslinux I think I was overthinking the possibility of a fat feed 2020-11-05T16:16:47 #kisslinux 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 I'll add it in there 2020-11-05T16:17:01 #kisslinux Nah, I think it's fine. I do it too. 2020-11-05T16:17:05 #kisslinux Based. 2020-11-05T16:17:10 #kisslinux based on what? 2020-11-05T16:17:12 #kisslinux the slow resurgence of RSS is fantastic 2020-11-05T16:17:13 #kisslinux the girl readin this 2020-11-05T16:17:17 #kisslinux lol 2020-11-05T16:17:24 #kisslinux midfavila: It's always been there man. 2020-11-05T16:17:31 #kisslinux or woman 2020-11-05T16:17:47 #kisslinux Well, yeah, but it sort of fell out of popularity as far as I was aware 2020-11-05T16:18:07 #kisslinux I guess it's just bigcorps trying to monopolize things. 2020-11-05T16:18:19 #kisslinux I think Twitter had an RSS feed too, at one point. 2020-11-05T16:18:24 #kisslinux Or I'm misremembering. 2020-11-05T16:18:26 #kisslinux who knows 2020-11-05T16:18:37 #kisslinux But yeah, RSS all the things! 2020-11-05T16:18:58 #kisslinux 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 as opposed to stretching across platforms. which is just annoying... 2020-11-05T16:19:16 #kisslinux Nice. 2020-11-05T16:19:31 #kisslinux IRC is probably the best "tech" thing I discovered as a kid. 2020-11-05T16:19:49 #kisslinux when I was younger I spent a lot of time on web BBSes 2020-11-05T16:19:49 #kisslinux Oh god I sound old. I'm just 20. 2020-11-05T16:20:10 #kisslinux Oh, I don't think I ever did that 2020-11-05T16:20:46 #kisslinux I've always preferred forums 'cuz they're more slow-paced 2020-11-05T16:21:10 #kisslinux 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 I've read the mistborn trilogy icyphox 2020-11-05T16:21:53 #kisslinux or rather, listened to them 2020-11-05T16:22:24 #kisslinux Oh. 2020-11-05T16:22:29 #kisslinux What's Cosmere? 2020-11-05T16:22:48 #kisslinux https://coppermind.net/wiki/Cosmere 2020-11-05T16:22:52 #kisslinux midfavila: https://en.wikipedia.org/wiki/Cosmere 2020-11-05T16:23:30 #kisslinux neeasade: I finished the Stormlight books till Oathbringer, including Edgedancer. And I also read Warbreaker. 2020-11-05T16:23:44 #kisslinux Anyway, I asked because Rhythm of War is coming out. 2020-11-05T16:23:47 #kisslinux >wants to avoid people needing to buy ridiculous number of books 2020-11-05T16:23:47 #kisslinux >estimates that his story will conclude at around forty 2020-11-05T16:23:49 #kisslinux In 2 weeks. 2020-11-05T16:23:49 #kisslinux nice 2020-11-05T16:23:53 #kisslinux icyphox: hype for you 2020-11-05T16:24:01 #kisslinux Yehhh 2020-11-05T16:24:10 #kisslinux there's a fantasy books youtube channel, and I gather sanderson is a hype lord 2020-11-05T16:24:11 #kisslinux 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 (no unjustified) 2020-11-05T16:24:20 #kisslinux not* 2020-11-05T16:24:22 #kisslinux midfavila: If you have nothing better to do, you should get into it. 2020-11-05T16:24:36 #kisslinux Yeah, I figured. I'm just messing around 2020-11-05T16:24:36 #kisslinux and tbh I'm busy with college right now icyphox 2020-11-05T16:24:55 #kisslinux 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 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 honestly same 2020-11-05T16:25:16 #kisslinux E5ten: Awesome. I'm reading Elantris right now. 2020-11-05T16:25:33 #kisslinux Don't want to start the whole series of Mistborn before RoW. 2020-11-05T16:25:44 #kisslinux oh nice, that was the first one I read, a friend recommended it 2020-11-05T16:25:54 #kisslinux 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 lmao 2020-11-05T16:26:11 #kisslinux it's so fucking boring 2020-11-05T16:26:12 #kisslinux midfavila: Are you a freshman? 2020-11-05T16:26:15 #kisslinux Yeah 2020-11-05T16:26:20 #kisslinux I just graduated high school this summer 2020-11-05T16:26:23 #kisslinux Ah, I'm in my 7th semester. 2020-11-05T16:26:29 #kisslinux Nearly done with this meme. 2020-11-05T16:26:34 #kisslinux Nice. 2020-11-05T16:26:35 #kisslinux CS is a joke NGL. 2020-11-05T16:26:37 #kisslinux icyphox: oh my god I forgot that the new stormlight was coming out so soon, hell yeah 2020-11-05T16:26:43 #kisslinux I wish I could have taken CS at my local uni 2020-11-05T16:26:44 #kisslinux E5ten: Yessss! 2020-11-05T16:26:53 #kisslinux 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 which is just 2020-11-05T16:26:56 #kisslinux no 2020-11-05T16:27:01 #kisslinux lol 2020-11-05T16:27:11 #kisslinux E5ten: Dawnbreaker too. 2020-11-05T16:27:21 #kisslinux It's going to be about Rysn. 2020-11-05T16:27:59 #kisslinux nice 2020-11-05T16:28:01 #kisslinux 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 See you. 2020-11-05T16:28:15 #kisslinux o/ 2020-11-05T16:28:27 #kisslinux later 2020-11-05T16:32:40 #kisslinux icyphox: do you put markdown in your description or just the html output 2020-11-05T16:34:59 #kisslinux icyphox: o I see the html output 2020-11-05T16:35:00 #kisslinux ok yolo 2020-11-05T16:50:26 #kisslinux on the topic of sites though... you know what project actually has a really nice site? 2020-11-05T16:50:30 #kisslinux abiword, of all things 2020-11-05T16:51:23 #kisslinux JPG https://www.abisource.com/gfx/abilogo.jpg 2020-11-05T16:51:50 #kisslinux What about it? 2020-11-05T18:04:07 #kisslinux oh man, the default kiss package for emacs uses Xaw 2020-11-05T18:04:07 #kisslinux that's fantastic :v 2020-11-05T20:01:47 #kisslinux Hey mcf you have a pretty decent experience in c right? 2020-11-05T20:06:22 #kisslinux icyphox: add a newline, "in the loopn" 2020-11-05T20:06:45 #kisslinux Otherwise input is stuck in the buffer 2020-11-05T20:06:55 #kisslinux A newline flushes the buffer 2020-11-05T20:07:10 #kisslinux So, technically you should have entered the loop 2020-11-05T20:07:38 #kisslinux I hate bugs like that. Ones where you technically didn't do anything wrong, that is 2020-11-05T20:10:50 #kisslinux does "read(...)" cause futex to be ran? 2020-11-05T20:21:24 #kisslinux 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 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 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 are you sure it is freezing, or is it just a blocking read? 2020-11-05T20:26:04 #kisslinux 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 I will try to get a backtrace here 2020-11-05T20:27:31 #kisslinux i tend to avoid threads as much as possible. debugging these sort of synchronization bugs is really difficult 2020-11-05T20:28:00 #kisslinux 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 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 I was thinking it may be optimization but I was only using O1 so im not sure 2020-11-05T20:36:46 #kisslinux https://www.oreilly.com/library/view/xlib-reference-manual/9780937175262/13_appendix-e.html 2020-11-05T20:37:30 #kisslinux 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 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 Ill be back I'm gonna try upgrading my kernel *shrug* 2020-11-05T21:06:56 #kisslinux No luck :( 2020-11-05T21:11:06 #kisslinux muevoid: what file descriptor is it trying to read from? what's the context around the read? 2020-11-05T21:11:51 #kisslinux 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 just the following which is of no help https://termbin.com/02av 2020-11-05T21:13:37 #kisslinux what about a backtrace? 2020-11-05T21:14:07 #kisslinux Backtrace of all the threads says the same thing basically 2020-11-05T21:15:43 #kisslinux 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 muevoid: source code? 2020-11-05T21:16:04 #kisslinux what about context in the strace where you determined that the read was hanging? 2020-11-05T21:16:17 #kisslinux you should be able to determine what was happening in your program around that time 2020-11-05T21:16:44 #kisslinux 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 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 The second one is 404 2020-11-05T21:18:01 #kisslinux My bad https://github.com/muevoid/orbernumlib 2020-11-05T21:21:01 #kisslinux 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 So I wonder what optimization could possibly be causing this 2020-11-05T21:22:32 #kisslinux 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 but even that seems to cause issues 2020-11-05T21:22:45 #kisslinux (if that is the problem) 2020-11-05T21:26:37 #kisslinux Yeah still no freeze with -g 2020-11-05T21:28:39 #kisslinux be back in a bit