Livecode Array Encoding / Decoding using other platforms?
tom at makeshyft.com
Tue May 21 10:08:33 EDT 2019
My LC written client will send to cloud for long term storage on the
livecloud system...... but then I will have to pull the data to aggregate,
count, and analyze it to show data interesting and useful points to the
customers.. As much as I love LC I really want to do the right thing and
use a high performing language to do that. Something like Rust.
Each new (1) customer (a school) will usually be 1500+ users who create
150,000+ records or more. So it will add up quickly.
I think I will convert to JSON on its way out from the client and going to
storage. That way the cost of that conversion is not paid by the cloud
service but the client.
On Tue, May 21, 2019 at 3:34 AM ambassador--- via use-livecode <
use-livecode at lists.runrev.com> wrote:
> Tom Glod wrote:
> > Thanks for that tip of undertanding about the array encoding. Explains
> > why its really fast.
> > Its not really the encoding / decoding speed i am thinking about. Lets
> > see if I can explain better.
> > I can try to read C code in the codebase to see if i can see how the
> > data gets processed....maybe i will peek out of interest .......if i
> > can
> > even find the arrayencode function in the c codebase....
> > Its probably easier to encode into Json and baseencode any binary
> > data......and just deal with text chunks instead of blobs.
> What will you be doing with the data?
> If both producer and consumer of the data are written in LiveCode, it's
> really hard to beat LSON (my pet name for encoded arrays). LSON is to
> most efficient, most with-the-grain serialization in this language.
> Of course, if you need to talk to things not written in LC, you'll have
> to write a parser in that language. My notes could help, but there
> would be no benefit. For interoperability, use JSON or XML.
> But if both client and server are LC, just enjoy LSON without even
> having to worry how it's made. Efficient, robust, easy to use - what's
> not to love?
> - rg/4w
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode