Syntatic Sugar that compiles to C

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • langs

  • But it is not significantly higher level. Your list of features are rather more than syntactic sugar, and belong a level or two above. Mine only ticks 3 of your boxes, and doesn't compile to C. (Syntax examples.)

  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

  • According to Wikipedia, for Zig "A major goal of the language is to improve upon the C language". However it does not compile to C (it's using LLVM currently) so this is not a good answer to your question, but there might be parts of its design that you find interesting.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • datatype99

    Algebraic data types for C99

  • OP, you might find datatype99 and its sibling projects interesting, though they mostly leverage the C preprocessor without going all the way towards defining a new language.

  • c-mera

    Next-level syntax for C-like languages :)

  • even more interesting are the handful of projects layering lisp style macros on top of C. i've seen several go by over the years; a quick google search brought up c-mera and cmacro.

  • cmacro

    Lisp macros for C

  • even more interesting are the handful of projects layering lisp style macros on top of C. i've seen several go by over the years; a quick google search brought up c-mera and cmacro.

  • lisp-preprocessor

    Common lisp embedded template engine

  • Can't share details of my own work but you can check out projects like https://github.com/cxxxr/lisp-preprocessor, that's what got my attention in this direction.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts