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 AMD Ryzen 5 3600 Beats Intel’s Core i7-9700K in Cinebench
By "laptop memory" you mean SO-DIMMs; the only significant difference to full-size DIMMs is, well, size. Voltage and frequency tends to be the same, leaving aside extreme overclocker's RAM.

In c't magazine's review of the current iMac, they found that the whole machine appears to have a power limit which is shared by CPU and GPU, so yeah, Apple are definitely doing something fancy in that regard.

pmjordan··on AMD Ryzen 5 3600 Beats Intel’s Core i7-9700K in Cinebench
Pretty good analysis overall, although this part is not true:

> With the exception of the mac pro, Apple's entire lineup uses mobile processors.

In fact their entire desktop lineup now uses desktop-grade CPUs. (except possibly some entry-level iMacs that weren't subject to the recent refresh)

  * iMac Pro: Workstation processor (Xeon)
  * iMac 27": Socketed desktop processor (e.g. Core i9-9900KF in top config)
  * iMac 21": Socketed desktop processor (e.g. Core i7-8700)
  * Mac Mini: Soldered embedded desktop processor (e.g. Core i7-8700B)
pmjordan··on Sony launches a taxi-hailing app in Tokyo
> ubers worth is their international recognition as a premium service

Anecdotal perhaps, but that's not my impression among friends & family. (based in Central & Western Europe) Unless you consider "less likely to be totally ripped off" as "premium". Which I guess it is to some extent, but taxi drivers in many western countries have set the bar so extremely low in terms of service that competing services such as Uber just need to meet the bare minimum of expectations customers would have in other industries.

In Japan meanwhile, as has been said by others, you literally get the white glove treatment in any run-of-the mill taxi and screwing people over totally goes against the grain of the local culture, so it's hard to see how other services might differentiate themselves. Plus of course, public transportation in the cities is fantastic and reasonably priced.

(We recently did a trip to Japan with our then-9-month-old, which meant we had more luggage than we'd normally like. So we ended up taking a few taxis instead of dragging it all the few hundred metres from the train station to whatever next hotel/apartment we were staying; in Europe, many taxi drivers would probably not even have stopped to pick us up if they'd seen us with all our stuff.)

pmjordan··on Documentation to set up a simple macOS VM in QEMU, accelerated by KVM
I don't know what boot environment this is emulating exactly, but it looks like a straightforward OVMF, presumably hacked up with HFS+ support and a bunch of Apple extensions to make macOS boot. In that case, running Mavericks should be no problem. I'd have thought Snow Leopard should also run, at least in K64 mode (64-bit kernel), but I've not tried it in a long time and don't recall if there were any gotchas.

Note also that software support is now pretty weak for these old releases - you struggle to find any modern web browsers that still run, for example.

pmjordan··on Documentation to set up a simple macOS VM in QEMU, accelerated by KVM
VMWare doesn't use virtio as far as I'm aware.
pmjordan··on Documentation to set up a simple macOS VM in QEMU, accelerated by KVM
Very recent versions of Qemu have "experimental" support for HVF, so in theory it should work. I haven't had a chance to try it yet, however, and it's possible that there are some MSRs or similar that aren't sufficiently supported yet. If this is something you(r employer/company) care about, feel free to get in touch as I suspect it's not too difficult to fix if it doesn't currently work.
pmjordan··on Documentation to set up a simple macOS VM in QEMU, accelerated by KVM
For both iOS simulator and Safari, the lack of GPU acceleration can be a problem, depending on what/how you're trying to test, and also depending on OS version. I believe Xcode 11 requires a Metal-capable GPU in order to even run. As someone else has mentioned, you can however use IOMMU/PCIe passthrough with certain graphics cards to get acceleration inside the VM.
pmjordan··on Documentation to set up a simple macOS VM in QEMU, accelerated by KVM
This should no longer be necessary with newer Qemu versions (since 2.10 or 2.11 I think) as the USB tablet's device descriptor has been fixed to be standards-compliant in Qemu.

(Source: I'm the author of both that driver and the Qemu patch but I've not been able to spend much time on macOS virtualisation lately so it's possible things have started breaking again.)

pmjordan··on Four new DNA letters double life’s alphabet
See also: https://en.wikipedia.org/wiki/Tetrachromacy#Humans

Although I have my doubts that this is what the mystics you're referring to are talking about.

pmjordan··on Don’t Get Clever with Login Forms
I think I've spotted iOS clearing the clipboard if you task-switch after pasting the contents into a password input field. Which is presumably precisely to defend against this kind of data theft.
pmjordan··on Full-system dynamic tracing on Linux using eBPF and bpftrace
It's a bit of a reach to call Instruments a replacement for DTrace. A replacement for a subset of DTrace perhaps. And maybe they'll massively expand it over the next few macOS/Xcode versions. Or maybe it'll suffer the same fate as a lot of Apple's OS features and end up rotting away until it's no longer sensibly usable.
pmjordan··on Ask HN: What should a systems/low-level software engineer know?
As with all these things, "sucks" is relative, and there are low paying jobs for anywhere in the stack. There's certainly fewer employers that need full time low-level software developers. So perhaps the contract/freelance approach is the way to go. It's certainly possible to achieve ~$1.5k/day consulting rates for low-level software development if you're an expert in a niche.
pmjordan··on Norway's electric cars zip to new record: almost a third of all sales
IMO anyone buying a fossil fuel car at this point is the one being duped by marketing.

I'm guessing this is deliberate hyperbole, because it's simply not true. The OP very much has a point: aside from Tesla X, the interior space (both rear bench seating - important for families - and boot (trunk)) in current EVs is nowhere near many combustion engine cars. (We just bought a VW Touran; we really wanted an EV, but fitting baby seat and pram plus shopping or luggage is just not possible unless you spend ~€100k on a Tesla; aside from the price, the OP's point about the footprint/width of the car is a major obstacle in much of Europe.

The range question is only really resolved on the very latest models (Renault Zoe, Hyundai Kona EV, Jaguar i-Pace) and the Teslas as well. Our absolute minimum was 200km mixed driving in all seasons and that already narrows you down to a very small pool of models. Our VW Touran has a range of 800km. (500km would be more than enough for 99.9% of our trips though.)

pmjordan··on Crime is a Family Affair
Surely it's not just wealth though - if kids grow up in a family environment where breaking the law is normal, I'd very much expect that to affect their attitudes differently than if they grow up in a law-abiding family.
pmjordan··on Intel Publishes Microcode Patches, No Benchmarking or Comparison Allowed
Broadwell and Skylake brings nothing much substantial.

Ironically, Broadwell's 128MB L4 cache did bring a substantial performance boost to a whole range of real-world applications, but it seems it's so expensive to manufacture that they've subsequently dropped the feature except for Apple's iMacs and expensive laptops.

pmjordan··on In 5 states, richest Americans live in a “new Gilded Age”
When we visited Yellowstone, one of the guides mentioned that Wyoming doesn't have any state income taxes. I suspect that might have something to do with rich people being officially resident there.
pmjordan··on The Unemployment Rate in Every Region of Europe
Another outlier: Burgenland, Austria (the state where I live) has a population of less than 300000 and is shown as a distinct region
pmjordan··on iPhones may shut down in cold weather
This may be obvious, but when it's cold out, it helps to keep the phone in a warm pocket close to the body (e.g. on the inside of your coat) rather than a bag or so. I've never had any issues with iPhones that way; using it for more than a short period of time when it's very cold is unpleasant anyway, so it never gets the chance to cool down too much. (I can confirm this works even at -40°, although you've got to be very careful with charging cables at that sort of temperature. Don't try to bend them, they'll snap.)
pmjordan··on Ryzen Boards Reign at Embedded World 2018
According to heise/c't magazine[1] (highly respected German tech publication), the Vega-based APUs support HDMI 2.0 even if the motherboards only advertise HDMI 1.4 support, as the pins are directly routed from the APU package. DisplayPort 1.2 works for 4K@60Hz as well of course. I suppose there's a risk the motherboard traces might be too low quality to carry HDMI2 signal speeds on some boards; hopefully board makers will revalidate and update specs for their boards. On the other hand, it may be worth waiting the 5-8 weeks until 400 series chipset boards come out which will presumably be designed with Ryzen G in mind.

[1] This is mentioned in their Ryzen G motherboard review/roundup (paywall): https://www.heise.de/ct/ausgabe/2018-5-AM4-Mainboards-fuer-A... - also the review of the CPUs: https://www.heise.de/ct/ausgabe/2018-5-Ryzen-Prozessoren-mit...

pmjordan··on Western Digital Demos SD Card with PCIe X1 Interface, 880 MB/s Read Speed
There are some with USB-MicroB sockets, you can just use a C-to-µB cable with those, no ugly A-C adapter needed. (For example: Lindy UHC-300) I have about a gazillion other devices with Micro-B sockets anyway…
pmjordan··on Intel with Radeon RX Vega Graphics: Core I7-8809G with 3.1 GHz Base, 100W TDP
100W is quite a bit higher TDP than any previous Mac Mini. The highest-power Minis I'm aware of are:

- The Quad-Core Mac Minis from 2011 & 2012 with 45W TDP. (e.g. i7-3720QM)

- The 2011 Mac Mini with dGPU with 35+26=61W TDP. (i7-2620M + Radeon HD 6630M)

Mind you, we can always dream that Apple will care about those of us who have wanted a Mac without a built-in display that fits between the Mac Mini and the Mac Pro.

pmjordan··on Oh shit, git: Getting myself out of bad situations
I think you should be able to do something like this with

  git filter-branch
This won't be a terribly fun exercise, and could be very painful if your history contains a lot of merges. (should be easier with the cactus/rebase development model)

And of course everyone will have to hard-reset to the new branch.

I should mention I'm far from an expert on this. I've only ever used git filter branch on a handful of commits, and only based on examples provided by kind internet people. I certainly haven't done anything nearly as far-reaching as you're about to embark on.

pmjordan··on How does one get the system to actually use the IPv6 Temporary Addresses?
If in doubt, it's probably an MTU discovery issue. Initial TCP handshake succeeds, then the connection hangs on the first major payload packet (e.g. HTTP response). At least I've seen that happen on lots of awful setups. Many ISPs seem to have routers that neither fragment packets, nor do they respond with ICMP Fragmentation Needed packets. So the connection eventually times out.
pmjordan··on Amazon in £1.5bn tax fraud row
That's the one!
pmjordan··on Amazon in £1.5bn tax fraud row
I don't know if they still do it, but some years ago when I lived in the UK and later when I ordered something from amazon.co.uk while visiting, some items such as DVDs, which were marked as "sold by Amazon" were actually shipped by a channel islands (Jersey?) based company. The channel islands aren't in the EU or the UK's VAT system, so by splitting the order into shipments below the UK's import VAT threshold, they could avoid charging VAT. I don't know if that scheme still works, as non-EU businesses that do above a certain amount of EU based trade need to register for EU VAT. (including getting an "EU" prefixed VATIN)
pmjordan··on The future of iOS is 64-bit only: Apple to stop support of 32-bit apps
They already show a "this app may slow down your device" alert occasionally when you open a 32-bit app. This was added with iOS 10.
pmjordan··on RISC-V 64-bit Linux in JavaScript
You could probably start from here: x86 Linux running in a web browser, also by Fabrice Bellard. http://bellard.org/jslinux/
pmjordan··on Learning to Read X86 Assembly Language
Win32 has various different calling conventions, and each function is annotated accordingly in the header files. It's all a bit of a mess, which is presumably why they drastically simplified it in the x64 transition.

(And realistically, for all but the most trivial functions, having one convention is probably a highly reasonable default. Trivial functions should probably be made available to the compiler for inlining anyway. Note also that GCC allows you to override the number of arguments passed on the stack via an annotation on 32-bit x86, if you insist.)

pmjordan··on Graphics Double Data Rate (GDDR5X) SGRAM Deep Dive
Could the timing of this be something to do with Rambus/RDRAM patents expiring? RDRAM made it to market in the late 90s, so relevant patents could conceivably be from ~1995-1996, and would be expiring around now. I seem to remember QDR being mentioned in the context of RDRAM back in the day (although the stuff that shipped only ever used DDR tech). Or have all the major players already licensed those patents years ago and squeezed out the tech? Or is that 20-year-old tech pretty much obsolete in today's context anyway?
pmjordan··on Electronics That Last: How I Built an Heirloom Laptop
FLIR do an entry level smartphone attachment, "Flir One". It's not particularly precise or high-resolution, but it's a lot cheaper. (Still not cheap-cheap.)
← PreviousPage 4 of 34Next →