HeadlinesBriefing favicon HeadlinesBriefing.com

Om Language: Minimal Concatenative Programming for C++

Hacker News •
×

Om is a novel concatenative programming language designed as a C++ library for embeddable computation. The language features minimal syntax with only three elements—operator, separator, and operand—and uses prefix notation where functions manipulate the remainder of the program itself. As a unicode-correct system, any UTF-8 text without a byte-order marker defines a valid Om program.

Currently in early development as a proof of concept, Om implements panmorphic typing allowing programming without explicit data types and serves as a trivial-to-parse data transfer format. The language is embeddable into any C++ or Objective-C++ program and extensible with new data types or operations. However, it remains incomplete, lacking basic number and file operations required for real-world applications.

The Om source code is available under the Eclipse Public License and includes build targets for an interpreter, tests, and documentation. The interpreter reads UTF-8 input from standard input and writes evaluated results to standard output. With its prefix notation approach, Om eliminates stack underflows and enables single-pass evaluation, distinguishing it from traditional postfix, stack-based concatenative languages.