Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-08-02 Thread Matt Wilmas
Hi all, - Original Message - From: "Matt Wilmas" Sent: Wednesday, July 08, 2015 Hi Kalle, - Original Message - From: "Kalle Sommer Nielsen" Sent: Wednesday, July 08, 2015 Hi Matt 2015-07-08 17:00 GMT+02:00 Matt Wilmas : Hi all, - Original Message - From: "Levi Morr

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-07-08 Thread Levi Morrison
On Wed, Jul 8, 2015 at 9:16 AM, Matt Wilmas wrote: > Hi Kalle, > > > - Original Message - > From: "Kalle Sommer Nielsen" > Sent: Wednesday, July 08, 2015 > >> Hi Matt >> >> 2015-07-08 17:00 GMT+02:00 Matt Wilmas : >>> >>> Hi all, >>> >>> - Original Message - >>> From: "Levi Morriso

RE: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-07-08 Thread Anatol Belski
lien Pauli; Derick Rethans > Subject: Re: [PHP-DEV] Thoughts on C version supported for PHP-Next > > Hi Kalle, > > - Original Message - > From: "Kalle Sommer Nielsen" > Sent: Wednesday, July 08, 2015 > > > Hi Matt > > > > 2015-07-08 17:00

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-07-08 Thread Matt Wilmas
Hi Kalle, - Original Message - From: "Kalle Sommer Nielsen" Sent: Wednesday, July 08, 2015 Hi Matt 2015-07-08 17:00 GMT+02:00 Matt Wilmas : Hi all, - Original Message - From: "Levi Morrison" Sent: Sunday, May 10, 2015 Again, this is a C11 feature. It is supported by clang,

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-07-08 Thread Kalle Sommer Nielsen
Hi Matt 2015-07-08 17:00 GMT+02:00 Matt Wilmas : > Hi all, > > - Original Message - > From: "Levi Morrison" > Sent: Sunday, May 10, 2015 > >>> Again, this is a C11 feature. It is supported by clang, gcc and MSVC. >> >> >> To clarify this a bit: they permit anonymous unions in C89 and C99 >

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-07-08 Thread Matt Wilmas
Hi all, - Original Message - From: "Levi Morrison" Sent: Sunday, May 10, 2015 Again, this is a C11 feature. It is supported by clang, gcc and MSVC. To clarify this a bit: they permit anonymous unions in C89 and C99 code (meaning you do not need to pass flags like -std=c11 to enable it

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-13 Thread Anatol Belski
Hi Levi, On Sun, May 10, 2015 22:01, Levi Morrison wrote: >> Again, this is a C11 feature. It is supported by clang, gcc and MSVC. >> > > To clarify this a bit: they permit anonymous unions in C89 and C99 > code (meaning you do not need to pass flags like -std=c11 to enable it). > I've added makef

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-11 Thread Pierre Joye
hi Levi! On Mon, May 11, 2015 at 3:01 AM, Levi Morrison wrote: >> Again, this is a C11 feature. It is supported by clang, gcc and MSVC. > > To clarify this a bit: they permit anonymous unions in C89 and C99 > code (meaning you do not need to pass flags like -std=c11 to enable > it). https://gith

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-11 Thread Anatol Belski
Hi, On Sun, May 10, 2015 22:01, Levi Morrison wrote: >> Again, this is a C11 feature. It is supported by clang, gcc and MSVC. >> > > To clarify this a bit: they permit anonymous unions in C89 and C99 > code (meaning you do not need to pass flags like -std=c11 to enable it). > particularly regardin

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-10 Thread Levi Morrison
> Again, this is a C11 feature. It is supported by clang, gcc and MSVC. To clarify this a bit: they permit anonymous unions in C89 and C99 code (meaning you do not need to pass flags like -std=c11 to enable it). -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-10 Thread Levi Morrison
A feature of C11 that would be useful is anonymous unions: struct zval { union { long lval; double dval; }; enum { IS_LONG, IS_DOUBLE } type; }; int main(void) { struct zval zv; zv.lval = 1; zv.type = IS_LONG; return 0; } Again, thi

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-10 Thread Levi Morrison
> It is hard to judge what "widely supported" means. PHP is so widespread > that people run it on embedded systems, 10+ year old servers (see old > masters.php.net) and compile them with compiler most of us have never > touched (suncc, pcc). Both suncc and pcc support C99. Are you aware of any oth

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-08 Thread Sara Golemon
On Fri, May 8, 2015 at 9:23 PM, Pierre Joye wrote: > Maybe we can create a repo on github to share them? > > I can create one, yes I prefer github than PHP's git, much easier to > manage, issues, etc > I say go for it, since you're our liason to the MSVC team. For me, I agree with what Nikita sai

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-08 Thread Pierre Joye
Hi! Thanks! Maybe we can create a repo on github to share them? I can create one, yes I prefer github than PHP's git, much easier to manage, issues, etc Cheers, Pierre On May 9, 2015 11:10 AM, "Levi Morrison" wrote: > On Fri, May 8, 2015 at 7:13 AM, Levi Morrison wrote: > > On Fri, May 8, 20

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-08 Thread Levi Morrison
On Fri, May 8, 2015 at 7:13 AM, Levi Morrison wrote: > On Fri, May 8, 2015 at 5:01 AM, Pierre Joye wrote: >> On May 8, 2015 4:42 AM, "Christoph Becker" wrote: >>> >>> Nikita Popov wrote: >>> >>> > [...] What's our current minimum required vc version? >>> >>> As of PHP 5.5 at least VC11 (Visual S

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-08 Thread Levi Morrison
On Fri, May 8, 2015 at 5:01 AM, Pierre Joye wrote: > On May 8, 2015 4:42 AM, "Christoph Becker" wrote: >> >> Nikita Popov wrote: >> >> > [...] What's our current minimum required vc version? >> >> As of PHP 5.5 at least VC11 (Visual Studio 2012) is required for Windows >> builds. The currently a

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-08 Thread Pierre Joye
On May 8, 2015 4:42 AM, "Christoph Becker" wrote: > > Nikita Popov wrote: > > > [...] What's our current minimum required vc version? > > As of PHP 5.5 at least VC11 (Visual Studio 2012) is required for Windows > builds. The currently available snapshots of master are also built with > VC11[1].

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-07 Thread Christoph Becker
Nikita Popov wrote: > [...] What's our current minimum required vc version? As of PHP 5.5 at least VC11 (Visual Studio 2012) is required for Windows builds. The currently available snapshots of master are also built with VC11[1]. [1] -- Christoph M. Becker

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-07 Thread Levi Morrison
On Thu, May 7, 2015 at 12:28 PM, Nikita Popov wrote: > On Mon, Jul 28, 2014 at 9:41 PM, Pierre Joye wrote: > >> >> On Jul 28, 2014 9:14 PM, "Dmitry Stogov" wrote: >> > >> > I think opinions about readability are subjective. >> > >> > The real problem, that it'll break compatibility with old unco

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2015-05-07 Thread Nikita Popov
On Mon, Jul 28, 2014 at 9:41 PM, Pierre Joye wrote: > > On Jul 28, 2014 9:14 PM, "Dmitry Stogov" wrote: > > > > I think opinions about readability are subjective. > > > > The real problem, that it'll break compatibility with old uncommon > > compilers. > > I'm not sure if new MSVC versions suppo

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Lester Caine
On 25/07/14 17:37, Julien Pauli wrote: > We nowadays support C89 officially . It is very stable and well implemented > in almost every compiler nowadays, but it is old and lack some features we > could benefit from. Isn't it interesting that on one hand we have a continual complaint that PHP is ge

[PHP-DEV] 回复: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Wei Dai
> > 发自我的 iPad > > > 在 2014年7月28日,22:20,Andrea Faulds mailto:a...@ajf.me)> 写道: > > > > > > On 28 Jul 2014, at 15:00, Derick Rethans > (mailto:der...@php.net)> wrote: > > > > > > Well, we don’t need to allow all of C99. We can simply allow using > > > > features that are widely supported a

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Levi Morrison
I support the move to C99... but not yet. We definitely need a longer period for Visual Studio support; I suspect over time more compilers will support C99 now that VC does. More importantly I'd like to see any standard adherence to be more strict so we can compile with -pedantic. Some of the big

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Xinchen Hui
发自我的 iPad > 在 2014年7月28日,22:20,Andrea Faulds 写道: > > > On 28 Jul 2014, at 15:00, Derick Rethans wrote: > >>> Well, we don’t need to allow all of C99. We can simply allow using >>> features that are widely supported and actually useful. For example, >>> declarations between statements, >> >> I th

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Pierre Joye
On Jul 28, 2014 10:13 PM, "Andrea Faulds" wrote: > > > On 28 Jul 2014, at 20:14, Dmitry Stogov wrote: > > > The real problem, that it'll break compatibility with old uncommon compilers. > > I'm not sure if new MSVC versions support it, but the one I use - does not. > > > > Breaking something with

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Andrea Faulds
On 28 Jul 2014, at 20:14, Dmitry Stogov wrote: > The real problem, that it'll break compatibility with old uncommon compilers. > I'm not sure if new MSVC versions support it, but the one I use - does not. > > Breaking something without a real reason is not a good move. While C99 itself would,

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Pierre Joye
On Jul 28, 2014 9:14 PM, "Dmitry Stogov" wrote: > > I think opinions about readability are subjective. > > The real problem, that it'll break compatibility with old uncommon > compilers. > I'm not sure if new MSVC versions support it, but the one I use - does not. We are working with the vc team

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Dmitry Stogov
I think opinions about readability are subjective. The real problem, that it'll break compatibility with old uncommon compilers. I'm not sure if new MSVC versions support it, but the one I use - does not. Breaking something without a real reason is not a good move. Thanks. Dmitry. On Mon, Ju

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Andrea Faulds
On 28 Jul 2014, at 15:00, Derick Rethans wrote: >> Well, we don’t need to allow all of C99. We can simply allow using >> features that are widely supported and actually useful. For example, >> declarations between statements, > > I think that makes code a lot less readable, so I would not be

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Derick Rethans
On Fri, 25 Jul 2014, Andrea Faulds wrote: > > On 25 Jul 2014, at 18:02, Nikita Popov wrote: > > > I think the main question here is whether MSVC will have good C99 support > > by the time PHP-Next is released. The other major compilers (GCC, Clang, > > Intel) may not support all of C99 (esp stu

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Andrea Faulds
On 28 Jul 2014, at 12:41, Huqiu Liao wrote: > IMP, C89 is simple enough and reliable. Though it is old. it is wildly > supported. It is simple, reliable and widely-supported, sure, but it lacks certain features that could be useful. In 2014, while not all compilers support all of C99, most s

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-28 Thread Huqiu Liao
IMP, C89 is simple enough and reliable. Though it is old. it is wildly supported. On Jul 26, 2014, at 1:22 AM, David Soria Parra wrote: > On 2014-07-25, Andrea Faulds wrote: >> >> On 25 Jul 2014, at 18:02, Nikita Popov wrote: >> >>> I think the main question here is whether MSVC will have g

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-25 Thread Julien Pauli
On Fri, Jul 25, 2014 at 7:27 PM, Sara Golemon wrote: > > > On Jul 25, 2014, at 9:37, Julien Pauli wrote: > > > > Why not take PHP-Next step to support a more recent version ? > > Even C99 would be allright and C11 would be super cool (though pretty > > recent). > > > I'd stop with C99 for now.

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-25 Thread Sara Golemon
> On Jul 25, 2014, at 9:37, Julien Pauli wrote: > > Why not take PHP-Next step to support a more recent version ? > Even C99 would be allright and C11 would be super cool (though pretty > recent). > I'd stop with C99 for now. One of PHP's strengths is that it builds /anywhere/. I'd hate to l

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-25 Thread David Soria Parra
On 2014-07-25, Andrea Faulds wrote: > > On 25 Jul 2014, at 18:02, Nikita Popov wrote: > >> I think the main question here is whether MSVC will have good C99 support >> by the time PHP-Next is released. The other major compilers (GCC, Clang, >> Intel) may not support all of C99 (esp stuff like FP

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-25 Thread Andrea Faulds
On 25 Jul 2014, at 18:02, Nikita Popov wrote: > I think the main question here is whether MSVC will have good C99 support > by the time PHP-Next is released. The other major compilers (GCC, Clang, > Intel) may not support all of C99 (esp stuff like FP pragmas), but have a > reasonable degree of

Re: [PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-25 Thread Nikita Popov
On Fri, Jul 25, 2014 at 6:37 PM, Julien Pauli wrote: > Hey ! > > Just a quick word to launch the debate. > Disclamer : This is not a C vs C++ talk, thank you :-) > > We nowadays support C89 officially . It is very stable and well implemented > in almost every compiler nowadays, but it is old and

[PHP-DEV] Thoughts on C version supported for PHP-Next

2014-07-25 Thread Julien Pauli
Hey ! Just a quick word to launch the debate. Disclamer : This is not a C vs C++ talk, thank you :-) We nowadays support C89 officially . It is very stable and well implemented in almost every compiler nowadays, but it is old and lack some features we could benefit from. Why not take PHP-Next st