Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85250 invoked from network); 11 Jul 2018 03:54:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2018 03:54:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=iggyvolz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=iggyvolz@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.208.47 as permitted sender) X-PHP-List-Original-Sender: iggyvolz@gmail.com X-Host-Fingerprint: 209.85.208.47 mail-ed1-f47.google.com Received: from [209.85.208.47] ([209.85.208.47:33628] helo=mail-ed1-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/41-15421-16F754B5 for ; Tue, 10 Jul 2018 23:54:09 -0400 Received: by mail-ed1-f47.google.com with SMTP id x5-v6so14384879edr.0 for ; Tue, 10 Jul 2018 20:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cj/GbFvIRvI4VFE964AQD9R4ZA1s/CzGjMmZ1G4J2AY=; b=FXjuWBiDsbnwoO3R6iN1qNtT0XM8OdZO43uCO4DKJbuk2o8hGvlnf3XNLS3ETn67ad o1XulEZ3x5e+cc2lkAfuCLvmSnsfxBYbyDNcNaEHRVo0t+N5oXVPML0frqRRsyvXq7pw Ak2+ssaJrV+zTM+kZe15dWe/Pgudeg+QMNSyFufnfPMBFNFIaPAsWVu28takF9gOPXCU cXv0lFfUnsfVn0o6PhVwK2kDjaQY6ZFSVgJuTKBpof56riHbTlnKnVFOOCaAS3NaeyYq TQNqMcxLIT8w0FArIfCUeh+qr0ovELTS1rI8a4prWSBrSS5lnIAGU1b+jQS4FI710Aoa 0N/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cj/GbFvIRvI4VFE964AQD9R4ZA1s/CzGjMmZ1G4J2AY=; b=DWerP3swzHikdPz0L8z79iQakoULm/Yp1MpI3rsy4Emfyx+w95FKanyDPsat7COCkD dqe2Yf2qQLpOWG1nQUZ17Axwp/BOuqgn2VuNG80s1NmDYEox2Ew+wFRsacT4RSfKJoI+ BmFCridTNuSnTqvVWX3ugy2a6u9sPMWvUkv3/H3waRbBUZnRtXnKfCpgi/wxU/4oRkUC gUYznq5JVYfsFXwJdMkcfFRSy1HFOFfx03xYHQp+FnbWUFA+JD0IDfIzB8HxsxVvbc+d OG3AuIkFZx3sOZHQEv2YnEZ65ki1muw2L6V/AuOilQ4tyOIV7ixFFGA6XR1EeqNDSqEZ bCMQ== X-Gm-Message-State: APt69E3OiFp2uYaft3ZaE2rFjD89ytPHIacWf1KluT8fFXOcdeJ+Oi4E ABogUgp3ts0aqXUpSLe9exNk2K+jHzUBYU5I/1ljhF8= X-Google-Smtp-Source: AAOMgpf2WEV9vkS3UztCE4mL+qVZjLOc1eOgtjggPERy3iORl4WfG1cYNitYj+WMXJok9KswipUVrxT7JyXMqHEvQjg= X-Received: by 2002:a50:b4b0:: with SMTP id w45-v6mr29350432edd.254.1531281246422; Tue, 10 Jul 2018 20:54:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:3745:0:0:0:0 with HTTP; Tue, 10 Jul 2018 20:54:05 -0700 (PDT) In-Reply-To: References: <6b6ef6d3-b699-1439-f9bf-acdd713191a5@librelamp.com> Date: Tue, 10 Jul 2018 23:54:05 -0400 Message-ID: To: Walter Parker Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000be8aaf0570b132d0" Subject: Re: [PHP-DEV] Unifying logical operators From: iggyvolz@gmail.com (Ryan) --000000000000be8aaf0570b132d0 Content-Type: text/plain; charset="UTF-8" On Tue, Jul 10, 2018 at 10:58 PM, Alice Wonder wrote: > Using github may not be the most reliable method. > > Look at what is most popularly used in composer dependencies. Absolutely - but it's the first one that came to mind when thinking of "how to get popular repositories really quick". I'm sorting by stars, but I can definitely also check any dependencies if they aren't already in the list. > > For example, I know xor is used in PHP Codesniffer which while likely not > often part of deployed code is very often a devel dependency. > > I think phpunit also uses xor and is also very popular. > > I use xor myself but my use is purely hobby (I have a pseudo-RNG written > in PHP that can take any source of data, random or not, and pass it through > a filter that makes it pass pRNG tests - showing that passing tests doesn't > mean a random source is necessarily random enough for cryptography) > > Anyway as I believe you have already conceded, nuking xor would require > many projects used a lot to have to change. I'm absolutely not trying to take away behaviour with real use cases like xor. That's why I'm leaning more heavily on the aliasing side so it would break very little code. If the decision was made to remove the text operators (or whatever the proper name for and, or, and xor is), there would need to be a symbolic xor operator. On Tue, Jul 10, 2018 at 11:37 PM, Walter Parker wrote: > There are 67 Million repositories on GitHub, is picking the top 30 PHP > projects a representative sample of PHP use across the Internet? > 80% of web servers where the back end language was known had PHP according > to a recent survey. > Picking 30 popular open source projects might bias the results of what you > think is going in PHP usage. Of course not - I'm working on expanding the search (right now to 300, and then I'll probably do 3,000 overnight) as we speak and I'll go as far as my hard drive (and patience, and GitHub API) will allow. I don't really know of a good way to get usage metrics for a token beyond "get some code using PHP and check for the token". --000000000000be8aaf0570b132d0--