Earlier quoted context omitted.
Have you tried ASAN? If you like valgrind, you will be in love with ASAN, it's really surpassed it at this point IMHO.
Be careful with ASAN on cryptographic code, though. It can introduce side channels.
Zig cc: A drop-in replacement for GCC/Clang (2020)
121–126 of 126 posts
Re: Zig cc: A drop-in replacement for GCC/Clang (2020)
#122Earlier quoted context omitted.
Have you tried ASAN? If you like valgrind, you will be in love with ASAN, it's really surpassed it at this point IMHO.
I have tried ASAN, and I'm fully prepared to love it, but last time I tried to use it with Cython, it was pretty fidgety to configure my build system to get it running -- unlike valgrind, you need to understand how programs are compiled and linked. If you want ASAN to see into the Python that's calling/consuming your Cython, you need to build a custom Python. It's certainly a sharper tool, but valgrind has the learni…
Re: Zig cc: A drop-in replacement for GCC/Clang (2020)
#123Earlier quoted context omitted.
I have tried ASAN, and I'm fully prepared to love it, but last time I tried to use it with Cython, it was pretty fidgety to configure my build system to get it running -- unlike valgrind, you need to understand how programs are compiled and linked. If you want ASAN to see into the Python that's calling/consuming your Cython, you need to build a custom Python. It's certainly a sharper tool, but valgrind has the learni…
Ugh yeah, it just doesn't work well with Python. A friend of mine went down the same rabbit hole trying to debug a C extensions... it's a shame.
Re: Zig cc: A drop-in replacement for GCC/Clang (2020)
#124Earlier quoted context omitted.
Do you think that Rust would be a better language if everything had to be compiled from source?
Obviously I don't. And that's totally consistent with learning from Zig about how to improve the cross compilation story for Rust. (Trivially: compile some things from source, but not other things.) I'm honestly pretty disappointed at your participation in this thread. It seems like you're going out of your way to assume the worst possible interpretation of what folks are saying.
Re: Zig cc: A drop-in replacement for GCC/Clang (2020)
#125Earlier quoted context omitted.
I don't. We could approximate it by shipping all targets by default, but few really want that and the few who do can just install those targets with rustup.
Sure, like many things, I bet you could pick three or four and get 90% of the default coverage. That still helps 90% of the users. I also think you're really missing out on the "compile C code easily too" thing. That isn't very pleasant at all in Rust today. (Finally, one reason it’s so big is that we ship binaries. This ships source. std-aware cargo could really help here.)
So much this. Cross compiling pure Rust code is really easy today but as soon as you have a C dependency in your dep tree, you're gonna have a bad time.
Re: Zig cc: A drop-in replacement for GCC/Clang (2020)
#126Earlier quoted context omitted.
The difference is really not just one command. I suggest you go out and actually try Zig cross compilation or at least read more about it. Andrew Kelley has written a lot about it. The work impressed me so much that it was one of the things that provoked me to become a financial supporter of Zig. (Even though I haven't written a line of Zig yet.) Cross compilation in Rust is better than C or C++. But it's still a big…
Do you think that Rust would be a better language if everything had to be compiled from source?