Kefir C17/C23 Compiler

(sr.ht)

93 points | by conductor 3 days ago

2 comments

  • vzaliva 3 hours ago
    I think it is fantastic to have more compiler implementations. It was probably also a fun project to code. What I find lacking in web pages is a motivation. What makes it different from popular compilers? Where is this project heading? What would be potential benefits/use-cases for using this compiler vs others, lessons learned, etc.?
    • adamrt 3 hours ago
      I agree on it being fantastic.

      For your other questions I found these in the linked text

          - https://sr.ht/~jprotopopov/kefir/#goals-and-priorities
          - https://sr.ht/~jprotopopov/kefir/#history-and-future-plans
      • lolpython 2 hours ago
        Those sections don't really provide details on the author's motivations to be honest
        • applfanboysbgon 33 minutes ago
          I think they provide enough information to take a reasonable guess. It seems likely to me that the author is the type of programmer who prefers to understand what their code is doing, with as little magic involved as possible. Using other people's compilers is very magical, all kinds of transformations are being applied to the code you wrote and you are relying entirely on abstractions without really knowing how your code translates to controlling the hardware. Some people prefer to know exactly that.
  • nine_k 1 hour ago
    It's amazing how much one motivated person can achieve. Also, how competent the result seems to be. The test suite alone is pretty impressive.