Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I have a Dockerfile that contains the build instructions

So what's stopping you from doing this with dotnet? Going by your logic, no other programming language reaches your ideal "deployment story" the moment you reach for docker.

> Yes, and then my Linux machine that runs the server will happily run a Windows application. With all the dependencies, including the GPU toolkits.

Dotnet is cross platform. If you are targeting Linux then you can give that information using `dotnet build --os linux` and nuget packages that have platform-specific binaries would then supply the build with the correct binary.

> But even if we stay _within_ the MS ecosystem, the "just copy it" deployment doesn't cover everything. E.g. it can't change the settings of the "App Service Logs" from within the app itself. Of course you can also use Terraform for the infra, but at this point you're way off the "just copy a folder".

That's because it is not the job of any programming language compiler to make changes to cloud infrastructure. You know single responsibility and all that.






> So what's stopping you from doing this with dotnet?

Nothing. But then it's not any different from JS+NPM, Python+uv, etc.

> Going by your logic, no other programming language reaches your ideal "deployment story" the moment you reach for docker.

Pretty much. I guess the only real contender is Go. It can easily produce single-binary self-contained executables that can contain other assets, and it supports seamless cross-compilation.

> Dotnet is cross platform. If you are targeting Linux then you can give that information using `dotnet build --os linux` and nuget packages that have platform-specific binaries would then supply the build with the correct binary.

Now do that with Python libraries that do the neural network thingie.

> That's because it is not the job of any programming language compiler to make changes to cloud infrastructure. You know single responsibility and all that.

The brag here was that Dotnet has "just copy it" deployment. And I'm showing that it's not the case, it's "click like a madman for 15 minutes to set it up and then you can copy deployments as long as they don't have anything but .NET code that can work on the target machine".




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: