Blazingly fast vibesort implementation in Rust using Llama 4 Maverick on Cerebras Cloud. Currently the fastest vibesort by 10x certified hacker news benchmark. Check it out on lib.rs!
cargo install vibesortExport your Cerebras API key:
export CEREBRAS_API_KEY=your_api_key_hereuse vibesort::vibesort;
#[tokio::main]
async fn main() {
let numbers = vec![42, 7, 13, 99, 1, 56];
println!("Original numbers: {:?}", numbers);
match vibesort(numbers.clone()).await {
Ok(sorted_array) => {
println!("Sorted numbers: {:?}", sorted_array);
},
Err(e) => println!("Error: {}", e),
}
}