Editing
TheFramework
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Message Format== * Maybe just use Rust structs? Can redefine them separately later... * Could use codegen... Can go from Rust structs to external format or visa-versa. * Could keep them in Rust native and provide a C library interface to interact with them. ===Capnproto?=== * A bit of a pain to integrate into Rust. * Plays well with other languages. * Need to find out how to extent the codegenerated types with my own. * Would need to use capnproto's internal native formats instead of Rusts. * Good versioning... ===JSON?=== * I don't like JSON. * It's fairly well known and supported. ===Enums vs "strings"?=== * Strings much more waste on the wire. Higher parsing overhead. * Strings allow for custom types. Could just add a custom type enum that has a string. * Enums could be 'backwards compatible' if you just ignore anything you don't understand. * Strings wouldn't have to be predefined. But they would have to be used so defining them would be best anyway. ===Categorise messages by type, or one global type for all messages?=== * Categories could make it easier to ignore messages that have nothing to do with the service. * One global type would be much easier to implement. * Categories might be eaiser for reading documentation. But might be harder too as they might end up spread around. * Maybe one global type with 'soft categories', ie categorise them based on the name but have one giant enum.
Summary:
Please note that all contributions to Hegemon Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Hegemon Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information