HNHacker News
TopNewBestAskShowJobs

pmjordan

7,982 karma · joined January 21, 2008

British-Austrian software developer, happiest when on a travel adventure.

While looking for the next big thing, I do contract/consulting work; I prefer lower-level stuff, such as device drivers/kernel hacking, real-time graphics and game tech.).

You're welcome to email me about anything, and I promise to reply if you stick to one topic or question and it isn't too open ended. Specifically:

I get a lot of email with technical questions that would require me to download and read the documentation for libraries X, Y and Z to answer - please don't do that; instead, put the code that doesn't work (or pseudo-code that you'd like to turn into real code) in the email, and quote the prototypes for any used APIs, ideally deep-linking to their documentation just in case I do need to look at it.

Obviously, if you're planning to pay me for my help and advice as a consultant you may ignore the above. :-)

website: http://philjordan.eu/

email: phil+hn at philjordan dot eu

fedi/mastodon: @pmdj@mstdn.social https://mstdn.social/@pmdj

github: https://github.com/pmj

submissionscomments
pmjordan··on UI Performance Decline – OS X Tiger to Yosemite [video]
The glass blur effect is actually disabled in VMware and other unaccelerated graphics devices. You can disable it on intel/AMD/nvidia too, the setting is in the accessibility part of system preferences.

They've just removed the last remnants of pure 2D acceleration support in Yosemite, it's HW-accelerated OpenGL or nothing now. They also changed the timing of screen updates, which locks some drivers at 8FPS. Finally, the rounded corners on windows seem to be broken in the software renderer.

Before you go blaming VMWare etc. for not offering an OpenGL driver: Apple doesn't document those APIs at all, there aren't even headers files. They don't even officially support writing a graphics device driver at all (according to DTS), but they provide enough source code so you can figure out how to do so, albeit not providing 3D acceleration.

pmjordan··on Linus: Parallel computing is a huge waste of everybody's time
Yes, although the graphics card version (which was to be the first product based on the design) got cancelled, they persevered with the chip design itself.
pmjordan··on Even with 2FA, Google accounts can be hacked with just a phone number
Unfortunately, that sort of static information frequently is targeted for phishing. The bank can keep telling people that they will never ask for all the codes at once, but some subset of customers will happily comply with such a request in a badly written email.

Mind you, dynamic 2FA frequently only narrows the time window in which phishing is effective. Even with transaction-based 2FA, you'd need people to actually read the text message the bank sends them with the transaction authorisation code.

pmjordan··on OS X 10.10 Yosemite: The Ars Technica Review
I've seen this behaviour, too. Could it be worse in Yosemite if you have iCloud Drive enabled? Of course, Apple ought to listen to their own advice of "never do I/O on the main thread" but then they don't bother with sandboxing their own App Store apps, either.
pmjordan··on Trouble at the Koolaid Point
You'd be surprised how happily people will make abusive and hateful comments on sites with facebook comments.
pmjordan··on Trouble at the Koolaid Point
I read it as "If you don't want to be harassed, you shouldn't have a public presence."

FWIW, immediately before that sentence, the thread-starter called into question the real danger of doxxing and calls to "action" based on the released information/misinformation.

pmjordan··on Trouble at the Koolaid Point
This handily ignores that doxxing is not some virtuous research and release of pure facts in the public interest. Its purpose is to turn lies about the victim into the publicly perceived truth (defamation) by mixing them with the weight of real facts.

That people who have some level of public exposure (as you and I do, posting on a public forum) will have some personal information out in the open is obvious. The thread-starter appears to be playing down the damage that doxxing can do "I do want to gently call into question the danger of the attack surfaces". To me, their admittedly unspoken, conclusion from point 1 is therefore "they had it coming".

pmjordan··on Trouble at the Koolaid Point
Victim blaming/"they deserve it":

"For the most part, high-profile "targets" from the troll's perspective are already known to the public anyway."

pmjordan··on Trouble at the Koolaid Point
Ugh. At the very least, this kind of victim blaming attitude and lack of empathy is presumably exactly the setup for people jumping on the harassment bandwagon without thinking things through.

1. You're pretty much advocating mob rule. Also, are you seriously comparing the threat that internet hate-mongers vs. the NSA poses to the average Joe or Jane with an internet persona? I dislike corporate and government spying as much as the next person, but what immediate threat does the NSA pose to Kathy?

2. It's not hard to dream up a scenario (any immediate severe danger to one or more members of the public?) which, once the police starts believing the "witnesses", would make it irresponsible for them not to act on it. You just need enough "witnesses". From what I gather, the attitudes of some police forces, particularly in the US, could certainly do with adjusting, but that's an entirely separate problem.

3. Yes, as I'm sure you'll remember from the OP, once someone gets beaten up or worse, the authorities will take an interest. Not before that. You can't run around in real life constantly threatening people with violence, what makes it OK to do so via electronic media?

pmjordan··on China Said to Exclude Apple From Procurement List
Large parts of OSX userspace (Frameworks, daemons and pretty much all the system applications) and some of the kernel are closed source. Almost all of iOS is closed.
pmjordan··on Calling All Hackers: Help Us Build an Open Wireless Router
90W is rather a lot. I'm looking at the Intel NUCs, which are a lot more compact and power efficient. Downside is that they only come with a single Ethernet port so you need to add any additional ones via USB3.
pmjordan··on Felix Dennis, a hedonist and media magnate, died on June 22nd aged 67
This looks like it?

http://www.audible.com/search/ref=a_mn_at_ano_tseft__galileo...

pmjordan··on But why can't I send people their passwords?
Obviously it shouldn't stop working straight away, but presumably an attacker would actually use the password reset code, at which point they would set your password to something else, which you would notice.
pmjordan··on But why can't I send people their passwords?
If someone hacks into your email account, they can just trawl through the email archive and harvest passwords from past password reminder emails. With a temporary reset token, they have to initiate a password reset request, which you should notice: (a) you might notice the email if you have e.g. push notifications enabled, or if the attacker doesn't delete it quickly enough, and (b) your real password will suddenly stop working.

Additionally, even if your reset request is harvested via MITM, if you use a single-use reset token, and an attacker uses it before you can, you know something is up. Even if it's not single-use, your password suddenly no longer working should ring alarm bells.

pmjordan··on Dual-touch smartphone design concept
As I understand it, the PlayStation Vita has a rear touchpad. I've never used one, does anyone who has care to comment on how well it works?
pmjordan··on Oracle continue to circumvent EXPORT_SYMBOL_GPL()
The whole reason this is even an issue is the ambiguity of the license on the subject of dynamic linking and what precisely constitutes a derived work. Of course, if Linus wanted proprietary kernel extensions, he should have picked LGPL, but the issue arose long after the license was originally picked (and there being any possibility of changing/clarifying it). Also, no "or any higher version" clause, so the only way this is ever going to be resolved one way or another is in court. FWIW, my impression is GPLv3 wouldn't have helped here either.
pmjordan··on You get what you pay for.
Many game companies won't even hire developers who are very good but don't have (much) game experience because this is seen as not being passionate enough about games. And yes, they're happy to hire the inferior but "passionate" candidate.
pmjordan··on Does Google Have A Secret “Translate” Service?
Not the only one. If you access them from a German IP address, most game download services will only let you buy games that are rated 18+ in Germany between 10pm and 6am CET/CEST or some such time range. (I found this out because I have a VPN tunnel that terminates in Germany)
pmjordan··on Banana Pi: The next generation of single-board computers?
The RRP of the Intel NUC Kit DN2820FYKH is $128:

http://ark.intel.com/products/78953/Intel-NUC-Kit-DN2820FYK?...

I believe that includes the Wifi/Bluetooth module already, but not the DDR3L RAM module or an SSD/HDD.

If that model is missing something you need you can of course opt for one of the more expensive ones - there is a reasonable range. I'm considering getting one to act as a router, DD-WRT/OpenWRT on consumer/SOHO router hardware is incredibly fiddly. The power consumption of some of these devices is comparable.

pmjordan··on Sweden: The New Laboratory for a Six-Hour Work Day
7.5h of work with 30 mins lunch break is fairly common in Europe; when my wife was an accountant in London, she had that schedule. In the UK, the typical hours for that would indeed be 9-5. (In some parts of Europe, 8-4 seems more common)
pmjordan··on Banana Pi: The next generation of single-board computers?
The Intel NUCs are in a similar price range, especially once you take case, PSU, etc. into consideration. You can get them motherboard-only, but in the pre-built ones you just add RAM and Flash/HDD and you're done. The NUCs probably also win on overall power consumption, just check that you can use accelerated HD video decoding in the model you choose with the software you want to use.
pmjordan··on Mozilla boss Brendan Eich resigns after gay marriage storm
What specifically did he do recently?

He was interviewed. To be honest I don't know why he agreed to it as I don't see how he could have thought that steadfastly dodging the issue would improve the situation.

http://www.cnet.com/news/mozilla-ceo-gay-marriage-firestorm-...

I was on the fence as to whether he should be the public head of Mozilla before reading this (I disagree with him on the issue in question, but I suspect many hold beliefs that I don't agree with), but in that interview he just comes across as an arse. If the transcript is faithful to what was said, I'd say the interviewer gave him plenty of chances for reconciliation, and Eich refused to take them.

pmjordan··on On the Timing of iOS’s SSL Vulnerability and Apple’s ‘Addition’ to NSA’s PRISM
We only see the diff between released versions, not intermediate commits. For all we know, Apple developers use a single-pane diff tool, where such bugs are easy to miss.
pmjordan··on Tesla Completes L.A.-to-New York Electric Model S Drive Chargers
I thought the whole problem with "just add more batteries" is that you drive up mass and thus reduce power efficiency, thus leading to a cycle of diminishing returns? I don't know how far along that curve a Tesla Model S is though.
pmjordan··on Who's Selling Credit Cards From Target
That doesn't really help for online transactions. I'm not aware of any 2-factor authentication being used for online credit card transactions anywhere.
pmjordan··on Comparing the Cost of Different Multiple-return Techniques in C
Ah, true. x86 ABIs are much less unified than x86-64 ones.
pmjordan··on Comparing the Cost of Different Multiple-return Techniques in C
The x86-64 ABI does specify for multi-word structs to be returned in registers. If I remember correctly, it's up to 4 registers - rax, rdx and 2 others which I'll need to look up. This only happens if the struct fields on their own would be returned in this way, so an array of 16 chars would not typically be returned in 2 8-byte registers. To use SSE or AVX registers for anything other than float or double scalars, you'll need to use the special vector types.

I think x86 lets you return in eax and edx, but only if you're returning a single 64-bit value, not a struct with 2 32-bits. Not 100% on all of this.

pmjordan··on Steam Machine Teardown
You could try building a custom PC into a hard-shell travel case.

I tried that, many years ago. I'll be the first to admit I'm not especially good at working metal, so it was somewhat crude. Keeping everything safely in place inside, and ensuring sufficient thermal flow ended up too much of a challenge for me. The thing only ran stably when I left it open, and eventually a heatsink came loose during travel. Might be easier with today's more efficient/better designed components, and with a bit of hindsight. Still, very much a major project.

I believe there are also ITX or micro ATX cases that can accommodate a 400+ watt PSU for powering a GPU in that range.

Every 6-12 months I review the market on these. You can indeed get ITX cases which will take a graphics card. Generally, the form factor is the "cube" kind (well, square-ish front face), around 20x22x35cm. (~15 litres) I find this much harder to transport safely (e.g. by packing clothes around it in a suitcase) than the flat, "VCR-shaped" arrangement, with the graphics card on a 90° riser. The ones on the market also tend to waste space on optical drives, multiple hard drive bays, etc. and often have external PSUs (not necessarily a bad thing, but often they don't make the case any smaller).

The Steam Machine prototypes are apparently only around 7.5x31x31cm. That's less than 8 litres, including the PSU.

Last time I looked into this was in Spring, so maybe things have improved since then. Specific suggestions welcome.

pmjordan··on Steam Machine Teardown
Over the years, I've tried a few times to design a gaming capable PC that would easily fit in a suitcase and not make as much noise as a 747. I never found cases with a form factor like that with internal power supplies, and which will fit, power and cool a mid-to-high range (~€180) graphics card.

The other components are easy of course.

I'd be happy to be proven wrong, because I'm definitely in the market for something like this. More than 50% of my gaming time happens when I take time off - which usually means I'm visiting family for a few weeks, and taking anything bigger than this on a plane or train is not realistic. I was hoping Thunderbolt might solve the problem with external GPUs, but right now that seems more trouble than it's worth.

pmjordan··on PS4's LLVM-based Developer Toolchain [pdf]
The executable binary generally dwarfs the assets (textures, models, level data, audio, etc.) so I doubt it makes sense to defer downloading code. If anything, you'd put any level-specific native code (rare these days - it's mainly scripts) into dynamically loaded libraries.
← PreviousPage 6 of 34Next →