Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112062 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74842 invoked from network); 15 Oct 2020 15:09:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Oct 2020 15:09:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DB1501801FD for ; Thu, 15 Oct 2020 07:25:08 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 15 Oct 2020 07:25:07 -0700 (PDT) Received: by mail-wr1-f45.google.com with SMTP id n18so3744379wrs.5 for ; Thu, 15 Oct 2020 07:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=08gOKaoSWdPJjFpNQ2BLthS0w29AUhn7+pf+6LSfiOY=; b=biNTcGEmRiLrQd3R9hnDdrAFpTF/ZZGEDeQ8Rt5OV4WKmtQzEGPi0vYqLcWtSKk++j auka0yRKoMv6fyqT5+hC7qpqdcX7Qq+efN8ddp8Lf7vQGXsOnayXlOm9lQVrIC6xcoM1 nYmryfuPUBjPk+43NcGZh0zikZ1IYWCMqFEp0IBsD2n8qD5lI6Xn583Invk/BzY2UG4Q sddIkAfXgXnZsbdN8/qrvqO1m+KQSwAoYkg5jGKtcDy9Ouryn9Do3kI3qpAWcetyE++p Mjnsib5JQlv+2KKqr32UW6x4O1F6Z98Dyk4+lwicfSkbnfVQX5n2zA9+kZ7Z+EdVDY8H RT3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=08gOKaoSWdPJjFpNQ2BLthS0w29AUhn7+pf+6LSfiOY=; b=bPQx327lsx/hTQT3ZvE+4j9AYKb8YwPYGzx1mQj92Cc17CM/sGv5frvJI0qU6A386o u0ZrXy5rAy/4lAsQgu9uDxydQHISkGaxyzpKjUGI6Cwp5N6IZZgEV/07b2plyROwai2c oOLjG9H2fnoIwi79Rflv8kpmtFJ7Ag9dLr8HLkFArrHCqvQwhc7TuXrwy2gsiN79+yDn Xgf5YgehoW0QADSf5+reHJXFQkGOQ2B6cni+OBU+4VXzIgQcCn9xszFyJN9mTEkpOy6w U2pk8K/lsa7yFilLXEwGP+VT3TqlASx1znC5cAJOsNNg8Fk/yaPjoLfcBxhAlyfaUltl No1g== X-Gm-Message-State: AOAM532dSokPzEmdrP6h2W/OwK6/7fgO6dyOjouNuPy0w4pUl98F3Ycf olfAaSpz4yWDyvqcaXZv2YNhQGQUCLLQQM5CF+deUg== X-Google-Smtp-Source: ABdhPJym3uEJ1+sA9KN0KouG3BYbCx3y9y+hQRuPvLcU0xjPiCWM3gv2t6dmUNdEOSPMfDm2YKg62ZjqSpcBwYYJVfY= X-Received: by 2002:adf:fc08:: with SMTP id i8mr5019918wrr.116.1602771903575; Thu, 15 Oct 2020 07:25:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 15 Oct 2020 16:24:52 +0200 Message-ID: To: tyson andre Cc: Matthew Brown , Roman Pronskiy , Internals Content-Type: multipart/alternative; boundary="000000000000f80f4e05b1b66925" Subject: Re: [PHP-DEV] PHP 8 release announcement page on php.net From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000f80f4e05b1b66925 Content-Type: text/plain; charset="UTF-8" On Wed, Oct 14, 2020 at 1:56 AM tyson andre wrote: > Hi internals, > > > As far as php.net can help with PHP's reputation, I think a brief > homepage > > intro that showcased some modern-looking PHP code would be great (e.g. > > typescriptlang.org, golang.org). The docs design could also be > > slightly tweaked to make everything seem newer, while still keeping the > > (very good) content basically the same. > > That reminds me of an idea I had a while ago: > One of the features I've seen on many other programming > languages' documentation and tutorials was the ability to run and edit the > example snippets. > It may help in understanding the content of tutorials or example snippets > for functions, > - e.g. seeing what happens if code is rearranged > or how PHP handles edge cases > - It also allows new developers to try out php before deciding to install > it. > > Right now, you can read the examples in > https://www.php.net/manual/en/language.variables.scope.php > and copy them to run them locally, but you can't run them and see their > output > (as plain text or html, depending on context) > > Some examples in other languages: > > - MDN has JavaScript demos in the browser, e.g. > > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some > - Rust has https://play.rust-lang.org/ (run on the server side) > - golang has https://tour.golang.org/welcome/1 (run on the server side) > > There's two main options available for testing out php in a browser right > now: > > - A general sandboxed php implementation hosted by the owners of php.net > (requires that it be secured and may lead to additional hosting costs), > https://3v4l.org/ (not open source https://3v4l.org/about - but similar > to what I was thinking of) > or https://psalm.dev/ (open source) are projects in that area > (Matthew Brown is one of the authors of Psalm) > - A WebAssembly solution, e.g. https://phan.github.io/demo/ (forked from > https://oraoto.github.io/pib/) > (I'm one of the maintainers of Phan) > > WebAssembly has some noticeable drawbacks such as requiring a modern > browser, > requiring a large download, and requiring more RAM than an ordinary > website. > Many other websites for programming languages have moved to sandboxed > implementations > hosted on an actual server. > > Thanks, > - Tyson > Sorry to step in here as this crowds out the original post too much imho, this is really a tangential concern from Romans original post though. Inline execution would be really awesome, but coupling this to a release announcement to PHP 8 sets both projects up for failure imho. To expand back to the topic, if we think Romans idea is great, then the next steps would be to enable Roman to put this in place for the PHP 8 release. Its only 6 few weeks out, so going this backwards i would say 1. October: RMs and/or php-web maintainers should give their go on the idea (someone else?), so that more detailed creative time investment is not going to waste. 2. until mid November: Roman's group of contributors have time to finalize creative design and copywirting 3. until mid November Someone with access to php-web would volunteer to guide through technical roadblocks / deployment of the release announcement, maybe keeping it simple as a static html page for now 4. ~20th November: Page is rolled out with a date based feature flag? > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000f80f4e05b1b66925--