A Proposal to Add 2D Graphics Rendering and Display to C++

dk 158 Jan 21, 2014 at 09:41

Discuss link: A Proposal to Add 2D Graphics Rendering and Display to C++ (isocpp.org)

The proposal is basically to include the Cairo library as part of the C++ Standard. What’s everyone’s vote on this?

6 Replies

Please log in or register to post a reply.

Stainless 151 Jan 21, 2014 at 10:56

Hell no.

Hell hell no

Worse idea since someone said “hey that Hitler bloke, he’s kinda charismatic. How about we make him leader”

gasto 102 Jan 21, 2014 at 14:21

It is random to support domain specific libraries in a language standard.

TheNut 179 Jan 21, 2014 at 15:57

Guaranteed won’t pass. It would start a chain reaction where next follows 3D, then audio, then physics, etc. All of those APIs could become standards too, but one quick look at history will show you that people are so different, can never agree on anything, and don’t like a single solution. And a standard isn’t a standard unless people adhere to it. I doubt Microsoft, Sony, Nintendo, Apple, Google & co will be willing to sink mega dollars into implementing that standard when they already have their own designs and technologies.

In principle though, C++ is a language and should remain that way. Improve the language and its syntax, let the community produce substance with it. APIs improve over time, become easier, more flexible, more innovative, more up-to-date. You can’t do that with a standard. STL vs Java and .NET BCL is a fine example of API evolution.

dzada 103 Jan 21, 2014 at 21:17


1.@dk Just to mention, they do not want to include Cairo in the standard at all. If you read the proposal they want a simple 2D graphics interface in the standard and explained why not starting from a c++ lib, and why cairo was an interesting starting point.

2.@TheNut One of the writter (H Sutter) is in charge of c++ devs at microsoft and explains how a 2D interface could be standardized and be based on Direct2D behind.

3.@gasto this is not about language standard but standard library. stdio is as much domain specific as 2D could be. you don’t have to link it, but if you do, it could be nice to have a well designed interface that is STL compliant, you could maybe change your runtime if you want. Anyway a lot of company are currently reimplementing all this for tablets and PC portability by using openGL primitives so it sould not be bad to consider something that everyone does and that is pretty basic.


fireside 141 Jan 22, 2014 at 05:32

I think it goes counter to what c++ is all about. It’s always stayed as just a language, even if you count STL. Languages like Java that get into things like that have really gotten bogged down and become specialized.

Vilem_Otte 117 Jan 23, 2014 at 02:53

No, just no - it’s already too huge in my opinion. I like simple standards, not overcomplicated.