Re: Official Preprocessor

From: Date: Fri, 03 Feb 2023 22:48:14 +0000
Subject: Re: Official Preprocessor
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-119464@lists.php.net to get a copy of this message
Hi, why not using the existing Typescript programming language and transpile it to PHP? :) There are community examples for doing that: "ts2php" https://www.npmjs.com/package/ts2php Maybe creating an own PHP transpiler for Typescript written in pure PHP (community friendly) would be an alternative of creating a complete new high ievel language developed in C-programming langage. Best regards, Thomas Am 03.02.2023 20:17 schrieb Rowan Tommins:
On 3 February 2023 18:30:00 GMT, "Olle Härstedt" <olleharstedt@gmail.com> wrote:
You'd have to rewrite Psalm or Phpstan in C if you want it to be part of php-src. Or write a completely new project.
I don't think that's necessarily true. There are already tools like run-tests written in PHP and shipped with php-src, PECL is written in PHP, and there have even been suggestions that rewriting some included functions in PHP would be a good long-term goal. The far larger concerns are governance, resources, and release cycles. Regards, -- Rowan Tommins [IMSoP]


« previous php.internals (#119464) next »