AMP

Releasing a new C++ AMP Validator

Websites

The AMP Project is excited to release a new open source C++ AMP validator. AMP developers and platforms that link to AMP pages can now perform AMP validation in C++, which may provide a more seamless integration with their workflows, depending on the development languages they use.

What is an AMP validator?

A key strength of AMP is that it makes pages fast and user-friendly, and this is assured through validation.  Assumptions about how an AMP page behaves hold only if the AMP page proves to be valid, and platforms that link to AMP pages may not recognize a page as an AMP page if it’s invalid. This is where the AMP validator comes in; it can check if an AMP page meets all of the criteria required for an AMP page to be considered valid.  AMP validity allows content distributors such as Twitter, Bing or Google Search to be confident about delivering AMP pages to readers in useful and creative ways, such as employing pre-rendering. The AMP validator is also used in other contexts. Email clients use it to ensure that the AMP Emails they are serving are also valid.

What languages is the AMP validator available in?

AMP developers have varying setups and languages they use. We’ve heard that it’s useful to make the AMP validator available in different languages. With today’s announcement, we currently have the validator available in the following languages:

  • JavaScript – used by the Google Search engine. Read this article to learn more about how you can integrate the JavaScript AMP validator into your build process. 
  • Java – contributed by the Verizon Media team allowing Yahoo Mail to integrate AMP validation into the Java workflow.
  • C++ – the newest addition to the existing AMP validators.

Please let us know if you have questions or feedback regarding the AMP validator. 

In the meantime, we hope you are all staying safe.

Posted by Amaltas Bohra, Software Engineer, AMP Project