Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon



B is a pl created in 1969 by Ken Thompson and Dennis Ritchie.

#272on PLDB 53Years Old 1.4kUsers
0Books 3Papers

B is a programming language developed at Bell Labs circa 1969. It is the work of Ken Thompson with Dennis Ritchie. B was derived from BCPL, and its name may be a contraction of BCPL. Read more on Wikipedia...

Example from hello-world:
main() { putchar ('Hell'); putchar ('o Wo'); putchar ('rld'); putchar ('*n'); }
Example from Wikipedia:
/* The following function will print a non-negative number, n, to the base b, where 2<=b<=10. This routine uses the fact that in the ASCII character set, the digits 0 to 9 have sequential code values. */ printn(n, b) { extrn putchar; auto a; if (a = n / b) /* assignment, not test for equality */ printn(a, b); /* recursive */ putchar(n % b + '0'); }

Language features

Feature Supported Example Token
/* A comment
MultiLine Comments
/* A comment
/* */
Print() Debugging putchar
Semantic Indentation ϴ

Publications about B from Semantic Scholar

title authors year citations influentialCitations
Using B as a High Level Programming Language in an Industrial Project: Roissy VAL Frédéric Badeau and Arnaud Amelot 2005 120 6
New approach to pharmacophore mapping and QSAR analysis using inductive logic programming. Application to thermolysin inhibitors and glycogen phosphorylase B inhibitors. N. Marchand-Geneste and K. Watson and B. Alsberg and R. King 2002 49 6
An overview of the B programming language or B without tears L. Geurts 1982 8 0
flatbuffers.html · b.html · pike.html

View source

PLDB - Build the next great programming language · v2022 · Day 31 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub ·