If using fresh pineapple, slice the pineapple and stem in half lengthwise. (If you’re using canned pineapple, skip this whole step.) Use a paring knife to cut around the perimeter of the pineapple meat to form a bowl shape, leaving a ½-inch rim, then slice into the pineapple crosswise (taking care not to go through the skin on the bottom). To form the bowl, use a spoon to scoop out the slices, carefully carving out any remaining bits left behind and discarding the hard core. Cut the pineapple meat into ½-inch pieces. Measure out 1 cup and set aside. Save the leftover pineapple half for a late-night snack, or hollow it out, as well, reserving the meat for another time.
In a dry wok or large skillet over medium heat, toast the cashews, stirring frequently, until lightly browned and fragrant, 3 to 5 minutes. Remove the cashews and set aside.
Increase the heat to medium-high, add the bacon and cook, stirring occasionally, for 2 to 3 minutes to render the bacon fat and crisp the bacon. Add the butter and let it melt, then stir in the garlic until fragrant, just a few seconds.
Add the chicken and cook, stirring occasionally, until the chicken is seared on the outside, about 3 minutes. Add the onion and stir until softened, about 2 minutes.
Stir in the curry powder, sugar and chile powder, then the peas and fish sauce, tossing to distribute the curry powder. Then, immediately add the rice, reserved pineapple, raisins and red chiles. Cook for about 2 minutes, stirring and tossing often until any liquid has evaporated and the rice starts to brown.
To finish, add the scallions, toasted cashews, white pepper and as much chopped cilantro as you’d like, tossing to combine. Taste and season with more fish sauce, if needed. Transfer some of the mixture to the pineapple bowl (if using), and transfer the rest to a serving platter. Garnish with whole cilantro leaves and serve with lime wedges.
