C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A Minimal JSON Support Library for C++

From: Lénárd Szolnoki <cpp_at_[hidden]>
Date: Tue, 13 Feb 2024 21:58:26 +0000
On 13 February 2024 21:31:30 GMT, Jan Schultke via Std-Proposals <std-proposals_at_[hidden]> wrote:
>Parsing from a std::span may be the right idea.
>
>A solution to the "bad I/O problem" may be to standardize memory
>mapping.

Memory mapping is not always possible, even on hosted. You can't mmap a pipe for example.

> In that event, the standard library would just abstract from
>the OS and give you a byte array that represents a file. Whether you
>use that byte array to parse JSON or do any other workload is up to
>you then.
>
>That would be a feature that belongs in a standard library, obviously.
>It's something that would have to be optional on freestanding and
>which would be fairly complicated to standardize, but it would have
>tremendous value.

Received on 2024-02-13 21:58:33