thehardwarestore.ai

where AI agents shop for the right tools

── 99275 repos indexed ── | filtered by tag: language
golang/go ★ 139018 20490 APPLICATION

This repository implements the Go programming language: a complete compiler toolchain, runtime, and standard library. The compiler (`cmd/compile`) translates Go source into machine code through an SSA intermediate representation with architecture-specific backends. The `go` command (`cmd/go`) provides module management, build orchestration, testing, and toolchain version selection. The runtime (`src/runtime`) handles goroutines, GC, memory management, and platform abstractions. The standard library (e.g., `net`, `crypto`, `os`, `encoding`, `testing`) offers production-ready packages. The architecture is modular: clear separation between toolchain commands and library packages, heavy use of internal packages for shared low-level functionality (e.g., `internal/cpu`, `internal/poll`, `internal/bytealg`), and extensive platform-specific code via build tags. The codebase is exceptionally well-engineered, with comprehensive test coverage, fuzz testing, and a rigorous change control process. It is the reference implementation of the Go language and defines the ecosystem's standards.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
rust-lang/rust ★ 119277 17052 APPLICATION

This repository is the main source code for the Rust programming language compiler (rustc) and its standard library. It is a monorepo containing the compiler, standard library (core, alloc, std), and development tools (clippy linter, miri interpreter, rustfmt formatter, rust-analyzer, rustdoc documentation generator). The compiler is implemented as a collection of Rust crates under compiler/, each handling a specific phase: lexing, parsing, AST construction, HIR lowering, type inference, borrow checking, MIR optimization, and code generation (LLVM, GCC, Cranelift backends). The architecture is modular with well-defined interfaces between phases, enabling incremental compilation and separate development of backends. The primary entry point is compiler/rustc/src/main.rs, which drives the compilation pipeline. Source code flows through the lexer, parser, AST, HIR, MIR, and finally to code generation. The borrow checker (rustc_borrowck) performs region-based static analysis for memory safety. The type inference engine (rustc_infer) handles complex type relationships including generics, traits, and higher-ranked types. The MIR optimization framework (rustc_mir_transform) applies numerous passes such as constant propagation, dead store elimination, and GVN. External dependencies include LLVM for the primary code generation backend, libgccjit for the GCC backend, and various system libraries for platform-specific functionality. The standard library provides OS abstractions, synchronization primitives, I/O, and collections. The repository also includes extensive test suites (tests/) covering compiler diagnostics, code generation, optimization, and tool behavior.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
microsoft/TypeScript ★ 111037 13817 APPLICATION

This repository is the TypeScript language and toolchain monorepo, and in its current form the core compiler is implemented as a native Go program under `tsc/`. It provides the `tsc` command-line compiler (`tsc/cmd/tsc/main.go`) that parses TypeScript/JavaScript, performs type checking, emits JavaScript and declaration files, supports incremental builds, watch mode, and project references. The compiler is organized into focused internal packages: parser, binder, checker, emitter, incremental snapshot system, content mapper, diagnostics, formatter, LSP infrastructure, and build orchestration. A substantial conformance-test corpus under `tsc/testdata/` snapshots expected output for hundreds of language features, module-resolution strategies, compiler flags, and regression cases, making the repository a self-validating compiler implementation.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
swiftlang/swift ★ 70415 10822 APPLICATION

This is the Swift compiler and standard library repository, implementing the full Swift language toolchain. It includes the compiler frontend (parser, type checker, SIL optimizer, LLVM IR generation), runtime libraries (memory management, concurrency, reflection), platform overlays (Android, WASI, Windows), interop layers (C, C++, Objective-C), IDE support (SourceKit, code completion, refactoring), and an extensive test suite. The architecture is a monolith of multiple libraries and executables, with key entry points being the `swiftc` compiler driver, `sourcekitd` IDE service, and the Swift runtime libraries. Data flows from source code through AST, SIL, and LLVM IR to machine code, with module serialization/deserialization. External dependencies include LLVM, Clang, libdispatch, and ICU. The codebase demonstrates world-class engineering craftsmanship with well-defined abstractions and comprehensive testing.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 2 reusable components found
ruby/ruby ★ 23769 5656 APPLICATION

This is the official reference implementation of the Ruby programming language (CRuby/MRI). It is a monolithic interpreter written primarily in C, with Rust-based JIT compilers (YJIT and ZJIT) and a new parser (Prism). The repository contains the core runtime (VM, garbage collector, threading, coroutines), the standard library (both pure Ruby and C extensions), package management tools (RubyGems and Bundler), a comprehensive test suite (MSpec, Test::Unit, bootstraptests), benchmarks, and build infrastructure. The architecture is centered around a bytecode VM that executes compiled Ruby source, with optional just-in-time compilation. Key entry points include the `ruby` CLI binary, the `gem` and `bundle` commands, and the C extension API. The codebase demonstrates exceptional engineering craftsmanship with clean abstractions (e.g., platform-agnostic coroutine context, encoding system, digest metadata pattern) and extensive cross-platform support. It is actively maintained with frequent commits, CI pipelines, and security fixes.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
argotorg/solidity ★ 25745 6165 APPLICATION

The Solidity compiler (solc) is a production-grade, multi-pass compiler that translates Solidity smart contract source code into EVM bytecode. It supports two compilation pipelines: a legacy EVM assembly backend and a newer IR-based pipeline via Yul, which also serves as the optimizer intermediate representation. The optimizer suite comprises approximately 80 composable passes, including control-flow simplification, common subexpression elimination, function inlining, and store elimination. The compiler integrates formal verification through SMT solvers (Z3, cvc5, Eldarica) using both BMC and CHC engines. A C API (libsolc) enables embedding, and a CLI provides rich output options (ABI, bytecode, IR, metadata, storage layout). The codebase demonstrates deep compiler engineering with advanced static analysis, SSA construction, stack layout optimization, and genetic-algorithm-based optimizer tuning (yulPhaser). It is extensively tested with semantic, syntax, fuzz, and external integration tests.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
scala-js/scala-js ★ 4711 408 APPLICATION

Scala.js is a mature, production-grade compiler and linker that translates Scala source code into JavaScript (and experimentally WebAssembly). The repository implements the full pipeline: a Scala compiler plugin (nscplugin) that produces an intermediate representation (IR), a linker frontend that performs reachability analysis, dead-code elimination, optimization and module splitting, and one of two backends (JavaScript emitter or WebAssembly emitter) to produce final output. It also includes a large reimplementation of the Java standard library (javalib) targeting JavaScript runtimes, a Scala.js-specific JavaScript interop library, an sbt plugin for build integration, and a JUnit testing framework port. The architecture is multi-module and cross-version (Scala 2.12/2.13/3), with an incremental compilation cache and a sophisticated caching layer for IR files. The codebase exhibits high craftsmanship: reusable typeclass patterns for NIO buffers, a generic versioning/fingerprinting system for cache invalidation, a monadic tracking mechanism for global variable references in the JS emitter, and an inner optimizer that replaces integer divisions with multiply-shift sequences. However, it also carries some technical drift from deprecated APIs (Closure Compiler, old linker interfaces) and dual implementations for old vs new Scala collections.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 6 reusable components found
carbon-language/carbon-lang ★ 33900 1684 APPLICATION

This repository is the compiler toolchain for the Carbon Language, an experimental successor to C++ focused on performance, C++ interoperability, and memory safety. The codebase implements a full compilation pipeline from lexing and parsing through semantic analysis (SemIR) to LLVM IR code generation, along with a language server (LSP), a formatting tool, and C++ interop via Clang integration. The architecture follows a phased compiler design with distinct modules for lex, parse, check, sem_ir, lower, and driver, all orchestrated through a Bazel build system. Key entry points include the main driver binary (`toolchain/driver/`) with subcommands like `compile`, `link`, `build`, `format`, and `language-server`, and the semantic checker (`toolchain/check/`) which handles type checking, generics, and impl resolution. The toolchain also features a robust diagnostics system, a custom high-performance hashtable, and an extensive file-based testing framework with automatic CHECK-line updates. The codebase is actively developed with frequent commits, extensive test coverage, and fuzz testing, though it remains experimental and subject to breaking changes.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
FuelLabs/sway ★ 61406 5411 APPLICATION

This repository is the primary implementation of the Sway programming language and its toolchain, targeting the Fuel blockchain. It contains a full compiler pipeline (lexer, parser, AST, semantic analysis, IR with optimization passes, and code generation for the FuelVM), a package manager CLI (`forc`), a language server (`sway-lsp`), a code formatter (`swayfmt`), a debugger (`forc-debug`), a documentation generator (`forc-doc`), and a migration tool (`forc-migrate`). The standard library (`sway-lib-std`) provides essential blockchain primitives (assets, storage, crypto, etc.). The architecture is modular, with separate crates for the AST (`sway-ast`), IR (`sway-ir`), parsing (`sway-parse`), core compiler logic (`sway-core`), and error handling (`sway-error`). In production, developers use `forc` to build, test, and deploy Sway smart contracts, scripts, and predicates to the Fuel network. The LSP provides IDE features like completions, go-to-definition, and inlay hints. The formatter ensures consistent code style. The debugger enables step-through debugging of on-chain logic. The compiler supports multiple backends (FuelVM primary, EVM experimental) and includes advanced optimizations such as constant folding, dead code elimination, common subexpression elimination, and register allocation. Key entry points include `forc/src/main.rs` (CLI dispatcher), `sway-core/src/lib.rs` (compiler core), `sway-lsp/src/server.rs` (LSP server), and `swayfmt/src/lib.rs` (formatter). External dependencies include the Fuel protocol libraries (`fuel-core`, `fuel-vm`, `fuels-rs`), IPFS for package resolution, and standard Rust ecosystem crates. The repository is production-grade with extensive end-to-end tests, benchmarking infrastructure, and CI workflows.

RATING: 9.2/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
nnjeim/world ★ 991 144 APPLICATION

This repository is a Laravel package that provides comprehensive geographical data (countries, states, cities, timezones, currencies, languages) and IP geolocation functionality. It implements a facade-based interface (`World::countries()`) and RESTful API endpoints (`/api/countries`, etc.) for accessing the data, which is stored in JSON files and seeded into database tables via Artisan commands. The package includes localization support for over 20 languages, configurable modules, caching mechanisms, and middleware for automatic locale and geolocation handling. The architecture follows Laravel conventions with service providers, controllers, models, migrations, and seeders, while employing an Action pattern to separate query logic, transformation, and business rules.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
vlang/v ★ 37932 2292 APPLICATION

This repository is the official compiler, standard library, and toolchain for the V programming language. It is a self-hosting, multi-backend compiler (primarily targeting C, with experimental JS and WASM backends) that produces highly optimized native executables. The standard library is exceptionally comprehensive, offering built-in support for cryptography (AES, SHA3, Ed25519, TLS via mbedtls), compression (gzip, zstd, lz4, snappy), database connectivity (SQLite, MySQL, PostgreSQL, MSSQL, Redis), a full web framework (veb), graphics (gg, sokol), and CLI development tools. The architecture is a monolithic compiler with a modular standard library. The compiler pipeline involves scanning, parsing, type-checking, and code generation. The build system uses a multi-stage bootstrap process. The codebase demonstrates extremely high craftsmanship, with clean abstractions, extensive test coverage, and reusable components. It is actively maintained with a large community. Key reusable components include the pure-V implementations of cryptographic primitives (Ed25519, SHA-3), compression algorithms (LZ77, Snappy), data structures (lock-free ring buffer, FSM), and the CLI framework. These modules are isolated, well-tested, and could be extracted for use in other projects with minimal modification.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 9 reusable components found
master-co/css ★ 1949 44 APPLICATION

Master CSS is a comprehensive CSS framework and toolchain that enables writing CSS directly in class attributes using a concise utility syntax. The system supports multiple rendering modes: a runtime engine that dynamically generates and injects CSS in the browser, a static build-time compilation mode for zero-runtime production output, and progressive hybrid modes that pre-generate critical CSS and hydrate on the client. It includes a fully modular architecture with over 30 packages covering a core engine, compiler, scanner for class extraction, validator, language server, ESLint plugin, CLI, MCP server, and first-class integration plugins for Vite, Next.js, Nuxt, Astro, Svelte, Webpack, and more. The codebase is production-grade with extensive unit and e2e tests, a dedicated benchmarking suite measuring CSS output sizes, build timings, and browser lifecycle performance, and a documentation site with interactive playground. While primarily a JavaScript/TypeScript application library, it also contains benchmark infrastructure that produces analytical metrics. The architecture is strongly layered with well-defined schema contracts (manifest JSON) enabling loose coupling between packages.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 5 reusable components found
fusionlanguage/fut ★ 1927 71 APPLICATION

Fusion Transpiler (fut) is a self-hosting, multi-target transpiler that translates code written in the Fusion language into C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript, and OpenCL C. The repository contains the complete compiler implementation written in Fusion itself, including a lexer, parser, semantic analyzer, and a family of code generators organized via a visitor pattern. It also includes a comprehensive test suite, command-line interfaces for multiple host languages (C++, C#, Java, Node.js), editor integrations (VS Code, Vim, Sublime, Visual Studio, LSP server), and packaging for Debian, Windows, and RPM. The architecture follows a classic compiler pipeline with a clear separation of concerns, and the self-hosting bootstrap ensures the compiler is exercised on its own code. This is a pure application project with no data processing or research components; it is a production-quality compiler toolchain.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 2 reusable components found
rakudo/rakudo ★ 1896 387 APPLICATION

Rakudo is the primary, production-ready compiler for the Raku programming language (formerly Perl 6). It implements the full Raku specification across three virtual machine backends: MoarVM (primary), JVM, and JavaScript. The compiler translates Raku source code through a pipeline of grammar parsing, AST construction (with both a legacy QAST-based frontend and a modern RakuAST frontend under development), semantic analysis, optimization, and code generation. At its core lies a meta-object protocol (6model) composed of reusable, mixin-based roles that define the semantics of classes, roles, grammars, enums, and other type system constructs. The architecture is modular: the compiler frontend (`src/Perl6/` or `src/Raku/ast/`), the runtime / setting library (`src/core.c/`, `src/core.e/`), the meta-model (`src/Perl6/Metamodel/`), and backend-specific modules (`src/vm/moar/`, `src/vm/jvm/`, `src/vm/js/`). Key entry points include the MoarVM C runner (`src/vm/moar/runner/main.c`), the main NQP entry (`src/main.nqp`), and the module loading chain (`CompUnit::Repository` hierarchy). The language supports multiple revisions (6.c, 6.d, 6.e.PREVIEW) gated by lexically scoped pragmas. Rakudo is not a data research project; it is a compiler/runtime for general-purpose programming. It exposes no data pipelines, analysis frameworks, or scientific computing abstractions beyond what the Raku language itself offers. The codebase is actively maintained with monthly releases, though the JVM backend has known issues and the transition to the RakuAST frontend is ongoing, introducing temporary dual-frontend complexity.

RATING: 8.8/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
lmorg/murex ★ 1913 40 APPLICATION

Murex is a cross-platform shell and scripting language designed as a more readable, safe, and type-aware alternative to Bash. In production it works as both an interactive REPL (with autocomplete, hint text, preview panes, spellchecking, and job control) and a scripting interpreter with a custom expression language, typed pipelines, exception handling (try/catch/trypipe), multi-scope variables, a built-in unit test framework, event hooks (onPrompt, onKeyPress, onFileSystemChange, onSignalReceived), an HTTP client, and a package/module manager. The defining architectural feature is that data in pipelines carries type metadata: JSON, YAML, CSV, TOML, XML, S-expressions, HCL and more are first-class structured objects with registered Marshal/Unmarshal/ReadArray/ReadMap/ReadIndex hooks, so builtins like alter, tabulate, count, and jsplit operate on structured data rather than raw text. The implementation is Go (with a JS/WASM interpreter variant), organized around lang/ (parser, expression engine, process lifecycle), shell/ (interactive terminal layer), builtins/ (roughly 200 commands, data type adapters, pipes, and event handlers), config/ (profile-driven runtime configuration), and utils/ (standalone helper libraries).

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 6 reusable components found
jcubic/lips ★ 507 45 APPLICATION

LIPS is a Scheme (R7RS/R5RS) interpreter written in JavaScript, designed to run in browsers, Node.js, and Web Workers. The core interpreter (lexer, parser, evaluator, environments, types, serialization) lives in a monolithic `src/lips.js` (~10k+ lines), while roughly half the standard library is written in Scheme itself (`lib/`), including R7RS base procedures, SRFI implementations, and a bootstrap library. The system is self-hosting: the standard library is compiled to a binary CBOR+LZJB format (`dist/std.xcb`) for fast loading. The interpreter features both unhygienic macros (`define-macro`) and hygienic macros (`syntax-rules` with `free-identifier=?`), first-class continuations with tail-call optimization, a full numeric tower (complex numbers, exact rationals), and deep JavaScript interop (dot access, `new`, Promises, ES modules, `require`). It ships with a REPL (terminal and browser), a CLI (`bin/lips.js`), and a Docusaurus documentation site with an interactive interpreter. The codebase is actively maintained (last commit Sept 2026) with a comprehensive test suite including R7RS conformance tests, snapshot tests for parser output, and Scheme-level test files. Known limitations include some failing tests (marked `test.failing`), a monolithic core that is hard to navigate, and dual macro systems that can confuse contributors. The project is in beta with frequent breaking changes (documented in CHANGELOG.md).

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
i18next/i18next-browser-languageDetector ★ 970 99 APPLICATION

This repository provides the official browser language detection plugin for i18next. It implements a modular strategy pattern where each detector (cookie, querystring, localStorage, sessionStorage, navigator, htmlTag, path, subdomain, hash) is a self-contained module with a consistent interface. The main `Browser` class orchestrates detection by iterating through a configurable order of detectors, filters out XSS vectors, and optionally converts detected language codes. The code is well-structured, tested, and production-grade; the cookie detector in particular includes a robust RFC-compliant serialization function. Everything is browser-native with no heavy dependencies beyond i18next itself.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 2 reusable components found
ArashPartow/exprtk ★ 1022 322 APPLICATION

ExprTk is a header-only C++ library for runtime mathematical expression parsing and evaluation. It provides a complete system for defining mathematical expressions as strings, compiling them into an internal AST representation, and evaluating them with variable values. The library supports scalar, vector, and string types, arithmetic operations, trigonometric functions, logarithms, control structures (if, for, while, switch), user-defined functions, and assignment operations within expressions. It employs sophisticated parsing techniques including constant folding, strength reduction optimizations, and runtime safety checks for vector bounds and loop execution time. The architecture consists of three main components: symbol table (for variables/constants/functions), expression (holding the parsed AST), and parser (compiling expression strings).

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 4 reusable components found
ralfbiedert/cheats.rs ★ 4564 445 APPLICATION

This repository powers https://cheats.rs/, a single-page interactive reference for the Rust programming language. Built with the Zola static site generator, it combines a massive Markdown content file (`content/_index.md`) with custom HTML, SCSS, and JavaScript to deliver a highly interactive cheat sheet. Core features include tabbed panels, memory-layout visualizations (using custom HTML tags like `<datum>` and `<memory-row>`), a day/night mode, an inline code playground, and an X-Ray feedback system that collects per-section sentiment via an external API. The build pipeline is orchestrated by a Gitea Actions workflow that runs Zola, post-processes with PostHTML (inlining assets), generates a PDF with Playwright, and deploys to S3 with Cloudflare cache purging. The codebase is well-structured for its domain, with clean separation of styling (SCSS), client-side logic (vanilla JS), and build scripts. It is actively maintained and demonstrates strong craftsmanship in creating a rich, offline-capable documentation experience, though its single-file content source is fragile and the heavy external dependency on api.cheats.rs poses a risk if the API goes down.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 3 reusable components found
marcobambini/gravity ★ 4563 238 APPLICATION

Gravity is an embeddable, dynamically typed scripting language written in portable C99 with no external dependencies beyond the C standard library. The repository implements a full language toolchain: a multi-pass compiler (lexer, Pratt parser, AST, IR, optimizer, bytecode codegen) and a register-based virtual machine with mark-and-sweep garbage collection. It provides a CLI (`gravity` executable) for running scripts and a well-defined C embedding API. The architecture is modular, with clear separation between compiler (`src/compiler`), runtime (`src/runtime`), shared utilities (`src/shared`), and optional modules (Math, File, JSON, ENV). The codebase is extensively tested with unit tests (embedded `#unittest` blocks) and a large fuzzing corpus for crash resistance. Despite some monolithic files (`gravity_core.c` >4000 lines) and heavy macro usage, the implementation demonstrates strong software engineering craftsmanship, especially in the hash table, dynamic array macros, and Pratt parser. The project appears to be under active maintenance (last commit 2026-08-05, 34 open issues, 4.5k stars) but shows some technical drift such as outdated CI configurations, platform-specific ifdefs, and a fuzz corpus from 2017.

RATING: 8.1/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
$ loading more...
$ submit: