News for hackers. Stuff that matters.
Re:Spelunking Apple’s Open Source by FractalHQ on Friday March 17, 2023 @06:34PM (#35203791)
What’s bc? Is it Bit Counter? I just skimmed the website and gh readme looking for a definition of BC, and I’m still unsure. Only clue I found is that it has something to do with calculators….
Re:Spelunking Apple’s Open Source by lapcat on Friday March 17, 2023 @06:42PM (#35203870)
I can't resist, because this is the perfect opportunity... RTFM
Re:Spelunking Apple’s Open Source by DonaldPShimoda on Friday March 17, 2023 @06:45PM (#35203893)
GNU `bc` is a command-line arbitrary-precision calculator language [1]. It seems the parent comment's author implemented an alternative version that is now shipping in macOS, presumably because Apple doesn't like the GNU licenses.

[1] https://www.gnu.org/software/bc/manual/html_mono/bc.html

Re:Spelunking Apple’s Open Source by gavinhoward on Friday March 17, 2023 @07:27PM (#35204250)
bc is a standard utility on POSIX systems. It's kind of expected that people know about it, like it's expected they know about awk or grep.

bc is a little less known, though.

Re:Spelunking Apple’s Open Source by imoverclocked on Friday March 17, 2023 @10:39PM (#35205513)
bc is a staple in my cli work! Thank you for bc!
Re:Spelunking Apple’s Open Source by gavinhoward on Friday March 17, 2023 @11:14PM (#35205685)
You're welcome!