1fn bubble_sort(arr) {2 let n = 5;3 let i = 0;45 while i < n {6 let j = 0;7 while j < n - i - 1 {8 if arr[j] > arr[j + 1] {9 let temp = arr[j];10 arr[j] = arr[j + 1];11 arr[j + 1] = temp;12 }13 j = j + 1;14 }15 i = i + 1;16 }17}
X language combines modern syntax with performance-critical systems programming, giving you the best of both worlds.
Built on LLVM with Rust-inspired optimizations for blazing fast execution and minimal memory footprint.
Supports compiled, JIT, and interpreted modes for maximum flexibility across different use cases and environments.
Write high-level code with abstractions that compile away completely, giving you bare-metal performance.
Clean, intuitive syntax with powerful features like lambdas and structs.
Strong dynamic typing with powerful type inference and compile-time guarantees.
A rapidly expanding collection of libraries, tools, and frameworks for web, systems, and application development.
Lower execution time is better. Benchmark performed on equivalent implementations.