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 Far Cry
Yeah, this isn’t something I’ve seen either, and given the limited wildlife behaviour (tiny bit of damage to them and they fall over like a wooden prop) I’m wondering if this might be a case of Chinese whispers.

And yes, I too would love a sequel in spirit.

pmjordan··on Far Cry
I read about this sort of thing years ago, and I seem to remember the consensus being that while it's entirely possible to build skill-adaptive AI, it tends to frustrate players no end. I don't know if there's been any movement on that, and whether anyone has made it work well.

The issue you raise is however entirely orthogonal to the respawning outposts in FC2. If you crank the difficulty up, the confrontations get very difficult very quickly - when you're on near equal footing with each AI NPC, being outnumbered is very, very dangerous. I think the outpost behaviour is just an obvious flaw they couldn't fix before shipping.[1]

Personally, I could live with it - you just avoid the outposts altogether and get on with things. You're supposed to be engaging in guerrilla warfare, right? Don't waltz into an outpost. Certainly, neither they nor the various other rough edges in the game ruined the experience for me. It's one of my top games of all time - I recently replayed the first part of it on the highest "Infamous" difficulty.

And no, it's for the most part not fun, in the same way that a thriller isn't fun but you can still feel positively about the experience - as the article tries to explain; I'm not sure the morality aspect is the full explanation though. Personally, the immersion itself seems to be a large part of the appeal. The simulated world is just so incredibly well done. Beautiful and haunting and terrifying.

[1] On the one hand, I'd love to see a "definitive edition" of the game where this sort of stuff is fixed and replaced with mechanics the designers originally had in mind. A (to me) obvious solution would have been to play up the 2 factions in this regard, in that each outpost is owned by either the UFLL or the APR at any given time, and that the player taking an outpost eventually causes shifts in the occupation map. On the other hand, there's a pretty good chance the game could be ruined by making it too much like a game with mechanics and goals like that.

The less disruptive fix would be for the ever-present patrol vehicles to simply re-populate the outpost when they find it empty, and radio in for further reinforcements. (Outposts typically have 4 NPCs defending, the patrols are 1 or 2 NPCs.)

pmjordan··on Reducing the Performance Gap of Intel's MKL on AMD Threadripper
First, the OS can't hide that because it's not a middleman in the execution of program code. When a program is running on a CPU it has access to the instructions that tell it what CPU it is.

Technically, it could, using virtualisation extensions to x86. CPUID can be trapped by a hypervisor, and the hypervisor can supply whatever result it likes. This is how Qemu/KVM simulates different CPU models.

Mainstream OSes don’t use virtualisation extensions for regular processes of course, and hypercalls would be even more expensive than regular syscall based context switches, so this is probably not something that is going to change in the short to medium term.

pmjordan··on A Look at PureDarwin – An OS Based on the Open Source Core of macOS
IOKit is actually a considerable chunk of the kernel, particularly if you count the various "families", some of which remain open source. I'd say it's Apple's main contribution to the kernel at the architectural level. It's implemented unlike anything in BSD or Linux, as it uses C++ on the kernel side. (The user space side, IOKitUser, is written in C.) These days even Apple uses it for non-device-related kernel services - you can see what the iokit registry looks like on your system using the "ioreg" command or the IORegistryExplorer or IOJones GUI tools.
pmjordan··on AMD Ryzen Threadripper 3960X and 3970X Review
To be honest, it sounds like your particular needs are best served by an Epyc.
pmjordan··on The Everything Town in the Middle of Nowhere
Not one I can easily point you to - my in-laws' neighbour apparently used to be an engineer on board such ships. It's possible this is no longer accurate as this would have presumably been some decades ago.
pmjordan··on Power Plant Turns Waste into Energy and Doubles as a Ski Slope and Climbing Wall
Although waste will be produced, that doesn't mean it's emitted into the air. There is a famous waste burning plant[1] (~6MW) within the city of Vienna, and which is near residential buildings and supplies the nearby general hospital with energy. The waste gases are thoroughly processed and filtered. It emits CO2 of course but it certainly wouldn't be permitted to operate at that location if it produced anything more immediately harmful to the surrounding population.

[1] https://de.wikipedia.org/wiki/Müllverbrennungsanlage_Spittel...

pmjordan··on USS Pueblo
Another interesting incident, this one involving a North Korean spy ship:

https://en.wikipedia.org/wiki/Battle_of_Amami-Ōshima

The wreckage is worth a visit if you find yourself in Tokyo with a day to spare for a trip to Yokohama. (Half a day will do easily if that's literally all you go to Yokohama for, but you can spend a pleasant few hours there, so may as well make a day of it.)

pmjordan··on The Everything Town in the Middle of Nowhere
That makes sense, so I suppose the explanation might be that these bystanders were also outsiders, but, as turned out, presumably too late, they merely were in the wrong place at the wrong time as you say and guilty by proximity.

My initial reading was that they were known to be bystanders at the time of execution, which seemed a bit extreme even in that context. But you're right, it's equally possible to read their being bystanders as posthumous exoneration, which is much more likely.

(FWIW, I've been to Montana, and as a middle-class European, it certainly felt by far the most foreign of the 15 or so states I've visited in the US.)

pmjordan··on The Everything Town in the Middle of Nowhere
Thanks for the link. I guess I was aware of the general lawlessness of that part of the world at the time, but the part about "cattle rustling being “considered one of the lowest forms of crime.”" seemed like a reference to some specific, well-known rule with which I was not familiar.
pmjordan··on The Everything Town in the Middle of Nowhere
It also reminds me of cargo ships carrying commodities. They apparently change destination and heading numerous times before their final arrival at port, as their cargo gets bought and sold by a sequence of different entities long before it's even unloaded.
pmjordan··on The Everything Town in the Middle of Nowhere
Entirely tangential to the main thrust of the article, but this threw me:

a noose dangling from “the hanging tree,” which a plaque explains was used to execute three cattle rustlers and two unlucky bystanders, cattle rustling being “considered one of the lowest forms of crime.”

Wait, WHAT? Can anyone with more knowledge about the Old West explain what crime these bystanders would have been committing? Am I interpreting this correctly that these "bystanders" had nothing to do with or to gain from the theft of the cattle but were thought to be in the vicinity and didn't prevent it?

pmjordan··on Crinkle Crankle Wall
In Central Europe, houses are still commonly built from brick at a structural level. (This includes multi-storey apartment blocks, commonly with some sections implemented as cantilevered reinforced concrete - the block I live in is such an example.) It's rare to encounter a building here where bricks also form the facade however.

Which aspect does your question relate to? The rest of your post is about aesthetics, so if a brick facade is what you're after, they are still very common in the UK, although much of that is old housing stock.

My parents built their house with a brick facade in the 1980s with then-state-of-the-art insulation. (in Central Europe) There is a layer of (large) structural bricks (similar to [1]), followed by various elements of insulation, followed by smaller face bricks to form the visible exterior. (something like [2]) I suspect this was and is somewhat more expensive than simply plastering over the outermost insulation layer. The double shell makes re-insulating with more modern materials prohibitively impractical. (Although the thermal properties of the house in question have held up pretty well.)

On old houses, any visible bricks would have been structural, with effectively no insulation. So I'd imagine that's why it's no longer common.

[1] https://www.wienerberger.at/bauen-mit-ziegeln/wandloesungen/...

[2] https://www.corobrik.co.za/assets/products/facebrick/58/1600...

pmjordan··on Scapegoating free software’s failures
This is certainly true for the big headline projects. For every one of those, there's a hundred small but widely used libraries or tools whose sole maintainers (or tiny groups of maintainers) struggle under the workload of keeping it going, as they do so in addition to whatever pays their bills - with no obvious route to recompense for that unpaid labour. Worse, large users of the tool or library get to make modifications without sharing them with the original author and rest of the world.

the idea that free software is primarily done unpaid is just a myth, as can be seen from the attendees of any major free software conference

I'll point out that just because you mostly see delegates from big businesses to FOSS conferences, that doesn't mean this is a representative sample. It can just as well mean that the long tail of contributors isn't able to attend.

Of course, had the maintainers of the small-but-popular tool/library chosen a license under which the big corporate users were forced to contribute any local modifications back, this may in itself have prevented the popularity of the tool or library in the first place. Because for many developers and companies, using an AGPL (or even GPL or LGPL) licensed tool or library is absolute anathema.

(GPL in whatever form of course does not help with financially compensating independent developers, so it wouldn't fully solve the problem.)

pmjordan··on Writing userspace USB drivers for abandoned devices
The AMDGPU driver was the first one where the "main" consumer driver was the FOSS one. Prior to this, "fglrx" was for many years the fully-featured, proprietary driver, intended for both professional purposes where certified OpenGL drivers are needed, and for consumers. The "radeon" open source drivers tended to lag behind in both hardware support, features, and performance. Initially, they were largely a community effort, but then AMD started publishing some GPU documentation, and then also put more of its own resources into developing the FOSS driver.

The UX of the "fglrx" drivers tended to be pretty awful, all told; typically worse than nvidia's proprietary drivers, so they were wildly unpopular among users. The performance gap eventually started closing, to the extent that some games/apps would be faster on the "radeon" drivers, and some on "fglrx".

Eventually, AMD switched to the AMDGPU model, where the kernel driver is always FOSS (and part of the upstream kernel), and there is the FOSS userland driver as part of Mesa for consumers, and a proprietary certified OpenGL driver for workstation users.

(I believe Valve also had a hand in this somewhere along the way - they were interested in shipping Steam Machines/SteamOS and understandably were keen on having a stable and fast graphics stack and so contributed to Mesa.)

pmjordan··on Building a Developer Tools Business
I don't necessarily need a free tier, but I find short trial periods to be unhelpful for something that needs a considerable time investments to truly try. Often I'll end up getting pulled away after starting a trial on something to do some critical bug fixing and other stuff, and then the 14 days are up without my having much of an idea if the product solves my problem.

I much prefer when the trial counts down some other finite resource that I have some control over, rather than wall time. For desktop software, number of days of actual use are a good option, for SaaS that's often difficult to measure sensibly. (Was the app open in a background tab somewhere? Oops, time's up.) So I'm much more likely to give a trial period with a fixed number of events/tickets/jobs/whatever a go.

pmjordan··on Welcome to the Aerotropolis
Good to know that Heathrow T2 is an exception, I may use that knowledge next time I fly to the UK. We mostly fly in & out of Gatwick (proximity to family, and it's an EasyJet hub) but I'm glad I'm not the only one who gets the feeling it's artificially designed to be the most stressful experience possible.
pmjordan··on AMD unveils world's most powerful desktop CPUs
Single-core CPU performance is at a peak. There aren't any revolutionary increases expected there anytime soon.

To be fair, Ice Lake/Sunny Cove seems to introduce a significant IPC improvement. It's currently stuck in low-power dual core CPUs due to Intel's 10nm yield woes. (allegedly quad cores have launched too, but I haven't seen any reviews of devices based on those?) But presumably it will eventually percolate up the product stack and give desktop processors a solid boost too.

So that particular fight doesn't look anywhere near over just yet. (Zen+ to Zen2 was also a decent IPC bump, so no reason to believe AMD have hit a wall in that regard either - I'm sure they're scrambling to make another leap in Zen3/4 that compares favourably with the Skylake->Sunny Cove one to preempt Intel retaking the crown.)

pmjordan··on AMD unveils world's most powerful desktop CPUs
AMD's Navi is looking to be competing quite well with NVIDIA in the mid-range/enthusiast space, and shortly in the mid-to-low-end segment with the imminent RX5500.

I suspect it won't be long until the empire strikes back in this case though: NVIDIA also uses TSMC for fabbing its GPUs, so they too will soon be shipping 7nm GPUs, with all the intrinsic advantages of that node. Of course, pricing of those new products will hopefully be strongly influenced by AMD's resurgence. (And, supposedly, Intels re-entry into the GPU market, but I remain skeptical this will make much of a dent for a few years yet.)

pmjordan··on AMD unveils world's most powerful desktop CPUs
That link doesn't work for me (perhaps geo-IP gated?) - what issue are we talking about?

The highly reputable c't Magazine used it in one of their recommended PC builds recently. They tend to be very thorough and fussy about issues, so I suspect they didn't run into whatever issue you're talking about. I believe they did mention that you need to watch out for BIOS support for the 3000 series CPUs (and ask the seller to update it if necessary and you don't have an older AM4 APU handy), as with any motherboards that predate release of a particular CPU you're trying to use.

pmjordan··on Welcome to the Aerotropolis
Where else in the metropolis, after all, are there free toilets, air-conditioning and seating?

This is meant as a rhetorical question, as if those things didn't exist in cities. They don't in many western cities, certainly, but Japanese cities do quite well on all 3 counts, as does Taipei if memory serves.

Interestingly, while apparently ignoring Asian cities, the article and photos focus specifically on Asian airports. Many western ones are outright hostile to travellers. I'm thinking of just about all UK airports, but for example Berlin Tegel is also pretty awful. They're neither architecturally grand, nor do they in any way resemble traditional public spaces.

pmjordan··on AMD unveils world's most powerful desktop CPUs
Phenom got soundly beaten by the first few Core i generations (Nehalem, Sandy Bridge) in terms of both peak performance and power efficiency. Bulldozer (The basis for AMD's FX and "A" series CPUs) was mostly a misstep that was doomed to feed the very low end of the market. The only truly successful devices based on it were Xbox One and PS4. (Incidentally, those processors used "Jaguar" cores which evolved from Bulldozer but actually didn't inherit the shared execution units (CMT) that were Bulldozer's headline feature that turned out not to work as well as intended.)

So between about 2010 and the introduction of Ryzen in 2017, there really was no alternative to Intel if you were building a PC that was either fast or energy efficient. In terms of performance, the 1000 & 2000 series Ryzens roughly attained parity with Intel, while the 3000 series now pulls ahead in many multithreaded and some singlethreaded disciplines, and definitely has better performance-per-watt under load.

Ryzen still draws significantly more power than Intel's CPUs when idle though - the PCIe 4.0 transition has counteracted the improvements from the 7nm shrink in this regard, and the APU variants lagging the GPU-less SKUs by almost a year in terms of process and microarchitecture means you also have to power budget for a discrete GPU, which adds a few idle watts.

(The most power efficient at idle Ryzen build I'm aware of is the Asrock DeskMini A300, which uses no chipset, combined with a low end APU - this draws about 7W when idle. In terms of performance and expandability, this system isn't any better than a NUC, which draws somewhat less power when idle. You can't buy a full size A300/X300 motherboard though, for some reason, even though this would actually be quite an interesting setup.)

pmjordan··on The Windows Update Marathon in a VM: From Windows 1.01 to XP
It was still possible to use "real mode" (16-bit DOS) device drivers with Win95. [1] I believe there was a 32-bit kernel running on top of this 16-bit foundation, but it was definitely a hybrid arrangement. User space processes definitely ran in 32-bit "protected mode", and 16-bit legacy processes ran in their own protected address space when run from inside Win95 - with the 32-bit OS kernel taking the place of what would normally have been the interplay of BIOS and DOS, handling the interrupts routinely generated by 16-bit DOS software for making what we would now call syscalls.

I believe much of this was already in place with Windows 3.1(1)'s 386 enhanced mode and Win32s, although from memory Windows 95 moved far more device drivers into the 32-bit kernel. Presumably this was enabled by not having to be able to end the windowing session and quit back to DOS without rebooting.

[1] I seem to remember CD-ROM drive controller drivers being particularly common culprits in this regard, with virtual mode device drivers often being unavailable, so you had to use real mode drivers in config.sys even on Win9x. Yes, back in the day of single-, double-, and quad-speed CD-ROM drives, you typically had an ISA card with a custom controller that then connected to the CD-ROM drive via an "I can't believe it's not IDE" ribbon cable. Only later did we get ATAPI and hard drives and optical drives could use the same controller and bus. (Sound cards often had an on-board CD-ROM drive controller and ribbon cable connector around that time.)

pmjordan··on Apple TV, Apple TV, Apple TV, and Apple TV+
Microsoft Visual Studio for Mac, meanwhile is actually based on what used to be MonoDevelop.
pmjordan··on Fossjobs.net: jobs that improve and involve FOSS or open hardware projects
It's also not uncommon that a 10-line local hack that took an hour or two total to figure out and implement mutates into a 200-line pull request that eventually gets merged after 3 months of near-daily babysitting and 7 rounds of review with 10-deep email threads because the initial approach wasn't quite up to standard and the project maintainers have meant to redo the code in this area for a while now anyway, so could you just…

Or, you know, somewhere along that path, you give up, for reasons which can be anywhere between frivolous/laziness and entirely reasonable. If you're lucky, your change is sufficiently googlable that one of the next people who need it comes along and cleans it up and goes through with the full merge dance before upstream has diverged too far from your abandoned patch.

pmjordan··on Fossjobs.net: jobs that improve and involve FOSS or open hardware projects
You give people far too much credit. In my experience: implement a hack in whatever the latest upstream version is to meet requirements, then never pull in upstream changes and just keep running the increasingly ancient, hacked-up fork.
pmjordan··on Fossjobs.net: jobs that improve and involve FOSS or open hardware projects
it's everywhere already

If only everyone using the FOSS tools actually contributed back their local modifications. That's definitely not happening "everywhere".

pmjordan··on Intel: 10nm Product Era Has Begun, 7nm on Track
If you were in the market for a new mobile machine, would you be going Intel or AMD?

I'd be basing my decision primarily around which models fulfil my needs - be that in terms of portability, battery life, display quality, performance (CPU and GPU), ergonomics, etc. Right now, there is much less choice of AMD-based laptops, and they currently tend to be on the low end of the scale in terms of everything but performance. After years of integrating and tuning systems with only Intel CPUs, the laptop makers have yet to get the hang of making high-quality AMD-based laptops. I suspect this will change over time (Microsoft's aforementioned Surface Laptop 3 is a good sign in this regard).

If you're keen to support the underdog and can wait a few months, you can certainly wait for Renoir to be launched. I suspect AMD are itching to get a piece of that giant laptop revenue pie, so even if it ends up being Zen+ with Vega, AMD might have spent that time instead fine tuning idle power draw and thermals. Performance of their APUs is already decent, so such fine-tuning might be enough to get some high quality AMD-based thin & light laptops to market.

If you need a powerful (discrete) GPU and would prefer to go with AMD over NVIDIA for that, the upcoming Navi-based Radeon RX 5500M is one to watch, be it paired with an Intel or AMD CPU.

Disclosure: I skew towards AMD for both GPUs (in preference to nVidia) and CPUs (in preference to Intel) when it makes sense. I've got a Ryzen-based desktop system, but there are more Intel-CPU-based systems in my office, to a large extent because I do Mac-based development professionally - I think I bought my last AMD-based laptop in 2005.

pmjordan··on Intel: 10nm Product Era Has Begun, 7nm on Track
How long from release does it usually take to start seeing released chips in new laptops?

I seem to remember reading about a January launch (i.e. CES as you say) with shipping laptops expected towards the end of Q1 2020.

Vega vs Navi: IS there any solid information on which of the two it will use?

I don't think there's any solid information; watchers seemed to interpret recently added device IDs in Windows and Linux drivers as belonging to Vega-based APUs with new video engines backported from Navi. Whether that's Renoir or another APU line remains to be seen. There's also rumours that the next batch of APUs might just be a Zen+ die shrink to 7nm rather than a full upgrade to Zen 2.

Given that mobile CPUs and SFF business desktop systems with integrated graphics are where the volume markets are these days, it seems a little odd that AMD lags their APUs behind the standalone desktop and server CPUs so much. The next desktop APUs are only expected mid 2020. I can only assume they are still battling idle power draw issues (especially if Zen 2's PCIe 4.0 is hard to swap out for more the power efficient PCIe 3.0) or that the integration of CPU and GPU via Infinity Fabric is difficult to pull off in practice.

pmjordan··on Intel: 10nm Product Era Has Begun, 7nm on Track
Reviews indicate that the AMD variant of Microsoft's Surface Laptop 3 is actually a decent machine, as AMD and Microsoft have worked together to provide a good experience in terms of battery life, etc.

Hopefully the outcome of that work will trickle down to other laptop manufacturers. (BIOS, drivers, etc.)

Note that AMD's mobile "Renoir" chips are expected early next year, which will be based on the up-to-date Zen 2 microarchitecture used in the desktop Ryzen 3000/3000X series. (The 3000G series uses the older Zen+ from Ryzen 2000/2000X, just like the 3000-series laptop chips.)

← PreviousPage 2 of 34Next →