Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Oh but there is :) As a library author I really don't want to dictate users what compiler to use,

sure, there's nothing wrong with self-inflicted pain. Rust shows that a compiler monoculture works much better in practice.



When everything you need is Linux.


I use a clang/libc++ toolchain to target Linux, macOS and Windows - works like a charm. It's also the toolchain used by Android and iOS, and I could also do some WASM with it. So portability here is definitely not an issue to me


A small portion of operating systems and CPUs available in the market.

I thought the message was about everyone not your bubble.


c'mon, clang is able to target x86&64, ARM, AArch64, MIPS, AVR, RISC-V, WASM among others - those combined are 99.9% of the market (and 100% of the market for desktop apps).


Among others is still a smaller pie than either GCC or vendor specific compilers on embedded systems CPUs and operating systems.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: