News for hackers. Stuff that matters.
Re:Unix History and the `DC` Calculator by Diti on Thursday September 05, 2024 @02:51PM (#41459442)
For those who are on NixOS and can’t find `dc`, it’s present in BusyBox.

    nix run nixpkgs#busybox -- dc -e '_640320[0ksslk3^16lkd12+sk*-lm*lhd1+sh3^/smlxlj*sxll545140134+dsllm*lxlnk/ls+dls!=P]sP3^sj7sn[6sk1ddshsxsm13591409dsllPx10005v426880*ls/K3-k1/pcln14+snlMx]dsMx'
Re:Unix History and the `DC` Calculator by pxc on Saturday September 07, 2024 @12:44AM (#41471490)
> For those who are on NixOS and can’t find `dc`

    $ nix-locate -r 'bin/dc$' | grep -o '^\w.*\.out' | xargs basename -s .out
    plan9port
    gavin-bc
    busybox
    bc
    _9base
:)
Re:Unix History and the `DC` Calculator by Diti on Tuesday September 10, 2024 @09:01PM (#41507213)
Haha, thanks! I had completely forgotten about `nix2` commands. I’ll try to remember this one!
Re:Unix History and the `DC` Calculator by pxc on Wednesday September 11, 2024 @03:23PM (#41514526)
nix-locate is actually a third-party command, shipped with nix-index: https://github.com/nix-community/nix-index

make sure to check out the pregenerated databases, they're very convenient

Re:Unix History and the `DC` Calculator by Diti on Wednesday September 11, 2024 @07:43PM (#41516287)
Thank you very much! Seems very convenient. :)