9 ms·
As the author of a `dc` (https://git.gavinhoward.com/gavin/bc https://git.gavinhoward.com/gavin/bc), I appreciate this article! The author is correct on the pa
by gavinhoward 2y ago
As the author of a `dc` (https://git.gavinhoward.com/gavin/bc https://git.gavinhoward.com/gavin/bc), I appreciate this article!
The author is correct on the parsing of "normal" vs. Reverse Polish notation. My `bc`, with normal expressions, needs 1555 LoC for parsing. My `dc` needs just 298.
I have a couple posts ([1], [2]) about `dc` tricks and code on my blog.
And yes, I have an HP 48G [3]. :)
[1]: https://gavinhoward.com/2019/12/bc/dc-tips-and-tricks/ https://gavinhoward.com/2019/12/bc/dc-tips-and-tricks/
[2]: https://gavinhoward.com/2021/04/a-dc-script-for-easter/ https://gavinhoward.com/2021/04/a-dc-script-for-easter/
[3]: https://gavinhoward.com/uploads/easter-dc-script/hp-48g.jpg https://gavinhoward.com/uploads/easter-dc-script/hp-48g.jpg
- whartung 2y agoiHP48 on iOS is excellent. It’s my mostly go to calculator on the go. I find the lack of a backlight on the legacy HPs to make usage difficult (plus I always have my phone).
- fsckboy 2y agois your bc the bc or is it a bc? bc is a POSIX standard so "a" bc would be as good as "the" bc, i'm just curious. "man bc" on Fedora linux says the author is Phil Nelson
- gavinhoward 2y agoDepends on what platform you are using. Most Linux distros? Only a bc. FreeBSD and macOS? The bc. [1] [1]: https://gavinhoward.com/2023/02/my-code-conquered-another-os/ https://gavinhoward.com/2023/02/my-code-conquered-another-os...