didarpin
58173a6a1f
Added the functionality to convert dom::object and dom::array to dom::element. ( #2221 )
...
Co-authored-by: didarpin <didarpin@163.com >
2024-07-25 22:26:20 -04:00
Daniel Lemire
5090247c34
adding test ( #2214 )
2024-07-13 11:40:13 -04:00
Daniel Lemire
ac719827ff
fix: solve issue 2181 ( #2182 )
2024-05-11 20:44:38 -04:00
pnck
e2f879751c
fix: issue #2154 ( #2178 )
2024-05-10 00:33:09 -04:00
Daniel Lemire
8519e24f12
issue 2170 ( #2172 )
2024-04-24 01:41:40 -04:00
Daniel Lemire
0c08894a54
adopting string literals ( #2128 )
...
* adopting string literals
* String suffixes are C++14
2024-02-15 10:40:11 -05:00
Daniel Lemire
32d072a208
fixing issue2120 ( #2121 )
2024-02-08 11:34:36 -05:00
Bo Anderson
33610b59eb
Allow some iterators to be used in standard C++ iterator functions ( #2106 )
2024-02-05 17:52:01 -05:00
Bo Anderson
02bee7d1b9
Add load_into_document to simdjson::dom::parser ( #2103 )
2024-01-08 20:30:26 -05:00
Daniel Lemire
8b2af0473a
skip UTF-8 BOM if present. ( #2079 )
2023-10-30 12:51:02 -04:00
Momtchil Momtchev
e11ad58aad
add a total order for elements ( #2072 )
2023-10-09 15:41:57 -04:00
Daniel Lemire
b2e20e04c9
Standard compatibility fixes ( #2053 )
...
* Standard compatibility fixes
* missing commit
* Should work.
* Fix.
* Fix.
* Should work now.
---------
Co-authored-by: Daniel Lemire <dlemire@lemire.me >
2023-08-25 10:18:02 -04:00
John Keiser
06afe9ecb3
New escape algorithm with significantly less data dependency
2023-08-02 08:28:05 -07:00
Daniel Lemire
65f9822542
Adding tests for issue 2017 ( #2018 )
2023-06-07 09:57:28 -04:00
Daniel Lemire
85661a2901
Some systems release without NDEBUG set, let us not assert in these cases. ( #2014 )
2023-06-01 16:18:36 -04:00
Daniel Lemire
7db3f97ba8
Adding CXX 20 to CI ( #2005 )
...
* Adding CXX 20 to CI
* side-stepping new CXX 20 guard.
* Going another way
* Saving.
* Explicit.
* Saving...
---------
Co-authored-by: Daniel Lemire <dlemire@lemire.me >
2023-05-26 09:23:02 -04:00
Daniel Lemire
2a68a32012
Checking OS support for AVX-512 ( #1998 )
...
* Adding support for AVX-512 on macOS.
* Fix.
* Fix.
* Minor fix
* Setting the variable to zero.
* Fixing include
* Checking if the OS supports AVX-512
* Tweaking.
---------
Co-authored-by: Daniel Lemire <dlemire@lemire.me >
2023-05-12 19:25:02 -04:00
Daniel Lemire
21a2ccaeb8
Another fun one
2023-05-05 22:12:59 -04:00
Daniel Lemire
3c29f40f2f
Trying to verify issue 1979 ( #1980 )
2023-04-04 11:03:37 -04:00
Daniel Lemire
75c6c950e5
Ok.
2023-03-13 21:26:32 -04:00
Daniel Lemire
338224849d
Disabling memory sanitizer with one function. Might help with issue 1965 ( #1966 )
...
* Might help with issue 1965
* Fix macro
* Adding test.
* Stupid compiler
* Silly compiler
* Stupid compilers
* Unnecessary fixes
* Update developer-options.cmake
2023-03-13 12:34:47 -04:00
Daniel Lemire
ede9d57f22
Adding tests with _GLIBCXX_ASSERTIONS ( #1969 )
...
* Allowing users to specify -D_GLIBCXX_ASSERTIONS
* Adding CI tests for GLIBCXX_ASSERTIONS
* Adding curly brackets.
2023-03-13 12:32:43 -04:00
Daniel Lemire
33dbd44098
Better way to put -Og in debug mode ( #1967 )
...
* Better way to put -Og in debug mode
* Silly compiler
* Stupid compiler.
* Stupid compiler.
* Silly compiler
2023-03-13 10:11:33 -04:00
Daniel Lemire
e0dcf8adc9
Silly compiler
2023-03-12 20:57:45 -04:00
Daniel Lemire
17a1a8e187
Adding -Og to debug builds. ( #1964 )
...
* Adding -Og to debug builds.
* Stupid compiler.
* bad, bad, bad compiler
2023-03-09 11:14:42 -05:00
Daniel Lemire
25e7f1765a
Various tweaks.
2023-03-09 10:42:23 -05:00
Daniel Lemire
b9234be80f
complete number_in_string for documents, stringify the version macro and improving trailing content errors ( #1934 )
...
* This completes the '*_in_string' support within documents.
* Minor updates.
* Additional fixes.
2023-01-21 15:29:08 -05:00
Daniel Lemire
f151300a76
Disabling fallback kernel on systems where it is not needed ( #1930 )
...
* Fixing issue 1772
* More cleaning.
* Allow disabling other kernels.
* Minor tweaks.
2023-01-03 09:52:41 -05:00
Daniel Lemire
db08d78ed0
Documents better the type method and makes is_null return an error condition in some instances ( #1909 )
2022-10-06 11:47:40 -04:00
Daniel Lemire
b92cbbe280
Fixing issue 1898 ( #1899 )
...
* Fixing issue 1898 Preserve sign for number with underflowing exponent (#1900 )
Before this commit, simdjson parsed "-1e-999" and "-0e-999" and "-1e-342"
as 0.0.
After this commit, those JSON strings get parsed as -0.0.
(https://en.wikipedia.org/wiki/Signed_zero )
The old behavior was inconsistent with the way simdjson parsed "-0.0" as -0.0.
Co-authored-by: Daniel Lemire <daniel@lemire.me >
Co-authored-by: Tyson Andre <tysonandre775@hotmail.com >
2022-10-02 16:25:39 -04:00
Daniel Lemire
16b3816455
This fixes an error caused by overeager gcc static analyser ( #1891 )
2022-09-19 10:20:48 -04:00
Daniel Lemire
3fde8a4eac
New release candidate ( #1856 )
...
* Patch for possible AVX-512 overflow.
* Updating the test for new padding.
* Preparing new version.
* replace binary integer literals with hex literals for C++11 compatibility (#1855 )
Binary integer literals are a C++14 feature, so those are not supported
in C++11 and should be replaced by hexadecimal literals instead.
Fixes #1854 .
Co-authored-by: Dirk Stolle <striezel-dev@web.de >
2022-07-04 21:54:19 -04:00
Daniel Lemire
c6f9c93c33
Use static variables to enforce initialization order. ( #1773 ) ( #1777 )
...
Fixes https://github.com/simdjson/simdjson/issues/1771
Co-authored-by: Hao Chen <chenhao.yalier@gmail.com >
2022-01-03 15:54:57 -05:00
N. Kolotov
7e1893db42
Added SIMDJSON_ prefix to STRINGIFY and to NO_SANITIZE_UNDEFINED macros. ( #1766 )
2021-12-21 09:53:06 -05:00
Daniel Lemire
6d308a08c5
Fixing issue 1736 ( #1737 )
...
* Fixing issue 1736
* Updating google benchmark.
* Minor trimming.
* Using the variable (to silence a warning).
* Adding assignment operator.
2021-10-20 12:15:35 -04:00
Daniel Lemire
d996ffc494
Minor typo. ( #1721 )
...
* Minor typo.
* Minor fixes.
* Patching...
2021-09-25 11:34:44 -04:00
Daniel Lemire
cae5e5342f
Additional ndjson tests. ( #1717 )
...
* Additional ndjson tests.
* Switching the data source.
* Fixing.
2021-09-18 16:29:10 -04:00
strager
d036fdf919
Reduce #include bloat (<iostream>) ( #1697 )
...
Including <iostream> has two problems:
* Compile times are worse because of over-inclusion
* Binary sizes are worse when statically linking libstdc++ because
iostreams cannot be dead-code-stripped
simdjson only needs std::ostream. Include the header declaring only what
we need (<ostream>), omitting stuff we don't need (std::cout and its
initialization, for example).
This commit should not change behavior, but it might break users who
assume that including <simdjson/simdjson.h> will make std::cout
available (such as many of simdjson's own files).
2021-08-13 11:24:36 -04:00
Daniel Lemire
d83e69d977
Fix an issue with truncated-byte function. ( #1674 )
2021-07-30 13:12:42 -04:00
Daniel Lemire
b79261eebc
This cleans a bit the current code, especially with respect to EOF guards. ( #1669 )
...
* Upgrading the GitHub Actions.
* Upgrading appveyor
* Upgrading circle ci.
* Cleaning.
2021-07-25 10:36:22 -04:00
Daniel Lemire
33f73b577c
Another attempt at producing problems with threads (more tests) ( #1655 )
...
* Another attempt at producing problems with threads.
* Fixing code
* Trying to please visual studio
2021-07-13 17:30:29 -04:00
Daniel Lemire
ea3d4e7ce5
Fuzzing timeout (bug fix) ( #1650 )
...
* prove pull request #1648 introduces an infinite loop
* Interesting bug!
* Tweak.
Co-authored-by: Paul Dreik <github@pauldreik.se >
2021-07-06 14:36:38 -04:00
Daniel Lemire
bea1483cde
Fixing minor issue with document stream (DOM). ( #1648 )
...
* Fixing minor issue with document stream (DOM).
* Porting over the fix.
2021-07-05 17:40:04 -04:00
John Keiser
893e613faa
Don't #include "simdjson.cpp" in tests ( #1605 )
2021-06-06 14:44:04 -04:00
Daniel Lemire
714f0ba222
This deletes most of our data files making the repository much smaller ( #1582 )
...
* This deletes most of our data files making the repository much smaller.
* Removing dead code.
* Various minor fixes.
2021-06-04 09:24:03 -04:00
Daniel Lemire
f44a53271d
Documentation for issue 1562 (Accessing escaped key with on-demand API) ( #1563 )
...
* Documentation for issue 1562.
* Making exception-free.
* Improving wording.
2021-06-04 09:21:52 -04:00
Dirk Stolle
2abcc35031
fix serveral typos ( #1558 )
...
* fix typos in markdown files
* fix typos in CMake files
* fix typos in headers and test code
2021-05-01 10:19:53 -04:00
Daniel Lemire
c1dffac28c
This moves all DOM (benchmark + test) files to a subdir ( #1549 )
...
* This moves all DOM (benchmark + test) files to a subdir
* Missing file.
* CMake + DLL is not pretty.
* Capitalizing AND
* Fixing mismatch endif
* Flipping the order.
* onedemand => ondemand
2021-04-30 18:33:45 -04:00