Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12620 invoked from network); 25 Jul 2014 17:02:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2014 17:02:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.49 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.218.49 mail-oi0-f49.google.com Received: from [209.85.218.49] ([209.85.218.49:34469] helo=mail-oi0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/06-08559-DBD82D35 for ; Fri, 25 Jul 2014 13:02:54 -0400 Received: by mail-oi0-f49.google.com with SMTP id u20so3556854oif.36 for ; Fri, 25 Jul 2014 10:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IACsvsFLdw7EF5PLVr+ZqLqc2JdszCpLJLNBhht6Gl0=; b=JckH1YZh2TWjFVnGMgjGR+0CINXgzKxzTXG1SIuYqaPo6nESRO1S+TICC/xMEVMMzg RkgelkYgMXZj4jHoJi2sK9Ei7+YYQBcqX5bbF0njvzhhVhosMGixR02dUoma+w+HaUgq UJOFKU/l0FUR1n8DAkHC00mROiI2uit4o+Cdo4yNUCy3lq0PME+JuGa3eqvE1gnxlYLj Jaep9Wv1ZliTNOA21pt1mpG6wudIsRTHySS1mS/yHAtw2icP/TPba9opEWh/CfV5a9PG FNgCMw0y6Af7GELmHD8AjXGW0anWNxzMXcB8CqMUUkAgltp0rhCEQr0MZN9OUiZK6Kr1 8e4g== MIME-Version: 1.0 X-Received: by 10.60.103.195 with SMTP id fy3mr10468726oeb.35.1406307776634; Fri, 25 Jul 2014 10:02:56 -0700 (PDT) Received: by 10.182.132.2 with HTTP; Fri, 25 Jul 2014 10:02:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 Jul 2014 19:02:56 +0200 Message-ID: To: Julien Pauli Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e01182c0a78a27804ff078bbc Subject: Re: [PHP-DEV] Thoughts on C version supported for PHP-Next From: nikita.ppv@gmail.com (Nikita Popov) --089e01182c0a78a27804ff078bbc Content-Type: text/plain; charset=UTF-8 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 lack some features we > could benefit from. > > 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 know we support lots of compilers (even if that's not really documented), > and some of them could fail at supporting some C versions. > > However, as PHP-Next is a big step in modernizing PHP, why not have a > discussion about the C versions our souce code base should support ? > > Just to say, perhaps it's a dead and debate because of a big blocker point. > 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 support. If we can, I'd be very much in favor of using C99. In particular mixed code+declarations is a major code quality improvement to me. Nikita --089e01182c0a78a27804ff078bbc--