Prolog is the ultimate programming language for the author, even though they acknowledge C as the most practical. To bridge the gap, they introduce “C Plus Prolog,” a hybrid language that combines the strengths of both. This innovative language features unique syntax quirks, such as converting Prolog terms to valid C code and offering a new *=> operator for substitutions. While C+P adds complexity with verbose syntax, poor man’s generics, and compile-time reflection, users looking for alternatives may find Nim, Haxe, or cmacro more user-friendly. Ultimately, C+P is an ambitious experiment in macro-driven systems programming, offering an alternative approach to traditional languages.
https://github.com/needleful/c_plus_prolog