00:19
cosimone has joined #nixos-chat
00:48
supersandro2000 has quit [Disconnected by services]
00:48
supersandro2000 has joined #nixos-chat
00:54
cosimone has quit [Quit: cosimone]
00:55
<
ashkitten >
spent a while today setting up modded among us stuff on an ubuntu server, very much made me wish i was doing it on nixos
00:55
<
ashkitten >
works fine now though, i guess
01:11
rajivr has joined #nixos-chat
02:00
<
cole-h >
Day 2 of "DNS still hasn't propagated"
02:01
<
cole-h >
technology sucks
02:01
<
cole-h >
the internet sucks
02:01
<
cole-h >
I want instant gratification
02:03
<
supersandro2000 >
DNS is usually really fast for me... You are sure you set everything correct?
02:07
<
cole-h >
`dig _dmarc.helbling.dev TXT` gives me NXDOMAIN
02:07
patagonicus5 has joined #nixos-chat
02:09
<
samueldr >
cole-h: TXT goes before the domain with `dig`, no?
02:10
<
cole-h >
Doesn't matter from personal testing
02:10
<
samueldr >
yeah, just tested
02:10
patagonicus has quit [Ping timeout: 246 seconds]
02:10
patagonicus5 is now known as patagonicus
02:10
<
cole-h >
Both show TXT in the question section
02:11
<
samueldr >
looks like it's simply not doing anything DNS-wise for your domain
02:11
<
cole-h >
Those are custom resource records -- I don't have any registered hosts ("glue records") set up
02:12
<
samueldr >
yeah, I don't know google's domain tools
02:12
<
samueldr >
maybe they do something weird with the setup if you do... only custom records?
02:17
<
cole-h >
maybe it's because I set the name for the entire URI
02:17
<
samueldr >
I say this only because even asking directly for your authoritative server gives me nothing
02:17
<
samueldr >
oh, could be it too
02:18
<
cole-h >
But I just did an @ A record to my server's IP and `dig` succeeded
02:18
<
cole-h >
maybe the name field is supposed to be the subdomain (or @ for the root)
02:19
<
samueldr >
yeah, possible
02:19
<
samueldr >
some tools do it that way, some like you wrote
02:19
<
infinisil >
In zonefiles, ending the name with a "." indicates that it's an absolute domain, which is then just taken as is
02:20
<
cole-h >
that's what it was
02:20
<
cole-h >
supposed to be subdomain
02:20
<
infinisil >
For all other names, they are suffixed with the origin
02:40
<
supersandro2000 >
cole-h: gives me _dmarc.helbling.dev. 10800 IN TXT "v=DMARC1; p=none"
02:41
<
cole-h >
Yeah, I fixed it
02:41
<
supersandro2000 >
great to hear that
02:41
<
cole-h >
Thanks to y'all for being my rubber ducky
02:41
<
cole-h >
supersandro2000++ samueldr++ infinisil++
02:41
<
{^_^} >
infinisil's karma got increased to 412
02:41
<
{^_^} >
samueldr's karma got increased to 319
02:41
<
{^_^} >
supersandro2000's karma got increased to 32
02:43
<
supersandro2000 >
half a stack of any normal MC item 🎉
03:08
<
aleph- >
Oh yeah mailserver.
03:08
<
aleph- >
I should go move Mailinabox over to using that mail module.
03:16
<
cole-h >
Now: how do I send a test mail from a CLI?
03:17
<
aleph- >
Can set up ssmtp and use that?
03:19
<
cole-h >
hexa-: I dunno if my box will be able top support that... it's only 1GB of RAM :P
03:20
<
supersandro2000 >
I just purged my git worktree while doing a rebase and completely borked git
03:20
<
supersandro2000 >
I just ran git purge while rebasing a git worktree and completely borked git
03:20
<
hexa- >
is there no locking to prevent that?
03:21
<
energizer >
what is git purge?
03:24
<
supersandro2000 >
*git prune
03:25
<
supersandro2000 >
I guess there is not locking for that
03:25
<
supersandro2000 >
or I am using worktree incorect
03:25
<
supersandro2000 >
so I am recommiting changes since 10 minutes 😂
03:25
<
supersandro2000 >
at least I did not lose my working tree
04:22
disasm has quit [Quit: WeeChat 2.0]
04:23
disasm has joined #nixos-chat
04:27
<
DigitalKiwi >
so long, unemployed tree
04:42
<
DigitalKiwi >
cole-h: is go that bad with memory? i probably have a scala program somehwhere that could send millions of emails a day (maybe even an hour) on a 1gb server ;p
04:42
<
cole-h >
Dunno, but I don't really feel like finding out :P
04:43
<
DigitalKiwi >
good because i don't reallly feeel like looking at scala or figuring out how to build it on nixos
04:45
<
DigitalKiwi >
/home/kiwi/old-kiwi/mvp-mbp/Users/kiwi/SBP1TBEM-kiwi/kiwi-old/Software/Projects/old...
04:45
<
DigitalKiwi >
it's kind of old
04:46
<
supersandro2000 >
you mean old-old-old?
04:46
<
DigitalKiwi >
that last old is "old $projectname"
04:52
abathur has quit [Ping timeout: 256 seconds]
04:54
<
DigitalKiwi >
i'm not even sure i can describe accurately what computer that even originated; but i will say this, that next to the Software dir in kiwi-old is one named '2011 MBP' which contains `kiwi` which is not old but is the oldest...that i keep on this machine lol
04:54
<
DigitalKiwi >
six degrees of kevin bacon is nothing compared to my file migrations ;_;
04:56
<
supersandro2000 >
If I would do that I would need a few TBs of storage
04:57
<
siraben >
Anyone participate in ICPC this year?
05:00
<
DigitalKiwi >
supersandro2000: oh i know, trust me i know... because i have a few TBs of storage
05:01
<
DigitalKiwi >
oh no am i a data squirrel
05:16
abathur has joined #nixos-chat
05:24
endformationage has quit [Quit: WeeChat 2.9]
05:36
ky0ko has joined #nixos-chat
05:43
waleee-cl has quit [Quit: Connection closed for inactivity]
06:13
<
energizer >
ashkitten: do you have ~/.config/pipewire-media-session/ settings in json files marked executable?
06:14
<
energizer >
hmm wonder why
06:18
<
energizer >
executable json is a rare breed
06:47
<
energizer >
lol nice
06:48
<
abathur >
could probably traumatize some windows sysads with files named json.exe
07:17
<
V >
DigitalKiwi: god, I feel you with those paths
07:17
<
V >
I still need to flatten things out, clean out the trash, etc
07:27
lunc has joined #nixos-chat
07:30
lovesegfault has quit [Quit: WeeChat 3.0]
07:31
lunc has quit [Remote host closed the connection]
07:32
lovesegfault has joined #nixos-chat
07:36
<
lovesegfault >
Uh, why does dbus depend on X11 stuff
07:42
<
aleph- >
Profane and foul
07:48
<
adisbladis >
lovesegfault: I was curious and took a look at the dbus expression
07:48
<
adisbladis >
What a gem I found
07:48
<
adisbladis >
] ++ (lib.optional stdenv.isSunOS ./implement-getgrouplist.patch);
07:48
<
adisbladis >
Not every day you encounter isSunOS
07:49
<
lovesegfault >
adisbladis: Yeah, I was looking there just now and got scared
07:49
<
lovesegfault >
I see "isSunOS" I bail
07:49
<
lovesegfault >
not today stan
07:49
<
adisbladis >
lovesegfault: I'm here to comfort you
07:49
<
lovesegfault >
stan
07:50
<
adisbladis >
It's still not clear what leaving out x11Support actually means
07:50
<
lovesegfault >
I need someone to stop me from writing an rsync replacement
07:50
<
lovesegfault >
because I am on the verge
07:51
<
lovesegfault >
right, I don't understand why dbus would need X11 support, lol
07:51
<
energizer >
why are you writing an rsync lovesegfault
07:52
<
lovesegfault >
Because rsync is slow and the path matching is dumb
07:52
<
energizer >
rsync is slow because it does a lot of checking, no?
07:52
<
lovesegfault >
I want something that splits the file into ~1MiB chunks and then hashes the chunks on both ends and transfers the difference
07:53
<
lovesegfault >
in parallel
07:53
<
adisbladis >
Hmmmmmmmmmmm
07:53
<
lovesegfault >
so it has a pool of connections (configurable number) and a set of chunks and it copies the chunks N at a time (N=number of conns)
07:54
<
adisbladis >
lovesegfault: I get the hunch that maybe x11Support should be disabled by default
07:54
<
adisbladis >
And the NixOS module should set it to true
07:54
<
adisbladis >
But maybe I'm off here
07:54
<
lovesegfault >
Right
07:54
<
lovesegfault >
worldofpeace: shows up on the git blame
07:54
<
lovesegfault >
maybe they know
07:55
<
lovesegfault >
the isSunOS patch is from 2020?!
07:55
lunc has joined #nixos-chat
07:55
<
energizer >
lovesegfault: there are some things that do that
07:55
<
energizer >
or at least parts of that
07:55
<
adisbladis >
lovesegfault: What?!
07:55
<
lovesegfault >
No, wait, I think it's just b/c the block was moved in the same commit
07:56
<
lovesegfault >
Yeah, no, it was there before
07:56
<
lovesegfault >
thank god
07:56
<
adisbladis >
lovesegfault: I bet you $5 that it won't build on an actual sunos box
07:57
<
lovesegfault >
I mean, there's absolutely no chance any of this builds in a sunos box
07:57
<
adisbladis >
Here I was hoping for some no-risk free $5
07:57
* lovesegfault
goes look on craigslist for one
07:57
<
adisbladis >
lovesegfault: I used to have a bunch of em back in the day
07:57
<
worldofpeace >
touching the dbus expression is hard
07:57
<
worldofpeace >
u touch the wrong thing because u don't get it and suddenly have of nixos is broken :D
07:57
<
worldofpeace >
*half
07:58
<
adisbladis >
worldofpeace: Maybe you know what x11Support actually entails?
07:58
<
worldofpeace >
and u never really know for sure
07:58
<
lovesegfault >
someone wants them! :P
07:59
<
energizer >
` illumos = filterDoubles predicates.isSunOS;`
07:59
* worldofpeace
reads expression
07:59
<
worldofpeace >
interesting
07:59
<
adisbladis >
energizer: Filthy lies!
07:59
<
adisbladis >
illumos is
_not_ SunOS
07:59
<
lovesegfault >
there's a bunch of isSunOS, who is out there running nix on sunos?!
07:59
<
adisbladis >
SunOS predates Soralis
07:59
<
adisbladis >
Solaris*
08:00
<
lovesegfault >
authored ELEVEN YEARS ago
08:01
<
adisbladis >
worldofpeace: A thought that occured to me is that maybe x11Support should be false by default, and then NixOS should pull in a package where it's set to true.
08:01
<
lovesegfault >
onety one years since they last updated theis launchd docs
08:01
<
adisbladis >
Because it is quite silly to pull in X11 as a run time dep, but I don't actually understand what's going on with x11Support so I may be way off
08:02
<
adisbladis >
This suggestion closely mirrors how we do pulseaudio support btw
08:02
<
adisbladis >
To speak the pulseaudio protocol you don't pull in everything and the kitchen sink, but you can set your own system package that has all the bells
08:03
<
energizer >
joyent works on a bunch of post- Sun stuff like SmartOS
08:04
<
worldofpeace >
but from the configure.ac it seems that it's needed for `build with X11 auto-launch support`
08:04
<
adisbladis >
worldofpeace: Right, so x11 support is only for the autolaunch feature?
08:05
<
adisbladis >
Which I think is irrelevant on NixOS at least
08:05
<
worldofpeace >
but tbh I'm not sure we even use x11 autolaunch, and just use the units?
08:05
<
adisbladis >
worldofpeace: Yeah, we don't use autolaunch
08:06
<
worldofpeace >
to be sure I'll do what any clueless nerd does and view fedora's rpm 🤣
08:07
<
adisbladis >
But I think they have less closure size concerns than we do
08:07
<
worldofpeace >
oh wow fedora doesn't even use dbus-daemon
08:07
<
worldofpeace >
they use dbus-broker
08:08
<
worldofpeace >
we kinda suck for that
08:08
<
worldofpeace >
I see they still have the libX11 development header
08:08
<
adisbladis >
> dbus-broker.meta.description
08:08
<
{^_^} >
"Linux D-Bus Message Broker"
08:08
<
adisbladis >
Thank you :P
08:08
<
adisbladis >
> dbus-broker.meta.homepage
08:08
<
srk >
do you prefer repeating option paths like boot.kernelModules = []\n boot.kernelPackages = []; or merging them under one root? or mixed?
08:09
<
lovesegfault >
srk: I always merge
08:09
<
lovesegfault >
TIL about dbus-broker?
08:09
<
worldofpeace >
gracile expression but u still need dbus in buildInputs
08:10
<
worldofpeace >
anyways
08:10
<
lovesegfault >
NO ETHICAL CONSUMPTION UNDER DBUS
08:10
<
adisbladis >
That's hardly surprising tbh
08:10
<
adisbladis >
Who would want to reimplement the entire API surface
_and_ take care of the C api
08:10
<
worldofpeace >
oh wait wrong comment nvm
08:10
<
adisbladis >
I'm not so concerned with that patch
08:11
<
adisbladis >
I would be interested in removing x11 from the closure though
08:11
<
lovesegfault >
Opinion: if we don't have CI for it we shouldn't be accepting it upstream
08:11
<
adisbladis >
lovesegfault: That's kind of hard
08:11
<
lovesegfault >
Corollary: Better to not have a thing than to have it broken
08:11
<
worldofpeace >
I would have to double check but it seems slightly compelling that we don't need x11 in dbus now
08:11
<
worldofpeace >
I don't even think we have autolaunch options anymore
08:12
<
lovesegfault >
adisbladis: Right, I think it's a "flexible" rule :P
08:12
<
lovesegfault >
e.g. armv7 stuff
08:12
<
adisbladis >
I've done some armv7l fixups recently, we're likely never gonna have CI for that
08:12
<
adisbladis >
Exactly :)
08:12
<
lovesegfault >
no CI, but it's widely used enough that it's worth it
08:12
<
lovesegfault >
now, OS/2? Nah.
08:12
<
adisbladis >
lovesegfault: We could probably add checks for "eval as limited support platform X"
08:13
<
adisbladis >
And then also apply patches to sources and see if that stil works
08:13
<
adisbladis >
At least that would take care of patch rot
08:13
<
lovesegfault >
Right, I think there's two things that could be done:
08:13
* worldofpeace
checks if we really don't X again
08:13
<
lovesegfault >
1. Conditional patches are last-resort only
08:14
<
lovesegfault >
2. Some test that collects all pkgs with patches, then applies all patches and see what's up
08:14
<
adisbladis >
lovesegfault: I really like that
08:14
<
adisbladis >
And it should be fairly fast
08:14
<
srk >
lovesegfault: and is there a tool to convert between the two?
08:14
<
worldofpeace >
yeah just drop it and see if we're good. I think there's enough evidence to try, I don't think dbus takes that long to build
08:14
<
lovesegfault >
srk: between the two what?
08:15
<
adisbladis >
worldofpeace: The problem is everything that pulls in dbus
08:15
<
srk >
lovesegfault: merged and per-line configs
08:15
<
lovesegfault >
which is like everything
08:15
<
adisbladis >
worldofpeace: Thank you btw <3
08:15
<
lovesegfault >
srk: Not that I know of, I just do it by hand
08:15
<
worldofpeace >
adisbladis: do u mean QA?
08:15
<
lovesegfault >
Yeah, worldofpeace++
08:15
<
{^_^} >
worldofpeace's karma got increased to 261
08:15
<
worldofpeace >
I'll have u know I demand sparkles only
08:15
<
srk >
I find myself converting installer generated hardware-conf.nix and conf.nix to merged variant by hand as well recently
08:16
<
lovesegfault >
sparkles?!
08:16
<
worldofpeace >
sparkles than name I believe
08:16
<
adisbladis >
"do u mean QA?"
08:16
<
adisbladis >
What do you mean?
08:16
<
lovesegfault >
✨ worldofpeace
08:16
<
{^_^} >
worldofpeace's karma got increased to 262
08:17
<
worldofpeace >
adisbladis: "The problem is everything that pulls in dbus" I interpret this as the problem is seeing that changing that doesn't cause adverse effect
08:17
<
worldofpeace >
lovesegfault: I may have had something to do with this feature. just maybe
08:17
<
adisbladis >
worldofpeace: I mean, building dbus is fast but actually testing the fallout is a full day of rebuilds
08:17
<
worldofpeace >
hypothetically
08:17
<
worldofpeace >
adisbladis: yeah. dbus is annoying for this
08:17
<
worldofpeace >
actually, I've never tested it this way
08:18
<
lovesegfault >
Okay, I have a lego set my wife got me for valentines day, and a radio building kit I got for xmas. What do I build first
08:18
<
worldofpeace >
I just duplicated the module and package to see if the new version worked at runtime
08:18
<
adisbladis >
lovesegfault: Instructions unclear, built a LEGO ham radio
08:18
<
worldofpeace >
and actually that didn't work in my favor either
08:19
<
lovesegfault >
adisbladis: :D
08:22
<
adisbladis >
worldofpeace: I downloaded the arch package and inspected it with patchelf (just in case the dependency spec in the PKGBUILD was off and x11 was pulled in elsewhere)
08:22
<
adisbladis >
Confirmed no x11 references at all
08:22
<
ashkitten >
worldofpeace: what advantage does dbus-broker have?
08:23
<
adisbladis >
worldofpeace: I take that as an indication that my hunch may have been right, and that we can possibly disable x11Support by default
08:24
<
worldofpeace >
lol, I was considering just removing it. like what is autolaunch support useful for if not for nixos, which doesn't support it...
08:24
<
adisbladis >
worldofpeace: Idk
08:25
<
adisbladis >
At the same time, what's the cost of keeping it?
08:25
<
worldofpeace >
useless code IMHO
08:25
<
adisbladis >
Anyway, you're the maintainer :)
08:26
<
ashkitten >
ah, okay
08:26
<
worldofpeace >
lol, I basically maintain everything that's freedesktop/gnome. Yeah, I would accept that in the most diva way only
08:26
<
ashkitten >
seems like dbus-broker would be good for nixos then
08:27
<
ashkitten >
not that i have any particular issue with dbus-daemon
08:27
<
adisbladis >
worldofpeace: I meant that as "I'm going to defer this decision to you, you got this"
08:28
<
worldofpeace >
oh, as long as I don't have to make a PR 😀 I don't think my bandwidth is there. I would certainly review one
08:28
<
lovesegfault >
update: that album with >3300 songs makes even lollypop stutter
08:29
<
adisbladis >
In the mean time: EMMS works great with any number of songs I've thrown at it
08:30
<
lovesegfault >
EMMS?
08:30
<
adisbladis >
lovesegfault: Emacs music player
08:30
<
lovesegfault >
Ah, I see
08:30
<
lovesegfault >
does it do album art?
08:31
<
adisbladis >
You can set that up
08:31
<
adisbladis >
But the defaults are quite bare
08:31
<
adisbladis >
I find it quite funny how these "modern" systems fail at scaling, but the systems of old still scales nicely
08:31
<
lovesegfault >
my problem is I don't intuitively know the name of the album I want to listen to
08:32
<
lovesegfault >
I just browse the collection by looking at the art and I intuitively know what album matches my desired listening by the cover
08:32
<
lovesegfault >
so if I don't have the pictures finding what I want to listen to takes forever
08:33
<
lovesegfault >
and yeah, the current magnitude of my library makes it really hard to use normal music playing software
08:33
<
lovesegfault >
they get angry
08:33
<
adisbladis >
lovesegfault: Did you consider mpd?
08:33
<
adisbladis >
Mpd has some great front ends
08:34
<
lovesegfault >
I've heard of mpd, but I have never put in the time
08:34
<
adisbladis >
Mopidy is also an option with an actual api and multiple clients
08:35
<
adisbladis >
Well, it speaks the mpd protocol
08:35
<
adisbladis >
So it should have exactly the same client support
08:35
<
lovesegfault >
nice
08:40
<
srk >
mushu is cool
08:44
<
lovesegfault >
adisbladis: did you see Raal released a custom amp for the SR1a?
08:44
<
lovesegfault >
way out of my price range though
08:51
<
lovesegfault >
Tajikistan has the best anthem
09:35
<
worldofpeace >
okay just spent this last hour adding dbus-broker support :D
09:40
cole-h has quit [Ping timeout: 240 seconds]
10:00
<
DigitalKiwi >
sorry are we talking about mpd
10:00
<
DigitalKiwi >
and nobody mentioned the best client in the history of clients?
10:01
<
DigitalKiwi >
n-c-urses m-edia p-layer c-lient p-lus p-lus
10:01
<
DigitalKiwi >
ncmpcpp
10:09
<
FireFly >
ncursed name
10:10
<
adisbladis >
lovesegfault: No I didn't
10:10
<
adisbladis >
But that's good
10:10
<
adisbladis >
Because that Schiit amp they used when I demoed them sucked
10:11
<
adisbladis >
I'd never buy anything from Schiit...
10:11
<
adisbladis >
It couldn't handle the bass and started clipping
10:12
<
etu >
DigitalKiwi: I used to use that, it was great :D
10:12
<
DigitalKiwi >
is* it still is
10:44
__monty__ has joined #nixos-chat
11:04
<
sphalerite >
FireFly++
11:04
<
{^_^} >
FireFly's karma got increased to 1
11:05
<
sphalerite >
love it
11:05
<
sphalerite >
lovesegfault: clearly whatever you got from your wife should have priority
11:42
<
eyJhb >
ping infinisil
11:42
<
eyJhb >
I need MC knowledge :p
11:46
<
infinisil >
eyJhb: o/
11:46
<
eyJhb >
Your MC on demand, is for the clasical 1.6.5?
11:48
<
infinisil >
I think I haven't updated it, so it's for 1.16.4 currently
11:48
<
infinisil >
(But updates are trivial)
11:51
<
infinisil >
That's with my on-demand-minecraft implementation or another one?
11:51
<
eyJhb >
Another one, doing one in Go just for fun :D JUst finished my exam today, So I have time for fun!
11:51
<
eyJhb >
Also, I suck at reading Haskel.
11:52
<
eyJhb >
But did you get the ping correctly?
11:52
<
infinisil >
Hehe I see, yeah my implementation does ping
11:53
<
infinisil >
The VarInt and the MCString are pretty tricky to implement
11:53
<
eyJhb >
Like, everything else looks correct. But also just inspecting the packet my client sends to my plain TCP server, looks weird
11:53
<
infinisil >
I suggest adding some unit tests
11:53
<
eyJhb >
My Var is... ugly...
11:53
<
eyJhb >
VarInt/VarLong
11:54
<
eyJhb >
Might have to do that yeah :P
11:55
<
eyJhb >
Do you have a volume attached to your DO, where you save the world infinisil ?
11:55
<
infinisil >
Yeah, the world is only stores on a volume, which is attached whenever the droplet starts
11:56
<
infinisil >
stored*
11:59
<
eyJhb >
Does.. Does the Droplet run NixOS when you spin it up? :p
12:00
<
eyJhb >
Do you then restore from a Snapshot? :p
12:00
<
infinisil >
Nah, it's entirely stateless
12:01
<
infinisil >
Other than the world volume
12:01
<
eyJhb >
But then you have to infect the host, etc. for it to be a NixOS host, right?
12:01
<
eyJhb >
(I am not sure where this logic is in the minecraft-on-demand)
12:02
<
infinisil >
I'm using the nixos digitalocean image for that one
12:05
* DigitalKiwi
takes notes
12:06
<
DigitalKiwi >
infinisil: we should rewrite nixops in haskell, i have the perfect name for it; hops
12:07
<
DigitalKiwi >
now half of the project is done, that's my half, coming up with the name
12:07
<
DigitalKiwi >
you handle the code ok? :)
12:08
<
__monty__ >
Hops sounds like the deployment tool the Homebrew project should make.
12:08
<
DigitalKiwi >
i'll do the marketing
12:08
<
infinisil >
Sounds fair! Naming things is one of the hardest problems after all
12:09
<
DigitalKiwi >
we can still split the proceeds 50/50 though even ghouh i'm doing 2/3 the work because i'm such a nice person
12:09
<
infinisil >
Too generous <3
12:10
<
DigitalKiwi >
The most important thing in the programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language. Donald Knuth
12:10
<
eyJhb >
It sounds like I should learn to read HS then...
12:11
<
eyJhb >
infinisil: Would you call your code pretty and well formatted + readable?
12:11
<
infinisil >
Hell yeah!
12:11
<
eyJhb >
Then I will never be able to read it
12:11
<
infinisil >
on-demand-minecraft is probably my most well written haskell project :P
12:12
<
DigitalKiwi >
infinisil: but which code formatter do you use
12:13
<
__monty__ >
eyJhb: The signal-to-noise ratio is quite a bit higher than in most languages. Don't assume there's skippable bits!
12:13
<
DigitalKiwi >
infinisil brain not found
12:13
<
infinisil >
Oh damn, it's a 404, that joke backfired lol
12:13
<
__monty__ >
I need to get me some of that but I always get the octocat jedi and then I forget what I was looking for.
12:15
<
DigitalKiwi >
with a code formatter i can think about the code and not how to format it
12:17
<
DigitalKiwi >
eyJhb: programming in haskell by graham hutton is <3
12:17
<
eyJhb >
Fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuccccccccccccccccccccccccccccccckkkkkkkkkkk
12:17
<
eyJhb >
I will never be able to read it then
12:17
<
DigitalKiwi >
it's only like 200 pages
12:17
<
eyJhb >
It is so compact, and it looks like nothing really happens, but something does?! :(
12:18
<
DigitalKiwi >
hutton is amazing and haskell isn't as complex as it's made out to be
12:18
<
infinisil >
Feel free to ask questions :)
12:19
<
eyJhb >
infinisil: Can I cry on your shoulder as well when I have given up on life?
12:19
<
DigitalKiwi >
eyJhb: it's one of the only haskell books i've read cover to cover (and multiple times at that)
12:19
<
eyJhb >
DigitalKiwi: Might have to look at that at some point :D
12:20
<
DigitalKiwi >
how about today
12:20
* infinisil
goes to shower and eat and will be back later
12:20
evanjs has joined #nixos-chat
12:20
<
eyJhb >
DigitalKiwi: Nahh not today, today is fun in Golang, while my friends play MC :p
12:21
<
DigitalKiwi >
one of my biggest regrets is not learning haskell 12 years ago when i first wanted to lol
12:40
<
{^_^} >
nixos-search#290 (by lheckemann, 33 minutes ago, open): Search terms not respected
12:41
<
sphalerite >
this is a problem I've constantly had with google as well…
12:42
<
eyJhb >
infinisil: MC protocol is weird.....
12:42
<
__monty__ >
I do want && behavior but not applied strictly if that makes any sense?
12:42
<
infinisil >
eyJhb: Ayy
12:42
<
__monty__ >
Mostly I want missing terms to penalize results but not exclude them.
12:47
<
philipp[m]1 >
What is the currently reccomendend tool to wrangle a python requirements.txt into a nix expression automatically?
12:56
<
philipp[m]1 >
That might have been too much on topic.
12:57
<
__monty__ >
If you were in #nixos I'd give you an answer there.
13:05
<
eyJhb >
infinisil: The MC|PingHost does not have 0x00 after each char, but the hoststring, does...
13:06
* infinisil
never inspected packets
13:06
<
eyJhb >
Did it just work first try?
13:07
<
infinisil >
Nah, but I was able to fix the problems with unit tests :)
13:08
<
infinisil >
I guess Go doesn't have anything like quickcheck though, testing is very easy in haskell with quickcheck
13:08
<
eyJhb >
Go testing is also very easy :p
13:08
<
infinisil >
Oh I guess you don't know quickcheck then hehe
13:08
<
infinisil >
See e.g. `property $ \value -> decode (encode (MCVarInt value)) == Right (MCVarInt value)`
13:09
<
infinisil >
That's a quickcheck test, which just says "Generate random value's, encode and decode them, make sure it doesn't change it"
13:09
<
eyJhb >
^ Black magic
13:09
<
infinisil >
It's like the mathematical `forall value . decode(encode(value)) == value`
13:10
<
eyJhb >
But my Var stuff works fine, however it is how MC does strings... :/ Some are 0x00 terminated, others are not
13:11
<
eyJhb >
Fx. `1` is 0b00110001, so it should only be a single varInt read (I guess), but the next is literally just 0b00000000, sooo
13:11
<
siraben >
QuickCheck is OP
13:11
<
eyJhb >
But I might be doing something weird
13:11
<
siraben >
you can also write Arbitrary instances for your own data types, helped me fix some bugs I had in a tautology checker for propositional logic
13:12
<
siraben >
I compared a naïve (but correct) checker with a more clever (possible incorrect) one, then when they disagreed, QuickCheck also shrunk the test cases so that it would generate a minimal test case
13:12
<
srk >
smallcheck is also neat :)
13:12
<
srk >
> hackage "smallcheck"
13:13
<
__monty__ >
And hedgehog.
13:14
<
siraben >
Nice, so QuickCheck seems more sporadic whereas smallcheck aims to be more complete up to a certain depth
13:19
<
srk >
> hackage "quickspec"
13:19
<
srk >
^ Black magic :D
13:23
<
gchristensen >
> php "pecl"
13:23
<
{^_^} >
attempt to call something which is not a function but a set, at (string):472:1
13:30
cosimone has joined #nixos-chat
15:08
lunc has quit [Ping timeout: 246 seconds]
15:10
<
eyJhb >
WELL FUCK! I doofed infinisil
15:11
<
eyJhb >
Implemented the legacy version, because I thought that is what it wanted...
15:11
<
infinisil >
Hehe xD
15:11
<
eyJhb >
BUT! The reason it sent a legacy request was because I did not answer the normal request, so it besically just was like...
15:11
<
eyJhb >
"OH! HE DID NOT ANSWER THIS! Must be legacy then!!"
15:13
<
infinisil >
Damn backwards compatibility
15:17
<
eyJhb >
I also like how they used VarInt, etc. for like, contacting the server
15:17
<
eyJhb >
And then it seems like they gave up, and just made the server throw json at the client.
15:23
<
eyJhb >
infinisil: Now I just need to respond to the client :p :D
15:29
<
infinisil >
Lol yeah the protocol is a bit weird
15:43
<
sphalerite >
I'm trying out photoprism (in docker for now), it seems very nice. The image classification network it uses seems a little unreliable (good at producing amusing results though), but in general I think I want this
15:43
<
sphalerite >
and I'll need to review and merge the nixpkgs PR :D
15:44
<
eyJhb >
infinisil: It's just like... Lets optimise this, and then they forgot to tell the rest of the team.
16:05
Hurttila has joined #nixos-chat
16:13
<
sphalerite >
hexa-: (and andi- ) oooh thanks!
16:33
cole-h has joined #nixos-chat
16:54
lunc has joined #nixos-chat
17:28
endformationage has joined #nixos-chat
17:30
rajivr has quit [Quit: Connection closed for inactivity]
17:30
<
andi- >
sphalerite: that is why I originall started npmlock2nix
17:31
<
andi- >
as you can see in that code above it is still called ranz2nix there (and has been working ever since without having to touch it)
17:52
nckx has quit [Ping timeout: 264 seconds]
17:54
cwslimy[m] has joined #nixos-chat
18:05
Synthetica has joined #nixos-chat
18:10
ece3 has joined #nixos-chat
18:35
nckx has joined #nixos-chat
18:43
<
infinisil >
Cursed idea: A programming language where variables can have empty names
18:44
<
infinisil >
someFun = : + 10 is the same as someFun = x: x + 10
18:49
<
ldlework >
probably already possible in language that support unicode names
18:49
<
joepie91 >
infinisil: are you fishing for negative karma? because that's how you get negative karma :P
18:49
<
infinisil >
ldlework: But then you still need to type something to refer to it
18:50
<
infinisil >
infinisil++ Ayy
18:50
<
{^_^} >
infinisil's karma got decreased to 411
18:52
<
siraben >
how does one accumulate that much karma in Nix land
18:52
<
samueldr >
infinisil: `someFun = :aFn bFn;` or `someFun = aFn bFn :;` <- which way around?
18:52
<
ldlework >
siraben: have you met infinisil? he's kind of prolific.
18:52
<
samueldr >
both equivalent to `someFUn = x: aFn bFn x;`
18:52
<
samueldr >
shitposting is also good to get karma
18:53
<
__monty__ >
Meanwhile I'm sitting here thinking infinisil just wants operator slices : >
18:53
<
infinisil >
samueldr: Wait I don't get your example
18:53
<
infinisil >
`aFn bFn :;` doesn't make any sense to me
18:53
<
samueldr >
infinisil: how would you write a "utility function" that called aFn and bFn with your nameless param?
18:54
<
samueldr >
infinisil: I was thinking "at any point a single colon means this is a function, and it is where its lone unnamed argument is used"
18:54
<
samueldr >
see, it matches for addTen = : + 10; and addTen = 10 + : ;
18:54
<
samueldr >
cursed, yes!
18:54
<
siraben >
ldlework: hehe yeah have seen his name around a lot + blog posts
18:55
<
__monty__ >
`someFun = : aFn bFn;` would just be identical to `someFun = aFn bFn`, we can already write that and it's clearer.
18:55
<
samueldr >
__monty__: oh right
18:55
<
__monty__ >
The only use I can see for this is operator sections.
18:55
<
__monty__ >
samueldr: Now your idea
*is* really cursed.
18:55
<
samueldr >
I'm not always thinking in functional terms
18:56
<
samueldr >
__monty__: but it tracks with the example infinisil gave!!
18:56
* infinisil
doesn't get it
18:56
<
samueldr >
probably tricky, hard and annoying to parse though
18:56
<
infinisil >
The idea is to just rename a variable name to ""
18:57
<
__monty__ >
infinisil: Think of samueldr's interpretation as operator sections with an explicit colon to mark the "missing" argument.
18:58
<
samueldr >
do you hate it now?
18:58
<
__monty__ >
infinisil: Would your idea ever differ from just not writing the colon?
18:58
<
infinisil >
Can't have enough curses!
18:58
<
infinisil >
__monty__: Well, variable names can appear in all kinds of places
18:59
<
samueldr >
it'd be interesting to extend the idea with other types of syntaxes
18:59
<
infinisil >
`let = 10; in ` would be valid
18:59
<
__monty__ >
infinisil: That's just an annoying verbose way to write `10`.
18:59
<
infinisil >
`let = { = 10; }; in .` would be valid
18:59
<
infinisil >
(and would return 10)
19:00
<
samueldr >
so at any point an identifier can be used or defined, an empty string is also valid?
19:00
<
samueldr >
so uh... " " <- between each spaces there's a function call to "" ?
19:00
<
infinisil >
Oh yeah, definitely
19:00
<
__monty__ >
That last example clearly shows with the set shows why this is a horrible idea.
19:01
<
__monty__ >
A lone dot meaning access the nameless attribute of the nameless set in scope?
19:01
<
__monty__ >
Get out!
19:01
<
samueldr >
I don't think it was proposed with any real use case in mind
19:01
<
infinisil >
Are you saying that confusing everybody is not a real use case
19:02
<
infinisil >
I kind of want to implement this in Nix now lol
19:02
<
__monty__ >
OTOH this feature
*could* make nix's popularity explode because of all the code golfers 🤔🤯
19:03
<
infinisil >
samueldr: I guess you'd treat all empty space lexemes as an identifier if an identifier is expected, ignored otherwise
19:03
<
samueldr >
ugh, this kernel tree I'm working with might require building with -j1 :<
19:03
<
__monty__ >
That's creepy. Like a lineup of butternuts awaiting decimation o.O
19:03
<
infinisil >
So the " " example would just be a single lexeme
19:03
<
infinisil >
And what it means depends on context
19:03
<
joepie91 >
__monty__: I immediately thought 'minions'
19:04
<
__monty__ >
joepie91: Guess my mind's not as innocent anymore : )
19:04
<
samueldr >
from 4 minutes to 14 minutes
19:05
waleee-cl has joined #nixos-chat
19:19
cole-h has quit [Ping timeout: 240 seconds]
19:21
<
sphalerite >
hm, how brute-forceable are encrypted 7z archives? I have one here with some old photos of mine, and not the faintest clue what the password is
19:21
<
__monty__ >
Probably depends on the length of passwords past you tended to use?
19:22
<
sphalerite >
given how old it is, it might not be that strong
19:29
<
eyJhb >
sphalerite: 123456789?
19:29
<
eyJhb >
Try a simple rockyou, and then you can just do pure bruteforce with rules
19:33
<
__monty__ >
Ah, known-plaintext attacks. So not actually weak in a useful way here probably.
19:54
rj has joined #nixos-chat
19:57
<
gchristensen >
if anyone around has been playing with zrepl, would you mind making a PR and even a trivial service for it? :)
19:58
<
colemickens >
I think you made the mistake of saying you got the other module running ;)
19:59
<
gchristensen >
huh?
19:59
<
gchristensen >
znapzend?
19:59
<
colemickens >
I thought you'd mentioned the other day getting the zrepl module working that I'd found
19:59
<
colemickens >
I apparently misremembered :)
19:59
<
gchristensen >
oh I'm running it by hand in screen :P
19:59
<
gchristensen >
the motivating factor here is znapzend just took out hydra's database, oops
20:00
<
colemickens >
Yeah I saw in infra. Though also port forwards being "forgotten" seems... unfortunate.
20:02
<
sphalerite >
oof, how did that happen? (znapzend taking out hydra's db)
20:03
<
gchristensen >
znapzend doesn't delete snapshots until they were sent to every remote
20:19
Hurttila has quit [Ping timeout: 240 seconds]
21:16
rj has quit [Quit: rj]
21:16
rj has joined #nixos-chat
22:11
<
gchristensen >
< Content-Encoding: br
22:11
<
gchristensen >
< Content-Type: application/json
22:12
<
gchristensen >
(-> -dev)
22:12
<
samueldr >
(continued in #nixos-dev)
22:18
ece38 has joined #nixos-chat
22:20
ece3 has quit [Ping timeout: 264 seconds]
22:20
ece38 is now known as ece3
22:27
rj has quit [Ping timeout: 268 seconds]
22:48
__monty__ has quit [Quit: leaving]
23:02
cosimone has quit [Quit: cosimone]