The Dynamic Compact Control Language (DCCL) is a marshalling and protocol language for very low throughput links (e.g. acoustic, satellite, low frequency radio). Formerly part of Goby (https://launchpad.net/goby) for releases 1 and 2, we believe DCCL has reached a level of maturity that it can be more easily standardized, adopted, and maintained as a separate project.
- Documentation: http://libdccl.org
- Release Ubuntu/Debian Packages: https://packages.gobysoft.org/ubuntu/release/
- Continuous build Ubuntu/Debian Packages: https://packages.gobysoft.org/ubuntu/continuous/
- Assigned DCCL IDs table: http://gobysoft.org/wiki/DcclIdTable
The only officially supported distributions are Debian (stable and oldstable) and Ubuntu (currently supported LTS releases). Packages for these releases are built for the amd64, arm64, and armhf architectures and uploaded to https://packages.gobysoft.org:
To install release packages on Ubuntu or Debian, install the appropriate apt sources.list and GobySoft PGP signing key:
export COMPONENT=release
export GOBYSOFT_SIGNING_KEY=A8E48CFF6650A07F6EF2B9AD19478082E2F8D3FE
install -d -m 0755 /etc/apt/keyrings
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x${GOBYSOFT_SIGNING_KEY}" | gpg --import && gpg --export ${GOBYSOFT_SIGNING_KEY} >/etc/apt/keyrings/gobysoft.gpg
echo "deb [signed-by=/etc/apt/keyrings/gobysoft.gpg] https://packages.gobysoft.org/$(. /etc/os-release; echo "$ID")/${COMPONENT}/ $(. /etc/os-release; echo "$VERSION_CODENAME")/" >/etc/apt/sources.list.d/gobysoft_${COMPONENT}.list
Then run:
sudo apt update
# minimal
sudo apt install libdccl5-dev
# full
sudo apt install libdccl5-dev dccl5-compiler dccl5-apps
Instead of the release repository, you can use the continuous repository (every commit to the main branch build):
export COMPONENT=continuous
echo "deb [signed-by=/etc/apt/keyrings/gobysoft.gpg] https://packages.gobysoft.org/$(. /etc/os-release; echo "$ID")/${COMPONENT}/ $(. /etc/os-release; echo "$VERSION_CODENAME")/" >/etc/apt/sources.list.d/gobysoft_${COMPONENT}.list
DCCL versions are MAJOR.MINOR.PATCH, and the shared libraries' SONAME is MAJOR.MINOR (e.g. libdccl.so.5.2, packaged as libdccl5.2):
- Patch releases (5.2.0 → 5.2.1) are ABI backward-compatible: programs built against an earlier release of the same series keep working without a rebuild. New functions may be added.
- Minor releases (5.2 → 5.3) may break the ABI, so they get a new SONAME and dependents must be rebuilt. Source (API) compatibility is kept.
- Major releases (5 → 6) may break the API, the wire format, or both.
Note that adding a field to a DCCL option message (e.g. dccl.DCCLFieldOptions in option_extensions.proto) changes the layout of its generated C++ class, which is an ABI break.
The amd64-resolute-abi-check CircleCI job enforces this on every branch and tag by comparing the build against the latest release of the series named in version.txt. To run it locally:
sudo apt install abigail-tools
./scripts/abi_check.sh
If it reports an incompatible change, either avoid the change or start the next minor series by setting version.txt to MAJOR.(MINOR+1).0 ahead of its release. Use --base TAG to compare against a particular release. Reviewed false positives go in scripts/abi.supp.
Coverage is measured by the amd64+coverage-build CircleCI job and uploaded to Codecov. To generate a report locally:
sudo apt install gcovr python3-lxml
./scripts/coverage.sh
This builds with instrumentation into build-coverage/, runs the test suite, and writes an HTML report to build-coverage/coverage/index.html. Pass --xml to also emit a Cobertura coverage.xml, or --no-build to re-report without rebuilding.
dccl_test_multithread is skipped by default: instrumented counters are shared mutable state, so that test runs ~80x slower under coverage while adding about 0.3% of line coverage. It still runs in every other CI job. Pass --all-tests to include it.