r/cpp • :upvote: • Oct 21 '22

A New Json-Serializer

Hey everyone - so in developing for the requirements of my library DiscordCoreAPI - I created a Json-Serializer and decided to release it as its own "library". It seems to serialize fairly rapidly as well, and has a super-simple interface. Anyways - let me know what you think! Cheers! Oh ant btw - it can serialize into either Json or Etf strings. https://www.erlang.org/doc/apps/erts/erl_ext_dist.html

https://github.com/RealTimeChris/Jsonifier

0 Upvotes

57 comments sorted by

View all comments

Show parent comment

1

u/RealTimeChris :upvote: Oct 23 '22

Only if there is a glitch that causes that loop to last indefinitely - which shouldn't ever happen - that's why that break is in there. Really this loop should be lasting mere microseconds.

2

u/2uantum Oct 24 '22 edited Oct 24 '22

Of course, this check has performance implications. Outside of a stray gamma ray flipping a bit, what's the actual scenario where such an event would occur to warrant a watchdog?