JSON is everywhere on the Internet. Servers spend a lot of time parsing it.
The simdjson library uses commonly available SIMD instructions and
microparallel algorithms to parse JSON 2.5 times faster than anything
else out there.
devel/simdjson: do not pass -mpower8-vector on powerpc
According to pkubaj, this makes the port build on machines older than
POWER 8.
Reported by: pkubaj
MFH: 2026Q3
devel/simdjson: drop power8-vector requirement on powerpc64
Allows building on baseline G5. simdjson 4.6.11 already gates its
PPC64 SIMD paths on __POWER8_VECTOR__, so dropping the flag is enough.
devel/simdjson: fix build with clang 19
With clang 19, if a port uses simdjson.h, it leads to compile errors:
In file included from
/wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202405/src/pcm-raw.cpp:31:
/usr/local/include/simdjson.h:6156:13: error: no member named
'print_newline' in 'base_formatter<formatter>'
6156 | this->print_newline();
| ~~~~ ^
/usr/local/include/simdjson.h:6160:13: error: no member named
'print_indents' in 'base_formatter<formatter>'
6160 | this->print_indents(depth);
| ~~~~ ^
/usr/local/include/simdjson.h:6164:13: error: no member named 'print_space'
in 'base_formatter<formatter>'
6164 | this->print_space();
| ~~~~ ^
Upstream <https://github.com/simdjson/simdjson/commit/5d35e7ca> fixes
this, but it does not directly add the change to the generated single
header version of simdjson.h. So apply the fix to both the individual
header and the amalgamated version.
PR: 280590
Approved by: olevole@olevole.ru (maintainer)
MFH: 2024Q3
devel/simdjson: update to 3.1.0
ChangeLog: https://github.com/simdjson/simdjson/releases
* Disabling fallback kernel on systems where it is not needed.
* Testing and fixing log issues.
* complete number_in_string for documents, stringify the version macro and
improving trailing content errors.
PR: 269155
Reported by: olevole@olevole.ru (maintainer)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/simdjson: fix build on powerpc64
FreeBSD uses sys/endian.h header instead of byteswap.h and bswap64() instead of
bswap_64().
-mpower8-vector is necessary because the port uses new SIMD introduced in
POWER8.
/wrkdirs/usr/ports/devel/simdjson/work/simdjson-0.9.5/include/simdjson/ppc64/numberparsing.h:4:10:
fatal error: 'byteswap.h' file not found
devel/simdjson: update to 0.5.0
From ChangeLog: https://github.com/simdjson/simdjson/releases/tag/v0.5.0
Performance
* Faster and simpler UTF-8 validation with the lookup4 algorithm
* We improved the performance of simdjson under Visual Studio by about 25%.
Users will still get better performance with clang-cl (+30%) but the gap
has been reduced.
Code usability
* In parse_many, when parsing streams of JSON documetns, we give to the users
runtime control as to whether threads are used (via the parser.threaded
(Only the first 15 lines of the commit message are shown above )
[NEW PORT] devel/simdjson: Parsing gigabytes of JSON per second
JSON is everywhere on the Internet. Servers spend a lot of time parsing it.
The simdjson library uses commonly available SIMD instructions and
microparallel algorithms to parse JSON 2.5 times faster than anything
else out there.
WWW: https://simdjson.org/
NOTA on Current, clang crashes on AMD processors before revision 359826. See:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245745
PR: 245744
Submitted by: Oleg Ginzburg <olevole at olevole dot ru>
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D24505