Giter Club home page Giter Club logo

order-pp's Introduction

The Order Metalanguage for C Preprocessor Metaprogramming

From the preface I wrote years ago:

Order grew out of my interest in the design of programming languages and metaprogramming as well as desire to make something original, fascinating and beautiful. My work on the Boost Preprocessor-library had left me unsatisfied. While it was clear to me that it could theoretically be used to implement useful non-trivial metaprograms, it would have been quite tedious work, full of nasty little details and limitations to trip you up. I considered the prospects for further enhancements to the library, but it didn't seem possible to provide a programming model that I would have considered pleasant to think in. It occured to me that instead of attempting to provide semimodular enhancements on top of the C preprocessor in a bottom-up fashion, it might be possible to lift the limitations by designing a complete monolithic interpreter for a high-level source language in a top-down fashion. After some experiments at interpreting lambda-calculus and a couple of prototype interpreters for early versions of the Order language, I was left with a feeling that it would be too inefficient to be practical. The most serious limitation seemed to be the inability of the early prototypes to generate arbitrary output efficiently. I decided to forget about the interpreter and move on, but the work proved too interesting for me to forget completely. Over a long period of time I found several small incremental improvements to the interpreter until it suddenly started to look like more than a theoretical curiosity. Then I knew I just had to finish the work. Hopefully everyone will be able to find some beauty in the result. At least I know I've had a lot of fun designing the language.

Vesa Karvonen

order-pp's People

Contributors

jadlevesque avatar polytypic avatar raedwulf avatar rofl0r avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.