Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76063 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40020 invoked from network); 24 Jul 2014 20:41:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2014 20:41:54 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.41 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.41 mail-qa0-f41.google.com Received: from [209.85.216.41] ([209.85.216.41:65161] helo=mail-qa0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/60-55539-19F61D35 for ; Thu, 24 Jul 2014 16:41:53 -0400 Received: by mail-qa0-f41.google.com with SMTP id j7so3627481qaq.28 for ; Thu, 24 Jul 2014 13:41:55 -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=fDkD4tBP5N2DcwcPu7KIGi6ZqA1oQThhMrnzcXYYQDA=; b=cXXvhOj4I+CJ1d+l7pD7LPC/E1Nd5uBUWFtgT4FrKlaUp60TgkAAVjorWO8IxUxHv8 X5UJ0b9Dc6CxWhtARTyu11kuopTrfzY2metO6wF9uukpDJXCZ5vSusCLgFa+JieyYD8h 6vZJjVYqSxQNYjvIqI47kA18LY3GTo2spF5SIoBKhEyT13dkRoun+9VCov+FUVjgMT36 SDDKvTB1DJCwD2L0zijY6HpGfgTbRa7YvhcnDRoOsnH4FaftdkxoFoUeOYVnb3JbdC0I 0HN7pzVQBv/6HOBqlyE6Oy3Hc3jtFe+A7V7tEGhn6njegHOIFKki4RNqp6o1D+yAYi1w eeBw== MIME-Version: 1.0 X-Received: by 10.224.80.67 with SMTP id s3mr19066258qak.92.1406234515637; Thu, 24 Jul 2014 13:41:55 -0700 (PDT) Received: by 10.140.102.111 with HTTP; Thu, 24 Jul 2014 13:41:55 -0700 (PDT) In-Reply-To: <1D993D81-0C61-4759-B3A6-8611232F2A07@ajf.me> References: <53CFB2CD.5050703@hoa-project.net> <53D0062A.20905@gmail.com> <3D49DA70-E726-439B-94E7-F8888358C04D@benramsey.com> <53D0FC76.3080604@hoa-project.net> <53D10CE8.8090500@gmail.com> <4212D04D-0241-4887-A9DF-180958A31926@ajf.me> <53D11BBF.7040306@gmail.com> <53D15E99.4060803@gmail.com> <87fdfd1a00dcad32843001d02ee10108@mail.gmail.com> <1D993D81-0C61-4759-B3A6-8611232F2A07@ajf.me> Date: Thu, 24 Jul 2014 22:41:55 +0200 Message-ID: To: Andrea Faulds Cc: Zeev Suraski , Sara Golemon , Rowan Collins , PHP internals Content-Type: multipart/alternative; boundary=001a11c2d7ecc68ddf04fef67c7f Subject: Re: [PHP-DEV] PHP Language Specification From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c2d7ecc68ddf04fef67c7f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 24, 2014 at 10:26 PM, Andrea Faulds wrote: > > On 24 Jul 2014, at 21:23, Zeev Suraski wrote: > > > CPython is the name of the implementation, but python.org offers you to > > download Python, not CPython. CPython is an internal name kind of like > > php-src (more or less). In fact, as an average end user, you'd not kno= w > > about CPython at all. > > Of course. So far as users care, CPython is Python. So far as users care, > Zend PHP/ZPHP/CPHP/php-src/vanilla PHP/whatever is PHP. > > However, from an internals perspective, we need to be able to distinguish > the two and this becomes particularly important now due to HHVM and the > specification. > > So, we should decide on a name for the original PHP implementation. > -- > Andrea Faulds > http://ajf.me/ > > I still think that Python/CPython is a good example, it shows how confusing can it be when the reference implementation and the language has a different name: http://stackoverflow.com/questions/17130975/python-vs-cpython As Zeev mentioned the CPython name is mostly just used for to refer to the vanilla implementation when comparing to others, but the codebase of it still refer to itself as python. I think the only case when you can have a separate name for the reference implementation than the name of the language is at the start, if you do it anytime later, it will cause some headaches, but it isn't impossible as we can see from the python example. Ruby is also an interesting example, there are also a bunch of alternative implementations, the reference implementation refers to itself as ruby, and when comparing it to other implementations it is either called MRI (Matz's Ruby Interpreter) or CRuby. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c2d7ecc68ddf04fef67c7f--