Re: http gateway, was Re: Something interesting for 4.33
Kenneth Martin <martin-TxPoQvD3IN4C6LszWs/[email protected]> Fri, 30 Jan 2015 11:13:53 -0500
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
In my application, I have a number of low bit-rate commands defined going from the client to the host (using Pyros which really simplifies the connection and has been robust); each command is a single ascii line, with the first word identifying the command, and everything else following. Each command also has a return string. Some of the commands involve sending python objects back and forth (which usually goes into global modules on either the client or server - eg. set a dictionary value on server or get a dictionary value from server), so these are part of the "everything else" and are converted to ascii using yaml. I also use yaml extensively to define how to populate my GUI's (actually just the GUI's at the bottom two levels for now - one on the server, and one on the client - there is a third top-level user-interface GUI on the clients that is fixed layout), yaml specifies both the number of widgets and default values for widgets to simplify porting to different applications; in this case, yaml's readability is nice as I create these files using an editor with cut and paste; for the former use, any serializer that goes to ascii is fine. I have not used serpent, and am quite familiar with yaml which I really like, hence my bias. On 15-01-30 10:30 AM, Irmen de Jong wrote: > On 30-1-2015 15:38, Kenneth Martin wrote: >> Irmen, sorry, I never saw your earlier post. > No worries, it appears Sourceforge has some intermittent problems with the mailing lists > lately. I missed a few posts as well and some don't show up on the archives either. > Let's hope the problem is gone now. > >> I'm not really proposing >> anything; just thought you might be interested. I've been using yaml in >> a number of different places both for configuration files and >> communications and I found it intuitively nice to use. Again, no >> proposals, just thought you might be interested; please just ignore. > No it's not my intention to ignore it, I'm always interested in people's suggestions > about possible ways to improve Pyro. I do like the concise and readable format of YAML > documents but for Pyro I don't see what it adds upon serpent and json. > > How have you been using Yaml yourself with Pyro? Have you implemented an extra serializer? > > > Irmen > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Pyro-core mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyro-core -- Kenneth Martin, President Granite SemiCom Inc. 555 Richmond St. W, BX1200/Suite 905 Toronto ON 416 640-2626, www.granitesemi.com ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/