Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103560 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4084 invoked from network); 6 Dec 2018 20:01:16 -0000 Received: from unknown (HELO mail-it1-f182.google.com) (209.85.166.182) by pb1.pair.com with SMTP; 6 Dec 2018 20:01:16 -0000 Received: by mail-it1-f182.google.com with SMTP id p197so2382175itp.0 for ; Thu, 06 Dec 2018 08:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WiKSCYd3gvXruJMq81wOSWnASsT3f+4WtsgkRlxvQyg=; b=cNq6ZEc2Ps71yByR5Tdp9ux/Yl1f1EMRTGM1CCAzIuJUqT7zfXG32IW+JyLHr1IsHL uHx7ijFMFltnUZIf93V61j8kpa/OGIuu+2KMqDArRf0bCRRms832uUlYepcY7RGYWpxv O1B6LbsISYunzKI1t4zRFogxW/aSmAwanuKbA3jwV2kcLNspIi8G4HsssRxlETXINSDc TcuG4RY+sl4sMCuDT3CKLXaq14Z2/EmX1j3LpdJ670/w5uObY8/fUIOxo34eDwiOnvnT OkkOem5FRu6DgWimSrPhAmvb2ULCfe4cG+cFqZ3aQoPSHRq9T0gWrKNQq1o6Zim2asEB 6n7g== 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=WiKSCYd3gvXruJMq81wOSWnASsT3f+4WtsgkRlxvQyg=; b=i3KV2tq48rEUqJ+lzF7OlxrypiYwtzfJOqE1ng87pzWb66zFhYPjYn3Tqp/gGXt7d9 MI8ArTD4pCl2o9wcYYV8DOguzg4vN5Udbv3BFQQQ5qxaX+Ho0/0hskSDNfpppF1saOPH EnSuqRbpX6xItMlTIPwLVnmeULcYAGyGI9PpSX6jDJKj01+mzT1WOP/ZwxPd9X0qN9/f dUspORpgSWHn1KYs94ArERKd+J7G5iniAumVLESMvKRmC4dLQG9v2AfmJfdfWTZPiO2E wJC/1vMeTv5m1sKfBxPN+1VAvK1oazZGsODKBxGDUuW1A3Vp3uwVnxzxoxPxBPICMi2h +9qA== X-Gm-Message-State: AA+aEWb+H1bIjHzZFVeML/vqjWK3wj5/DaLM1AMn0h35uGfI2eFx3sSF 5NtJiIWjPXId12LwVyjAz5v/iZ4h3FGpgwAYsOjyqA== X-Google-Smtp-Source: AFSGD/Vdl/NjPthNrYCYe06W094ae3QvsC0z6VgaYHbtjLqSdbKaJcfC01du9bZyzbQXjJ/374c0vv49LYiowsugrdY= X-Received: by 2002:a02:b19b:: with SMTP id t27mr24744057jah.72.1544113630363; Thu, 06 Dec 2018 08:27:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 6 Dec 2018 17:26:57 +0100 Message-ID: To: Dmitry Stogov Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000006e58d3057c5cf85d" Subject: Re: [PHP-DEV] [RFC] FFI - Foreign Function Interface From: ocramius@gmail.com (Marco Pivetta) --0000000000006e58d3057c5cf85d Content-Type: text/plain; charset="UTF-8" Looks very interesting, especially for simplifying the landscape of extensions. Still, the amount of abbreviations and naming issues is quite huge: needs a lot of care on that end, IMO. Even just the name of the type (`FFI`) can simply be expanded to `ForeignFunctionInterface`. Just my 2 cents. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Thu, Dec 6, 2018 at 4:54 PM Dmitry Stogov wrote: > Hi Internals, > > > I would like to start discussion of FFI RFC https://wiki.php.net/rfc/ffi > > > This extension allows calling C function and accessing C data structures > in pure PHP. > > In conjunction with preloading it gives a possibility to write PHP > extension in PHP itself. > > The extension was tested on attempt to build TensorFlow PHP binding. > > > Thanks. Dmitry. > --0000000000006e58d3057c5cf85d--