Interfacing Programming Language Semantics and Pragmatics: What Does “Hello, World” Mean?

Philosophies 10 (4):86 (2025)
  Copy   BIBTEX

Abstract

In 1978, Brian Kernighan and Dennis Ritchie insisted that the first program to write in a new language is one to print the words “hello, world.” From then until now, “hello, world” has frequently been the first exercise in introductory programming courses. On one hand, this does seem like a good first program because it makes something familiar—a greeting—appear on the screen. On the other hand, it is extremely strange. How can it be understood as a greeting? Who is greeting whom? Unfortunately, the bulk of formal means for defining programming languages provides very little help for assigning a meaning to the “hello, world” program. It is argued that the weakness of older theories and methods of programming language semantics is due to the historical, disciplinary segregation (in logic, semiotics, and linguistics) of semantics as a study apart from syntax and pragmatics. Drawing from both more recent work in programming language semantics that addresses side effects and on speech-act-based programming language design, this paper proposes a possible reintegration of semantics and pragmatics in order to better define the meaning of “hello, world” and the programming languages used to produce speech acts more generally.

Other Versions

No versions found

Links

PhilArchive

External links

Setup an account with your affiliations in order to access resources via your University's proxy server

Through your library

Analytics

Added to PP
2025-08-09

Downloads
41 (#1,355,376)

6 months
20 (#560,208)

Historical graph of downloads
How can I increase my downloads?

Citations of this work

No citations found.

Add more citations

References found in this work

How to do things with words.John L. Austin - 1962 - Oxford [Eng.]: Clarendon Press. Edited by Marina Sbisá & J. O. Urmson.
Speech Acts: An Essay in the Philosophy of Language.John Rogers Searle - 1969 - Cambridge, England: Cambridge University Press.
Minds, brains, and programs.John Searle - 1980 - Behavioral and Brain Sciences 3 (3):417-57.
S.Marcus Willaschek, Jürgen Stolzenberg, Georg Mohr & Stefano Bacin - 2015 - In Marcus Willaschek, Jürgen Stolzenberg, Georg Mohr & Stefano Bacin, Kant-Lexikon. Berlin: De Gruyter. pp. 1995-2243.

View all 30 references / Add more references