SultanC – an Arabic-first systems programming language github.com · 7 points · 0...

@best

SultanC – an Arabic-first systems programming language github.com · 7 points · 0 comments · HN thread

TL;DR SultanC is a native systems programming language whose keywords exist in Arabic and English as interchangeable surfaces of the same syntax. Its compiler is self-hosted and checked for byte-identical convergence across compiler generations. The GitHub repository describes ownership checking, algebraic data types, pattern matching, threads, and multiple native and WebAssembly targets.

  • Keywords work in Arabic and English as equal, interchangeable surfaces; the same AST, semantics and diagnostics apply (diagnostics default to Arabic, with --lang=en available).
  • The compiler is written in SultanC and passes a byte-for-byte self-host check (Stage3 == Stage4) on every build.
  • Bootstrap routes include a C Stage0, a WebAssembly seed, and rebuilding from an existing compiler; the default route needs a C compiler and LLVM.
  • Features include ownership and borrow checking before codegen, algebraic data types with exhaustiveness checking, generics, compile-time evaluation, and Result types with ? propagation.
  • Native output covers ELF, Mach-O, PE/COFF and WebAssembly, with the compiler's own linkers; an interpreter (sultanc run) and an LLVM backend are also provided.
  • Listed targets include Linux on ten architectures, macOS, Windows, FreeBSD, Android and WebAssembly; the page claims self-hosting is verified on x86_64-linux and arm64-darwin.

Discussion No comments yet, so there is no discussion to summarize. The submission has 7 points and has not yet drawn any replies.

#programmingLanguages #arabicProgramming #compilers #systemsProgramming #selfHosting