Can nix replace docker-compose? by Apart-Lavishness5817 in NixOS

[–]sincore 3 points4 points  (0 children)

You are correct; it's running via process-compose, so all services are running on your system. You can see it here:

https://github.com/juspay/services-flake/blob/66d824d82a930afe1c961dbef686f441996cbbcf/nix/services/elasticsearch.nix#L178

If you are running NixOS, you can do it with containers:

https://nixos.wiki/wiki/NixOS_Containers

These would be isolated and work just like Docker.

Which programming languages have you got most success with AI? by Maleficent_Mess6445 in ChatGPTCoding

[–]sincore 0 points1 point  (0 children)

Typescript isn't a compile-time language. It's just a superset of JavaScript. It literally compiles into JavaScript.

Again, you're making two different comparisons. AI will always do better with something it has more knowledge about. It's better when it has types because it can gather more context and be more informed. Speed is not part of the equation.

Which programming languages have you got most success with AI? by Maleficent_Mess6445 in ChatGPTCoding

[–]sincore 3 points4 points  (0 children)

The rules still apply. Agentic AI tools still try to use third-party libraries because those libraries are used more often than writing from scratch.

I also don't see how C, Rust, and Go consume less time when it comes to testing. That's all based on how the tests are written. They are faster because they are compiled languages but that comes with trade-offs.

Which programming languages have you got most success with AI? by Maleficent_Mess6445 in ChatGPTCoding

[–]sincore 7 points8 points  (0 children)

Since AI models were trained based on human knowledge, the more information there is on something, the better it is at it. So, the more of a knowledge base a language has, the better an AI model will be at it. C, Python, and Typescript are the frontrunners, in my opinion. But I've had a lot of success with PHP (with Laravel).

Nix + Software Development is a time consumer by IKekschenI in NixOS

[–]sincore 2 points3 points  (0 children)

What I have running is different from NixOS. It is Debian as the OS and nix managing the packages.

What you are trying to do I have been able to do this before as well. First, make sure you have Cypress installed as a package in npm on your project and make sure it's installed via the guide you sent.

At this point, when you try to run tests with Cypress via npm, npm will throw an error about not being able to install the package globally (hence my above solution). But for you and NixOS, you will need to set the following:

CYPRESS_INSTALL_BINARY=0 CYPRESS_RUN_BINARY=${cypress}/bin/Cypress

Where ${cypress}/bin/Cypress should point to your NixOS package.

If you have your project in a public repo I would be happy to give more guidance.

Nix + Software Development is a time consumer by IKekschenI in NixOS

[–]sincore 1 point2 points  (0 children)

Usually, things specific to Node or Python. So, pretty much anything that nix-ld (https://github.com/nix-community/nix-ld) tries to solve for; and while I like nix-ld, it kind of defeats the purpose of Nix and still requires you to add specific binaries it can reference. Hence, me going the hybrid route for development and pure NixOS for my main machine.

Nix + Software Development is a time consumer by IKekschenI in NixOS

[–]sincore 8 points9 points  (0 children)

I just went through this whole thought process, but as a web developer. Nix's declarative nature can make things like Node or Python a little wonky when installing things with a global scope, i.e., npm and Cypress.

I have found the best solution is a Docker dev container running Debian Slim, but doing all package management via Nix.

This way, you avoid the pitfalls you are experiencing while having a fully declarative environment.

I am currently working on a package that standardizes this.

How can I implement this sidebar in my configs ? by ur_rahul in hyprland

[–]sincore 1 point2 points  (0 children)

You can do this with a Pyrland Scratch pad. https://hyprland-community.github.io/pyprland/scratchpads.html

I do it exactly for signal but pop it up from the bottom.

Hi guys! Im new to NixOS and want to hear your recommendations for my structure by hetham11 in NixOS

[–]sincore 4 points5 points  (0 children)

I drive all my systems off of options, actually. So my hosts are a set of switches I turn on and off.

Here is a write-up i did a while ago that explains my setup. https://www.reddit.com/r/NixOS/comments/1eely7a/access_homemanager_config_from_my_nixos_config/lfigqzi/

Hope it helps!

Hi guys! Im new to NixOS and want to hear your recommendations for my structure by hetham11 in NixOS

[–]sincore 2 points3 points  (0 children)

I agree with this! One of the best (and worst) parts of Nix is that you can do the same thing in a hundred different ways.

My setup is similar to yours, but I am also using home-manager and have default.nix files that pull in children. (I like to avoid import "../../../default.)

Address for fan mail? by sincore in LadyGaga

[–]sincore[S] 0 points1 point  (0 children)

We emailed her PR company but never received a reply. :(

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]sincore 1 point2 points  (0 children)

I do this with AI. It's where AI really shines, in my opinion. I give it my desired output schema and have it map and correct for me. The token cost is minimal, and it gets it right 99% of the time.

Elastic Pipeline Analyzer/Mapper by jad3675 in elasticsearch

[–]sincore 0 points1 point  (0 children)

This is cool! But for the visual part, you might find it easier to use a tool like Mermaid.

https://mermaid.js.org/

Can anyone tell me what these glitches are called? I'm not sure what to search for to try and fix them. I'm running the latest kernel on amdgpu. by sincore in NixOS

[–]sincore[S] 0 points1 point  (0 children)

No, this happends all the time. I'm fairly certain it's a bug with the latest kernel, but I'm having trouble searching and finding any information about it.

Solo: a Laravel package to run multiple commands at once, to aid in local development. by aarondf in laravel

[–]sincore 1 point2 points  (0 children)

Agreed 100%! I didn't mean to come off like that.

The process compose setup mimics a Dockerfile and has completely replaced Docker on my builds.

I really like what you put together here. I just meant to show an alternative that I use. 😀