News for hackers. Stuff that matters.
Re:Ask HN: Who operates at scale without containers? by mateuszf on Tuesday March 22, 2022 @02:36PM (#30769745)
> Chose boring technology

Doesn't fit in this case, I'd say Nix is still cutting edge.

It may also be simple, but it's not easy (in the Rich Hickey sense).

Re:Ask HN: Who operates at scale without containers? by spicybright on Tuesday March 22, 2022 @02:50PM (#30769924)
Can you elaborate more? From what I've generally heard, Nix has been a good foundation for a lot of companies.
Re:Ask HN: Who operates at scale without containers? by mateuszf on Tuesday March 22, 2022 @02:57PM (#30770011)
As far as I know the final effect is great - getting reproducible, statically linked programs.

However, learning Nix / NixOS is quite difficult - it requires a specific set of skills (functional programming, shell, Nix building blocks which you can learn from existing Nix code), the documentation is lacking, error messages are cryptic, debugging support is bad.

Re:Ask HN: Who operates at scale without containers? by Ericson2314 on Tuesday March 22, 2022 @03:54PM (#30770680)
Yeah Nix is why "choose boring" is a bit of a misnomer.

The truth is tautologically unhelpful: choose good technologies.

Most people have trouble separating snake oil and fads from good things, so old/boring is a safe heuristic.

Nix is not boring, but it is honest. It's hard because it doesn't take half measures. It's not an easy learning curve gaslighting to you to a dead end.

But taste in choosing good technologies is hard to teach, especially when people's minds are warped by a shitty baseline.

Re:Ask HN: Who operates at scale without containers? by tharne on Tuesday March 22, 2022 @04:11PM (#30770881)
> It's not an easy learning curve gaslighting to you to a dead end.

This is a really good way of describing a certain type of technology. I'm stealing this line.

Re:Ask HN: Who operates at scale without containers? by Ericson2314 on Tuesday March 22, 2022 @07:02PM (#30772724)
Please do! In this current era of VCs loving developer tool businesses, we are seeing a whole lot of this!
Re:Ask HN: Who operates at scale without containers? by mountainriver on Tuesday March 22, 2022 @05:21PM (#30771733)
Thank you, I’ve always hated the Boring Technology idiom. The right tool doesn’t have to be boring, but it certainly can be
Re:Ask HN: Who operates at scale without containers? by charcircuit on Tuesday March 22, 2022 @05:29PM (#30771814)
Nix isn't a good option for developing rails applications. The nix ecosystem doesn't have good support for ruby meaning you will waste a lot of time and run into a lot of issues getting stuff to work. That's not boring. An example of being boring would be using Nix for something like C where the ecosystem around it is already built up.

I was really pro Nix at the time I took on a rails project and it caused many problems for my team due to Nix just not having good support for my use case. If I could go back in time I would definitely choose something else.

Re:Ask HN: Who operates at scale without containers? by Ericson2314 on Tuesday March 22, 2022 @07:01PM (#30772712)
Please check out https://github.com/NixOS/rfcs/pull/109 !

I absolutely agree language-specific package managers need better support. Nix RFC 109 is a simple-stupid way to get some "important from derivation" in Nixpkgs, so we can collectively dogfood them "lang2nix" tools and finally make them good.

It is really sad to me that many users understandly think "hmm, C is crazy, surely this Nix should be even better with more uniform language ecosystems packages!", only to die on the hell of the lang2nixs all being just not quite good enough. This is huge stumbling block for developement shops that try to use Nix that I want to see removed!

Re:Ask HN: Who operates at scale without containers? by dqv on Tuesday March 22, 2022 @06:26PM (#30772419)
What was the problem you were having with Ruby (on Rails) and Nix? It wasn't ergonomic for me, but I was able to get things to work.
Re:Ask HN: Who operates at scale without containers? by charcircuit on Tuesday March 22, 2022 @07:18PM (#30772868)
I think one of the main issues was depending on a custom gem. And then something about sandboxing, and outdated things being cached (maybe this was just a rails thing though). Also setting up rails project was convoluted. It was just obvious that there wasn't much time devoted towards that use case of Nix.

The rails support was more of just to handle packaging existing software as opposed to being good for a development environment.

Re:Ask HN: Who operates at scale without containers? by debaserab2 on Wednesday March 23, 2022 @03:04AM (#30775792)
What do you mean exactly? At the end of the day, rails is just a collection of ruby gems. If nix has first class support for ruby and Gemfiles in theory there shouldn't be a ton of problems.

I've not used Nix so I legitimately don't know (but I am quite interested in it)

Re:Ask HN: Who operates at scale without containers? by Ericson2314 on Wednesday March 23, 2022 @03:24PM (#30782255)
There are no fundamentals hurdles, but because we are currently prevented from properly dogfooding these tools in Nixpkgs, they tend to be unpolished in various ways, they are just used to by a few random projects in relative isolation.
Re:Ask HN: Who operates at scale without containers? by charcircuit on Wednesday March 23, 2022 @03:35AM (#30775996)
I don't remember exactly the problem since it was a couple years ago. There was a lot of issues in regards to failing to run / build rails which regarded doing special nix stuff to fix. It wasn't possible to include a custom gem from a separate directory. I had to disable some sort of sandboxing to prevent Nix from complaining. Nix kept getting in my way and as my team members were not familiar with Nix they couldn't fix it themselves. Sadly, I ruined their opinion of Nix by showing them it with this project.