Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109936 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 85233 invoked from network); 29 Apr 2020 22:22:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 22:22:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E0A981804C4 for ; Wed, 29 Apr 2020 13:55:36 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 ; Wed, 29 Apr 2020 13:55:36 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id e25so4154918ljg.5 for ; Wed, 29 Apr 2020 13:55:36 -0700 (PDT) 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=W/i22823X8SQvHhIA1gCdAHOeI8735lhC/OhEwa0o2w=; b=pN/j0F/m8QDSeM4KIg9en7hfpe85D8caoJ6gs1sB+GKdWH5sdijviFhU9HQeGMI2Kf 25GUA9s8T17QcQI5wgmSDJpcmYA+trnAy3PpQfYzZfVluWLCinaPD8jK80qgi+Sp+BRH RxNU3NIDHarkjfkdI+sL0Bc5ipInthC8rQE34tZvUe7e6d1VGcliQ0EpPmichzUOQEu6 CwGOnE6PHXlLjbAlnl/0xKjXTWS/NZ6xV1N0nEYASgRm6DXVv5XcxxgpM6vKWjDJ9ERW a3/trUB1u9NOYQdCxupAZpzJ281yBGtMEP7cZLrKKneCmWqgRHzn6Aqs1NVhhqae/0gB Famw== 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=W/i22823X8SQvHhIA1gCdAHOeI8735lhC/OhEwa0o2w=; b=NGHLY1sI8P5ah2pEjbKwkMyWxpfJ9+xOqvFsGL8uCOnDQdrEKDKT8dC1oo7QTwF8QE P5PgaB0qXgIEiq1NKv9j6ci/DOhrDBpnkahiij1c8zs78B0oz80K6qqKvFfzJTLE90OI IdJGleXHN4JbIhoSntC74OCx85ssjvChGjKsf2s0nKavyXV/CZh3zWYXnRQYxu70Y4kX 6EPxXxXJPKyTaAmqJz/q1Ku3vPqOOfOGqhQrUYPstuZ+0mz6PlDjLBNxw2t23/uTCThu 6Am06Oxr434wG/TsTpcHZLxS+5z3yJx9yw7engQQT4BLZrTQayJO2Zl50G9paBNg8TnS Nmhg== X-Gm-Message-State: AGi0PuZQDmLXqtX6pn02d7vGCVmH4bEiTWFAB6ygSaSMsSGuhJpzitBI MaKLeEzoMF3r5QA/2o2dHofYInsPysM0OyoJ4aU= X-Google-Smtp-Source: APiQypIsRk/jX2azSKrokDonX8UYvHZ08Xgtztw1NmFsNxNF1CnVoAnZViyGzG7iNHI0m24Jg3anWWahNTNe36hft5k= X-Received: by 2002:a05:651c:230:: with SMTP id z16mr43238ljn.185.1588193732647; Wed, 29 Apr 2020 13:55:32 -0700 (PDT) MIME-Version: 1.0 References: <2d5868d4-a773-ea64-4708-49564516e9f6@gmail.com> In-Reply-To: Date: Wed, 29 Apr 2020 21:55:22 +0100 Message-ID: To: Dan Ackroyd Cc: Henrik Skov , PHP internals Content-Type: multipart/alternative; boundary="00000000000044ec5105a4742b40" Subject: Re: [PHP-DEV] A streaming JSON parser in C From: cdtreeks@gmail.com (Aran Reeks) --00000000000044ec5105a4742b40 Content-Type: text/plain; charset="UTF-8" it would be amazing to see something like this introduced into PHP natively in the future. On Wed, 29 Apr 2020, 21:52 Dan Ackroyd, wrote: > On Wed, 29 Apr 2020 at 21:02, Henrik Skov wrote: > > > > Hi internals ! > > > > Recently someone enquired about adding a streaming JSON parser to PHP. > > There's also a JSON library that supports SIMD instructions and 'tree > walking', although that doesn't appear to be exposed in the PHP > extension available for it. > > https://github.com/crazyxman/simdjson_php > https://github.com/simdjson/simdjson > > My understanding is that FFI could be used to prototype a userland API > for testing different underlying JSON libraries, if anyone has the > time + energy. > > cheers > Dan > Ack > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --00000000000044ec5105a4742b40--