[2021-10-01T02:32:32Z] illiliti: I was told that we want a daemon for monitoring [2021-10-01T02:32:56Z] as we don't want to allow multiple queues, unprivileged that make wired memory [2021-10-01T02:33:09Z] with a daemon we get normal memory management for messages [2021-10-01T02:33:15Z] distributed to users [2021-10-01T02:39:01Z] what's the problem with multiple queues? fyi, linux allows unprivileged users to monitor events via netlink without any daemons. why netbsd can't simply allow to do the same thing? [2021-10-01T02:40:51Z] user-space buffering instead of kernel-space, but it is for consideration [2021-10-01T02:41:49Z] no problem with setting a limit on the number of users from user-land [2021-10-01T02:43:17Z] illiliti: regarding subsystem, we have devclass https://nxr.netbsd.org/xref/src/sys/sys/device.h [2021-10-01T02:43:24Z] we can pass it to userland [2021-10-01T02:43:41Z] and then we can add a subclass, for certain types of devices, like discrimination of input ones [2021-10-01T02:48:39Z] interesting [2021-10-01T02:48:54Z] I think this makes all we really need [2021-10-01T02:49:18Z] https://susepaste.org/de3213bd my internal API [2021-10-01T02:50:28Z] subsystem->devclass, add devsubclass [2021-10-01T02:50:37Z] looks good [2021-10-01T02:50:50Z] what is *driver? [2021-10-01T02:51:07Z] kernel driver [2021-10-01T02:51:25Z] it is returned by drvctl so it would be a waste to drop it [2021-10-01T02:51:38Z] ok [2021-10-01T02:52:05Z] btw, openbsd has similar struct https://github.com/openbsd/src/blob/master/sys/sys/device.h#L53 [2021-10-01T02:53:31Z] it should be a BSD thing [2021-10-01T02:55:42Z] I abandoned the idea to cache the state of devices in userland; it's prone to races and hard to lock it reliably I decided to always probe the data from the kernel behind the API calls. [2021-10-01T02:57:14Z] yeah, this is good decision [2021-10-01T02:57:28Z] caching is complicated [2021-10-01T03:01:19Z] do you think it would be better to port devd or implement monitoing stuff to devpubd? [2021-10-01T03:01:20Z] now, I need to decide whether 1) the public api is devicetree.h, write libudev in pkgsrc for poor man compat 2) keep devicetree.h as internal api and export a netbsd specific udev.h that is sufficiently compatible with linux 3) do (2) + optionally add libudev compat harder versions for mimicking hwdb, /sys and netlink/socket [2021-10-01T03:02:35Z] I would like to switch all users of drvctl(4), including devpubd to devicetree(3)/udev(3) [2021-10-01T03:02:57Z] devd is freebsd specific, no plans to port it [2021-10-01T03:04:38Z] sysfs, netlink and hwdb is unneeded [2021-10-01T03:05:21Z] but would a linux-style/like be superior over ? [2021-10-01T03:05:47Z] going netbsd-only way is hard and prone to rejects in upstream for patches [2021-10-01T03:08:11Z] if you can/want to write a version for other kernels, it might be easier [2021-10-01T03:08:52Z] I don't know your future API plans [2021-10-01T03:09:27Z] Hi [2021-10-01T03:10:13Z] I will try with option (2) [2021-10-01T03:12:00Z] i'll publish the lib soon. i already implemented basic stuff for linux, netbsd and libudev backends [2021-10-01T03:13:58Z] ryoshu: btw, why devicetree if we have drvctl? devicetree depends on daemon? [2021-10-01T03:15:16Z] I just wanted to pick an internal name, no dependencies on a daemon [2021-10-01T03:15:38Z] I think it's good to avoid a name libudev, for more proper compat lib; so no libudev linking with libudev [2021-10-01T03:16:01Z] for the same reason I want to pick instead of [2021-10-01T03:16:39Z] for consistency sake? [2021-10-01T03:16:56Z] libdevicetree offering udev.h, on top of that libudev-netbsd and offering libudev.h for emulating /sys and others [2021-10-01T03:17:05Z] for easier porting [2021-10-01T03:17:18Z] this is my idea [2021-10-01T03:17:55Z] dragonflybsd picked name devattr or such [2021-10-01T03:17:58Z] libdevattr [2021-10-01T03:18:14Z] i don't like this idea. it's confusing [2021-10-01T03:18:49Z] do you prefer to see the lib named libudev? [2021-10-01T03:19:54Z] my idea: libdevicetree offers devicetree.h and libudev-netbsd offers libudev.h. libudev-netbsd uses devicetree.h underhood [2021-10-01T03:20:24Z] libdevicetree offering udev.h is just confusing [2021-10-01T03:21:18Z] do you think this API https://susepaste.org/de3213bd is good enough to use in 3rd party software? [2021-10-01T03:21:26Z] like libinput [2021-10-01T03:23:27Z] you need to provide device type [2021-10-01T03:23:36Z] keyboard, mouse, ... [2021-10-01T03:24:07Z] yes, this is in progress (devclass + devsubclass) [2021-10-01T03:26:38Z] also, people usually prefer fd for polling instead of function [2021-10-01T03:27:07Z] and use poll(2) or similar? [2021-10-01T03:27:14Z] yeah [2021-10-01T03:27:17Z] fd is useful because you can embed it into event loop [2021-10-01T03:29:28Z] I will change that. Looking at libinput source code, it's all clobbered with evdev+udev together [2021-10-01T03:32:16Z] yeah, the code is unreadable mess just like systemd source [2021-10-01T03:32:54Z] and evdev api uses /sys-related calls [2021-10-01T03:37:23Z] i'll purge them when lib will be ready to use [2021-10-01T03:37:29Z] for now, see how libudev-devd implemented this [2021-10-01T03:43:04Z] what does devicetree_init() do btw? [2021-10-01T03:43:53Z] it uses globals underhood? [2021-10-01T07:01:27Z] Hey! [2021-10-01T07:06:52Z] hi [2021-10-01T07:10:39Z] I wonder why plan9 didn't catch on like unix did [2021-10-01T07:10:40Z] like [2021-10-01T07:11:04Z] 20 years after unix was released there were already 20 unix-like operating systems [2021-10-01T07:11:17Z] but now we don't see any love for plan9 :( [2021-10-01T08:04:34Z] there is love for plan 9 [2021-10-01T08:04:44Z] join #cat-v to see it [2021-10-01T08:05:39Z] also people in the unix world are more and more aware of what is plan 9 and 9front is more active than ever [2021-10-01T08:08:50Z] Plan 9 has been relicensed with MIT earlier this year [2021-10-01T17:05:41Z] is there a port of birch for plan9? [2021-10-01T17:23:37Z] You mean a port of bash [2021-10-01T17:28:44Z] hiiii! [2021-10-01T17:30:35Z] hiiiiiiiiiiiiiiiiiiiiii [2021-10-01T18:16:27Z] birch is an irc client made in bash [2021-10-01T18:18:10Z] hey guys [2021-10-01T18:18:27Z] anyone get this in kernel 5.14.9? [2021-10-01T18:18:39Z] https://termbin.com/yfbhu [2021-10-01T18:31:11Z] I mean, as long as those are warning [2021-10-01T18:31:15Z] s/warning/warnings/ [2021-10-01T18:31:15Z] I mean, as long as those are warnings [2021-10-01T18:31:37Z] i don't think it matters that much, I guess they'll fix it up upstream eventually [2021-10-01T18:32:03Z] Yeah maybe [2021-10-01T18:32:41Z] do you guys know any alternative to flowgorithm? The closest thing I found is raptor (it also should run programs afaict) but it's windows only (sort of) and at least it should require me mono [2021-10-01T18:33:46Z] the issue with most diagram builders is that they can't "run" the code they represent, I can't find anything more than RAPTOR that does that [2021-10-01T18:37:56Z] you know what, I don't need to actually run them, you know, school stuff. There's literally only flowgorithm and RAPTOR afaict and they're both pretty much only for windows. [2021-10-01T18:38:14Z] s/I don't need/I don't think I need/ [2021-10-01T18:38:14Z] you know what, I don't think I need to actually run them, you know, school stuff. There's literally only flowgorithm and RAPTOR afaict and they're both pretty much only for windows. [2021-10-01T18:38:39Z] yeah nvm, sorry [2021-10-01T18:40:49Z] if you school ask for it, probably better to just use that. perhaps on a school computer [2021-10-01T18:41:42Z] tbh I never really find those things intuitive or helpful [2021-10-01T18:42:02Z] they were actually pretty chill with the fact that I use a unix-like OS [2021-10-01T18:42:28Z] the problem with kiss is missing packages [2021-10-01T18:42:37Z] they said that alternatives were fine, so thinking about it I don't think they'll really care that I can't run them [2021-10-01T18:42:40Z] yeah, perhaps some sort of visual debugger? [2021-10-01T18:42:54Z] akira01: nah, that isn't a big issue imo, I can package everything I need [2021-10-01T18:42:56Z] so you can write the code and have flowchart generated [2021-10-01T18:43:06Z] rather than the other way around [2021-10-01T18:43:26Z] that would be interesting, but would be weird to explain to my teachers lmao [2021-10-01T18:43:28Z] riteo: i mean yeah you can do a normal setup [2021-10-01T18:43:52Z] idk, I'll talk with them ig [2021-10-01T18:43:53Z] but is missing some packages for a develop setup [2021-10-01T18:44:09Z] oh wait I thought you meant installing windows, sorry [2021-10-01T18:44:42Z] i get what you mean, but IMO the real big missing thing is java, for which I have plans myself (although I wish dylan implemented custom download hooks) [2021-10-01T18:45:07Z] yeah java is a big thing [2021-10-01T18:45:15Z] but other than that it isn't really *that* unbearable [2021-10-01T18:45:38Z] we can port java, alpine and void did this [2021-10-01T18:45:51Z] yeah, the biggest issue rn is that kiss is download-first [2021-10-01T18:46:06Z] yeah [2021-10-01T18:46:27Z] imo custom download hooks should fix this issue, but dylan still hasn't implemented it, altough he teased this feature [2021-10-01T18:46:43Z] maybe he forgot or he's just naturally busier since summer ended idk [2021-10-01T18:46:54Z] i think he is busier [2021-10-01T18:47:06Z] i emailed in some past days [2021-10-01T18:47:24Z] but no response [2021-10-01T18:47:34Z] oh give it time [2021-10-01T18:47:50Z] he replied to me in a week or so [2021-10-01T18:47:53Z] is hard to port gimp when glib is missing a feature that he just drop with rm [2021-10-01T18:48:10Z] nothing stops you to readd it [2021-10-01T18:48:15Z] just fork the package [2021-10-01T18:48:26Z] yeah is simple that [2021-10-01T18:48:31Z] but i mean [2021-10-01T18:48:53Z] how can i port this without this big problem? [2021-10-01T18:49:02Z] ehhh, I'm pretty sure that gimp falls into the heavier side of software, I'm not even sure they'd accept it in community [2021-10-01T18:49:16Z] so I don't think it's that big of a problem, it's just... Relative? [2021-10-01T18:49:52Z] maybe will not accept but if i made a repo [2021-10-01T18:50:00Z] will need to rebuild glib [2021-10-01T18:50:06Z] and this is a shit [2021-10-01T18:50:14Z] wait, what feature did he drop exactly? [2021-10-01T18:50:20Z] one sec [2021-10-01T18:51:46Z] sorry [2021-10-01T18:51:52Z] no worries, take your time [2021-10-01T18:51:56Z] https://github.com/kisslinux/repo/blob/master/extra/gtk+3/build [2021-10-01T18:51:58Z] here [2021-10-01T18:52:06Z] actually is gtk+3 [2021-10-01T18:52:06Z] wait, that isn't glib [2021-10-01T18:52:09Z] line 85 [2021-10-01T18:52:11Z] oh now I get what you mean [2021-10-01T18:52:14Z] yeah lol [2021-10-01T18:52:23Z] no wait, I've still not clicked the link [2021-10-01T18:52:27Z] I referred to the sorry [2021-10-01T18:52:32Z] i get little confused [2021-10-01T18:52:45Z] but yeah [2021-10-01T18:52:48Z] is gtk3 [2021-10-01T18:52:49Z] oh now I read that line [2021-10-01T18:52:55Z] > It has no use at all. [2021-10-01T18:52:56Z] lmao [2021-10-01T18:53:04Z] missing gtk-encode [2021-10-01T18:53:12Z] yeah is just bullshit thing [2021-10-01T18:53:20Z] who knows, maybe it's an old thing [2021-10-01T18:53:21Z] but gimp need this for build [2021-10-01T18:53:24Z] gosh [2021-10-01T18:53:36Z] i mean the upstream need this [2021-10-01T18:53:42Z] not tested with stable [2021-10-01T18:53:50Z] well that line is more than a year old [2021-10-01T18:54:13Z] it might easily get removed if it gives actual problems, kiss changed *a lot* [2021-10-01T18:54:24Z] is this a little problem in kiss [2021-10-01T18:54:37Z] is not well universal packages [2021-10-01T18:55:24Z] and if dylan says no, we need to rebuild the package [2021-10-01T18:55:25Z] lol [2021-10-01T18:55:31Z] nah, it's complicated [2021-10-01T18:55:50Z] again, gimp/gtk+3 is on the heavier side, let's remember that fribidi has been purged from the main packages [2021-10-01T18:56:07Z] it's not an absolute thing, stuff changes while trying to balance simplicity and praticality [2021-10-01T18:56:24Z] we're already on the simpler and less pratical side than usual, that's prone to happening [2021-10-01T18:56:28Z] s/happening/happen/ [2021-10-01T18:56:28Z] we're already on the simpler and less pratical side than usual, that's prone to happen [2021-10-01T18:57:13Z] i get [2021-10-01T18:57:30Z] but later or not kiss will need to port the bloat thing [2021-10-01T18:58:54Z] well the point is not to do that [2021-10-01T18:59:13Z] just to have a simple base (hell, even just core) which to extend freely [2021-10-01T18:59:38Z] you can, and if you need *should*, port bloat, just not in the main repos [2021-10-01T19:00:07Z] maybe not even community, to avoid the eudev thing [2021-10-01T19:01:38Z] anyways I gtg rn, cya later! [2021-10-01T20:30:04Z] hii! I'm back! [2021-10-01T20:35:01Z] hi [2021-10-01T20:43:14Z] hi [2021-10-01T21:43:24Z] welp, I'm messing up with my laptop for now, cya later! [2021-10-01T23:34:34Z] hi illiliti [2021-10-01T23:35:00Z] hi [2021-10-01T23:35:47Z] _init() initializes globals [2021-10-01T23:36:40Z] hmm [2021-10-01T23:37:25Z] not sure if it's suitable for libraries [2021-10-01T23:39:44Z] I was thinking about it and I prefer to have one thread reading drvctl(4) [2021-10-01T23:39:53Z] and distribute events to N readers [2021-10-01T23:40:24Z] OK. I'm going to try to finish something usable this weekend.