3 ms·
Features that the new compiler has which the C++ implementation lacked: * The ability to translate C code into Zig * A caching system * A Mach-O linker, ELF
by AndyKelley 4y ago
Features that the new compiler has which the C++ implementation lacked:
* The ability to translate C code into Zig
* A caching system
* A Mach-O linker, ELF linker, COFF linker, and WebAssembly linker
* Logic to build musl libc, mingw-w64 libc, and (dynamic) glibc from source, as well as libunwind, libc++, libc++abi
* Liveness analysis
* A documentation generation system (Autodoc)
* An x86_64 backend, aarch64 backend, WebAssembly backend, RISCV-64 backend, arm backend, SPIR-V backend, and C backend
- cryptonector 4y agoWhere would I read more about Zig? Not that I have cycles to spare, but I think a fair bit about moving from C. For example, I maintain an ASN.1 compiler written in C, and I hate C, so I made it emit a JSON AST of ASN.1 modules, and now a friend of mine just wrote a backend in Swift that takes that JSON AST output and produces Swift code / templates. Leaving C behind requires a good path for porting legacy C to the new thing, or else tons of time and mindshare to get new things built. So D and Zig are very appealing.
- badpun 4y agoHey Andrew, Given that one of the most often repeated complainst is the lack of operator overloading, which makes any kind of vector math (so, all graphics programming, and many other things) very ugly, would you re-consider adding it to the language?