[DGD] Chained continuations and curl

nikoroleva natasha.i.koroleva at gmail.com
Sun Sep 23 05:48:25 CEST 2018


I was inspired by the thread on libraries for DGD/Hydra. I look
forward to more such posts.

I completed the first draft of a curl implementation.

https://github.com/november-kilo/nk-dgd/blob/master/cloud-server/src/usr/System/obj/user.c
Find 'cmd_swapi' implementation. The command 'swapi 3' fetches the
record for R2-D2 and displays some of it with varying degrees of
success.

I don't yet have a clear idea on the balance between general and
specific continuations in the chain.

Maybe it should all be done in the kfun itself? It would certainly
help with large payloads that overflow DGD strings to return a mapping
rather than a monolithic JSON string to parse in the library.

Thoughts about how best to do a curl implementation? How to write a
better JSON parser in DGD-LPC? How to make the most of the chained
continuations in this case?

Regards



More information about the DGD mailing list