Qsuedioue

From HandWiki

Qsuedioue is a statically compiled programming language and toolchain for systems programming, written in C23. Its compiler, qsd, emits native machine code through two backends — a just-in-time (JIT) encoder and an ahead-of-time (AOT) emitter targeting NASM (PE/Windows) and the GNU assembler (ELF) — and ships with a small runtime (qsrt) and a pretested standard library (STD) and math library (MTL) of headers.

History

Qsuedioue was created on November 5, 2026, as a personal research project. Its stated design goals were native-code performance competitive with C/C++, small static binaries, deterministic memory behavior, and eventual self-hosting. Parts of the project — including the standard library headers and documentation — are published in a public source repository;[1] the compiler implementation itself is not currently public.

Language design

The language uses newline-terminated statements with a small keyword set. Function calls use braces (print{x}), function parameters use parentheses, and conditional expressions do not use parentheses. It provides:

  • Value types including integers and booleans, and the pointer type
 ptr<T> supporting address-of (&x),
 dereference (*p), and indexing (p[i]).
  • Automatic pointer-array growth through a custom memory allocator
 called Ghoul, which uses a forwarding-pointer registry; buffers
 can be resized, grown, shrunk, and queried via resize,
 grow, shrink, memsize, and
 free.
  • Concurrency primitives spawn and join
 backed by a persistent worker pool (qsrt_pool), currently
 targeting Win64.
  • An optional deterministic memory mode,
 -Force-ZOrder-RAM, which maps allocations into a static
 64 MiB bump arena so addresses are identical across runs; this
 is intended for debugging and reproducibility rather than
 production use.
  • Foreign-function bindings via extern "dll" declarations.
  • A freestanding --bare mode (no runtime or standard
 library, -nostdlib linking, custom entry point) aimed
 at operating-system and embedded development.

Known limitations documented by the project include the absence of else if chains, break, and continue; function-scoped rather than block-scoped var declarations; and no pointer arithmetic on raw addresses.

Implementation

The compiler front end (lexer, parser, semantic analysis, and an intermediate representation called QIR) is written in C23. The JIT backend encodes x86-64 directly and resolves runtime symbols through a fixed table plus on-demand DLL loading. The AOT backend emits assembly for NASM on Windows and GNU AS for ELF targets built through WSL. Runtime facilities — printing, allocation, process execution, HTTP client and server functions, OpenCL bindings, and a deterministic allocator — are implemented in C and linked into every non-bare AOT binary.

The project reports that optimization level -Ofast enables a fixpoint QIR sweep, dead-code elimination, constant folding, strength reduction, and an assembly peephole pass. Standard library headers (.qsdh) are textually included, and the compiler can emit per-header precompiled objects linked with --std-obj.

Performance

The project publishes benchmark comparisons against [[GNU Compiler Collection|GCC]]. On a mixed suite of arithmetic, allocation-heavy, and loop benchmarks compiled with GCC at multiple optimization levels, the project's figures show Qsuedioue AOT and JIT builds within roughly ±1% of the best GCC build, and ahead of GCC on some workloads. On recursive fibonacci-style code, Qsuedioue was measured approximately 20–25% slower than GCC -O2; the project attributes this to GCC's conversion of certain recursive calls into explicit-stack iteration, which Qsuedioue does not currently perform. Binary sizes in the published figures are comparable to, though somewhat larger than, equivalent stripped GCC binaries. These figures are self-reported by the project and have not been independently verified.[1]

Ecosystem

The distribution includes a standard library of headers covering mathematics, strings, time, file I/O, cryptography primitives, GLFW graphics bindings, an HTTP client and server, OpenCL GPU access, process execution, and bindings for the Browzer webview and JavaScript interpreter. A console and SDL2 -based graphical IDE, a Visual Studio Code extension, and Windows installers (MSI and Inno Setup script) are also part of the project. The Ghoul allocator itself is self-hosted — written in Qsuedioue and compiled by qsd.

Reception and status

Qsuedioue is a young, single-maintainer project. It is not yet widely adopted, has no published third-party benchmarks, only parts of the source are publicly available, and its Windows support is more complete than its ELF support. The project documentation is candid about its limitations, including the recursive-call performance gap and the fact that its JIT backend lags the AOT backend in frame management.

References

  • [1] Qsuedioue standard
 library and documentation] — GitHub

| This is ZEGA Software