clac
brew install clac
v0.3.5
BSD-2-Clause
Command-line, stack-based calculator with postfix notation
10
30-day installs · #8483
39
90-day · #7980
55
365-day · #10796
371
★ GitHub stars · updated 4mo ago
GitHub topics
calculator
command-line
postfix
stack-based
Links
- https://github.com/soveran/clac
- GitHub: soveran/clac
- Brew formula source: Formula/c/clac.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Command-line, stack-based calculator with postfix notation",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:24+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "clac",
"github_default_branch": "master",
"github_last_commit_at": "2026-04-13T06:12:49Z",
"github_readme_excerpt": "# Clac\n\nA command line, stack-based calculator with postfix notation that\ndisplays the stack contents at all times. As you type, the stack\nchanges are reflected immediately.\n\n\n\nIn a stack-based postfix calculator, entering a number pushes it\non a stack, and arithmetic operations pop their arguments from the\nstack and push the result. As all the operations take a fix number\nof arguments, there\u0027s no room for ambiguity: parenthesis and operator\nprecedence are not needed. Postfix notation is also known as reverse\nPolish notation, or RPN.\n\nWhy?\n----\n\nI like Forth and other stack based, concatenative languages, and\nI\u0027ve used the `dc` calculator a lot. Once I got used to `dc`, other\ncalculators seemed to be less powerful. While it has been extremely\nuseful for me, I\u0027ve always found the UI a bit lacking. That\u0027s why\nI decided to try this idea of an always-visible stack with realtime\nupdates.\n\nInstallation\n------------\n\nDownload the [latest release][releases] or check the available\n[packages][packages]. You can also compile the source code in the\nmaster branch.\n\n[releases]: https://github.com/soveran/clac/releases\n[packages]: https://github.com/soveran/clac/wiki/Distribution-Packages\n\nInstall clac into `/usr/local/bin` with the following command:\n\n $ make install\n\nYou can use `make PREFIX=/some/other/directory install` if you wish\nto use a different destination. If you want to remove clac from\nyour system, use `make uninstall`.\n\nCommands\n--------\n\nWhen a command requires an argument, it pops a value from the stack.\nIf the stack is empty, a zero is provided instead. In the descriptions\nbelow, the top of the stack (and thus the first value popped) is\nrepresented by the letter `a`, while the second value popped is\nrepresented by the letter `b`. For example, if the stack is composed\nof the number `1`, `2` and `3` (with `3` at the top of the stack),\nwhen we describe the sum then `a` will be `3` and `b` will be `2`.\nIt is ",
"github_repo": "soveran/clac",
"github_stars": 371,
"github_topics": [
"calculator",
"command-line",
"postfix",
"stack-based"
],
"homepage": "https://github.com/soveran/clac",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 10,
"installs_365d": 55,
"installs_90d": 39,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "BSD-2-Clause",
"llm_generated_at": null,
"llm_model": null,
"name": "clac",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 8483,
"rank_365d": 10796,
"rank_90d": 7980,
"raw_hash": "6ac2f34f5a0111d3",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/clac.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "0.3.5",
"versioned_formulae": [],
"why_use_this": null
}