💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2021-08-01.txt captured on 2024-05-26 at 16:14:39.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
[2021-08-01T00:15:04Z] <claudia> mo3p [2021-08-01T00:15:10Z] <claudia> s/mo4p/ [2021-08-01T00:15:13Z] <claudia> :( [2021-08-01T00:16:14Z] <claudia> man cotangent [2021-08-01T00:20:39Z] <rio6> a [2021-08-01T00:20:42Z] <rio6> s/a/b/ [2021-08-01T00:20:43Z] <cotangent> <rio6> b [2021-08-01T00:20:56Z] <rio6> s/a// [2021-08-01T00:20:56Z] <cotangent> <rio6> [2021-08-01T00:31:53Z] <claudia> s/mo3p/mo4p/ [2021-08-01T00:31:54Z] <cotangent> <claudia> man cotangent [2021-08-01T00:32:02Z] <claudia> :<<< [2021-08-01T00:32:07Z] <claudia> thx [2021-08-01T01:06:53Z] <acheam> cot: lol you really can't stick with a nick, can you? [2021-08-01T02:11:14Z] <noocsharp> who decided that sec, csc and cot were good ideas [2021-08-01T02:11:34Z] <noocsharp> just write 1/cos, 1/sin, 1/tan [2021-08-01T02:11:37Z] <noocsharp> it isn't that hard [2021-08-01T02:23:17Z] <rio6> cos is extra [2021-08-01T02:23:23Z] <dilyn> what does that mean lmao [2021-08-01T02:23:27Z] <rio6> just write sin(t + tau / 4) [2021-08-01T02:23:46Z] <dilyn> i mean just right re(e^(ith)) [2021-08-01T02:23:55Z] <dilyn> s/right/write/ [2021-08-01T02:23:56Z] <cotangent> <dilyn> i mean just write re(e^(ith)) [2021-08-01T02:24:13Z] <necromansy> scree [2021-08-01T02:24:16Z] <rio6> much better [2021-08-01T02:24:36Z] <necromansy> forgive me lord for i have sin(ned) [2021-08-01T02:24:40Z] <dilyn> f [2021-08-01T02:24:48Z] <dilyn> we shall tan() your hide [2021-08-01T02:26:12Z] <dilyn> also the biggest reason to not write it as 1/{sin,cos,tan} is because that's technically misleading in many contexts [2021-08-01T02:26:29Z] <dilyn> inverses aren't necessarily reciprocals [2021-08-01T02:26:48Z] <rio6> cot is not inverse [2021-08-01T02:26:50Z] <rio6> atan is [2021-08-01T02:28:18Z] <rio6> *of tan [2021-08-01T02:28:51Z] <necromansy> ^ [2021-08-01T02:28:52Z] <dilyn> i'm sorry have i had a stroke [2021-08-01T02:29:11Z] <necromansy> yes [2021-08-01T02:29:33Z] <necromansy> cot, sec, csc are necessiarly the reciprocals of tan, sin, cos [2021-08-01T02:30:26Z] <dilyn> oh no wait, i've just spoken too vaguely [2021-08-01T02:30:49Z] <dilyn> i don't mean inverses in the sense of like, the inverse of a function, i mean inverse as in a multiplicative inverse [2021-08-01T02:32:25Z] <dilyn> i think i'm mostly coming from the place where usually when i see $trigfunction, I think $value, not $trigfunction(x) [2021-08-01T03:38:21Z] <cot> acheam: I think I've finally settled on one :C [2021-08-01T03:38:50Z] <cot> I just wanted a nice three-letter nick that won't get me pinged all the time... so as long as I don't join #math I guess this nick is good [2021-08-01T03:39:38Z] * necromansy rubs his physics phd hands together [2021-08-01T03:41:22Z] <noocsharp> i have a confession to make [2021-08-01T03:41:36Z] <noocsharp> i've been thinking about the collatz conjecture again [2021-08-01T03:41:51Z] <necromansy> did someone watch Veritasium recently [2021-08-01T03:41:54Z] <necromansy> :{ [2021-08-01T03:42:00Z] <necromansy> s/:{/:P [2021-08-01T03:42:08Z] <noocsharp> that's what trigger my relapse, yes [2021-08-01T03:42:48Z] <necromansy> i too have been thinking about it [2021-08-01T03:44:01Z] <noocsharp> consider this: at some point in the process, a number must become a power of two [2021-08-01T03:44:34Z] <noocsharp> so if you could prove that the 2-adic order must be higher for a number at some point further in the sequence... [2021-08-01T03:46:52Z] <necromansy> i wont pretend id know where to start with such a thing :P [2021-08-01T03:48:28Z] <noocsharp> i can almost guarantee you a hundred people have tried it already and it's gone nowhere [2021-08-01T03:49:07Z] <necromansy> probably, it seems like so many different approaches have been tried [2021-08-01T03:51:08Z] <noocsharp> it's very easy to come up with equivalent formulations that are equally as difficult [2021-08-01T04:04:56Z] <noocsharp> ultimately it comes down to how addition affects prime factorizations [2021-08-01T04:12:08Z] <acheam> cot: did zr get you lots of accidental pings? [2021-08-01T04:14:00Z] <testuser[m]> Hi [2021-08-01T04:14:47Z] <testuser[m]> msk why not lol, it's just a 5 line build script [2021-08-01T04:20:25Z] <acheam> there is a general rule that kiss forking packages is a okay [2021-08-01T04:20:33Z] <acheam> and most peoples repos are MIT [2021-08-01T07:20:32Z] <msk[m]> alright great [2021-08-01T07:21:08Z] <msk[m]> elinks has been miles ahead of lynx and links2, I'm using it instead of surf [2021-08-01T07:32:00Z] <necromansy> what deps does it require? [2021-08-01T07:33:02Z] <testuser[m]> nothing [2021-08-01T07:33:20Z] <testuser[m]> elinks is good but on some sites the CSS renders in a puke color [2021-08-01T07:38:46Z] <testuser[m]> Btw it even has js support through pozjs but it needs an ancient version of it, no one's ported it yet [2021-08-01T07:43:12Z] <msk[m]> I was able to fix that in the settings testuser [2021-08-01T07:43:17Z] <testuser[m]> What was it [2021-08-01T07:43:23Z] <msk[m]> the puke colour, it happened mainly on the arch wiki [2021-08-01T07:43:34Z] <msk[m]> you set the CSS setting to use the site's CSS for everything except the background colour [2021-08-01T07:43:42Z] <testuser[m]> thanks [2021-08-01T07:44:52Z] <msk[m]> Settings > Document > Default color settings > "Use document-specified colors" = 1 [2021-08-01T07:45:08Z] <msk[m]> no problem, thanks for introducing me to it [2021-08-01T07:45:36Z] <necromansy> damn thing errors out in the build under the bfu subdir [2021-08-01T07:46:00Z] <testuser[m]> btw what i sent you was the felinks package, its a maintained elinks fork [2021-08-01T07:49:18Z] <msk[m]> oh nice, glad that people are still giving it care [2021-08-01T07:50:14Z] * necromansy realises theres a link in the logs [2021-08-01T08:00:53Z] <sad_plan> msk[m]: elinks is ancient. latest release is from 2012. unless someone forked it at continued its work [2021-08-01T08:02:02Z] <msk[m]> yeah the felinks last commit is a few weeks ago [2021-08-01T08:03:25Z] <sad_plan> I just noticed. its nice to see people keeping such projects alive [2021-08-01T09:46:17Z] <riteo> hiiiii! [2021-08-01T09:46:33Z] * necromansy waves [2021-08-01T09:47:06Z] <testuser[m]> hi [2021-08-01T10:04:49Z] <claudia> morning. [2021-08-01T10:05:06Z] <testuser[m]> Hi [2021-08-01T10:05:15Z] <riteo> hi! [2021-08-01T10:08:25Z] <claudia> testuser[m]: You are maintaining 70 packages in community :v [2021-08-01T10:08:52Z] <necromansy> a valiant effort [2021-08-01T10:09:01Z] <claudia> * a whopping [2021-08-01T10:11:20Z] <claudia> The plus side of our current maintainer model is that a package is assigned to a person very clearly. On the downside this model leads to a maintainer monopoly for people who are in need of a package regularly, or just are in need _first_ . [2021-08-01T10:12:01Z] <riteo> I mean, you can still make PRs, can't you? [2021-08-01T10:12:28Z] <claudia> I wonder if a maintainer model ala VOID could be suiteable, where some packages, like complex browser packages are assigned to a person who has knowledge about it makes very sense. [2021-08-01T10:12:48Z] <claudia> Small packages could be signed as "orphaned" and everybody can send PR. [2021-08-01T10:12:57Z] <necromansy> area of expertise maintainers? [2021-08-01T10:13:17Z] <claudia> riteo: No, you have to get in contact with the maintainer, so they can do changes. [2021-08-01T10:13:28Z] <riteo> oh [2021-08-01T10:13:56Z] <riteo> that feels weirdly unnecessary, although I have a vague idea of why it's done this way [2021-08-01T10:14:17Z] <necromansy> its mostly to keep the responsibility clear [2021-08-01T10:14:23Z] <claudia> I mean another downside is, that workpower of other people of the community is unused, even if they have time and will to update stuff. [2021-08-01T10:15:01Z] <claudia> Yeah, the clear assigned is something important, but its not needed for _all_ packages. [2021-08-01T10:15:02Z] <necromansy> the upside is that maintainers arent forced to maintain packages they wouldnt use otherwise [2021-08-01T10:15:04Z] <riteo> maybe we could allow some trusted members to make "prioritary" PRs? [2021-08-01T10:15:28Z] <necromansy> downside to *that* is you need active community members to fill the hole if a maintainer drops a package [2021-08-01T10:15:44Z] <riteo> like, if we knew that, for examble, claudia could make very fast updates to certain packages, couldn't we allow her? [2021-08-01T10:16:17Z] <claudia> I thoght about keeping the current model, but e.g in the buildscript add in the second line "Orphan", so this package is updateable for everybody. [2021-08-01T10:17:02Z] <riteo> that'd make sense [2021-08-01T10:17:34Z] <riteo> the packages who need only one assigned mantainer would be very few this way [2021-08-01T10:17:38Z] <claudia> The situation for the person on the merge button should not be more difficult, and keep clear. [2021-08-01T10:17:47Z] <claudia> riteo: yeah exactly. [2021-08-01T10:18:08Z] <riteo> that feels reasonable [2021-08-01T10:20:59Z] <claudia> I dont know, this something which spooks some time now in my mind. I think this could relax the procedure of updating for a lot of packages / outdated packages. More people could be involved. [2021-08-01T10:22:05Z] <riteo> I don't see how you idea could be an issue tbh [2021-08-01T11:21:53Z] <alex_> Hello. So I'm installing KISS but GNU keyserver fails. Is there an alternative mirror? [2021-08-01T11:29:54Z] <testuser[m]> git commit verification is optional btw [2021-08-01T11:30:04Z] <testuser[m]> i think there was some discussion earlier too about the keyserver being ded [2021-08-01T11:30:07Z] <testuser[m]> let me find it [2021-08-01T11:30:31Z] <testuser[m]> https://libera.irclog.whitequark.org/kisslinux/2021-07-26#30344525 [2021-08-01T11:30:35Z] <testuser[m]> pgp.mit.edu [2021-08-01T11:31:01Z] <testuser[m]> https://libera.irclog.whitequark.org/kisslinux/2021-06-27#30165878 [2021-08-01T14:40:17Z] <micro_O> shared maintainership model is what we have now, even if we don't think we do; example: dilyn decided 30 days was the length of time for package abandonement. [2021-08-01T14:41:04Z] <micro_O> personally, I like growing the community, and allowing someone to make a PR that very clearly updates a package, and accepting their PR, is a great way to welcome people during first impressions [2021-08-01T14:41:53Z] <micro_O> in other words, I would prefer not to reject someone's PR (at least against my packages in community), just because they aren't the single maintainer [2021-08-01T14:42:23Z] <micro_O> this is made especially easy with the separate author/committer concepts that git supports. [2021-08-01T14:42:47Z] <riteo> hiiiii! [2021-08-01T14:42:58Z] <riteo> sorry for the sudden timeout, I had issues with my electrical grid [2021-08-01T14:43:16Z] <micro_O> generally though, it becomes easier to have shared ownership if the packages also run some sort of tests, perhaps in pre-install [2021-08-01T14:43:51Z] <micro_O> even simple things, like `test "$(packagename --version)" -eq "2.13"` to build confidence [2021-08-01T15:42:17Z] <claudia> Hey, can someone with a wyverkiss setup try to reproduce this error? https://github.com/sdsddsd1/kiss-games/issues/87 [2021-08-01T15:47:22Z] <testuser[m]> It's their issue [2021-08-01T15:47:29Z] <testuser[m]> Cuz they're sedding random cmake flags [2021-08-01T15:47:41Z] <testuser[m]> Makeflags* not cmake [2021-08-01T15:57:47Z] <claudia> Yeah, this issue is not wyverkiss related. [2021-08-01T16:17:48Z] <claudia> I wonder if such a build is even possible for such ancient software with little development. [2021-08-01T17:09:06Z] <kyxor> so I guess nobody took over libressl repo ? We how can we tolerate this openssl garbage? I looked and it is 2x more bloat, this is not kiss at all [2021-08-01T17:12:00Z] <soliwilos> Gentoo and other distro's have dropped libressl support, there's hardly any distro left which uses it. [2021-08-01T17:13:06Z] <kyxor> but there is nothing wrong with it [2021-08-01T17:13:12Z] <soliwilos> Probably a lot of work making sure stuff doesn't break as libressl and openssl diverge. [2021-08-01T17:13:32Z] <kyxor> I am about to press that big fork button [2021-08-01T17:13:48Z] <testuser[m]> Port python ssl lib to use libressl compatible apis again :p [2021-08-01T17:14:31Z] <testuser[m]> If you don't need it then just install libressl and sed -i 's/openssl/libressl/' */depends [2021-08-01T17:15:19Z] <testuser[m]> Even stuff needing python for make won't build, since ssl lib is used for ton of stuff [2021-08-01T17:15:21Z] <kyxor> I wanna see if I can maintain the whole libressl distro myself, so for now I be doing that in personal repo, if it happens to be easy and worth the effort might as well ask to ressurect the one in kiss-comunity [2021-08-01T17:15:30Z] <testuser[m]> But you can just stay on py 3.9 for years to come [2021-08-01T17:15:47Z] <testuser[m]> Since it'll be supported [2021-08-01T17:16:21Z] <kyxor> yeah, and maybe in those years there will be a nice patchset for newer versions [2021-08-01T17:23:35Z] <msk[m]> kyxor: sorry if this is a bit off-topic, but what do you use instead of macros in neatvi? [2021-08-01T17:24:34Z] <msk[m]> I know v. exists but it only does the last edit instead of all on a line [2021-08-01T17:25:37Z] <kyxor> You mean macros like in vim, where you can record entire input stream? [2021-08-01T17:26:04Z] <msk[m]> yes [2021-08-01T17:26:06Z] <msk[m]> or multiple cursors in vis, which does the same thing [2021-08-01T17:27:41Z] <kyxor> Sadly that's not a thing, maybe v. can be improved to record everything, but I am not sure about how to implement that cleanly [2021-08-01T17:29:28Z] <msk[m]> Would you just repeat the edits manually, then? My workflow is to have both neatvi and vis installed, opening vis when I need a macro in neatvi [2021-08-01T17:34:36Z] <kyxor> Hm, trying to find that posix vi(1) paper, there is that weird @@ key, I am always confuzed on how it works [2021-08-01T17:36:09Z] <kyxor> msk[m]: the @@ might do what you want though, because it can run a prerecorded thing from a register afaik [2021-08-01T17:36:24Z] <kyxor> but how well it works idk, I don't use it normally [2021-08-01T17:38:22Z] <msk[m]> I just see "exec buffer empty" no matter what I seem to try [2021-08-01T17:38:45Z] <msk[m]> in busybox vi it's "@ not implemented" [2021-08-01T17:41:16Z] <kyxor> It's tricky, one will probably never figure out how it works without reading source code, I am trying to recall right now 1 sec [2021-08-01T17:46:12Z] <GalaxyNova> testuser[m]: Do you still have that elinks package [2021-08-01T17:46:15Z] <kyxor> ok so it's like this: you have to type out the vi commands in the file, then you yank the stuff into any character register via "ayy where "a" is register a, then it can execute that buffer via @a where a is that register [2021-08-01T17:48:44Z] <kyxor> or @@ itself will use the last used register, if you used "a" it would use that [2021-08-01T17:49:48Z] <msk[m]> how do you specify escape? [2021-08-01T17:51:03Z] <msk[m]> "" doesn't seem to work [2021-08-01T17:51:14Z] <msk[m]> <Esc>* dang it matrix client [2021-08-01T17:51:34Z] <kyxor> probably you would need a raw byte [2021-08-01T17:52:18Z] <kyxor> so it would need to have the ctrl+C byte in that buffer to do the ESC [2021-08-01T17:54:34Z] <kyxor> so that's char 'c' & 037 byte [2021-08-01T17:54:38Z] <msk[m]> http://www.physics.udel.edu/~watson/scen103/ascii.html says it's 3 in decimal? not sure how I could get the raw byte [2021-08-01T17:55:03Z] <msk[m]> 037? [2021-08-01T17:58:45Z] <kyxor> wait I got myself confuzed [2021-08-01T18:02:43Z] <kyxor> yeah so you need to get 03 byte in ther [2021-08-01T18:03:19Z] <kyxor> well you can't type that byte normally [2021-08-01T18:04:31Z] <msk[m]> I have a snippets script that could copy it to my clipboard [2021-08-01T18:05:33Z] <msk[m]> not sure how to even output the raw byte for 03 somewhere [2021-08-01T18:05:56Z] <kyxor> probably won't help, because vi will just escape then, you need a hex editor :) [2021-08-01T18:06:29Z] <kyxor> so type the macro in a txt file, then just append that 03 using hex editor [2021-08-01T18:06:47Z] <GalaxyNova> bvi is a nice hex editor [2021-08-01T18:06:49Z] <kyxor> I am pretty sure vi can still yank that [2021-08-01T18:08:16Z] <msk[m]> but since that's in a different text file, it won't be in the original file's exec buffer [2021-08-01T18:08:47Z] <msk[m]> I would need to copy paste my original input into the new hexed file, apply the macro, then transfer it back [2021-08-01T18:09:20Z] <kyxor> in that case you can use :!r file to get it into the buffer you need then probably yank, this is some next level wizardry [2021-08-01T18:11:34Z] <msk[m]> it doesn't even implicitly add Esc to the end, so I can't leave the macro in insert mode [2021-08-01T18:12:19Z] <kyxor> not :!r just :r I meant [2021-08-01T18:12:25Z] <kyxor> it works [2021-08-01T18:13:22Z] <kyxor> I just got it to exit inrert mode, but I had to use hex editor and that wizardry sruff [2021-08-01T18:14:05Z] <msk[m]> could I somehow patch the file that does exec buffers to press escape at the end of each macro? [2021-08-01T18:14:35Z] <msk[m]> then I would have to format the line of vi commands a bit differently but it would be way easier [2021-08-01T18:15:35Z] <kyxor> Hmm, okay it does not seem like a bad idea to maybe add a feature to vi so that user can type literal bytes, doesn't seem to be hard to implement [2021-08-01T18:16:09Z] <kyxor> you can patch it too [2021-08-01T18:16:13Z] <msk[m]> yeah, or be able to disable escaping pasted bytes [2021-08-01T18:16:32Z] <kyxor> look into vc_execute function vi.c [2021-08-01T18:17:15Z] <kyxor> you can just add like "term_push("\x03", 1);" [2021-08-01T18:17:45Z] <testuser[m]> Galaxynova http://0x0.st/-9M6.xz [2021-08-01T18:18:05Z] <testuser[m]> And https://libera.irclog.whitequark.org/kisslinux/2021-08-01#30602627; [2021-08-01T18:20:39Z] <msk[m]> adding it after the if (buf) for loop gives me "else without a previous if" when compiling [2021-08-01T18:21:53Z] <kyxor> just add in scope for if statement {} [2021-08-01T18:23:02Z] <msk[m]> it works [2021-08-01T18:23:42Z] <msk[m]> it will still be annoying if there are many inserts on each line that are needed though [2021-08-01T18:23:55Z] <msk[m]> thank you ver much kyxor [2021-08-01T18:24:46Z] <msk[m]> very* [2021-08-01T18:26:10Z] <kyxor> You're welcome. But ofc this is a hacky solution... I am still maybe there is better way [2021-08-01T18:30:06Z] <msk[m]> maybe term_push could execute \x* as a raw byte? Then hund would have to be remapped though [2021-08-01T18:31:02Z] <msk[m]> unless I'm misuderstanding it [2021-08-01T18:32:59Z] <kyxor> hund is it's own program it does it's own keybinds and it's own input handling that is different to vi, it's designed so that there is no friction and user can remove it if desires. [2021-08-01T18:33:56Z] <kyxor> There's is only like 3 lines of code from vi that you have to remove, so it's neat [2021-08-01T18:34:09Z] <msk[m]> not remove it, I mean just remap it from [2021-08-01T18:34:12Z] <msk[m]> from \ [2021-08-01T18:34:28Z] <msk[m]> so that \x03 and stuff like could be used [2021-08-01T18:35:11Z] <kyxor> Oh [2021-08-01T18:35:18Z] <msk[m]> s/like/like that [2021-08-01T18:36:56Z] <kyxor> idk, I don't see a problem with that bind [2021-08-01T18:38:52Z] <msk[m]> oh wait I just remembered that kj exits insert mode [2021-08-01T18:39:03Z] <msk[m]> I don't need any escape characters [2021-08-01T18:39:48Z] <kyxor> yeah it does, but speculatively [2021-08-01T18:40:34Z] <kyxor> well if from a macro I guess chances are close to %100, doubt there that code will ever execute slower than 500ms [2021-08-01T18:42:23Z] <msk[m]> that's much easier then [2021-08-01T18:45:25Z] <kyxor> idk anymore but that timing for kj is defined in led.c line 723 if you ever have problems with it [2021-08-01T18:45:54Z] <kyxor> you can tweak the delay [2021-08-01T18:47:22Z] <msk[m]> thanks, I'll keep that in mind [2021-08-01T18:50:37Z] <msk[m]> one more thing, what's the best way of copying text to the clipboard? [2021-08-01T18:50:55Z] <msk[m]> right now I select the text with my mouse and use my terminal's copy key [2021-08-01T18:52:03Z] <kyxor> you mean like x11 clipboard, well sadly there is no other way [2021-08-01T18:52:16Z] <kyxor> completely terminal dependant feature [2021-08-01T18:53:10Z] <kyxor> like if you use something like keyboard select patch for st for example that would make it feasible [2021-08-01T18:53:15Z] <kyxor> that's what I use [2021-08-01T18:53:59Z] <msk[m]> keyboard select path? [2021-08-01T18:54:05Z] <msk[m]> I'm also on st [2021-08-01T18:54:29Z] <msk[m]> oh it's a patch I think [2021-08-01T18:55:14Z] <kyxor> obviously there are still limitations, like you can't copy more than you can see, then probably better to just open new file, paste the yanked stuff, then use xclip [2021-08-01T18:56:11Z] <kyxor> https://st.suckless.org/patches/keyboard_select/ is minimalistic [2021-08-01T18:56:31Z] <kyxor> there is also this: https://st.suckless.org/patches/vim_browse/ [2021-08-01T18:56:32Z] <msk[m]> yeah I found it, but am also concerned about copying more than one screen [2021-08-01T18:56:43Z] <msk[m]> how would you paste the text into a new file without having it in your clipboard? [2021-08-01T18:57:16Z] <kyxor> but the vimbrowse is a mess, pretty buggy implementation but has more features [2021-08-01T18:59:09Z] <msk[m]> I could run xclip -sel c but then I would need to type the entire path [2021-08-01T18:59:49Z] <kyxor> err, like this: I want next 200 lines of this buffer/file into new one, I do: 200yy :e newfile p ^k then :! xclip (flags) newfile [2021-08-01T19:02:11Z] <msk[m]> oh that works, I didn't know the yank buffer persisted like that [2021-08-01T19:02:54Z] <kyxor> registers persist, I forgot to mention so for a macro you don't need to use the :r macrofile [2021-08-01T19:06:39Z] <kyxor> hmm also if you just use vi like that for clipboard, I guess you don't even need a clipboard manager, since you can just make newfiles and that would make your clipboard history, and by using vb you can get history of past xclip commands [2021-08-01T19:07:06Z] <kyxor> it's really nice [2021-08-01T19:09:09Z] <msk[m]> the password manager I made is already pretty minimal [2021-08-01T19:09:12Z] <msk[m]> s/password/clipboard/ [2021-08-01T19:09:13Z] <cotangent> <msk[m]> the clipboard manager I made is already pretty minimal [2021-08-01T19:09:48Z] <msk[m]> oh that actually works, I thought it was just a convention [2021-08-01T19:10:32Z] <msk[m]> I think having vim_browse would be more to keep track of [2021-08-01T19:12:49Z] <kyxor> msk[m]: btw, some day this will be a new regex engine used in neatvi: https://github.com/kyx0r/pikevm I hope I can get it all working until end of summer [2021-08-01T19:14:26Z] <msk[m]> is that a breaking change? will I need to edit my sytax rules? [2021-08-01T19:14:32Z] <kyxor> non backtracking matcher, it's really something. I mean it looks minimal but when you get to understand how it works, it's a heluva cool engineering achievement [2021-08-01T19:15:21Z] <kyxor> mks[m]: no, actually I will support both versions of regex, there should be no visual difference to the user [2021-08-01T19:16:32Z] <kyxor> https://swtch.com/~rsc/regexp/regexp1.html [2021-08-01T19:18:10Z] <msk[m]> a million times fastr? o [2021-08-01T19:20:04Z] <msk[m]> s/fastr/faster [2021-08-01T19:20:30Z] <kyxor> well the current matcher in neatvi is also very fast I hand optimized it, the original from Ali is like 2X slower just by looking at cpu usage. [2021-08-01T19:21:12Z] <msk[m]> s/s\/fastr\/faster/s\/fastr\/faster\// [2021-08-01T19:21:13Z] <cotangent> <msk[m]> a million times fastr? o [2021-08-01T19:21:48Z] <msk[m]> so then it will be 500,000 times faster than the current on kyxor? [2021-08-01T19:21:55Z] <kyxor> so like right now neatvi mostly sucks with bracket expressions and + operator [2021-08-01T19:22:53Z] <kyxor> msk[m] depends on the load [2021-08-01T19:23:45Z] <kyxor> for small strings probably no difference, but for something like [^abc]* on a 1 GB file yes it should be way faster [2021-08-01T19:25:23Z] <msk[m]> I've never had any delays with the regex, but on that 1 GB file, what would happen with the old engine? [2021-08-01T19:25:31Z] <msk[m]> the text will stay white will it figures out what to highlight? [2021-08-01T19:27:06Z] <kyxor> Well nothing really, but If you do a / search for something it would take some time [2021-08-01T19:27:55Z] <kyxor> also the backtracker is limited to 256 stack, so it can't match patterns that are wider than 256 characters (most of the time) [2021-08-01T19:28:21Z] <kyxor> So you can search for something and never even find it because of the stack size limitation [2021-08-01T19:28:57Z] <kyxor> in pikevm there is nothing like that, the memory usage is constant with the regex supplied [2021-08-01T19:29:52Z] <msk[m]> why didn't the original neatvi go for pikevm initially? [2021-08-01T19:30:03Z] <msk[m]> it sounds better in every aspect [2021-08-01T19:31:01Z] <kyxor> because it's not implemented fully, I am working on it. Any any other engines that are based on Thompson NFA are bloated, aka C++, rust, and thousands lines of code [2021-08-01T19:31:28Z] <kyxor> hek even musl's regex implementation sucks [2021-08-01T19:31:40Z] <kyxor> its 3 times slower than neatvi right now [2021-08-01T19:32:17Z] <msk[m]> how did they all mess up Thompson NFA so badly? [2021-08-01T19:33:52Z] <kyxor> I have fixed so many bugs in pikevm from the original research paper, and mostly of that code went under the radar when Russ Cox wrote it [2021-08-01T19:34:52Z] <kyxor> also the feature creep kinda kills thompson Nfa because something like backreferences can't be computed in N time [2021-08-01T19:35:21Z] <kyxor> millennium problems [2021-08-01T19:35:50Z] <kyxor> But I just don't support them, so no problem XD [2021-08-01T19:35:59Z] <msk[m]> your implementation sounds pretty significant, then, could it be used for any tool, or is it only for neatvi? [2021-08-01T19:36:20Z] <msk[m]> yeah I've never needed to use backreferences before [2021-08-01T19:37:30Z] <kyxor> You can use it for other tool if you want [2021-08-01T19:37:42Z] <kyxor> just grab the regex.c file and bam [2021-08-01T19:38:50Z] <msk[m]> interesting [2021-08-01T19:40:09Z] <kyxor> try this in neatvi, type "ACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCX" then try to search /A(B|C+)+D [2021-08-01T19:40:33Z] <kyxor> warning: get htop ready or smth :) [2021-08-01T19:41:06Z] <kyxor> you'll see catastrophic backtacking in action [2021-08-01T19:41:25Z] <msk[m]> yep it's at 100 CPU [2021-08-01T19:41:42Z] <kyxor> so in pikevm that is impossible [2021-08-01T19:41:44Z] <msk[m]> and it froze [2021-08-01T19:42:20Z] <kyxor> that's how they DDOSed cloudflare services back in 2019 ironically [2021-08-01T19:42:21Z] <msk[m]> I look forward to the change, then [2021-08-01T19:42:49Z] <msk[m]> lol they pretty much ddosed themselves [2021-08-01T19:44:12Z] <msk[m]> should have hired you at cloudflare to fix the regex implementation [2021-08-01T19:45:18Z] <kyxor> oh yeah, though back in 2019 I didn't even know how to use regexes, then when started making the text editor learned them cause it was part of it [2021-08-01T19:47:09Z] <msk[m]> sounds like the cloudflare devs should have tried making a few text editors [2021-08-01T19:49:31Z] <ang> to enter an escape char, can't you simply use C-v C-[ ? [2021-08-01T19:50:46Z] <ang> and re copying, maybe I misunderstood, but why not simply `w !xsel -ib` [2021-08-01T19:53:07Z] <msk[m]> oh that works even better [2021-08-01T19:53:49Z] <ang> ranges should work too. 5,/foo/w !xsel -ib [2021-08-01T19:53:49Z] <msk[m]> didn't know you could use w for output into something [2021-08-01T19:54:45Z] <ang> start with the basics and learn ed, that knowledge transfers nicely to ex/vi [2021-08-01T19:55:09Z] <msk[m]> :w !xclip -i -sel c also works since I don't like .xsel.log [2021-08-01T19:56:21Z] <msk[m]> what would you recommend as the best way of getting familiar with ed, using it for every file for a while? [2021-08-01T19:56:21Z] <ang> I don't like the xclip options but yeah, .xsel.log kinda sucks :D [2021-08-01T19:57:07Z] <ang> you could try to use it for small edits [2021-08-01T19:58:38Z] <msk[m]> from what I remember it was annoying to change a small part of a long line [2021-08-01T19:59:15Z] <ang> yeah, that's one of its shortcomings [2021-08-01T19:59:29Z] <msk[m]> I thought sam or somethin was supposed to fix it [2021-08-01T19:59:29Z] <ang> you either have to retype the entire line or get creative with regexes [2021-08-01T19:59:37Z] <msk[m]> s/somethin/something [2021-08-01T20:00:03Z] <ang> structural regular expressions make it a little easier [2021-08-01T20:04:31Z] <ang> I like ed for writing text. Like git commit messages, by setting EDITOR=ed (or does git use VISUAL?) [2021-08-01T20:05:17Z] <msk[m]> how long are the commit messages? I made a wrapper so I can write `gca "commit message"` and it adds everything, commits, and git pushes [2021-08-01T20:06:12Z] <ang> sometimes I add more detailed description of what that commit does, basically one short paragraph or two [2021-08-01T20:06:25Z] <msk[m]> also, unrelated, what's the proper way of changing coreutils? I want to try sbase, so would I kiss b sbase and then loop through kiss alternatives? [2021-08-01T20:07:02Z] <msk[m]> oh that's good practice then ang [2021-08-01T20:09:03Z] <ang> I think you can just change coreutils like that, yeah. But some sbase utilities might lack some needed options to build packages, like sed -i [2021-08-01T20:09:40Z] <ang> and if you happend to bork your system, remember you can always call /bin/busybox <utilname> [2021-08-01T20:10:04Z] <msk[m]> then could I use sbase for everything except sed? [2021-08-01T20:10:11Z] <msk[m]> sed should be in kiss a, right? [2021-08-01T20:10:26Z] <ang> ... and move files manually from /var/db/kiss/choices [2021-08-01T20:10:37Z] <ang> yeah [2021-08-01T20:12:24Z] <msk[m]> kiss a | grep sed returns nothing [2021-08-01T20:13:46Z] <ang> busybox is still your coreutils but you have sbase installed? [2021-08-01T20:14:29Z] <msk[m]> yeah I just built them [2021-08-01T20:14:46Z] <msk[m]> kiss a | grep sbase shows many entries, but sed isn't there [2021-08-01T20:15:14Z] <ang> weird. what about `kiss man sbase | grep sed`? [2021-08-01T20:15:22Z] <msk[m]> http://0x0.st/-4ZD.txt [2021-08-01T20:15:47Z] <msk[m]> /usr/share/man/man1/sed.1 [2021-08-01T20:16:29Z] <ang> is that your own package or someone elses? [2021-08-01T20:16:36Z] <ang> I guess they just disabled sed [2021-08-01T20:17:29Z] <msk[m]> it's sbase from community/community/sbase [2021-08-01T20:18:29Z] <ang> # Unlink sed, because '-i' is widely used [2021-08-01T20:18:35Z] <ang> from the build file ;) [2021-08-01T20:19:09Z] <ang> so it's just deleted from the package [2021-08-01T20:19:40Z] <msk[m]> so what would happen if I switch everything to sbase, then kiss r busybox [2021-08-01T20:19:43Z] <msk[m]> no more sed? [2021-08-01T20:20:08Z] <ang> yes [2021-08-01T20:20:34Z] <msk[m]> is there like a package for just sed [2021-08-01T20:20:40Z] <msk[m]> so I don't need both sets of coreutils [2021-08-01T20:21:10Z] <ang> I don't think there is a standalone one [2021-08-01T20:21:41Z] <msk[m]> oh wait there's community/sed and community/sed-i [2021-08-01T20:21:45Z] <ang> you could just steal an sed from obase or gnu [2021-08-01T20:22:49Z] <ang> ah, the sed package is actually gnu sed [2021-08-01T20:23:04Z] <ang> sed-i is my shell script [2021-08-01T20:23:52Z] <msk[m]> oh so it just makes a temporary file or something similar [2021-08-01T20:23:56Z] <msk[m]> so that you don't need gnu sed [2021-08-01T20:24:31Z] <ang> but with it, it's still not possible to use sbase sed, because some packages use more non-portable sed commands [2021-08-01T20:25:00Z] <ang> yeah, it's just a wrapper, simulating the -i option by using a temporary file [2021-08-01T20:25:51Z] <msk[m]> the README says it provides more than just -i [2021-08-01T20:25:58Z] <msk[m]> so wouldn't that solve the non-portable packages [2021-08-01T20:26:16Z] <msk[m]> -r and -E [2021-08-01T20:26:27Z] <ang> it fixes options [2021-08-01T20:26:35Z] <ang> but not the actual sed script used [2021-08-01T20:27:30Z] <ang> and there is a lot of unportable sed commands used in the build system of certain packages [2021-08-01T20:27:57Z] <msk[m]> unportable sed commands? so even further than -i, -r, and -E? [2021-08-01T20:28:31Z] <ang> yes, the actual sed script [2021-08-01T20:29:33Z] <msk[m]> how many packages do this? [2021-08-01T20:29:42Z] <msk[m]> would you recommend using GNU sed, then? [2021-08-01T20:30:02Z] <ang> I have no idea, I'm lazy and just use busybox [2021-08-01T20:30:29Z] <ang> I'd probably use gnu sed with sbase [2021-08-01T20:31:20Z] <ang> forgot to say, busybox provides a lot of more stuff than sbase [2021-08-01T20:31:24Z] <msk[m]> hmm but what packages did you notice these on [2021-08-01T20:31:43Z] <msk[m]> maybe I don't need any of those packages, and I'll be fine with sed-i? [2021-08-01T20:31:50Z] <ang> can't remember [2021-08-01T20:32:13Z] <msk[m]> yeah I know busybox is less minimal than sbase, that's why I wanted to try sbase [2021-08-01T20:32:19Z] <ang> try it out and let me know :) [2021-08-01T20:32:47Z] <msk[m]> also, does sed-i come with the shell script and a sed implementation? [2021-08-01T20:32:54Z] <msk[m]> or do I need to change the sbase build script? [2021-08-01T20:33:19Z] <ang> it's only the shell script [2021-08-01T20:33:31Z] <ang> you'd have to change the build file [2021-08-01T20:33:52Z] <ang> (of sbase) [2021-08-01T20:35:14Z] <msk[m]> yep [2021-08-01T20:35:16Z] <msk[m]> alright thanks ang [2021-08-01T20:35:47Z] <msk[m]> kiss a | grep sbase | kiss a - should work, right [2021-08-01T20:35:58Z] <msk[m]> once I'm ready to swap [2021-08-01T20:38:31Z] <ang> last time I tried piping to kiss a, it didn't work [2021-08-01T20:42:30Z] <msk[m]> did you add the dash ("... | kiss a -") [2021-08-01T20:43:08Z] <ang> ah, that must've been it [2021-08-01T21:32:48Z] <micro_O> was it acheam or msk[m] that was asking about a javascript-less version of kiss find website? I made a static site generator for it using tjs (node-ish 1.5mb javascript+libuv runtime). Beta is up on http://jedahan.com/kiss-find/static.html [2021-08-01T21:33:09Z] <micro_O> the site should work without javascript - the only thing that won't work is find, but you can use your browsers built-in find [2021-08-01T22:16:40Z] <msk[m]> it was me asking [2021-08-01T22:18:14Z] <msk[m]> static.html works for me inside elinks, thanks