Linux distros not shipping Gavin Howard's bc for licensing reasons
from scratchandgame@lemmy.ml to linux@lemmy.ml on 03 Nov 06:06
https://lemmy.ml/post/22086396

(for anyone who do not know, bc is a “arbitrary-precision arithmetic language”. its syntax is similar to C)

Gavin Howard’s bc (bc-gh) is adopted by busybox, toybox, FreeBSD, Android, macOS for its robustness and superior performance. It is also shipped with Gentoo Linux; LFS also use bc-gh.

Even though bc-gh is more robust and updated, Linux distros other than Gentoo and Fedora do not package it it. bc-gh is not available on Arch (available on AUR), Debian and perhaps all of its derivative. The reason seems to be a licensing reason: bc-gh is under the BSD license.

bc-gh is clearly superior to GNU bc, Gavin Howard’s benchmark show that bc-gh is faster than GNU bc in most case, while bc-gh actually do more work than GNU bc.

Today I tested GNU bc and bc-gh. I let they do this operation: (1024*1024)^(1024*1024). GNU bc give me the answer in five minutes, bc-gh give me the answer in two minutes.

GNU bc do not have a repository. All development happen in private, and we can’t make sure it is still maintained. The latest version is 1.07 from 2017. bc-gh have a public repository and it is actively maintained.

So it is clear that other Linux distro not adopting bc-gh is purely licensing reason. They reject software not under the GPL license, even if they are more robust and more performant.

We need a campaign to raise awareness about superior software alternatives. We need to stop Linux distro for not adopting superior and updated softwares for licensing reasons.

#linux

threaded - newest

SeikoAlpinist@slrpnk.net on 03 Nov 06:12 next collapse

This has been the story of Linux since the 1990s.

BSD does the same thing. They famously stuck at the gcc 4.2 series about a decade too long because of licenses.

Nothing new under the sun.

scratchandgame@lemmy.ml on 03 Nov 06:14 collapse

But there are technical reason too. IIRC, gcc > 4.3 drop support for some architecture?

NateNate60@lemmy.world on 03 Nov 06:22 next collapse

This is not what I would consider a “political reason”. A political reason would be something like refusing to package it because of what political party Howard supports.

There is plenty of software you’ll find in these repositories that aren’t under the GPL. CMake uses BSD, the Apache web server uses the eponymous Apache license, LibreOffice and Firefox use MPL, Godot and Bitcoin Core use the MIT license, and I’m sure there are plenty of other software licenses that I haven’t thought of yet.

scratchandgame@lemmy.ml on 03 Nov 06:27 collapse

I will change it to “licensing reason”. Thank you

But the software you listed are used by many peoples. bc-gh is robust and performant, GNU bc is not actively developed, and benchmark shows that it is clearly slower than bc-gh in most case. But in most distros bc-gh is not available.

NateNate60@lemmy.world on 03 Nov 06:39 collapse

Did any distro give concrete reasons for why they have actively chosen not to package it, or perhaps they just haven’t given it much thought yet?

scratchandgame@lemmy.ml on 03 Nov 07:04 collapse

perhaps they don’t care about bc. I think they don’t even notice that GNU bc haven’t been updated since 2017.

Takios@discuss.tchncs.de on 03 Nov 08:48 collapse

“perhaps” “I think”

In short you’ve got no clue.

solrize@lemmy.world on 03 Nov 06:40 next collapse

Seems like a whine, bc is an interactive tool and it’s unusual to use it for anything where its response isn’t instant.

GNU bc is one of the oldest GNU tools and it uses an MP library that RMS banged out in an afternoon or two, I think. It could probably be adapted to use GMP which is very high performance.

Preferring GPL to other licenses seems fine with me, unless I want to work for Amazon without getting paid.

scratchandgame@lemmy.ml on 03 Nov 07:09 collapse

GNU bc is unmaintained for years. The latest version is from 2017. It don’t have a repo or a mailing list.

bc-gh started in 2018 and it is still actively developed. It is adopted by many projects I’ve listed in my post.

solrize@lemmy.world on 03 Nov 07:24 collapse

Does gnu bc have outstanding bug reports? If not, it doesn’t need updates. Its spec was frozen 30 years ago, more or less. Rather than unmaintained, I’d call it maintenance-free. BIFL software as it were. Sounds great to me.

eldavi@lemmy.ml on 03 Nov 07:55 next collapse

is the syntax the same?

some common things that have a better version; like sed; are ignored because of licensing and i’m convinced that if the syntax were the same we would all be using it anyways.

scratchandgame@lemmy.ml on 03 Nov 08:33 collapse

Yes, the syntax is the same. It also support various GNU and BSD extensions.

VeganicTankie@lemmygrad.ml on 03 Nov 11:00 next collapse

No offense but your post sounds like chatgpt

scratchandgame@lemmy.ml on 03 Nov 11:57 collapse

There are errors in my post, so it must not be chatgpt ;)

bismuthbob@sopuli.xyz on 03 Nov 19:45 collapse

I wish you luck with your campaign!