Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-07-17 Thread Botond Ballo
The Committee is meeting next week in Rapperswil, Switzerland. I will be attending. ... Shortly after the meeting I will blog about what happened there - stay tuned! I just published my blog post about the Rapperswil committee meeting:

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-07-17 Thread Botond Ballo
There should be a way to indicate in a switch statement whether you intend to cover all the cases: enum A { a, b, c }; switch (x) { case a: return true; case b: return false; } There needs to be a way to tell the compiler to

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-07-17 Thread Joshua Cranmer 
On 7/17/2014 9:18 PM, Botond Ballo wrote: std::shared_ptr is mostly unusable in Gecko code because there's no way to specify whether you need thread-safety or not (usually you don't). There should be a way to specify whether you want to pay the cost of thread safety when using it. I would like

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-22 Thread Botond Ballo
1. Mandating that you need to publish something doesn't mean it will actually get published. C++ requires that compilers publish the implementation-defined behavior decisions they make. I don't see any documents for that for MSVC [which only has C] or Clang. I asked some Clang developers

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-22 Thread Botond Ballo
- Original Message - From: Joshua Cranmer  pidgeo...@gmail.com Is the status quo really that bad? I think the fact that we're not seeing a proliferation of non-{header-only} C++ libraries - that is, that people still view C as the go-to language for ABI stability - is evidence that

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-22 Thread Joshua Cranmer 
On 6/22/2014 5:51 PM, Botond Ballo wrote: - Original Message - From: Joshua Cranmer  pidgeo...@gmail.com Is the status quo really that bad? I think the fact that we're not seeing a proliferation of non-{header-only} C++ libraries - that is, that people still view C as the go-to

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-20 Thread Joshua Cranmer 
On 6/20/2014 4:44 AM, Botond Ballo wrote: Why object to this proposal, then? Even if it will, in practice, take a very long time for some projects to adopt extern abi and std::abi, this seems better than the status quo. Is the status quo really that bad? MSVC can publish its ABI as is, and

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-20 Thread Jonas Sicking
On Tue, Jun 10, 2014 at 3:31 AM, Botond Ballo bba...@mozilla.com wrote: Reflection proposals (these are very early-stage proposals, but they give an idea of the directions people are exploring): http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3987.pdf

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-19 Thread Botond Ballo
- Original Message - From: Joshua Cranmer  pidgeo...@gmail.com Perhaps a bit late to be saying this, but after reading this paper, I've come to object to it. Appreciate the feedback. I have some clarification questions to help me understand your objections better. It explicitly

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-19 Thread Joshua Cranmer 
On 6/19/2014 5:55 PM, Botond Ballo wrote: Are you saying that gcc - assuming that for some platforms, it is considered the platform vendor, and therefore the provider of std::abi - would likely ship their non-conforming std::string as std::abi::string in order to maintain ABI compatibility

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-15 Thread Joshua Cranmer 
On 6/9/2014 2:31 PM, Botond Ballo wrote: Portable C++ ABI: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4028.pdf Perhaps a bit late to be saying this, but after reading this paper, I've come to object to it. A portable ABI can mean one of several things: 1. A well-defined,

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-11 Thread Brian Smith
On Tue, Jun 10, 2014 at 4:19 PM, Botond Ballo bba...@mozilla.com wrote: Why put this into core C++? Why not leave it to libraries? The standard library is a library :) One of the biggest criticisms C++ faces is that its standard library is very narrow in scope compared to other languages

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-11 Thread Botond Ballo
From: Brian Smith br...@briansmith.org C++ desperately needs improvements for reducing the occurrence of use-after-free errors. Rust features for this like borrowed references should be imported into the language. A real-life (but reduced/modified) example from mozilla::pkix: Result

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-11 Thread Ehsan Akhgari
On 2014-06-11, 1:42 PM, Botond Ballo wrote: I'd very much like to see this as well! The C++11 attribute syntax might be a good way to accomplish this without inventing new syntax. For example, the standard could define an exhaustive attribute on a switch statement for an enumeration: enum

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-10 Thread Trevor Saunders
On Mon, Jun 09, 2014 at 12:31:39PM -0700, Botond Ballo wrote: Hi everyone, Here are some C++ standards proposals from the latest committee mailing that I think might be of interest to the Mozilla community: Portable C++ ABI:

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-10 Thread Till Schneidereit
On Mon, Jun 9, 2014 at 9:45 PM, Benoit Jacob jacob.benoi...@gmail.com wrote: I would like the C++ committee's attention to be drawn to the dangers, for committee, to try to make decisions outside of its domain of expertise. I see more potential for harm than for good in having the C++ committee

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-10 Thread Jeff Gilbert
- Original Message - On Mon, Jun 9, 2014 at 9:45 PM, Benoit Jacob jacob.benoi...@gmail.com wrote: I would like the C++ committee's attention to be drawn to the dangers, for committee, to try to make decisions outside of its domain of expertise. I see more potential for harm than

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-10 Thread Jeff Gilbert
@lists.mozilla.org, Jet Villegas j...@mozilla.com Sent: Monday, June 9, 2014 2:08:37 PM Subject: Re: C++ standards proposals of potential interest, and upcoming committee meeting On Mon, Jun 9, 2014 at 1:50 PM, Benoit Jacob jacob.benoi...@gmail.com wrote: 2014-06-09 16

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-10 Thread Botond Ballo
Why put this into core C++? Why not leave it to libraries? The standard library is a library :) One of the biggest criticisms C++ faces is that its standard library is very narrow in scope compared to other languages like Java or C#, and thus programmers often have to turn to third-party

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-10 Thread Botond Ballo
If C++ wants a default, just package Cairo (or something else) as a library alongside Clang/LLVM or GCC. I think that's largely what's being proposed! Cheers, Botond ___ dev-platform mailing list dev-platform@lists.mozilla.org

C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Botond Ballo
Hi everyone, Here are some C++ standards proposals from the latest committee mailing that I think might be of interest to the Mozilla community: Portable C++ ABI: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4028.pdf Modules:

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Benoit Jacob
2014-06-09 15:31 GMT-04:00 Botond Ballo bba...@mozilla.com: Cairo-based 2D drawing API (latest revision): http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4021.pdf I would like the C++ committee's attention to be drawn to the dangers, for committee, to try to make decisions outside

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Botond Ballo
- Original Message - From: Benoit Jacob jacob.benoi...@gmail.com To: Botond Ballo bba...@mozilla.com Cc: dev-platform dev-platform@lists.mozilla.org Sent: Monday, June 9, 2014 3:45:20 PM Subject: Re: C++ standards proposals of potential interest, and upcoming committee meeting

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Benoit Jacob
proposals of potential interest, and upcoming committee meeting 2014-06-09 15:31 GMT-04:00 Botond Ballo bba...@mozilla.com: Cairo-based 2D drawing API (latest revision): http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4021.pdf I would like the C++ committee's attention

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Jet Villegas
It seems healthy for the core C++ language to explore new territory here. Modern primitives for things like pixels and colors would be a good thing, I think. Let the compiler vendors compete to boil it down to the CPU/GPU. There will always be the argument for keeping such things out of Systems

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Benoit Jacob
Sent: Monday, June 9, 2014 3:45:20 PM Subject: Re: C++ standards proposals of potential interest, and upcoming committee meeting 2014-06-09 15:31 GMT-04:00 Botond Ballo bba...@mozilla.com: Cairo-based 2D drawing API (latest revision): http://www.open-std.org/jtc1/sc22/wg21/docs

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Rik Cabanier
To: Botond Ballo bba...@mozilla.com Cc: dev-platform dev-platform@lists.mozilla.org Sent: Monday, June 9, 2014 3:45:20 PM Subject: Re: C++ standards proposals of potential interest, and upcoming committee meeting 2014-06-09 15:31 GMT-04:00 Botond Ballo bba...@mozilla.com

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Benoit Jacob
2014-06-09 16:27 GMT-04:00 Jet Villegas j...@mozilla.com: It seems healthy for the core C++ language to explore new territory here. Modern primitives for things like pixels and colors would be a good thing, I think. Let the compiler vendors compete to boil it down to the CPU/GPU. In the Web

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Rik Cabanier
On Mon, Jun 9, 2014 at 1:50 PM, Benoit Jacob jacob.benoi...@gmail.com wrote: 2014-06-09 16:27 GMT-04:00 Jet Villegas j...@mozilla.com: It seems healthy for the core C++ language to explore new territory here. Modern primitives for things like pixels and colors would be a good thing, I

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Jeff Gilbert
proposals of potential interest, and upcoming committee meeting On Mon, Jun 9, 2014 at 1:50 PM, Benoit Jacob jacob.benoi...@gmail.com wrote: 2014-06-09 16:27 GMT-04:00 Jet Villegas j...@mozilla.com: It seems healthy for the core C++ language to explore new territory here. Modern

Re: C++ standards proposals of potential interest, and upcoming committee meeting

2014-06-09 Thread Rik Cabanier
...@mozilla.com Sent: Monday, June 9, 2014 2:08:37 PM Subject: Re: C++ standards proposals of potential interest, and upcoming committee meeting On Mon, Jun 9, 2014 at 1:50 PM, Benoit Jacob jacob.benoi...@gmail.com wrote: 2014-06-09 16:27 GMT-04:00 Jet Villegas j...@mozilla.com