gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
sir_guy_carleton has joined #nixos-chat
lassulus_ has joined #nixos-chat
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
matthewbauer has joined #nixos-chat
jtojnar has quit [Ping timeout: 252 seconds]
matthewbauer has quit [Ping timeout: 272 seconds]
snajpa has quit [Ping timeout: 260 seconds]
snajpa has joined #nixos-chat
matthewbauer has joined #nixos-chat
matthewbauer has quit [Ping timeout: 252 seconds]
sir_guy_carleton has quit [Ping timeout: 252 seconds]
kini has quit [Quit: No Ping reply in 180 seconds.]
sir_guy_carleton has joined #nixos-chat
kini has joined #nixos-chat
sir_guy_carleton has quit [Ping timeout: 268 seconds]
sir_guy_carleton has joined #nixos-chat
sir_guy_carleton has quit [Disconnected by services]
sir_guy_carleton has joined #nixos-chat
sir_guy_carleton has quit [Ping timeout: 252 seconds]
sir_guy_carleton has joined #nixos-chat
sir_guy_carleton has quit [Ping timeout: 252 seconds]
snajpa has quit [Ping timeout: 260 seconds]
nckx has quit [Ping timeout: 240 seconds]
__monty__ has joined #nixos-chat
<gchristensen> hey everyone, I just posted stuff about Nix to HackerNews if you want to check it out and upvote :)
<gchristensen> the article is https://grahamc.com/blog/nix-and-layered-docker-images -- it is pretty cool I think
<etu> gchristensen: hn-link?
<gchristensen> I think for the upvotes to work, you have to pretend to be a user who just happened to find it in the "new" page X)
<etu> oh
<etu> there, have a vote
<gchristensen> thank you :)
<sphalerite> gchristensen: yes, that's what I was thinking
<tazjin> gchristensen: that's awesome! Was thinking a few months ago that surely something leaner than `buildImage` must be possible :)
ctp has joined #nixos-chat
<jasongrossman> It's currently (already) number 67 on HackerNews.
<jasongrossman> gchristensen: Nicely written.
<gchristensen> jasongrossman: thanks! it is incredible how quickly it falls off the new page
<tazjin> gchristensen: I think HN works better with slightly more clickbaity titles like "Improving Docker layer caching with Nix" ;-)
<gchristensen> does HN have rules about resubmitting things that got no traction?
<jasongrossman> gchristensen++
<{^_^}> gchristensen's karma got increased to 30
<joepie91> (HN is especially sensitive towards titles that suggest something being bad)
<andi-> How to solve the container bloat!!1
<tazjin> gchristensen: I think if *you* post it again it might be frowned upon, if someone else does and it gains traction they may merge the threads
<gchristensen> ok, well I'll let someone else do that then :)
<tazjin> could post it to /r/programming, see if it gains traction and someone else cross-posts it to HN
<simpson> Also, pearls before swine; don't worry about HN too much.
<tazjin> ~ actual organic spread ~
<jasongrossman> I agree with simpson.
<tazjin> yeah HN frontpage traffic is not as much as you might think
<jasongrossman> tazjin: Right.
<gchristensen> I'm not worried about HN, really
<simpson> AFAICT most Nix-related posts to HN are good for making people jelly/curious about Nix, but not much else.
<jasongrossman> Web searches will find the blog post.
<jasongrossman> I just searched "awesome" and "toast" and it was the top hit.
<gchristensen> yeah, that is a big part of my goal, simpson
<joepie91> andi-: basically that yes :P
<manveru> gchristensen: anw, thanks for the post, it's really cool :)
<manveru> ideal for showing my coworkers
<gchristensen> ^.^
dmc has quit [Quit: WeeChat 2.2]
dmc has joined #nixos-chat
<simpson> I'm having a DENTAL PLAN moment.
<simpson> Nix builds containers. Nix can choose the entrypoint. kubeless supports custom containers. Spinnaker can deploy containers from git.
<simpson> git is an executable. Executables can be entrypoints. Nix can put git in a container. kubeless supports custom git. Spinnaker can deploy containers from kubeless.
<simpson> There's something there. What is it? I'm gonna have to LISA NEEDS BRACES this a bit.
<gchristensen> erm?
<simpson> Do you know DENTAL PLAN?
jtojnar has joined #nixos-chat
<gchristensen> no
<simpson> A classic moment from The Simpsons where Homer is trying to put 2 and 2 together: https://www.youtube.com/watch?v=BgqtBm_oUpc
<jasongrossman> simpson: That's lovely.
sir_guy_carleton has joined #nixos-chat
jtojnar has quit [Remote host closed the connection]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
sir_guy_carleton has joined #nixos-chat
jtojnar has joined #nixos-chat
sir_guy_carleton has quit [Quit: WeeChat 2.0]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-chat
sir_guy_carleton has joined #nixos-chat
<gchristensen> so my article on hackernews is on the second page if anyone would like to go upvote it, ps: should I stop begging for votes? is that an unpleasent thing people would rather not see me do?
<infinisil> gchristensen: Whoa, nice to see some algorithms and graphs, definitely gets an updoot by me
<gchristensen> awesome! thank you :D
<emily> you're #1 on lobste.rs, that's all that matters
<gchristensen> as my local people would say, lobstahs!
jD91mZM2 has joined #nixos-chat
<andi-> gchristensen: great article! Gonna link to a few coworkers!
<gchristensen> yay! :D
<jD91mZM2> samueldr: Thank you a lot for the logs. Just fixed an issue thanks to the search function :)
<samueldr> <3 for the feedback
<infinisil> samueldr++
<{^_^}> samueldr's karma got increased to 26
<jD91mZM2> Ah yes, that exists
<jD91mZM2> samueldr++
<{^_^}> samueldr's karma got increased to 27
<jD91mZM2> samueldr+=999
<samueldr> jD91mZM2: just for fun, was the solution a workaround, or a proper fix, and should it be documented or better fixed upstream? :)
<gchristensen> I can't afford that kind of karma right now :o
<LnL> lol
<jD91mZM2> samueldr: I think it's a workaround heh. https://github.com/NixOS/nixpkgs/issues/25863#issuecomment-302633494, as linked by tilpner earlier in #nixos
<jD91mZM2> Which is weird, because the mozilla overlay probably shouldn't be using rustup at all
<jD91mZM2> BUT IT WORKS SO ALL IS WELL
<jD91mZM2> infinisil: Is there some kind of karma leaderboard?
<infinisil> Nope
<infinisil> Well I could give out all the data
<jD91mZM2> How is it stored?
<infinisil> single text file
<jD91mZM2> Microsoft Advanced Plain Text Custom Serialization Database*
<infinisil> Heh nah
<infinisil> Just Haskell's Show instance of Map String Int
<infinisil> It's so primitive lol
<infinisil> But it works, and it doesn't need to be more complicated than that
<jD91mZM2> Nice! Haskell supports `Read`ing an entire map?
<jD91mZM2> {^_^}: Good night!
<{^_^}> Night!
<jD91mZM2> I love this feature
<jD91mZM2> infinisil++
<{^_^}> infinisil's karma got increased to 28
jD91mZM2 has quit [Quit: WeeChat 2.0]
<infinisil> Aw he already gone
<infinisil> But yeah, Haskell's Read and Show instances (should) provide the guarantee to always yield the same value when you show and read it again
<infinisil> It's kinda neat, a very simple serialization
<gchristensen> is there a way to construct a `find` incantation which finds .git dirs which are not contained in a hidden directory?
* simpson trying not to `find ... | xargs find ...`
<infinisil> gchristensen: So like `ls */.git`?
<gchristensen> yeah but recursively, and something which supports something like -print0
<gchristensen> ah! this does it: `find . -mindepth 1 -type d -name .git -print -o -name '.*' -prune`
<gchristensen> I had almost this for a bit, but `-mindepth 1` was absent.
<infinisil> So like `ls **/*/.git`?
<infinisil> :P
<infinisil> Doesn't have the print0 though
<infinisil> But a `for file in **/*/.git; do` would work
<gchristensen> oh dear
<gchristensen> -print0 is nice because then I can use `xargs -0 -P$(nproc) ... ` to bulk-process it
<infinisil> I guess it would still work with some printf shenanigans, but yeah find looks cleaner
<gchristensen> anyone care to guess at why `-mindepth 1` is needed?
tertl3 has joined #nixos-chat
Lisanna has joined #nixos-chat
__monty__ has quit [Quit: leaving]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
sir_guy_carleton has joined #nixos-chat
sir_guy_carleton has quit [Quit: WeeChat 2.0]
jackdk has joined #nixos-chat