Skip to content
Topazdocs

Search documentation

Project and manual

Use arrow keys to choose a result. Press Enter to open.

Type an API name, diagnostic number, rule, or project topic.

    Download

    Origins

    The name Topaz is older than the language that carries it today. Two languages came from that one name, and after taking separate paths they met again in one product. Where the vision describes where Topaz is going, this page describes where it came from.

    The first Topaz

    The first Topaz was a Lisp dialect. In Lisp a program is made of expressions, and an expression is also data. Reading a program, changing its structure and writing it back out all happen naturally inside the language.

    The first Topaz carried that property over to code written in other languages. It grew toward translating code from many programming languages into Lisp expressions and normalizing them so that the same meaning takes the same shape.

    Lena, a language that normalizes expressions

    Once its work was clear, the name followed. The first Topaz became Lena. LENA stands for Lisp Expression Normalization Architecture.

    Lena reads code from any language into expressions with one shared structure. On that structure it judges what the code does in one consistent way and carries it into other languages. Lena now underpins the engine Lena Code uses to explain, review and convert code in 30 languages.

    Topaz 2, from scratch

    The name Topaz stayed with a new language. Topaz 2 was not a revision of the first Topaz. It was a general-purpose programming language designed from scratch.

    Release by release, Topaz gained a compiler that compiles itself, native and web builds, and a standard library that includes typesetting, and it settled into a language for building and running real software. Today's Topaz carries that second design forward.

    A language that reads and a language that writes

    The two languages took opposite ends of working with code.

    Lena became the language that reads existing code. Whatever language the code is written in, Lena normalizes it into the same expressions so that what the code does can be judged by the same standard.

    Topaz became the language that writes new code. It keeps one form for each concept, lets the specification fix the meaning, and makes the compiler responsible for efficient execution.

    From one name, one language grew toward reading and the other toward writing.

    Two languages meet again

    The two languages met again in Lena Code. Much of Lena Code is written in today's Topaz, and parts of the Lena engine have been reimplemented in today's Topaz. Topaz is also one of the 30 languages Lena Code reads and converts.

    Lena, which branched off from the first Topaz, now reads today's Topaz and carries it into other languages, inside a product built with today's Topaz.

    Topaz builds Lena Code, and Lena reads Topaz.

    Each proves the other

    If ATLAS shows Topaz at work in typesetting, Lena Code shows it in a completely different kind of software. Carrying a code analysis and conversion platform is evidence that Topaz is a general-purpose language and not a language for one field.

    In turn, the more widely Topaz is used, the more visible Lena's roots in the same name become. The two products explain why each other exists and prove each other's worth.

    Where it came from, where it is going

    Topaz has been through both the language that reads code and the language that writes it. Its aim to be a language that people and AI read and write together grows out of that experience. Where Topaz is going is described in the vision.