borokov

joined 2 months ago
[โ€“] borokov@lemmy.world 0 points 1 week ago (1 children)

I comment because this is how a social network works, and this is how you keep lemmy alive. My comment has generated a dozen of other comments, so he achieved his goal.

There is not a single question that's already have been answered on internet, so there no point on asking anything on social plateforms except just for the sake of interacting with other peoples.

Lemmy is not stackoverflow ๐Ÿ˜‰

[โ€“] borokov@lemmy.world 2 points 1 week ago (2 children)

Don't know how list are implemented in Python. But in the dumb linked list implementation (like C++ std::list), each element has a "next" member that point the the next element. So, to have list length, you have to do (pseudo code, not actual python code):

len = 0
elt = list.fisrt
while exist(elt):
    elt = elt.next
    len++
return len

Whereas to test if list is empty, you just have to:

return exist(list.first)
 

I think you know the simulation hypothesis. Our universe could be a simulation created by... well, let's call them "gods".

But, if the simulation continue, we, humans, may reach the point where we could create a simulation of our own universe. In which, the simulated people would reach the point where they simulate their universe, etc...

So, as a corollary, it is not possible to simulate the entire universe, because this imply simulating an infinity of entire universe. It is only possible to simulate a simpler, smaller universe at each "layer".

So my question, are we at the top of the stack, or at the bottom ? Which would imply a much bigger and much more complexe universe above us.

[โ€“] borokov@lemmy.world 3 points 1 month ago

SimCity 2000 microwave powerplant ?