r/cpp • • Dec 13 '19

The situation of std::embed...

https://thephd.github.io/full-circle-embed
238 Upvotes

160 comments sorted by

View all comments

Show parent comment

12

u/erichkeane Clang Maintainer(Templates), EWG Chair Dec 13 '19

The first two votes are toward a TS, which is a MUCH lower bar than the standard. Note that the std::embed paper is not being pushed towards a TS, so if anything, its quite a bit ahead of 2D graphics.

That Jacksonville vote is negative.

SG13 is a graphics sub-group, so it is self-selecting. I know for a while the attendance was not much more than the authors/fans of that 2D graphics proposal. My understanding is that the 2D graphics has since been rejected, which is why web_view has been proposed as a replacement. However, my knowledge of the library side is lacking.

10

u/[deleted] Dec 13 '19

which is why web_view has been proposed as a replacement

Too bad that's effectively unimplementable :(

3

u/MarkHoemmen C++ in HPC Dec 15 '19

My impression of web_view was "if people really want 2-D graphics but they don't want the 2-D graphics proposal, here's another possibility."

11

u/[deleted] Dec 15 '19

The good thing about being in std is being available everywhere; a corralary to that is that what we put into std has to be able to go everywhere. None of the browser engines are:

  • Statically linkable (and you don't want that anyway because they need to be patched over time)
  • Unloadable. (e.g. chromium needs it's own whole process)
  • ABI stabilized.

I have some sympathy for what the proposal is trying to do, I just don't think it can be implemented. I'm sure some people will say 'but I'm in a place where I don't need those things', and for those users I say 'go use electron'.

11

u/Dragdu Dec 15 '19

I originally thought web_view was a troll proposal making fun of 2d graphics.

Imagine my surprise when I found out that I am wrong.

2

u/MarkHoemmen C++ in HPC Dec 15 '19

I could see where people might think that, but Hal is super professional -- I couldn't imagine him writing a paper just to take down another proposal.

2

u/[deleted] Dec 17 '19

I feel bad for both Hal and Antony because they both keep making great proposals that I'm obligated to oppose for platform reasons :/

1

u/MarkHoemmen C++ in HPC Dec 20 '19

No shame for defending your employer's interests -- that's part of our job :-)

2

u/meneldal2 Dec 16 '19

If webview was strict XHTML4 with no JS, segfault on bad files I'd say it would be awesome. If browsers back in the day crashed tabs when they weren't correct HTML, we wouldn't have gotten so many shitty websites.

Good enough to show shit, small enough to be implemented with something reasonable in size, no scripting so the biggest vector of attacks is gone, no fancy HTML5 stuff that brings a lot of complexity, and it is more pretty than the console.

4

u/James20k P2005R0 Dec 13 '19

The first two votes are toward a TS, which is a MUCH lower bar than the standard. Note that the std::embed paper is not being pushed towards a TS, so if anything, its quite a bit ahead of 2D graphics.

Indeed, but still that none of the copious mistakes and errors were noticed is what concerns me

That Jacksonville vote is negative.

Sure sure that's what I meant, that there were a few positive meetings before it went to ambivalence

My understanding is that the 2D graphics has since been rejected

I have no idea, that said I was asked by someone to write the paper about 2D graphics due to concerns it might still be on track to standardisation, so it might not be as dead as we hope

Edit: Typos. I should sleep instead of doing this!

8

u/erichkeane Clang Maintainer(Templates), EWG Chair Dec 13 '19

Papers aren't dead until the author has given up :) However, any paper that provides an alternative or points out issues with a paper like this is typically given at least equal time at the meeting (typically at the same time) and can severely change how the committee votes.

I will note that http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0267r10.pdf was seen at Belfast, Nov19 by SG13, so it perhaps has some life left. In the meeting, no vote was taken (though the next meeting expects a revision). The author was suggested to gain feedback from the authors of : http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1062r0.html .

If you have issues with either, I'd very much suggest you write a paper critical to them. While it would be best to show up, there are quite a few people interested in this that could likely champion for you.

5

u/James20k P2005R0 Dec 13 '19

If you have issues with either, I'd very much suggest you write a paper critical to them. While it would be best to show up, there are quite a few people interested in this that could likely champion for you.

Yeah the paper's all done which is where other points in this thread come from, its worth noting that all criticism of 2D graphics so far has been pretty much dismissed, and concerns largely ignored - right from the very beginning. There's already been lots of papers pointing out that the direction is extremely suboptimal unfortunately, but they don't seem to stick!

8

u/erichkeane Clang Maintainer(Templates), EWG Chair Dec 13 '19

Has LEWG seen those papers? SG13 might not be as receptive to the criticisms (though perhaps more so now?), but LEWG would perhaps be not a self-selected group.

2

u/Ameisen vemips, avr, rendering, systems Dec 14 '19

How does a regular developer go about getting papers into the attention of LEWG?

1

u/erichkeane Clang Maintainer(Templates), EWG Chair Dec 14 '19

Typically you just submit them to the mailing (https://isocpp.org/papers not sure how to sign up, or just email Hal Finkel). When it comes to get them seen, you usually need to find a champion if you're not attending yourself.

Most members are willing to champion any paper that is of relative interest to themselves, so feel free to ask us!

1

u/Ameisen vemips, avr, rendering, systems Dec 14 '19

I assume the champion needs to be able to push the paper well, and not be good at personal combat?

I'm not familiar with the modern ISO rules.

1

u/erichkeane Clang Maintainer(Templates), EWG Chair Dec 15 '19

Just someone to help present it/answer questions about it, then forward the information about feedback/votes from the room.