Toast the pine nuts or pistachios in a small dry skillet over medium heat and set aside.
Have 6 cups of hot water or vegetable broth simmering on the stove.
Heat half the olive oil in a large, deep frying pan over medium heat and cook the onion and carrot until soft, lightly browned, and glistening.
Stir in the garlic. Add half the orzo to the pan and continue to cook until the orzo starts to brown. Sprinkle the saffron into the toasting orzo and add 1 cup of hot water or broth. Stir. Add more water or broth in half-cup increments until the browned orzo is soft but al dente, about 7 minutes.
While cooking the vegetables and orzo, bring a medium pot of water to a boil. Add salt and boil the other half of the orzo. Drain, reserving 1 cup of its boiling liquid.
Add the boiled orzo to the toasted orzo mixture in the frying pan and stir together gently to combine. Stir in the nuts. Stir in raisins, adding some of their soaking liquid if desired. Stir in the mint and/or parsley and serve.