Please help with writing spec for async JSON APIs
cmorningstar at paypal.com
Sun Aug 2 06:35:27 UTC 2015
I confess I don't see the point of this proposal at all, at least with respect to being specifically about JSON.
JSON parsing/stringification is pure computation; it's not like I/O where you need something special inside the language runtime's implementation in order to exploit the asynchrony.
While it would be generally useful to be able to hand a random chunk of CPU-bound work off to another thread on another processor core, there's no point whatsoever in treating JSON as a special case of this. JSON handling is just one use case for asynchronous computation in general. Presumably once the language's async features are fully baked you should be able to just wrap a call to the existing JSON API inside an async function, and get this functionality (and much else besides) directly.
On Jul 31, 2015, at 8:03 PM, Mohsen Azimi <me at azimi.me<mailto:me at azimi.me>> wrote:
Domenic suggested<https://twitter.com/domenic/status/626958415181393920> that we should write the proposal spec for native non-blocking JSON processing. I don't know what the API should look like but I made some assumptions and wrote the initial spec (if I can call it spec!) and published it in GitHub<https://github.com/mohsen1/async-json>.
I need to learn the spec lingo and rewrite the spec in proper and standard language. I need help and resources to learn the language of the spec.
Would you please review the proposal so far (including the outstanding PR)?
es-discuss mailing list
es-discuss at mozilla.org<mailto:es-discuss at mozilla.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss