Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103584 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 18107 invoked from network); 11 Dec 2018 19:15:28 -0000 Received: from unknown (HELO mail-it1-f176.google.com) (209.85.166.176) by pb1.pair.com with SMTP; 11 Dec 2018 19:15:28 -0000 Received: by mail-it1-f176.google.com with SMTP id x19so4200143itl.1 for ; Tue, 11 Dec 2018 07:42:38 -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=idpZq5Wl6L19KYDZgMPG8qpSCv46Z6+K6zLMIgiP528=; b=jZkgo3C+oVwhc51KRp2r7Gs/lFTnbfGqxmRySQ+VeJYGhYDIzsXgjeF9+zvmeQ9amD POiGWUcoiyNfJLnBtMYONSCG6zBl8PUXPFMw9T4kXkpEbqyJXBOGrK9/SPHaruAVbfOS XyHMlGss3EOVO9+e9okNZT68NzqKbYkD0Fu+/TTX2by11NLi50qpxNtQbe48kpOfhXgK RyIL3UZsUhPeFfN+DkAeIqWRgRtKqWeBCgJxqnVY16NBsxOGfUE/0sJiX2sZL6dDlS5b bCw723l/6OBRoEuUQFUpLnE/HGcHwJUC7DzKl2xkEP7K32HbmecUGrjHYNSnFGdkquHH GU1A== 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=idpZq5Wl6L19KYDZgMPG8qpSCv46Z6+K6zLMIgiP528=; b=QHjLDsnpnmRYfEySeFxyKUcXisRYb3nM4fgB6zcwP/QXf/ahoBCSHcBB4C+eeYzi15 TR1RxxWzolZG/VAeBYO6Uz93PyGAnt9a/QWZgyzz9pvNWhqLub5JE3NzBcl1CrUCqQfD UL7fFdWLCeiYPg1t+QHEJ70OsnyJjmhJ6a+J1OjRd4AYZ7X42T4BQ3xUu8Fz/45u77lI BgyIRfYUH02iNi5Rx3madz/zdpIiBRi7o2yq6IwFgquX7xJnody0OKspnY0n5RmCsnWC gukD/PeMa+33kS0LMzWj69SZoPagHORaLbFk5phBGo7qHDr8wmWzwaUieECuKXtNzRVI YAMA== X-Gm-Message-State: AA+aEWbfIfOLqM00MIj+ioGVqntVgR2fS4Bx+JX931AHTufRoOtFhC7g GmpVQBD5SRHuzlLo1YM/GTaSqbibUWKeUju+3g+vRKTT X-Google-Smtp-Source: AFSGD/W0cObZtmGKIu2UtrI8aRYCk6Ez/1uXPAlL0sQTDR1JbO1RyJ0RJs+A5JH9dNzkx+8T4EDIMC3JrZlCSKxdnek= X-Received: by 2002:a24:a141:: with SMTP id n1mr2682173iti.31.1544542958118; Tue, 11 Dec 2018 07:42:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 11 Dec 2018 16:42:25 +0100 Message-ID: To: Dmitry Stogov Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000005bee3a057cc0eedc" Subject: Re: [PHP-DEV] [RFC] FFI - Foreign Function Interface From: ocramius@gmail.com (Marco Pivetta) --0000000000005bee3a057cc0eedc Content-Type: text/plain; charset="UTF-8" > People who don't know what FFI is, don't need it. I think this is a very dangerous way of designing, writing and documenting software. I appreciate your efforts in pushing this forward, but please reconsider when approaching the naming problematic, because this point of view is extremely flawed. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Tue, Dec 11, 2018 at 4:37 PM Dmitry Stogov wrote: > Hi Marco, > > > Some API and naming issues may be changed, e.g. FFI::array_type() was > renamed to FFI::arrayType(). > > Changing FFI into ForeignFunctionInterface looks, like an overhead. > People who don't know what FFI is, don't need it. > > > I surprised, there are no any problem reports... > > It seems, like few people on @internals tried it. > > > Thanks. Dmitry. > > > > > ------------------------------ > *From:* Marco Pivetta > *Sent:* Thursday, December 6, 2018 7:26:57 PM > *To:* Dmitry Stogov > *Cc:* PHP Internals List > *Subject:* Re: [PHP-DEV] [RFC] FFI - Foreign Function Interface > > 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. > > --0000000000005bee3a057cc0eedc--