-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netstring feature #726
Netstring feature #726
Conversation
…tring_feature # Conflicts: # libs/error_injector/stdio/CMakeLists.txt # libs/error_injector/stdio/include/stdio_ei.h # libs/error_injector/stdio/src/stdio_ei.cc
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #726 +/- ##
==========================================
+ Coverage 88.85% 88.88% +0.02%
==========================================
Files 216 217 +1
Lines 24293 24376 +83
==========================================
+ Hits 21585 21666 +81
- Misses 2708 2710 +2 ☔ View full report in Codecov by Sentry. |
As mentioned in #612, the purpose of this netstring lib is to serialize/deserialize properties. After reading netstring's spec([1]), I noticed that netstring is used to encoding byte string, for which we still lack an efficient in-memory representation like ccan/bytestring. A second issue I found is related to our current efforts to add typing support to Then I have the third issue: by having a separate netstring library, what's the in memory representation of a tagged netstring? A bold thought turns up: what if we combine this nestring library into utils, and have I just record some thoughts here, which should not be viewed as anything like request for changes. But I do think the second issue is worth considering before merging this PR. @pnoltes @xuzhenbao [1] https://cr.yp.to/proto/netstrings.txt |
tnetstring could be a nice fitting solution, but maybe we should also reconsider using JSON are serialization format? Downside is that we then make a JSON lib (i.e. jansson) a required lib for celix_utils and therefore celix_framework, but this will save some implementation effort. |
I agree with the above assessment:
As we already observed in #674, with typing support
How about we focusing on typing support of |
+1, After PR #721 is merged I like to pick up the properties serialization and I see if the properties store/load can be done using JSON. This breaks backwards compatibility, but that is no issue because we are working on a new major Apache Celix version. |
It is replaced by #743 |
Resolves #612