Skip to content

Instantly share code, notes, and snippets.

View dinedal's full-sized avatar
👾

Paul Bergeron dinedal

👾
View GitHub Profile
@kchristidis
kchristidis / protobuf-serialization.md
Last active June 27, 2025 14:10
Notes on protocol buffers and deterministic serialization (or lack thereof)

There doesn't seem to be a good resource online describing the issues with protocol buffers and deterministic serialization (or lack thereof). This is a collection of links on the subject.

Protocol Buffers v3.0.0. release notes:

The deterministic serialization is, however, NOT canonical across languages; it is also unstable across different builds with schema changes due to unknown fields.

Maps documentation:

Wire format ordering and map iteration ordering of map values is undefined, so you cannot rely on your map items being in a particular order.

@sshirokov
sshirokov / gist:1116473
Created July 31, 2011 06:07
Tunnel Package For Emacs Nerds v0.0.1
;; Tunnel boot scaffold [elisp]
(defun toggle-tunnel-out (&optional again)
(interactive "P")
(let* ((bname " *tun*")
(tun (get-buffer bname)))
(if tun
(let ((kill-buffer-query-functions nil))
(kill-buffer tun))
(async-shell-command "~/bin/loop-tunnel.sh" " *tun*")))
(when again (toggle-tunnel-out)))