There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.world

demesisx , to programmerhumor in works on my machine
@demesisx@lemmy.world avatar

How long until nix flakes go mainstream and fix this problem?

mea_rah ,

Replace “nix flakes” with “Docker” and you have your answer from almost decade ago.

demesisx ,
@demesisx@lemmy.world avatar

No offense but it sounds like you don’t actually understand nix flakes if you think they’re 1:1 equivalent to Docker.

They simply are not containers. They allow the declarative BUILD of any derivation at any time in the future. They hermetically lock all dependencies and build instructions which allows you to archive and reproduce the EXACT content-addressed dependency graph of the software. You can rebuild using a flake while Docker doesn’t actually allow that same hermetic reproducible guarantee whatsoever.

See here for a much better explanation of the glaring differences between the two: youtu.be/0uixRE8xlbY

You could even build a container with a flake though I’d recommend OCI instead because they’re an open standard…

mea_rah ,

This is programmerhumor so perhaps allow for a bit of hyperbole on my part. I wasn’t completely factual.

However the initial days of Docker were effectively promising to solve the exact same “it works on my laptop” problem. The idea was that developer builds docker image and pushes it to repository where it can pass through CI and eventually the same image gets to production.

As you can see, this effectively reproduces the EXACT content as well, because you transfer the files in a set of tar files.

It didn’t work for many reasons. One of which is the fact that it’s often not so much about the exact files, but the rest of the environment like DBs, proxies, networking, etc that is the problem. I’ve seen image misbehaving in production due to different kernel version/configuration.

demesisx ,
@demesisx@lemmy.world avatar

I know it’s a strange place for this conversation but the facts remain: docker images don’t do this and nix flakes actually do. As the video I linked demonstrates and you allude to, Docker files aren’t 100% hermetic (which means they’re not reproducible) while Nix flakes actually do achieve this. Watch the video I linked for more explanation which directly talks about how nix works with the goals of Docker that you mentioned in the head of your last comment. I hope my non-confrontational tone comes across somehow. This is all said with respect and in the spirit of science.

mea_rah ,

First of all. Thank you for civil discussion. As you say this is weird place to have such discussion, but it’s also true that these jokes often have some kernel of truth to them that makes these discussions happen organically.

So with that out of the way and with no bad intentions on my side:

I’ve noticed you use Dockerfiles and Docker Images interchangeably. And this might be the core of misunderstanding here. What I was describing is that:

  • Developer builds an image (using Dockerfile or otherwise) on their laptop and then pushes that image to a Docker repository.
  • This exact same image is then used in CI to do integration tests, scanning, whatever…
  • If all is good, this image is then deployed to production.

So if you compare sha of the image in production and on developers laptop, they are the same checksums. Files are identical. Nix arrives to this destination kind of from the other side. Arguably in more elegant way, but in both cases files are the same.

This was the promise (or one possibility) in the early days of Docker. Obviously there are some problems with this approach. Like what if CPU architecture of the laptop differs from production server? Well that wasn’t a problem back in 2014, because ARM servers just didn’t exist. (Not in any meaningful way) There’s also this disconnection between the code that generates the image and the image itself, that goes to production. How do you trust environment (laptop) where image is built. Etc… So it just didn’t stick as a deployment pattern.

Many of these things Nix solves. But in terms of “it works on my laptop” what I wrote in previous comment applies. The environment differences themselves rather than slightly different build artefacts is what’s frequently the problem. Nix is not going to solve the problem of slightly different databases because developer is runing MariaDB locally to test, but in production we use DB managed by AWS. Developer is not going to catch this quirky behavior of how his app responds to proxy, because they do not run AWS ELB on their laptop, but production is behind it. You get the idea.

When developer says it works okay on their laptop, what it usually means is the they do not have 100% copy of production locally (because obviously they don’t) and that as a result they didn’t encounter this specific failure mode.

Which is not to say, that Nix is bad idea. Nix is great. I’m just saying that there’s more to the “laptop problem” than just reproducible builds - we had those even before Docker Images.

Hope that makes sense. And again, thanks for civil discussion.

ThoseGDSquirrels , to futurama in To all the new(er) Reddit refugees!
@ThoseGDSquirrels@lemmy.world avatar

The world of tomorrow seems fun ! I really like it here

itadakimasu , to maliciouscompliance in Businesses can discriminate against their customers? Alright then...
@itadakimasu@lemmy.world avatar

Ugh should have read “no sales to trump supporters or religious nutbags. Whoops those 2 are the same thing”

czardestructo OP , to selfhosted in Ghost Pi - an unconventional backup solution
@czardestructo@lemmy.world avatar

Does anyone see the attatched mp4 video? If not here is an imgur link.

joroo ,

We can see the video. Like the idea! I personally use a pi that I plug in manually as a backup solution. Do you have a git with the scripts you used for this pi?

Son_of_dad , to mildlyinfuriating in The price of a cinema ticket in this day and age. No wonder people aren't going to the cinema anymore.

Movies are releasing into streaming at record pace these days too, so I skip the cinema altogether now. Used to be you’d wait half a year for a movie to go from theaters to video, now it’s up on a streaming service the moment its theater run is finished.

DeusexReddita , to futurama in To all the new(er) Reddit refugees!

My first lemmy comment

Zarxrax , to mildlyinfuriating in The price of a cinema ticket in this day and age. No wonder people aren't going to the cinema anymore.

AMC sucks, don’t you have any other theaters around there to choose from? There is a theater near me that only charges $7 for normal tickets, and even cheaper for matinees. Then the AMC theater in my same town charges $12.50 for a ticket…plus that stupid convenience fee.

phillycodehound , to android in Am I missing anything
@phillycodehound@lemmy.world avatar

Wefwef.com

BackStabbath ,

wefwef.app

jeangheno ,

Why is your name red?

phillycodehound ,
@phillycodehound@lemmy.world avatar

BC I’m an Admin maybe?

rtxn , to maliciouscompliance in Businesses can discriminate against their customers? Alright then...

I feel like "no mask, no vaccination proof, no service" should make a comeback.

Rahkshi , to futurama in To all the new(er) Reddit refugees!

Thank you all, one RiFugee here :p

Staark , to mildlyinfuriating in The price of a cinema ticket in this day and age. No wonder people aren't going to the cinema anymore.

Those prices are wild, but what the hell is a convenience fee? Is that just some bull that they've come up with to charge more?

Amilo159 , to fediverse in Lemmy active users grew by an astounding 1600% in June
@Amilo159@lemmy.world avatar

I didn't know what Lemmy is but since Reddit killed my Baconreader, I couldn't go support their garbage app. So this seems nice.

Vaulter , to android in Boost for Lemmy is happening!
@Vaulter@lemmy.world avatar

Super keen, boost was the only app that gets any proper use on my phone

Kylo_Renifer , to futurama in To all the new(er) Reddit refugees!
@Kylo_Renifer@lemmy.world avatar

Thank you for the kind greeting. I really am a refugee in more ways than just leaving Reddit.

JuzoInui ,

(Gives virtual hug and cookies)

randint , to futurama in To all the new(er) Reddit refugees!
@randint@lemmy.world avatar

Hi, this is my first comment on Lemmy.

toasteranimation ,
@toasteranimation@lemmy.world avatar

and this be my first reply!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines