~/talk

Using Clojure with C APIs for crypto and more

Talkat Clojure/conj 2016 · 2016-12-01..12-03· [security, c-and-cpp]
name:lvh
links:none on file
slides:none on file

Binding C libraries from Clojure using cesium (Clojure binding of libsodium) and jnr-ffi proves practical: a working crypto binding is built with zero Java sources, uses direct ByteBuffers and pinned memory for no-copy in-place APIs, and reduces a potential 12,000-symbol explosion with macros including the Sparkles macro. JNA shows 10–1000x overhead, jnr approaches JNI performance (penalty is tiny in practice), toolchain and packaging (.deb/.rpm) work for production deployment.

AI-written summary · about

  1. 0:00Start
  2. 1:44Why crypto?
  3. 3:11Why C?
  4. 17:18Return type?
  5. 18:35Getting the right types
  6. 20:23Pick a type
  7. 22:25Asymmetry
  8. 36:10Expose every byte type
  9. 39:36Future work
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.