Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109935 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83575 invoked from network); 29 Apr 2020 22:18:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 22:18:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B441A1804C4 for ; Wed, 29 Apr 2020 13:51:52 -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,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (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:51:51 -0700 (PDT) Received: by mail-vs1-f54.google.com with SMTP id l25so2354821vso.6 for ; Wed, 29 Apr 2020 13:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CSyXhRfm968jKOaQYvFeCRNCIzsMIqubCSc5Y8pJ094=; b=IYyYgxzv/u7kbyAEVfqZOxSnj32QQCkaS+KtuGWq2K9pN3ZlFbt/cV1wY8S4P7h85S vUw7roD2SqIKxLSuWgG7iAZThUpefXO/atR4dEe03CYcNaIb8KH3dB2PO07moaV98cMm TCHDRIXY7aLhY6E4+UYhdu2n7WLKkXr2qNcC/64TkKWg6JFUKUW7Fd2eN7YXKmOSHfEB SXrG8N9mNv2LUHozy6ADJ+yDOdnWy0tpw8kK4NAnZYeGsCnaoAoFqexaZADPt3ZfWwLb mdbPcyG3M6kK9ZeefkCsDd8Lne6zRkuxAcjeUGqdtEfvhicKRKM0cqxQdPaF1YKtZd+M pORA== 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=CSyXhRfm968jKOaQYvFeCRNCIzsMIqubCSc5Y8pJ094=; b=gUA6Uw2/IKmYF6BeGhC32TxtNBcAuaZGV8oPspSc3RsCXl/limgGzq0kLUmLpc/7Pr JnFz+1Ldjq2UeRjaXlDGuZ5ogFZqM3hBrUCadGqGHw445+ijvHH82aX3LlWYDBWqXLCQ uEEfucgWKdjIHkJkBcisGmM5Gvkewf9hzXFdalrf2Vom3hX2Pf5ObKGC0jnhkcWuBvBB Eubp/JeQOMFET/ooJfSjvR3AJil+/hjY1CmnIdiqV9s2+rDbR5klK89mNEqUqBJmhQvF 2WG985IMgPbAivhB8A0qLrMCs/mWQKQseCUbo/aEr7YikSjH4O2DZa12GpDo81ru+li/ zDog== X-Gm-Message-State: AGi0Pub1ofhBuRxmP6Nq83GlYDrPcexiqNVp6DF9WRNe+erLA/LVCsHw BnGB0Tq0zKbz3L8p71ZBRoAajw939aVYiBX5EXAcyg== X-Google-Smtp-Source: APiQypK39GYM0QQUeECix7Cm5t8Tp9i2RwfGdnlB1b7GGlM6sh8kldNSVZW4xvmwvmObJWbwEStnHE92mggxX5C/fD8= X-Received: by 2002:a67:2504:: with SMTP id l4mr293218vsl.228.1588193507949; Wed, 29 Apr 2020 13:51:47 -0700 (PDT) MIME-Version: 1.0 References: <2d5868d4-a773-ea64-4708-49564516e9f6@gmail.com> In-Reply-To: <2d5868d4-a773-ea64-4708-49564516e9f6@gmail.com> Date: Wed, 29 Apr 2020 21:51:37 +0100 Message-ID: To: Henrik Skov Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] A streaming JSON parser in C From: Danack@basereality.com (Dan Ackroyd) 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