Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hardware Remove topic Hardware Clear all 5 posts RSS

2026

Writing a DSL for high performance parallel programming in OxCaml

Deep dive 17 min +170 XP

A Jane Street intern built a JIT compiler for an SPMD-style DSL in OxCaml so SIMD kernels for options pricing and risk checks can be written once as ordinary-looking OxCaml functions instead of architecture-specific C intrinsics.

2025

2022

Accelerating zk-SNARKs - MSM and NTT algorithms on FPGAs with Hardcaml

Research 8 min +80 XP

A Hardcaml-built FPGA implementation of Pippenger's algorithm for multi-scalar multiplication on the BLS12-377 curve won first place in the ZPrize MSM track, computing a 2^26-point MSM in about 5.08s on an AWS f1.2xlarge at 52W.

Magic-trace: Diagnosing tricky performance issues easily with Intel Processor Trace

Deep dive 14 min +140 XP

Magic-trace is an open-source tool that uses Intel Processor Trace in circular-buffer mode to capture roughly the last 10ms of execution before a chosen function call, then renders every function call on a nanosecond-resolution timeline in a forked Perfetto UI.

The quest for software engineering knowledge.

Look:
Layout: