News for hackers. Stuff that matters.

n1mda

Re:C99 tricks on Friday February 13, 2015 @08:34AM (#9044186)
Any reason why they don't use trick #1 inside trick #5?

// Instead of x = x ? x : 10;

// We can use the shorter form: x = x ?: 10;

#define min(a, b) ({ \ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a < _b ? _a : _b; \ })

Re:Hacking Sonos on Wednesday April 23, 2014 @04:23AM (#7632800)
Hey, I'm n1mda. Cool to see this project on HN! I made sonos-objc on my spare time, and it's not too hard to reverse the API with Wireshark.

Perhaps I could continue developing a Sonos API for SonosKit (I have a few improvements on a local repo)