[HN Gopher] Show HN: Optimizing compiler for a large subset of C...
       ___________________________________________________________________
        
       Show HN: Optimizing compiler for a large subset of C, written in
       Rust
        
       Hello.  I wanted to share what I had been working on for the past
       couple of months or so. It's an optimizing C compiler for a large
       subset of the C programming language written in Rust. It's
       basically a Rust implementation of the C compiler from Nora
       Sandler's book[1].  It has been a great educational exercise and I
       wholeheartedly recommend it to everyone.  [1]:
       https://nostarch.com/writing-c-compiler
        
       Author : xqb64
       Score  : 11 points
       Date   : 2024-10-22 00:42 UTC (3 days ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | lutusp wrote:
       | It's my hope that people will take the hint: "Wait ... if Rust is
       | a better way to compile C than C itself, maybe I should learn
       | Rust."
        
         | kif wrote:
         | I've tried Rust, and it's just too much cognitive overhead. C
         | is simple, and that simplicity is hard to beat. Go on the other
         | hand is more like C in that regard.
        
         | hu3 wrote:
         | Currently, that would be Zig.
        
         | yjftsjthsd-h wrote:
         | What makes you think Rust is a better way to compile C than C?
        
           | fanf2 wrote:
           | [delayed]
        
         | unclad5968 wrote:
         | Rust itself is compiled with LLVM which is millions of lines of
         | C++. Does that mean that C++ is better than rust?
        
       ___________________________________________________________________
       (page generated 2024-10-25 23:00 UTC)