NobleBlocks

Research index

HyperAST

Le Dilavrec

Zenodo (CERN European Organization for Nuclear Research)3 Dec 2024Open access

NobleIDark:/48914/w1/20260525/C7204C69DOI10.5281/zenodo.14265188

Free to read at the publisher

You can read the abstract here, or the full text at the publisher.

Read at the publisher

Abstract

HyperAST: Incrementally Mining Large Source Code Repositories Abstract Modern software systems are large, with a project like Chromium reaching more than 30 million lines of code.Analyzing these large-scale projects over multiple versions rapidly becomes very expensive, and creating tools that can work at this scale is a challenge.This paper presents the HyperAST approach, that exploits the locality and redundancy of source code, to maintain thousands of Abstract Syntax Tree (AST) versions in memory.In particular, we contribute a programmatic interface to HyperAST that helps define the incremental computation of code metrics and efficient explorations of the fine-grained abstract syntax representation of source code. Installation instructions for reproducing results The HyperAST is a standard rust project in its structure. It uses different workspaces to organise different components https://doc.rust-lang.org/cargo/reference/workspaces.html (similar to Maven modules) 1) install rustup (and see nightly for documentation as HyperAST requires a nightly rust version) 2) clone or download the HyperAST repository then go the the root directory 3) compile the the executable with: cargo run --release -p client --bin scripting - warning: depending on your exact configuration and environment you might be misshing system depedencies and the right rust version -> most of the time rustc and rustup tell you what to do to install the requirements. - I also attached the resulting executable to the archive, I might be useful to someone. 4) then to reproduces the results from the paper, you can run: bash bench_scripting/run_scriptings.sh - for Mcc: bash bench_scripting/run_scriptings.sh 100 mcc bench_scripting/ - for LoC: bash bench_scripting/run_scriptings.sh 100 LoC bench_scripting/ - the script is very simple in itself, it mainly help with reproducibility like storing the commitids and get the results for all the projects. - e.g. 100. changes the number of processed commits - e.g. mcc. changes the preconfigured commit - tells the directory where to write the benchmark results 5) You can also run the executable more directly: ./target/release/scripting - use the "-h" option to get the description of the command

Discussion

Topics

More

Suggest a correction or report