HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hoyhoy

no profile record

comments

hoyhoy
·5 miesięcy temu·discuss
ASAN/LSAN is amazing. It absolutely monkey-hammers performance though.
hoyhoy
·5 miesięcy temu·discuss
I looked at trying to implement -fbounds-safety and -Wunsafe-buffer on a reasonably large codebase (4,000 C and C++ files), and it's basically impossible.

You have to instrument every single file. It can be done in stages though. Just turn the flag on one-by-one for each file. The xnu kernel is _mostly_ instrumented with -fbounds-safety.
hoyhoy
·5 miesięcy temu·discuss
Xcode (AppleClang) has had -fbounds-safety for a while now. What is the delay getting this into merged into LLVM?
hoyhoy
·6 miesięcy temu·discuss
I've been having the same thought. Just move back to a file structure which is what I was doing from 1995 until 2007 before migrating to iPhoto.

The metadata in Apple Photos doesn't fully sync to iOS over a cable now. Did Apple intentionally make offline sync not work to force everyone on to iCloud? Also, even the local search inside of Apple Photos doesn't work correctly either. I thought it was hilarious when they tried add "AI" to this shitshow. Apple literally can't even make a local tag search.

Isn't it possible to put all the metadata in EXIF tags? People keep telling me to use Immich, but IDK.
hoyhoy
·6 miesięcy temu·discuss
I looked through the Windows SDK header files recently due to reasons, and there are very few additions since Windows Vista. MS isn’t actively developing the core functionality of Windows anymore.
hoyhoy
·6 miesięcy temu·discuss
There are a cluster of issues. macOS is linked against Xcode's libcxx. LLVM 21 changed the ABI compatibility because they upgraded the hashing algorithm from murmur to something even fancier. Homebrew has it fixed allegedly, but I keep getting gh notifications from people having issues. My solution is not for the weak of spirit... https://gist.github.com/hoyhoy/492cf3077239baececb6b838bf620...
hoyhoy
·6 miesięcy temu·discuss
I asked the guy working on compiler-rt to change one boolean so the LLVM 18 build would work on macOS, and he locked the whole issue down as "heated" and it's still not fixed four years later.

I love LLVM though. clang-tidy, ASAN, UBSAN, LSAN, MSAN, and TSAN are AMAZING. If you are coding C and C++ and NOT using clang-tidy, you are doing it wrong.

My biggest problem with LLVM rn is that -fbounds-safety is only available on Xcode/AppleClang and not LLVM Clang. MSAN and LSAN are only available on LLVM and not Xcode/AppleClang. Also Xcode doesn't ship clang-tidy, clang-format, or llvm-symbolizer. It's kind of a mess on macOS rn. I basically rolled my own darwin LLVM for LSAN and clang-tidy support.

The situation on Linux is even weirder. RHEL doesn't ship libcxx, but Fedora does ship it. No distro has libcxx instrumented for MSAN at the moment which means rolling your own.

What would be amazing is if some distro would just ship native LLVM with all the things working out of the box. Fedora is really close right now, but I still have to build compiler-rt manually for MSAN support..