gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<worldofpeace> red wine is nice and a good color. I kinda like the plate in the second picture.
<gchristensen> bowl. I managed to find them in the discard pile at a local potter's workshop because the glaze didn't come out "right"
<gchristensen> so I bought all of them (2)
<elvishjerricco> I wonder how valuable it'd be for GC'd languages like java to do rust-like lifetimes behind the scenes implicitly, resorting to the GC only for allocations whose lifetimes can't be statically inferred. Literally no language level change, basically just a compiler/runtime optimization.
<worldofpeace> glaze shmaze, perfectly imperfect is sometimes just depending on who's eye does the looking gchristensen
<worldofpeace> * just fine
<gchristensen> agreed
<gchristensen> the special part is I found *none* of the other pottery's glazes to be my taste
<infinisil> elvishjerricco: Guess: Reference loops are very common in java (objects having children which have a reference back to the parent) -> almost no lifetimes can be statically determined
<elvishjerricco> infinisil: Those are common but I'd wager gen 1 allocations are pretty often acyclic. Just a hunch
<infinisil> elvishjerricco: What's gen 1 allocations?
<gchristensen> elvishjerricco: I wonder if the mutability tracking would be needed as well
<worldofpeace> gchristensen: 😃 That is some haiku material right there
<gchristensen> :D
<elvishjerricco> infinisil: Generational hypothesis. Most allocations die quickly, so put new allocations in a frequently swept allocation area, and move them out when they live longer than one GC in order to reduce the time spent sweeping long lived data
<infinisil> I have a feeling that the java guys already implemented many many techniques to improve gc times
<worldofpeace> gchristensen: I was wondering if we could chat someday about implementing https://github.com/NixOS/ofborg/issues/404 (I obviously can't do rust), but features like that would help me a ton
<{^_^}> ofborg#404 (by worldofpeace, 8 weeks ago, open): Provide a command to build packages changed or added in a PR (not transitive)
<infinisil> s/guys/people
<worldofpeace> infinisil++
<{^_^}> infinisil's karma got increased to 168
<elvishjerricco> infinisil: Yea, for instance, they do actually optimize for allocations that can clearly be handled 100% on the stack, so they're already part way there.
<infinisil> :P
<infinisil> elvishjerricco: I personally really like the Swift memory model: ARC for everything, the user has to explicitly make references weak to break cycles
<elvishjerricco> infinisil: Oh I have a few issues with ARC.
<infinisil> Requires no (tracing) GC, very fast, and in 99% of cases the user doesn't have to pay attention to it
<elvishjerricco> It's not very CPU cache friendly, constantly invalidating by writing reference counts
<elvishjerricco> It's literally just worse than Rust's lifetime model
<infinisil> In that aspect I guess, but it's so much better for convenience
<elvishjerricco> When you mess up with it, you won't know until you have a massive memory leak
<elvishjerricco> Granted, ARC is FAR better than the ole Objective-C days when you had to manually release everything :P
<infinisil> I'm lucky to only have started with macOS/iOS programming with the release of Swift :)
<infinisil> Or shortly before
<elvishjerricco> And ARC makes a ton of sense for Apple. Easy to grasp, and pretty friendly to total memory usage for constrained environments like iOS.
<elvishjerricco> I just wish Swift had been Rust :P
<infinisil> Hehe, like, for Apple to have used Rust instead of making Swift?
<elvishjerricco> Right
<infinisil> Hmmm maybe
<infinisil> Swift is really sold as a beginners language
<elvishjerricco> I remember some benchmarks back in like 2013 comparing ARC to GC on mobiles, and GCs were just way too damn costly for super weak devices like the phones of the time
<elvishjerricco> Yea I think an argument could be made that Rust might not be too complex for beginners, but Swift DEFINITELY isn't.
<infinisil> Yup :)
<infinisil> I recently dug through my old swift projects, and oh man there's some cool stuff there
<infinisil> I'm a bit sad that I can probably never run those again
<infinisil> From now on I'll use Nix for all my projects so I should be able to run them for a looong time
<pie__> C:
<pie__> meanwhile i still cant figure out how to ram limit firefox and noone is replying to the systemd bug
<pie__> i dont suppose andone has any systemd maintainer friends :(
<gchristensen> worldofpeace: okay, let's chat on that ticket
<gchristensen> worldofpeace: (now :))
<infinisil> pie__: Tried #systemd?
<pie__> infinisil: not today but yes
<gchristensen> other than 21, 80, 443, 9418... what ports do y'all think nixpkgs requires
<samueldr> all ports that a software could ask for?
<samueldr> 0-65535
<samueldr> but I feel I'm misled in my interpretation
<gchristensen> in terms of fetchers in nixpkgs and likely ports
<samueldr> 22 git ssh?
<gchristensen> (for example, it is possible a fetcher is using port 25, but exceedingly unlikely.)
<samueldr> though not in nixpkgs I guess
<gchristensen> that would be surprising: hydra doesn't evaluate nixpkgs with any SSH keys available
<samueldr> (I was thinking fetchers)
<samueldr> is this a question where you know the answer or a question to find an answer?
<gchristensen> I don't know the answer
<gchristensen> I'm thinking about adding some outgoing firewall rules which are a bit restrictve
<samueldr> can you apply the same as logging-only at first?
<gchristensen> ohh almost definitely
<samueldr> like a day or so and analyze what's in there
<samueldr> ag 'url\s*=.*:[0-9]+/' # nothing in there as a url with a specific port I see
<gchristensen> nice
<samueldr> (quite hacky!)
<gchristensen> I'll whitelist those 4 ports and then warn on the others
<samueldr> it finds nixos configuration stuff
<gchristensen> I think my macos ofborg builder can start building unrestricted tomorrowish
<gchristensen> the three problems turned out to be easy to fix. (a) sandboxing is bad: it could get compromised -> run it in a VM. (b) sandboxing is bad: ofborg creds could be stolen -> run ofborg on the host, remote build on the mac VM (c) fixed output derivations can do wild things to the network -> it is on a protected vlan without much access to my remaining network, plus maybe some restrictive rules
<gchristensen> (a)(b) and erase it every day
<pie__> gchristensen: what does ftp use
<pie__> ftp is weird iirc?
<pie__> huh. I guess I should have just tried asking discourse sooner. https://discourse.nixos.org/t/ram-limiting-firefox-for-pathological-tabbers/5117
<drakonis1> ftp is a protocol
<pie__> so is ssh :P
<pie__> or whatever
<pie__> anyway i said that before i finished reading the scroll, so nevermind i guess
drakonis1 has quit [Quit: WeeChat 2.6]
drakonis has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
Guanin has quit [*.net *.split]
evanjs has quit [*.net *.split]
kcalvinalvin has quit [*.net *.split]
buckley310 has quit [*.net *.split]
betawaffle has quit [*.net *.split]
aleph- has quit [*.net *.split]
aminechikhaoui has quit [*.net *.split]
ddima__ has quit [*.net *.split]
disasm has quit [*.net *.split]
pie__ has quit [Quit: pie__]
pie_ has joined #nixos-chat
pie_ has quit [Ping timeout: 276 seconds]
pie_ has joined #nixos-chat
MichaelRaskin has quit [Quit: MichaelRaskin]
rardiol has quit [Ping timeout: 250 seconds]
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
lopsided98 has joined #nixos-chat
cjpbirkbeck has joined #nixos-chat
cjpb has joined #nixos-chat
cjpbirkbeck has quit [Ping timeout: 268 seconds]
cjpb2 has joined #nixos-chat
cjpb has quit [Ping timeout: 250 seconds]
Guanin has joined #nixos-chat
evanjs has joined #nixos-chat
kcalvinalvin has joined #nixos-chat
__monty__ has joined #nixos-chat
psyanticy has joined #nixos-chat
aminechikhaoui has joined #nixos-chat
cjpb2 has quit [Quit: Quitting now.]
pie_ has quit [Ping timeout: 245 seconds]
drakonis_ has quit [Ping timeout: 250 seconds]
drakonis_ has joined #nixos-chat
betawaffle has joined #nixos-chat
travelion has joined #nixos-chat
rardiol has joined #nixos-chat
drakonis_ has quit [Ping timeout: 276 seconds]
<eyJhb> Is somebody working on more time during the day? Like a extra hour or two would be very helpful, 26 hour days!
<gchristensen> lol
<eyJhb> You cannot deny it would be useful gchristensen :D
<gchristensen> +1
<etu> eyJhb: More time to sleep right?
<eyJhb> It is a standard item on my wishlist, "extra hour a day"
<eyJhb> etu: No no no, I am doing waaaay to much of that atm.. Just a girl that has started to take waaay much of my time :|
<etu> eyJhb: Nice!
<etu> eyJhb: If you enjoy it, it's not wasted time. Remember that :)
<eyJhb> 100% not wasted time, I just have to admit it takes quite some time. I do enjoy it very much! But yeah, not that much work is being done atm.
<gchristensen> good
<eyJhb> But luckily I will take my platform and use as a semester project next year, so bachelor project collaborating with LEGO so I will both work, write my bachelor and earn some much needed
<eyJhb> money! Hoping it will be awesome :D
<eyJhb> Also, waaaay too much cake atm. I will be roll around before christmas is done :p
pie_ has joined #nixos-chat
<Taneb> Way too much cake is the best amount of cake.
<yorick> eyJhb: yes, travel west by two timezones
<yorick> * might take you longer than 2 hours
<__monty__> yorick: That's also a good way to lose an entire day if you live on Little Diomede Island.
<__monty__> Of course, if you happen to live on Big Diomede yo can gain an entire day with a ~3km swim.
travelion has quit [Ping timeout: 248 seconds]
<__monty__> I don't get trackballs. How is a trackball more ergonomic than a good trackpad, like an apple magic trackpad for instance?
<etu> you can have your wrist on a comfy rest and not move it :)
<gchristensen> for me the important thing is doing different things regularly
<adisbladis> __monty__: To move around a huge trackpad like the apple magic trackpads you have to move your wrists quite a bit
<gchristensen> when I use my trackball I don't use my fingers, but a flat hand on top
<adisbladis> Imho the best mouse input is still a trackpoint
<adisbladis> Despite also having a roller mouse
<yorick> my wrists don't hurt anymore but now my fingers hurt
<yorick> not ideal
<etu> adisbladis: How's your dox?
<adisbladis> etu: It's quite nice I think
<adisbladis> I don't really like the switches though
<gchristensen> __monty__: I also use a trackpad and a rollermouse red :)
<yorick> I have the ergodox but maybe the mx clear is too stiff
<__monty__> adisbladis: You do? Are you talking about wrist bending? That's needed with the big trackballs too, no?
<etu> yorick: Horrible switches. Too stiff.
<yorick> etu: not bottoming out is supposed to help
<adisbladis> __monty__: I don't use a trackball, I don't really know.
<etu> yorick: o-rings :p
<adisbladis> I'm comparing it to trackpoints or roller mouse
<yorick> etu: on browns?
<gchristensen> __monty__: I don't need to bend my wrist on the kensington slimblade
<__monty__> I never liked trackpoints. The stiff feeling is so yuck.
<adisbladis> __monty__: I never really liked trackpads ;)
<etu> yorick: Currently I'm on Matias Quiet Clicks. But I would like to transition to MX-compatible switches because there's more choice there.
<adisbladis> etu: I find the thumb clusters a bit awkward
<adisbladis> I have trouble reaching some of the keys
<etu> adisbladis: I don't use all of those keys on a daily basis :p
<__monty__> adisbladis: I'm looking into converting a thinkpad keyboard into an external one. I guess that might get me using trackpoints more.
<gchristensen> infinisil: what was that fancy-pants local private youtube follow thing?
<infinisil> Invidious
<qyliss> <3 Invidious
<__monty__> You should seriously consider an rss client that supports youtube. It's *great*.
<__monty__> Selfoss is an example of one.
<__monty__> You can subscribe to youtube, blogs and reddit in the same place.
<infinisil> gchristensen: I might try to finish my PR for it today
<gchristensen> neat
<infinisil> __monty__: I feel like youtube is something i still just want to be able to browse freely instead of using some cli tool
<__monty__> infinisil: It's not cli. And it's not for browsing. It's to subscribe to channels and actually get notified when they post something.
<infinisil> Ah I see
<__monty__> Combined with mpv it also provides a 100% adless youtube experience : )
<qyliss> So does invidious
<infinisil> Or just youtube itself with an adblocker
<__monty__> I didn't mean to imply invidious doesn't.
<__monty__> Neither of those get you mpv though.
<infinisil> Mpv is nice i have to say
<Taneb> What is mpv?
<__monty__> You may scoff at this but I regularly use devices that can only play videos using mpv. Browser video players are way too heavy.
<infinisil> Increasing gamma for dark videos is very useful for example
<adisbladis> Taneb: The best media player under the sun :)
<adisbladis> Taneb: A fork of mplayer + mplayer2
<Taneb> mplayer3???
<adisbladis> Pretty much :O
<__monty__> Yeah, but better.
<adisbladis> More like mplayer5
<infinisil> __monty__ It also very much depends on the codec used I believe
<adisbladis> So fine they skipped severeal numbers
<eyJhb> __monty__: didn ot read everything, but I couldn't use trackpads when my hand was "sick"(?), as everything hurt, and could only use trackballs
<__monty__> infinisil: Maybe but none of the codecs youtube usesmade the experience bearable.
<infinisil> __monty__: Yeah i have that problem too, on my old macbook it sometimes struggles with youtube's default 720p, but watching the same video with mpv with some selected codec on 1080p is no problem
<__monty__> It's night and day difference, yeah.
<__monty__> And considering mpv's a better experience than any online players anyway, I have no reason not to use it.
<yorick> the one thing I hate about mpv is the slow startup
<yorick> put in a youtube url and it takes 5-10 seconds to appear
<__monty__> For online videos? It doesn't bother me.
<infinisil> Oh that's youtube-dl
<infinisil> Not mpv
<__monty__> Yeah.
<yorick> but I've had it start playing 30 minutes later, scared me shitless
<yorick> infinisil: okay, then I hate it about the mpv+youtube-dl combination
<yorick> there's no GUI feedback until youtube-dl does anything, I think that's an mpv problem
<__monty__> Hate youtube for making it so hard to get at their videos instead ; )
<gchristensen> I guess I shouldn't just use invidio.us :)
<__monty__> Not sure why? Seems like a reasonable way to use invidious?
<gchristensen> well since infinisil is packaging it
<qyliss> The big instances get blocked sometimes
<qyliss> Apparently the blocking isn't very smart, and it'll just always block a /64
<qyliss> So if you have a /48 you can evade the blocks for a very long time
<qyliss> But AIUI you might need to change IPs every so often
<avn> Silly question folks, does `nix-collect-garbage --delete-older-than 30d -v` process only calling user's generations, or system profiles as well?
<gchristensen> --delete-older-than can only delete generations the user has permissions on
waleee-cl has joined #nixos-chat
endformationage has joined #nixos-chat
vika_nezrimaya has joined #nixos-chat
<avn> gchristensen: so for system it need to be run with sudo? (or manually purge symlinks before, right?)
<__monty__> Yes.
Guanin has quit [Remote host closed the connection]
Guanin has joined #nixos-chat
vika_nezrimaya has quit [Ping timeout: 276 seconds]
rawkode has joined #nixos-chat
drakonis has joined #nixos-chat
rardiol has quit [Ping timeout: 268 seconds]
psyanticy has quit [Quit: Connection closed for inactivity]
rardiol has joined #nixos-chat
drakonis has quit [Ping timeout: 246 seconds]
fpletz has quit [Remote host closed the connection]
<eyJhb> Curious, what is a project that you are the most proud of? ANd link/images if possible
<eyJhb> Sadly don't really have one myself atm. that I can think of, but somewhat proud of my PoC of a wireless sensor build from scratch :D Until I shortcircuited it while moving it.....
<eyJhb> Makes sense! :D It is awesome gchristensen !
<infinisil> I just finished my bachelor thesis, and I made this interactive demo for the final presentation: https://paste.infinisil.com/6_sV0D65Wk.mp4
<infinisil> There's more in the past, but this is a recent one :)
<infinisil> Oh, file corrupt in firefox :/
<eyJhb> infinisil: bachelor thesis in what?
<eyJhb> And looks cool, even if I don't know aht is happening
<infinisil> computer science, distributed computing department
<infinisil> Oh you can see it? Firefox tells me it's corrupt
<infinisil> `mpv https://paste.infinisil.com/6_sV0D65Wk.mp4` seems to work :)
<infinisil> Yeah I went through the functions just really quickly
<eyJhb> Yeah, using Chromium here ;) - Sweet!
<eyJhb> Considering a masters in networks and distributed systems
<eyJhb> Going to write my bachelor in Communication aka. distributed systems
<gchristensen> nix-shell -p mpv --run "mpv https://paste.infinisil.com/6_sV0D65Wk.mp4"
<infinisil> eyJhb: Nice
<eyJhb> infinisil: so it is running through functions?
<eyJhb> Also, is there a nice and easy NixOS way to make caps lock work as escape?
<infinisil> eyJhb: The basic of it: The green node is a single shared resource others may want to have. The red nodes want to have it. The blue dots are messages sent
<infinisil> s/basic/basic idea
<infinisil> And there's some different algorithms for how to achieve that, some of which I implemented (and came up with)
<eyJhb> Oh, makes sense.
<eyJhb> Could you outrun some existing ones infinisil ?
<eyJhb> ;)
<infinisil> How do you mean that?
<eyJhb> I would imagine some of the algorithms could bottleneck/not perform well, right?
<infinisil> Ah yup
<infinisil> eyJhb: The whole thesis is here if you're interested: https://github.com/infinisil/arvy
<infinisil> (and the code, and the slides)
<eyJhb> LaTeX <3 <3 <3, Bookmarked for later! :D
<eyJhb> I have little time atm. :( Sadly
waleee-cl has quit [Quit: Connection closed for inactivity]
<pie_> gchristensen++
<{^_^}> gchristensen's karma got increased to 183
<gchristensen> what'd I do? :P
<pie_> <gchristensen> nix-shell -p mpv --run "mpv https://paste.infinisil.com/6_sV0D65Wk.mp4"
<pie_> infinisil: did you put an anime girl in the last frame or am i mixing up framebuffers
<infinisil> Hehe, whoops
<pie_> ok that looks accidental in hindsight
<pie_> or something
<pie_> its not the last frame :P
* pie_ hides
<gchristensen> I think it is probably a compositor bug
<infinisil> Not running any compositor, so it should be xmonad's fault
<infinisil> Something about hiding/showing windows
drakonis has joined #nixos-chat
<drakonis> my talk happened last saturday...
<gchristensen> how'd it go
<drakonis> didnt go as well as i expected
<gchristensen> ?
<gchristensen> ack..
<drakonis> only had 6 folks go watch it
<drakonis> and the folks i kinda expected to go, ended having to do last minute talks to fill in slots
<gchristensen> :/
<drakonis> that were unfortunately on the same slot as mine
<drakonis> timeslot
<drakonis> huge bummer
<drakonis> 2 out of the 6 were my brother and wife
<drakonis> 2 were on their phones and doing anything else, laughing and some shit at their phones
<gchristensen> dang drakonis, I'm sorry
<gchristensen> maybe you could do it again but with those people you were missing :)
<drakonis> perhaps, yes.
<drakonis> in the near future
<drakonis> i'll have more practice to deliver a better talk though
<gchristensen> practice helps more than I'd like to admit
<drakonis> i admit that i was fairly unprepared for the whole thing
<drakonis> next time i'll bring in the heavyweight toys to show off
tilpner_ has joined #nixos-chat
<infinisil> Aw damn, that sucks
<samueldr> gchristensen: yes, practice helps I think
<drakonis> there's also were another 2 that left before the talk ended
<drakonis> so it was kinda shitty
<drakonis> there was someone who was interested i guess?
<samueldr> I did mine a couple times the day before in my room and I don't think I would have gone through mine as well if I didnt
<drakonis> i'm not sure if i'll hear anything from that person tho
<drakonis> does it ever pass?
<drakonis> the feeling of being unprepared?
<samueldr> I'll tell you when I'll be in the two digits of talks being given
<drakonis> on the other hand, it was certainly nice to talk to the folks in the post event get together
tilpner has quit [Ping timeout: 276 seconds]
<pie_> nh2: remember i poked you at nixcon about the SLAM-like stuff you do? i was semi-serious about that, i think it would be really cool to get a 3d thing of https://youtu.be/-q7ZVXOU3kM?t=358
<pie_> nh2: do you think its feasible from some video footage? I havent contacted the guy yet
<pie_> obviously it depends on if they have anything usable for it etc
<nh2> pie_: it's definitely conceptually feasible to reconstruct stuff from just the videos, but the practicality depends on e.g. if the shots are reasonably still or whether the cams have global shutters. If they can go there again and take a cheap panorama camera with them, our benaco.com can probably do it
<pie_> nh2: they cant because baikour burned down in 2008 or something :P
<pie_> or rather, the shuttle storage
<nh2> pie_: ah damn, a shame
<pie_> which is why i thought it would be really cool to "visit" the place in vr
<pie_> somethings weird though, that says 2002, those guys definitely were there after 2002
<pie_> not a fire tho "On 12 May 2002,[3] during a severe storm at the Baikonur Cosmodrome, the MIK 112 hangar housing OK-1K1 collapsed as a result of poor maintenance. The collapse killed several workers and destroyed the craft as well as the Energia carrier.[13] "
<pie_> ok so yeah i have no idea whats up with the specific hangar in the video
<pie_> needs more googling
<pie_> "Sorry for not uploading for a while, 30% of my footage shot here was corrupt." really :V
<gchristensen> I was like 5min away from deploying https://github.com/jamotion/s3-exporter to add transparency to the s3 bucket and then I read its source code lmao
<pie_> xD
<pie_> thats pretty linear
<gchristensen> I wish we had like 3-4 years worth
buckley310 has joined #nixos-chat