technically optimism is the belief that all things will come together and pessimism is the belief of meaninglessness. so they have little in common. but practically both are simply "different ways to view the world" โ€“ our subjectivity does not change the world, both are fundamentally biased