Skip to content

Conversation

@l0b0
Copy link
Contributor

@l0b0 l0b0 commented Apr 17, 2025

Unsure Calculator lets you "[c]alculate with numbers you’re not sure about", for example to calculate the probability distribution of anything from your expenses to the Drake equation based on some idea of what the 95th percentile range (two standard deviations in either direction) is:

./result/bin/unsure '1.5~3 * 0.9~1.0 * 0.1~0.4 * 0.1~1.0 * 0.1~1.0 * 0.1~0.2 * 304~10000'

	0~550

  Histogram:
     above | ▒▒
       675 | ▒
       640 | ▒
       610 | ▒
       575 | ▒
       545 | ▒
       510 | ▒
       480 | ▒
       445 | ▒
       410 | ▒▒
       380 | ▒▒
       345 | ▒▒
       315 | ▒▒▒
       280 | ▒▒▒
       250 | ▒▒▒▒
       215 | ▒▒▒▒▒
       185 | ▒▒▒▒▒▒
       150 | ▒▒▒▒▒▒▒▒
       115 | ▒▒▒▒▒▒▒▒▒▒
        85 | ▒▒▒▒▒▒▒▒▒▒▒▒▒▒ (75)
        50 | ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
        20 | ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
     below | ▒▒

Upstream issue

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 17, 2025
@l0b0 l0b0 mentioned this pull request Apr 17, 2025
13 tasks
@l0b0
Copy link
Contributor Author

l0b0 commented Apr 17, 2025

Judging by recent updates, the app looks like it's lacking maintenance and could be abandoned at any time

It looks like they consider it stable, and they use it regularly

@l0b0 l0b0 requested review from a user and imincik April 17, 2025 18:16
@l0b0
Copy link
Contributor Author

l0b0 commented Apr 17, 2025

The article mentions a new version, so I have these questions

Fair enough - that seems to be a third UI for the same sort of thing.

@l0b0 l0b0 requested a review from a user April 17, 2025 19:34
@l0b0 l0b0 requested review from K900 and rksm April 17, 2025 19:44
@l0b0 l0b0 changed the title unsure: init at 0.4.0 unsure: init at 0.4.0-unstable-2025-04-15 Apr 17, 2025
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Apr 18, 2025
Copy link
Contributor

@rksm rksm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Independent of new UIs, having the CLI available is definitely desirable.

@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Apr 18, 2025
@thiagokokada
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 399529


x86_64-linux

❌ 2 packages failed to build:
  • unsure
  • unsure.pubcache

@thiagokokada
Copy link
Contributor

building '/nix/store/yfl5fl8ydq0k66c3787vxcxm3id70zxj-unsure-0.4.0-unstable-2025-04-15-package-config.json.drv'...
error: hash mismatch in fixed-output derivation '/nix/store/js5cs387b9l6c3pa54ginqzl6h8qgv02-source.drv':
         specified: sha256-tXzJNxKG/ROMC1KPSxVpQe28G9AFg8JOgyKuxwLULMA=
            got:    sha256-rn10vy6l12ToiqO4vGVT4N7WNlj6PY/r+xVzjmYqILw=

Co-authored-by: emaryn <197520219+emaryn@users.noreply.github.com>
@l0b0
Copy link
Contributor Author

l0b0 commented Apr 19, 2025

building '/nix/store/yfl5fl8ydq0k66c3787vxcxm3id70zxj-unsure-0.4.0-unstable-2025-04-15-package-config.json.drv'...
error: hash mismatch in fixed-output derivation '/nix/store/js5cs387b9l6c3pa54ginqzl6h8qgv02-source.drv':
         specified: sha256-tXzJNxKG/ROMC1KPSxVpQe28G9AFg8JOgyKuxwLULMA=
            got:    sha256-rn10vy6l12ToiqO4vGVT4N7WNlj6PY/r+xVzjmYqILw=

Thank you! Fixed, forgot to update the hash when updating the commit 🤦.

@l0b0
Copy link
Contributor Author

l0b0 commented Apr 19, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 399529


x86_64-linux

✅ 2 packages built:
  • unsure
  • unsure.pubcache

1 similar comment
@thiagokokada
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 399529


x86_64-linux

✅ 2 packages built:
  • unsure
  • unsure.pubcache

@SuperSandro2000 SuperSandro2000 merged commit 91f3d15 into NixOS:master Apr 19, 2025
23 of 27 checks passed
@l0b0 l0b0 deleted the unsure branch April 19, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants