hoc (programming language)

hoc was developed by Brian Kernighan and Rob Pike as a glorified interactive calculator.

Then, variables were added, conditionals, loops, user-defined functions, simple IO, and more, using a syntax resembling C. An improved hoc interpreter was included in Eighth Edition Research Unix in 1985, but it has not been generally adopted by commercial Unix systems or by Linux distributions.

Instead, the earlier calculator languages dc and bc have become widespread on those systems.

hoc survived and continued to evolve as part of the Plan 9 operating system.

Several improved versions of hoc were released as free software by Bell Labs and other individuals (see list below).