Nix is my favorite package manager on MacOs - Dreams of Autonomy
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    1w ago 100%

    anything I tried getting from their repos was always way further behind the mac OS homebrew or Debian apt versions.

    Nixpkgs are the most up to date of any package respiratory source

    It is likely that you were using the current 'stable' channel that does not have the very latest packages. The 'unstable' channel does have the very latest packages and is what I think most people use.

    nixOS is really slick in concept, but has a steep learning curve to get it properly customized as a daily driver. The learned skills don’t really translate outside the nix realm either, so I decided it was too much effort for my use case. I love this concept as a way to build reproducable servers or workstations tho, so I’ll def be playing with it again.

    I totally agree, I wish it was easier to learn.

    1
  • https://www.youtube.com/watch?v=Z8BL8mdzWHI&t=528s

    Homebrew is the most popular package manager on MacOS, and for good reason. However personally, I believe that Nix is more powerful.

    35
    6
    uv IS the Future of Python Packaging 🐍📦
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2w ago 100%

    Putting aside the speed uv has a bunch of features that usually require 2-4 separate tools. These tools are very popular but not very well liked. The fact these tools are so popular proves that pip is not sufficient for many use cases. Other languages have a single tool (e.g. cargo) that are very well liked.

    1
  • ELI5 Using python virtual environment in docker container.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2mo ago 100%

    If you do multi stage builds (example here) it is slightly easier to use venvs.

    If you use the global environment you need to hardcode the path to global packages. This path can change when base images are upgraded.

    2
  • ELI5 Using python virtual environment in docker container.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2mo ago 100%

    Sure, but in the case where you upgrade python and it affects python packages it would affect global packages and a venv in the same way.

    1
  • ELI5 Using python virtual environment in docker container.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2mo ago 100%

    upgrading your base image won’t affect your python packages

    Surely if upgrading python will affect your global python packages it will also affect your venv python packages?

    you can use multi stage builds to create drastically smaller final images

    This can also be done without using venv's, you just need to copy them to the location where global packages are installed.

    1
  • new display arrived, what can I do with the old one?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2mo ago 100%

    I'm not really against it if there is a demand and people want to buy/sell/trade here. If buy/sell/trade gets too much we could restrict it to a sticky thread.

    It might be easier for people to find buyers/sellers on the framework forum category that @narc0tic_bird@lemm.ee pointed out though.

    4
  • uv: Unified Python packaging
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2mo ago 100%

    Yeah it is, eventually they want UV to have feature parity with rye and rye will basically just be a pointer to UV

    5
  • uv: Unified Python packaging
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2mo ago 100%

    Early on uv was only trying to replace pip. This latest update is a big step towards becoming a poetry (and pyenv/pipx) replacement too.

    8
  • astral.sh

    TL;DR: uv is an extremely fast Python package manager, written in Rust.

    94
    38
    https://www.youtube.com/watch?v=36gF6eiCsqU

    cross-posted from: https://programming.dev/post/17763625 > Datamining youtuber found some stuff.

    -9
    2
    Nix Release 2.24
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3mo ago 100%

    Stable channels provide conservative updates for fixing bugs and security vulnerabilities, but do not receive major updates after initial release.

    If you want up to date packages then use the unstable channel.

    3
  • Nix Release 2.24
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3mo ago 100%

    Nix has the most unique packages and the most up to date packages of any Linux software repository. It has substantially more fresh packages than Arch or Alpine (which you say does a better job in a separate comment).

    Source:https://repology.org/repositories/graphs

    9
  • linux
    Linux 3mo ago
    Jump
    Sell us on your favorite exotic/niche distro
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3mo ago 100%

    Yeah I agree, I am sure they are missing some obscure stuff. But in practise it has everything that I use and there has been no need for me to touch flatpak/appimage/snap

    2
  • What's the dumbest reason you've learned a programming language?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3mo ago 60%

    object oriented

    Python does have OOP but you are not at all forced to use it. You can write code in a functional or even procedural style.

    typing

    I do hate that python doesent have proper support for typing but I think weakly typed variables will actually help beginners as it is less to think about to start off with.

    indentation

    I think there are pros and cons here. In other languages it is considered good style to use indentation anyway.

    I'm sure it is difficult to teach a large class like that though. It was hard enough for me to learn with a much more favourable teacher to student ratio than you probably have. Sorry but honestly I do sympathise with admin as well.

    2
  • linux
    Linux 3mo ago
    Jump
    Sell us on your favorite exotic/niche distro
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3mo ago 81%

    NixOS:

    • Largest and most up to date package repository (no need for flatpack/appimage/snap ect)
    • Reproducible
    • Declarative
    • Rollbacks you can select at boot time
    • No dependency conflicts

    I think it will easily be the number 1 distro if/when they can :

    • the steep learning curve (e.g. have a gui installer EDIT: As in a GUI software centre)
    • documentation
    • have more tools use nixos and have nixos in mind (e.g. there are a couple of tools that didn't work for me because of specific C libraries not beeing present/configured on nixos that are present on other distros. some libraries implicitly expect these to be present).
    7
  • github.com

    Came out a few days ago, but I thought it was worth posting here =)

    27
    2
    Users of Vim and similars, what exactly makes it useful compared to other text editors? How much time do you suppose you save when working with it?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3mo ago 100%

    One thing I haven't seen mentioned is that not moving between mouse and keyboard so much reduces the risk of getting an RSI. So even if it didn't make you faster it would still probably be worth it to find a keyboard based workflow.

    I use Helix and would suggest you try it (at least to start off with) as it is easier to learn than vim and does not require plugins or a complex config. To answer your question I will go from the less to more advanced/complex:

    1. Move a line to a new position in the file/another file (takes a couple of seconds)
      1. x then d to select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)
      2. navigate the cursor to the new location
      3. p to paste in a new
    2. Navigating around a file:
      1. jumping to a function/class definition by pressing g then d when on a function/class usage.
      2. getting a list and navigating to class/function calls when the cursor is on a class/function definition by pressing g then r.
    3. Multi cursor editing - I use this to make edits to multiple places at once. I most recently used this to extract the names of 30 tables that are used in a SQL file. This probably took ~5 seconds and I barely thought about it. To do this I used:
      1. % to select the entire files contents
      2. s to search
      3. typed "FROM "
      4. pressed enter to create cursor at all locations matching the search
      5. v then g then l to select the rest of the line
      6. space+y to copy to the system clipboard.
      7. paste into a document where I needed to list the tables
    4. Using a terminal workspace manager (zellij) with helix and a git tui app (gitui) so that I can easily make code changes, commit, push, ,run tests, move to a new repo and more without leaving the keyboard.

    There is actually a helix community on programming.dev: helix@programming.dev

    9
  • discourse.nixos.org

    cross-posted from: https://programming.dev/post/13537798 > Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!

    35
    2
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearNI
    nixos uthredii 6mo ago 92%
    Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!
    discourse.nixos.org

    cross-posted from: https://programming.dev/post/13537798 > Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!

    23
    0
    https://radicle.xyz/

    Hacker news discussion - https://news.ycombinator.com/item?id=39600810 Radicle source code - https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5

    33
    10
    www.youtube.com

    cross-posted from: https://programming.dev/post/10557947

    61
    4