A C compiler which can compile itself (in 2048 bytes)

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • quickjs

    Public repository of the QuickJS Javascript Engine.

  • He also created QuickJS, that's javascript server side, like NodeJS but much faster to start programs. https://bellard.org/quickjs/

  • Nim

    Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

  • Another practical application is using tinycc as a backend compiler for Nim [1]. I set up my nim.cfg to default to this for a rapid edit-compile-test cycle (usually under 250 millisec), with a quick define switch to move to gcc-optimized code.

    Similar is likely possible for other prog.langs that emit C.

    One helpful feature for the full round-trip to an executable file is a built-in object file linker.

    Also, libtcc can be used as a library to "compile a string" and then run it which is the JIT application mentioned elsewhere in this thread.

    [1] https://nim-lang.org

  • 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
  • chibicc

    A small C compiler

  • What do you think about chibicc in comparison? It supports C11.

    https://github.com/rui314/chibicc#chibicc-a-small-c-compiler

  • uemacs

    Random version of microemacs with my private modificatons

  • Linus has his own port of the venerable MicroEmacs[1]. As does Walter Bright[2], by the way.

    qemacs is actually quite advanced, and even includes a basic HTML renderer (for the help). I was half joking that with quickjs, one now can make a reasonably modern web browser out of bellard-ware…

    [1]: https://github.com/torvalds/uemacs

    [2]: https://github.com/DigitalMars/med

  • postal-codes

    Ariel Uzal & Greg Technology ❧ Code Conversations by Mail

  • Co-dfns

    High-performance, Reliable, and Parallel APL

  • It's funny to see the Perl comparison when APL-family languages normally have code that looks like that:

    https://github.com/Co-dfns/Co-dfns/tree/master/cmp

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

  • The nim website and the downloads are insecure

    1 project | /r/nim | 11 Dec 2023
  • NIR: Nim Intermediate Representation

    1 project | /r/hackernews | 2 Oct 2023
  • Ask HN: How long does it take to find a job?

    1 project | news.ycombinator.com | 9 Aug 2023
  • Nim lang version 2 released

    1 project | news.ycombinator.com | 1 Aug 2023
  • Nim for Python Programmers

    1 project | news.ycombinator.com | 11 Jul 2023