-
Preheat the oven to 350°F. Grease a 9" springform pan and line it with a parchment circle.
-
For the cake: In a small bowl, whisk together the flour, baking powder, and salt; set aside.
-
In a small bowl, stir together the cocoa and hot water; set aside.
-
In a small heatproof bowl, melt together the butter and unsweetened chocolate in the microwave or over a double boiler. Stir until smooth and transfer to a large mixing bowl.
-
Add the sugar and beat at medium-high speed until the mixture lightens in color. Add the cocoa mixture and the eggs, one at a time, beating well and scraping the bowl after each. The mixture should thicken slightly and be the consistency of mayonnaise.
-
Add the dry ingredients in thirds, alternating with the porter. Beat at medium-high speed for 30 seconds, scrape the bowl, and beat for 15 seconds more.
-
Pour the batter into the prepared pan. Place the pan on a baking sheet and bake for 45 to 48 minutes, until a cake tester inserted in the center comes out clean.
-
Remove the cake from the oven and let it cool on a rack for 10 minutes. Run a thin spatula around the edge of the cake to release it, then unclip and remove the side of the pan. Let the cake cool completely.
-
To make the frosting: In a medium saucepan, whisk the brown sugar, cornstarch, porter, and egg yolks together. Place over medium heat and add the butter.
-
Cook until the beer foams and the mixture begins to bubble around the edges. Add the milk and cook until the mixture thickens and bubbles in the center, stirring frequently, about 10 minutes. Remove from the heat and pour into a large mixing bowl. Let cool to room temperature.
-
When the frosting is cool, add the confectioners' sugar a little at a time while mixing at low speed. Once all the sugar is added, increase to medium-high and beat until the frosting is light and satiny. Stir in the salt and 1/2 cup each of the pecans and coconut.
-
To assemble: Split the cooled cake in half horizontally. Place one half on a serving plate and spread with half the frosting.
-
Top with the remaining layer and spread with the remaining frosting. Sprinkle the top with the reserved pecans and coconut.
-
Cover and store in the refrigerator for up to 5 days.