Get the latest tech news

A year of Rust in ClickHouse


This story is about how ClickHouse supports Rust components in the C++ code base and the challenges we had to overcome.

The first external pull request with Rust was to improve our terminal application, clickhouse-client, by adding interactive history navigation. However, these implementations were sketchy, with many corner cases unsupported, and they are not particularly pleasant to write (no C++ engineer can be excited by the task of "read this JSON file and follow the spec precisely"). This is because the interop between Rust and C++ requires writing the wrappers, and it has to be done with extra care to not mess up with things like who owns the memory, and in which order it is deallocated.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Year

Year

Photo of Rust

Rust

Photo of ClickHouse

ClickHouse

Related news:

News photo

Hackers Spied on 100 US Bank Regulators' Emails for Over a Year

News photo

The year is 2025, and Instagram is reportedly 'working on' an iPad app

News photo

A 25-year-old police drone founder just raised $75M led by Index