News for hackers. Stuff that matters.
Re:How Class-based Programming Sucks (2011) by tomp on Friday December 13, 2013 @07:33AM (#6900192)
Yes. Due to Special Relativity, different observers perceive events (changes to object state) at different moments, the state of the whole universe is not consistent. Therefore, we model the universe using a sequence of immutable universe snapshots, with different computational agents independently moving through the (branching) timeline of snapshots, so that each and every one of them views the universe consistently.
Re:How Class-based Programming Sucks (2011) by pmahoney on Friday December 13, 2013 @08:35AM (#6900371)
Most events humans care about happen in plain old classical physics, and no computer is moving at some large fraction of light-speed relative to any other computer. If you maintain synchronized clocks, everyone can agree on the exact same order of events (which would not be true in a relativistic situation).

Now it turns out to be difficult to maintain synchronized clocks, and Lamport timestamps and vector clocks are alternatives. The end result looks similar to a relativistic situation, but (and I'm not a physicist), it seems wrong to claim this situation is because of Special Relativity.

Thoughts?

Re:How Class-based Programming Sucks (2011) by tomp on Friday December 13, 2013 @09:17AM (#6900544)
Yes. I was half joking, half explaining why immutability actually is better to model the universe.

In practice, replace Special Relativity with Network Problems.

Re:How Class-based Programming Sucks (2011) by eloff on Friday December 13, 2013 @09:32AM (#6900623)
So what you're saying is the universe is mapped COW, and everytime there's a new observer, UniverseOS runs it with fork().