1) Bring a large pot of water to the boil over medium heat. Salt the water, add the pasta and cook to al dente.
2) Heat a large skillet with a drizzle of extra-virgin olive oil over medium to medium-high heat. Add the bacon and cook a few minutes until rendered and crisp. Put a small bowl inverted into a large bowl, steady the corn cobs on the smaller bowl and scrape the ears.
3) Add 3/4 of the scraped corn and any corn liquid to the pan with the bacon. Add the shallots and red pepper and liberally season with salt and pepper, to taste. Cook until the vegetables are tender, 5 to 6 minutes.
4) Add the remaining corn and half-and-half to a food processor and puree until smooth.
5) Pour the stock or wine into the corn and vegetables, and simmer over low heat for a minute to reduce. Stir in the thyme and corn-cream mixture and cook for 3 to 4 minutes, stirring frequently, to thicken. Add the hot sauce or cayenne and season with salt and pepper, to taste.
6) Drain the pasta and add it to a large serving bowl. Pour in the sauce, add a couple of handfuls of cheese, about 50g, and toss. Top with torn basil or chopped tarragon and pass the remaining cheese at the table.