HNHacker News
TopNewBestAskShowJobs

hoyhoy

57 karma · joined July 21, 2007

ɥʇnɹʇ ɟo uɐıpoʇsnɔ puɐ 'uɐıɹɐןɐnʇɔɐ' ʇsıɔısʎɥdɐʇǝɯ ʎbɹǝuǝ-ɥbıɥ 'ɹǝɥdosoןıɥd ǝɔuɐןǝǝɹɟ 'ɹǝuoɥʇɐɹɐɯ-ɟןɐɥ 'ʇsıʇuǝıɔs ɹnǝʇɐɯɐ
submissionscomments
hoyhoy··on -fbounds-safety: Enforcing bounds safety for C
ASAN/LSAN is amazing. It absolutely monkey-hammers performance though.
hoyhoy··on -fbounds-safety: Enforcing bounds safety for C
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··on -fbounds-safety: Enforcing bounds safety for C
Xcode (AppleClang) has had -fbounds-safety for a while now. What is the delay getting this into merged into LLVM?
hoyhoy··on A Lament for Aperture
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··on Prediction: Microsoft will eventually ship a Windows-themed Linux distro
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··on LLVM: The bad parts
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··on LLVM: The bad parts
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..

hoyhoy··on Zynga Files to Raise $1 Billion via IPO
Betting _for_ this is like betting against humanity!
hoyhoy··on Ask HN: Ridiculous Coding Practices by companies you have worked for
I was paid over six-figures to share a computer with another programmer all day long even though studies have shown that to halve productivity.
hoyhoy··on "Joel Spolksy is wrong about my work" - Kent Beck
Kent Beck's system is awesome if you want to subjugate a thousand programmers working at a bank. In some sense, it is a very successful way of forcing stupid people to build mediocre products under threat of economic violence.
hoyhoy··on Tim O'Reilly to software developers: Get serious
Wait, who owns the Web 2.0 trademark? Who holds a Web 2.0 conference every year?

This is sort of like the pope telling people to stop being Catholic.

hoyhoy··on Ask HN: what software do you use for analyzing apache logs?
AWStats with GeoIPFree is pretty good, but a major hassle to configure.
hoyhoy··on Ask YC: Help me review my new photo hosting startup
I noticed these problems on Firefox on Mac OS 10.5:

1) Upload form still asks for an email address even if I'm logged in.

2) No way to change my screen name or url (e.g. http://www.simplebucket.com/p/mdc1oa compared to http://flickr.com/photos/hoyhoy)

3) Page view counter doesn't recognize a session_id so reloads advance the counter even for myself

4) Have to enter in name, email, and CAPTCHA when commenting a picture even though I'm logged in

5) No interface to find tagged pictures

6) Tags aren't hyperlinked

7) Allowed me to add a note outside of the image on Firefox e.g. (http://involution.com/images/simplebucket.png)

8) Note text can overlap the image when a note is inside an image

9) Hit save multiple times on a single note and it made multiple copies of the same note all over the page.

10) HTML Embed link shows note text in the input box located under "Photo Options"

11) When clicked, the "Photo Widget" link shows note text in the input box located under "Photo Options"

12) Attempted uploading 5 images from the upload page, but only one uploaded

13) Added a comment with no text, no error message, and nothing was displayed

14) Added a large comment with 5K of text. Nothing was displayed and no error message was given. Can't you just limit the number of chars in the TEXTBOX?

15) Clicked "Add From Address Book" went to Plaxo, and then added myself, but the email showed up in what looked to be a message box. Why do you need to ask for my name and email again when it's already in "My Settings"? The email did arrive though.

16) Went back to upload, added two more images via browse, clicked "Let's go" and nothing happened.

17) Clicked "Add" then "Browse" on the upload page, and the nothing happened (Browse window not displayed)

18) Left an open table tag in a comment and totally busted the page layout.

hoyhoy··on GroopVine.com - Like the name? and should I sell it?
sell