On reproducible computational software
I know more than a few people concerned about setting higher standards for reporting computational research results in an era of, at the very least, questionable AI-generated content. Hopefully, my new development moves in that direction.
I recently published a high-performance Rust implementation of CO2BLOCK:
I put a large share of my knowledge of high-performance scientific computing in Rust into it, with very limited, localised use of LLMs during development.
This tool can be used as a CLI tool, a MATLAB library, and, soon, a Python library, too. That way, this code can seamlessly integrate into any researcher’s programming stack.
Reproducibility and portability come from building this project around devenv. In the Python world, many people know venv and uv. Devenv shares a similar philosophy, but it’s built on the Nix ecosystem: a platform- and stack-agnostic technology for functional, declarative packaging that reproduces outputs down to every bit.
I made it so anyone can install it with very little effort and get the same user experience I have, thanks to Devenv. You don’t have to install any dependency yourself or guess how to use the software the intended way. You just install Devenv, download the code, start the shell, and everything just builds and works.
devenv info # see what the environment provides
devenv shell # enter the dev shell
# build and run software, run tasks, scripts, and services
cli --help # For example, the CLI for co2block-rs
It runs in an isolated but native environment, without polluting your entire system with ad-hoc dependencies.
When distributed the same way, entire computational research experiments can be shared fearlessly and transparently, and reviewers don’t have to spend hours or days making other people’s software work on their machine. They could just run it and see the full claimed results for themselves, exactly as the authors produced them.
# hypothetical scenario
devenv shell # enter the environment
run-experiment # execute the whole numerical experiment as a program
I hope to share more about this project soon.