Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Universal Docker Compiler Workspace Engine

A high-performance, language-agnostic development environment sandbox engineered to completely eliminate tool-chain friction, hide environment complexity, and bypass heavy visual editor extension bloat.

This platform uses a lightweight, guest-to-host file signaling bridge to link an isolated Linux development container natively to the Windows host OS, allowing terminal-driven visual workspace tracking alongside an automated, dual-compiler cross-compilation pipeline.


Technical Architecture Overview

Standard development container workflows heavily rely on resource-intensive, performance-sapping background extensions to continuously parse files and synchronize state over network sockets. This engine shifts the entire operational infrastructure directly to raw container architecture:

  • Zero-Extension Volume Mapping: Links your host operating system directory tree natively to the isolated virtualization layer via high-speed, persistent container mounts.
  • Parallel Dual-Compiler Synchronization: Cross-compiles source code assets across both GNU and LLVM compilers simultaneously in a single keystroke, performing immediate redundancy audits to guarantee code robustness.
  • Inter-Process Communication Bridge: Utilizes a lightweight text token signal file inside a dedicated tracking folder to communicate folder changes from an isolated Linux terminal straight back to the Windows host OS to seamlessly manipulate the editor GUI on demand.

Future Scalability Roadmap

The core design of this platform is entirely modular and decoupled. The heavy lifting—including the recursive search core, the active window-reloading loop, and the terminal position synchronization—operates completely independently from language-specific runtime commands.

Expanding or porting the entire environment sandbox to support backend frameworks like Java, Rust, or Python requires modifying only the central build execution hooks inside a dedicated environment module, preserving your unified development interface across your entire project portfolio.

C:\x0\labs\universal-docker-compiler\
├── env/
│   └── ccpp/
│       ├── docker/
│       │   └── Dockerfile
│       ├── run.ps1
│       ├── exec.ps1
│       └── profile-bash.sh
└── README.md

Step-by-Step Guide: How to Use the Program

  • 1. Boot the Environment: Open your PowerShell window on Windows and launch your container ecosystem using your global macro shortcut command: dockerccppcompiler
  • 2. Synchronize Your Position (Optional): If you just used a visual jump in a previous session and your terminal reboots at the root /x0 directory, simply type folder with no arguments. It will automatically read your environment markers and snap your terminal prompt focus straight down into your active visual workspace.
  • 3. Leap to Your Lab:
    • Type folder <lab_name> for silent terminal-only navigation.
    • Type jump <lab_name> to execute a full workspace window reload that snaps your visual sidebar explorer panel directly into focus. You can use space-separated or slash-separated keywords (e.g., jump university test).
  • 4. Trigger the Deep Audit Build: Type compile to analyze your current directory files. The script automatically determines your source language (C or C++), reads your location name, attaches your standard compiler diagnostics, and builds your binaries in parallel.
  • 5. Execute the GNU Engine: Type xg to run your freshly compiled GNU binary (-cpp or -gcc).
  • 6. Execute the LLVM Engine: Type xc to run your freshly compiled Clang binary (-clangpp or -clang) to verify dual-compiler output integrity.
  • 7. Purge the Space: Type clean when your validation testing is complete to wipe the active folder binaries out and prepare your source code folder for a clean grading or production submission.

Program Features Overview

This framework provides exactly seven core features inside the container terminal:

  • Context-Aware Compilation (compile): Automatically scans the active directory for code files, branches by language standard (C++20 for .cpp, C11 for .c), and cross-compiles across both GNU and LLVM compilers simultaneously using enterprise-standard dash suffixes (-cpp, -clangpp, -gcc, -clang).
  • Dynamic Production Naming Engine: Extracts the exact base name of your active workspace directory on the fly and appends that name to your generated machine binaries (e.g., folder matrix_calc generates binary matrix_calc-cpp), matching the architectural behavior of top-tier orchestration frameworks like Cargo and CMake.
  • Streamlined Execution Layer (xg and xc): Delivers high-performance, two-character terminal shortcuts that eliminate typing standard Linux directory syntax paths (./). Resolves your language context dynamically to correctly map xg to GNU and xc to LLVM/Clang pipelines, keeping your testing phase lightning-fast.
  • Color-Coded Status Logging: Prints a bright yellow tracking bar ([BUILDING]) when a compiler launches, a bright green success notification ([SUCCESS]) once your fresh binaries are successfully generated, and a red error message ([ERROR]) if no source code is found or if a compilation fails.
  • Automated Cleanup Workspace Tool (clean): Scans the active directory for compiled program files and instantly deletes the generated context-aware binary outputs to leave the folder completely pristine before final project submissions while keeping the raw source code files untouched.
  • Segment-Aware Silent Folder Navigation (folder): Supports space-separated or slash-separated keywords (e.g., folder university test), allowing the advanced core search engine to recursively bypass intermediate folders to find your destination path under case-insensitive validation. Employs process substitution streaming to guarantee path parameters persist across levels without getting dropped by child background subshells.
  • Active Terminal Synchronization Upgrade (folder with no arguments): Instantly syncs your terminal prompt focus right down into your active visual workspace by reading the hidden tracking tokens written during window-reloading visual teleports, saving you from re-typing extensive path locations manually when a fresh container terminal boots up.
  • Full Window-Reload Visual Teleport (jump): Executes a full workspace visual reset on demand using a dedicated, zero-bloat signaling file path (/x0/scripts/.vscode-jump). Prints a bright yellow tracking bar ([JUMPED] Jumping to "[Path]"...) when initialized and outputs a bright green completion notification ([SUCCESS] Successfully jumped to "[Path]"...), triggering the native host OS command loops to reload your file-tree panel layout and lock your sidebar explorer focus onto your deep lab project directory in one seamless step.

About

Containerized, language-agnostic build & DX framework bypassing heavy IDE extension bloat. Uses guest-to-host volume mounting & file signaling to link an isolated Linux terminal natively to the host Windows OS, enabling real-time workspace tree synchronization alongside an automated parallel GNU/LLVM dual-compiler toolchain.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors