-
Notifications
You must be signed in to change notification settings - Fork 13
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
small suggestions for enhancement #12
Comments
They can both be turned into continuous ranges of characters/
Ideally you should be able to do this with existing generic algorithms in Phobos.
This is commonly requested but is beyond the scope of this library. I don't want to speak on @s-ludwig's behalf, but he has repeatedly said he wishes for serialization functionality to be built on top of this library. I agree with that; a clear separation makes it more likely for this library to be accepted into Phobos, and less likely to overlap with Phobos' future serialization functionality (there is a std.serialization in the review queue). |
|
Thanks for the thoughts Jakob. The internal algorithms marked @safe - do you mean in Phobos (not std.data.json)? So in any case if I write my own version of joiner, or of a chunked file with a continuous range of characters it should work? Makes sense to start with the low level stuff and build on it. For the time being though std.data.json is obviously only a partial replacement for the functionality provided in vibe.d JSON. |
Sorry for being unclear, I mean internal algorithms in std.data.json. It is a bug that they're marked In this case, the memory-unsafety of Functions in templates (including member functions in type templates) have attribute inference. That means attributes like In other words, explicit attributes on generic algorithms should only be used if all possible instantiations provide that guarantee. The explicit attribute is valuable documentation that attribute inference does not provide, but possibly at the cost of guaranteeing that future changes to the implementation won't break the guarantee, or it could break user code.
Indeed, but it is an important step, and luckily, completely eclipses the present std.json. |
|
Thank you for taking the time to write such a thorough and helpful reply - I truly appreciate it. The benchmarks are interesting, but real world use is something else often. I have a 2 gig file of metadata from Quandl. So until I get round to putting it in a database, I want to lookup the details for a particular ticker, which means going through the whole thing. Very impressive performance for std.data.json. Only thing is a small wrapper would be nice (the gap between good enough and high quality is often small in terms of usefulness but large in terms of work), and some more examples. I will contribute something if I get time. Laeeth Sent from my iPad
|
http://www.quandl.com/api/v2/datasets.json?query=*&source_code=SEC&per_page=300&page=1
I would submit my own use, but I am not that happy with it as it is too ad hoc.
The text was updated successfully, but these errors were encountered: