A collection of illustrative examples in over 100 programming languages, including every code snippet used in each edition of the book Programming Language Explorations.
Many of the programs in this repo can be run at OneCompiler, JDoodle, TIO, Attempt this Online, or Replit. Many languages feature their own ”official” online playgrounds, such as Rust, Go, TypeScript, and Haskell, and many more.
You are welcome to clone this repository and run the examples locally on your own machine. See the specific README files within the language sub folders for instructions running the examples this way. You'll have to first download and install a language implementation for your particular operating system and architecture; such information is generally available online, but the individual language READMEs will often have pointers. Look in each folder for a test runner named test.sh for Bash and test.ps1 for PowerShell.
The README files in each programming language folder contain language information and links to various resources for furthering your studies or contributing to open source projects featuring the language.
For quick reference information on the languages covered in this project, visit our Language Overviews. Source code for this little browser can be found in the docs folder of this repo.