HNHacker News
TopNewBestAskShowJobs

CiaranMcNulty

400 karma · joined April 2, 2013

submissionscomments
CiaranMcNulty··on Nearest Pint
It looks like the data is from OpenStreetMap so maybe you could add them if they’re missing there?
CiaranMcNulty··on Multiple Mouse Cursors in Wayland
I have fond memories of playing Settlers in split screen this way on the Amiga
CiaranMcNulty··on Exe.dev
It’s not a loading blink, it’s just some text telling you what the service is
CiaranMcNulty··on There is No Quintic Formula [video]
Whether 0 is a natural number is still fairly ambiguous; I remember being taught (1990s UK) to be specific about which definition was being used, or to prefer another name such as 'positive integers' or 'non-negative integers'
CiaranMcNulty··on Comparing the Latitude of Europe and America
Domestic solar is huge in Germany
CiaranMcNulty··on Mago: A fast PHP toolchain written in Rust
It's good to see more focus on static analysis.

With Phpstan and Psalm already in the space I'd like to see more differentiator features than 'written in Rust' - there are certainly advantages to that, but the disadvantage of not using PHP is it's harder to get contributions from the community using the tool.

Cool project overall!

CiaranMcNulty··on XSLT – Native, zero-config build system for the Web
It's sad how the bloat of '00s enterprise XML made the tech seem outdated and drove everyone to 'cleaner' JSON, because things like XSLT and XPath were very mature and solved a lot of the problems we still struggle with in other formats.

I'm probably guilty of some of the bad practice: I have fond memories of (ab)using XSLT includes back in the day with PHP stream wrappers to have stuff like `<xsl:include href="mycorp://invoice/1234">`

This may be out-of-date bias but I'm still a little uneasy letting the browser do the locally, just because it used to be a minefield of incompatibility

CiaranMcNulty··on The inventor of the automatic rice cooker
The best analogy is a toaster

Is it really that hard to grill bread? Nope, but you have to pay attention somewhat to stop it burning.

Once you hit a certain volume of usage, an automatic device makes a lot of sense.

CiaranMcNulty··on PeachPie Compiler: Compile and run PHP on top of .NET runtime
A major difference will be that PeachPie produces a compiled deploy artefact, while mainstream PHP is interpreted (albeit with heavy opcode caching and a JIT in production)
CiaranMcNulty··on POV-Ray – The Persistence of Vision Raytracer (2021)
I played with this a lot during my degree back in 97-99. A friend used it to render her final year project.

Amazing to see it's still going!

CiaranMcNulty··on UK Wind Farms Are Overstating Their Output
The majority of existing homes and hot water supplies use natural gas
CiaranMcNulty··on GM Went All in on EVs. Dealers Say Buyers Want Hybrids
I thought the new GM ICE was going to be developed by Google?
CiaranMcNulty··on A confusing probability question: Red and green balls in an urn
Hm I'm not sure if it's correct but here's my logic (here on mastodon https://social.ciaranmc.com/@ciaran/111850662374227629)

There are N-1 red balls out of 99 remaining, so the probability the next ball is red is (N-1/99).

The possible values of N are evenly distributed [1...100] (we discount the N=0 case because we drew a red ball)

The total probability that the next ball is red is the sum of the individual probabilities divided by cases:

P = SUM[1...100](n-1/99) / 100 = SUM[1...100](n-1) / 99 * 100 = SUM[0...99](n) / 99 * 100 = 4950 / 9900 = 5.0

So red or green are equally likely

CiaranMcNulty··on Making my own bed sensor
Water
CiaranMcNulty··on How does Shazam work? (2022)
A friend was in the beta and demoed it to us in a bar.. it was insane

In the UK you dialled 2580 from your (non smart) cellphone, it would hang up after a few seconds and you’d get an SMS right away with the ID of the track

CiaranMcNulty··on DSLinux – Linux for the Nintendo DS
I've a few DSi in a drawer somewhere... My first question was whether I can turn them into a k8s cluster
CiaranMcNulty··on You Don't Need UUID
> If you’re talking about a web system composed of microservice architecture all running on the same datacenter, perhaps sharing the same database

We have different ideas what 'microservice architecture' means, I guess.

One of the key points of UUIDs is to be able to generate (probably) non-conflicting values without coordination

CiaranMcNulty··on What Wikipedia Did
Blocking blue ticks also works well for this
CiaranMcNulty··on UK backs Rolls-Royce project to build a nuclear reactor on the moon
Yeah car and road-centric culture holds a lot of this stuff back. In any urban area an efficient metro underground/elevated/tram metro system could take up a huge percentage of journeys.

If high-speed electrified rail links exist between cities, they can become much more attractive than long car trips.

On-demand transit can fill a lot of gaps in rural areas (e.g. on-demand bus routing)

CiaranMcNulty··on Putin will get arrested if he comes to Germany
It'd be pretty tricky for Russia to invade Germany, based on how things are going in Ukraine
CiaranMcNulty··on Samsung “space zoom” moon shots are fake, and here is the proof
Well it's not capable of dealing with it because they found apple's zoom was unreliable and it contributed to the guy getting off
CiaranMcNulty··on Building a city optimized for bikes is a choice
Cold isn't that much of an issue if you dress appropriately - you're doing cardio work so you can always speed up if you get cold!
CiaranMcNulty··on Unit Testing PDF Generation
They both revolve around a coherent concept of what a 'Unit' is - if you have a (shared, project-level) understanding of a Unit then a 'Unit test' is what tests it, and an 'Integration test' involves >1 Unit
CiaranMcNulty··on Anatomy of a Book Cancellation
It's sort of extraordinary that the conclusion of the piece is that the book was published and he was paid in full

Poor guy

CiaranMcNulty··on AirDrop is now limited to 10 minutes
> There is nothing stopping Apple from making the same device, but giving you the keys to install your own software on it

You... don't think you can install your own software on MacOS?

CiaranMcNulty··on Mortal Kombat+
Copyright is not the same as trademarks
CiaranMcNulty··on Ask HN: Why are there so few fanless laptops with Intel/AMD?
I could count the number of times my M1 (13") MBP's fans have kicked in over the last year on two hands, and in most cases when I investigate there's some rogue process running thrashing some of the cores (looking at you, Fusion360)
CiaranMcNulty··on PHP Pipes in 156 Bytes
That's not done lazily which is considered bad
CiaranMcNulty··on PHP RFC: Enumerations
>So, singletons. That way you end up with more global state, with all its consequences.

As you point out, the lack of properties solves that. The use of a singleton probably relates to the identity issue

> at this point you may just as well skip the entire object part as I don't see why exactly it's needed for an identity check.

PHP only has 8 types (string, int, bool, float, array, null, resource, object) and they're not likely to be added to (resource is largely deprecated).

Given that, object is the only one that's not likely to be abused by relying on the actual scalar value. Keeping it as a singleton ensures that === will still work (it requires 'same instance')

CiaranMcNulty··on Why is Apple acting like an asshole?
Apps cannot currently use other browser engines on iOS
Page 1 of 4Next →