-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.in
50 lines (41 loc) · 1.74 KB
/
README.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## cedarbridge
The `cedarbridge` package implements an efficient, strongly-typed,
platform-independent, binary message protocol language based around sum and
product types, and strong versioning.
```
[documentation ChatCommandJoin "Join the chat room."]
[record ChatCommandJoin
[field name cb:String]
[documentation name "The username with which to join."]]
[documentation Chat "The chat protocol."]
[protocol Chat
[version 1
[types-added
ChatCommandJoin
ChatCommandSpeak
ChatEventJoined
ChatEventLeft
ChatEventSpoke
ChatEventError]]]
...
```
## Features
* A carefully written [language specification](https://www.io7m.com/software/cedarbridge/specification/).
* A minimal data definition language based on algebraic sum and product types.
* Strong versioning as a core aspect of the language.
* A small, easily auditable codebase with a heavy use of modularity for correctness.
* Generates simple, readable, reflection-free Java code.
* A small footprint; the generated Java code consists of trivial record
definitions and incredibly simple and straightforward code to serialize and
deserialize values.
* Platform independence. No platform-dependent code is included in any form.
* Suitable for use in security-critical environments: Serialization code is
immune to the usual serialization vulnerabilities such as type confusion,
resource exhaustion, exponential parse times, and etc.
* An extensive automated test suite with high coverage.
* [OSGi-ready](https://www.osgi.org/).
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System).
* ISC license.
## Usage
See the [documentation](https://www.io7m.com/software/cedarbridge) and
[language specification](https://www.io7m.com/software/cedarbridge).