Sharon Horgan might not take it as a compliment, but her new HBO comedy Youth confirms her status as the Woody Allen of her generation – a writer of sad, brittle chortle-fests that serve as a sort of comedic autofiction, blurring the divide between creator and their character.

She’s done this before – Pulling was informed by her experiences as a thirtysomething Irish woman dating in London, while Catastrophe captured the messiness of a situationship with legs, which is how her marriage, by all accounts, began. Now, in her 50s and divorced, she is once again wrenching chuckles from the fabric of her life via looking‑for‑love‑in‑middle‑age dramedy Youth (HBO Max from Monday).

It’s perhaps the best thing she has attempted – wry, unsparing and featuring a breakout performance by Aran Murphy (son of Cillian) as the moody student son of Horgan’s character, Alex. Forget Adolescence – Youth is one of the most realistic portraits you will see of a young man adrift in a world all too ready to think the worst of him.

As with her previous work, Horgan is brave enough to make her character unlikeable. Alex is a self‑obsessed literary agent who sees other people’s problems as a mirror in which she can behold her own reflection and ask why she can’t have it all. Or, if not have it all, then at least aspire to a functioning love life before 60 strikes and she turns into “old me”.

But as writer, producer and star, Horgan is equally merciless about the other characters. Alex’s ex, Lorcan (Owen McDonnell), is a self‑involved man‑boy actor who expects the world to bend to the demands of his ego, while her current love interest (Rupert Friend) is a smarm onslaught in nice‑guy’s clothing.

The only place where Youth really stumbles is when it tries to fill in the blanks of Alex’s family life. One of the things Horgan wants to address is the pressure of the Sandwich Generation as they juggle growing kids, a potentially troubled marriage (or no marriage at all) and ageing parents. But because Alex is an Irish woman in London, the show demands that her entire family – including an ailing mother and father and a sister – be a) Irish, and b) based in the UK … which makes no sense.

Youth isn’t the first show to try this wheeze of an Irish person living in the UK with a fully Irish extended family on their doorstep. This was also attempted in the thriller Unforgotten, when Sinéad Keenan joined the cast, and in Siobhán McSweeney’s Disney+ series Extraordinary. Of course, if the goal were to give an Irish character a family network, the logical thing to do would be to … set the entire show in Ireland. But you suspect that the idea of locating an urbane comedy where people have fancy creative‑class jobs in … shudder … Dublin, would cause craniums at HBO to implode.

[ Sharon Horgan on suddenly being single in your 50s: ‘Will I just attract weirdos and freaks?’Opens in new window ]

That huge distraction aside, Youth whizzes by on snarky energy and earns bonus marks for its realistically unsentimental depiction of the mother‑son relationship and its honesty about how shouty and disconnected from reality teenage boys can be. But amid all of that, it never forgets the giggles, and if this is to be the final chapter in Horgan’s “Dear Diary” trilogy, then it brings things to a close with perfectly apportioned quantities of tears and laughter.