Show newer

@Zest

This moment right here is what I live for...

Give it time though you will start to have questions againa nd feel like it stops making sense. Dont let that win, you got the idea, it does make sense, and when you realize the "gotchas" it doesnt mean you dont really understand, it just means there are some unusual scenarios that require one other piece of the puzzle to understand and incorperate...

I dont want to break up your tears of joy but take this curve ball (again don't think it means your thinking about it wrong, i promise you aren't), i will give you the answer if you'd like but its kinda the only time piece you haven't considered so worth exploring...

Remember that ship looks short to you and the universe looks short to the ship... so take this class paradox of that scenario and consider how you might resolve it logically... You have a barn that normally is more than large enough to hold the ship. The barn has two huge doors on opposite sides. Normally the ship is small enough to fit inside. Now as a ship flying at 98% the speed of light flys past you and flys through the barn (the doors are initial open) you very quickly in the instant it is inside the barn close both the doors, containing it inside, then open them again before the ship crashes intot he door, and it flys away.

Now because the ship is going 98% the speed of light it is 19.9% its normal length. This isnt a problem because the ship could fit inside at full size anyway. However from the ships perspective the universe is 19.9% shorter and the ship is normal size. So that means from the perspective of the people on the ship the barn is 19.9% its normal length and they should not be able to fit inside it and have both doors closed at the same time. Yet somehow from their perspective it all works out.. how is this possible?

You can also flip this around and presume that at normal lengtht he ship is too big to fit in the barn but when it is traveling at speeds and is 19.9% its normal length it can fit inside just fine, therefore to the stationary person they can still close the doors safely when it is at speed, but couldnt otherwise, and to the ship there is still an apparent paradox (it isnt really but there is something you need to realize to understand why)...

Let me know if you have any ideas as to how this is answered, or if you just want me to answer it for you I Can do that too.

@Science

@nate_river I guess if you have no wish for people to develop cpu-limited apps on your language, then no. As you suggest and as @pganssle suggests you can (and perhaps should) write such things in C and just wrap them in python. That is a matter of opinion I suppose.

In my eyes the limitation here is not one that in any way improves python, its not a thing where they made python better in some ways by having the GIL lock issue and took that negative impact as a accepted consequence. So in that regard I do not find it excusable. It could have and should have been fixed with python3 and if they had the language would have been better (easier to write things that use multi cpus) without having any consequences... So to me and in my opinion, yes this is a black mark on the language and if they had it it would not have detracted from the intended purpose of python or made it any less suited at what its good at, it just would have made it more suited to a greater range of problems.

@Zest

People without science backgrounds is **exactly** who my OP is trying to target. It is people like you who have a curiosity about it, dont want to necessarily do the complex math, but do want to understand it in basic terms, that I feel are neglected.

It is a surprisingly simple idea to understand, but it is very rare that anyone who knows the topic will enough will actually both to explain it to someone like you in simple terms. So there is a gap of ignorance despite the curiosity and I dont like that, I dont like ignorance particularly when people are more than willing to try to understand.

So by all means **please** keep asking questions and take this conversation as far as you would like to get some understanding of the topic.

> I have one other question since you said something about being absolutely stationary and I was under the impression that this wasn't really a thing that exists

When i say absolutely stationary I mean that the distance and direction between you and some object are fixed. Better wording would have been "perfectly stationary", as in relative to someone or something else.

> I was under the impression that this wasn't really a thing that exists. are there actually stationary objects?

Your impression was correct there is no concept of stationary outside of relative terms.

> s there any such thing as absolute motion that's meaningful in a way that's not dependent upon it's relativity to other objects?

No there is not, not in any sense what so ever. It always must be relative to some thing. There is also no point that could be considered "the center of the universe" or even "where the big bang happened" which one might think if there were could be used as an absolute reference point. But no such point exists. The whole of the universe is where the big bang occurred more or less. The center of the universe, in any meaningful sense, is always wherever you happen to be, quite literally.

@Science

@pganssle

> In any case, I am not a Python maximalist. I suspect that you are not really giving Python a fair shot,

If i werent giving python a fair shot I wouldnt be using it and I wouldnt be rewriting my code 5x over to make it more pythonic where I can.

I am more than happy to keep trying to use it until it becomes impossible and dont intend to jump ship anytime soon. Likewise i will keep complaining and hold my criticisims until one of those rewrites, which hopefully get me closer to idiomatic python, produces code elegance and performance that I can praise.

For the moment the journey does not have me impressed, time will tell if that opinion changes. But for now I clearly am "giving it a chance", I just can and will continue to complain until those chances I keep giving it prove my preconceptions wrong (and maybe they will).

@Zest

When we talk abotu special relativity we usually dont talk about acceleration. We assume everyone has some speed and direction and that those speeds and direction are not changing. That is in fact what makes the difference between special relativity and general relativity. Once you get into acceleration then we have moved on to discussing the more complex ideas behind general relativity (though that is also where things get cool).

If you pretend acceleration doesnt have any effects and only think in terms of special relativity then under conditions where acceleration occurs the whole system breaks and you get logical paradoxes that dont make sense. General relativity resolves those paradoxes and describes the additional effects that take place when acceleration is introduced to the through experiment in some way.

@swiley @Science

@Zest @Science

> would those objects that are moving apart from each other anyways not still be moving apart from each other at rather high speed

from all observers the distance between the earth and original ship will appear to be increasing, though not at the same rate.

> if all three objects stopped moving relative to each other then, how would that effect the distance between them?

You have actually just hit on the third component of special relativity, you already knew about time dilation as you mentioned it, and we already discussed velocity dilation (that velocity is relative to the observer just like time is), now you are basically realizing the third aspect of special relativity, that is, length dilation (formally called length constriction). the length of a thing is just as relative as the rate of time or the speed of the thing.

Depends on who out of the group is doing the decelerating in order to create a relative velocity of 0 between them.. If you are standing in between two spaceships each going 98% the speed of light in opposite directions away from you, and they both decelerated equally until velocity was 0, then the distance between you and teh ships and between the two ships from your perspective would not change (however the length of the ships themselves would). When the ships are moving at high speed they would be much short in the direction they were moving, specifically 19.9% of their normal length, as if they were "compressed" in that one direction. As they come to a stop their length would expand to their normal length again.

However the perspective from the moving ship is much more interesting, assuming the ship is the one that did the accelerating the entire universe, along the direction that it is moving, would be 19.9% shorter than it appears to you, so a star that would normally had been 1 light year away is now only 0.199 light years away and from the perspective of the person on the ship would take 1/5th the time to get there that it would have taken light to do the journey.

Similarly if we had two ships moving away from you at 98% the speed of light the distance from the perspective of the ship is 19.9% less from the ship to you or the ship to the other ship than it appears to you. However the moment the ship accelerates and becomes stationary to you the universe will expand to its normal length again and the distances seen from the people on the ship would agree entirely with your own measurement of distance.

@Zest @Science

> would those objects that are moving apart from each other anyways not still be moving apart from each other at rather high speed

from all observers the distance between the earth and original ship will appear to be increasing, though not at the same rate.

> if all three objects stopped moving relative to each other then, how would that effect the distance between them?

You have actually just hit on the third component of special relativity, you already knew about time dilation as you mentioned it, and we already discussed velocity dilation (that velocity is relative to the observer just like time is), now you are basically realizing the third aspect of special relativity, that is, length dilation (formally called length constriction). the length of a thing is just as relative as the rate of time or the speed of the thing.

Depends on who out of the group is doing the decelerating in order to create a relative velocity of 0 between them.. If you are standing in between two spaceships each going 98% the speed of light in opposite directions away from you, and they both decelerated equally until velocity was 0, then the distance between you and teh ships and between the two ships from your perspective would not change (however the length of the ships themselves would). When the ships are moving at high speed they would be much short in the direction they were moving, specifically 19.9% of their normal length, as if they were "compressed" in that one direction. As they come to a stop their length would expand to their normal length again.

However the perspective from the moving ship is much more interesting, assuming the ship is the one that did the accelerating the entire universe, along the direction that it is moving, would be 19.9% shorter than it appears to you, so a star that would normally had been 1 light year away is now only 0.199 light years away and from the perspective of the person on the ship would take 1/5th the time to get there that it would have taken light to do the journey.

Similarly if we had two ships moving away from you at 98% the speed of light the distance from the perspective of the ship is 19.9% less from the ship to you or the ship to the other ship than it appears to you. However the moment the ship accelerates and becomes stationary to you the universe will expand to its normal length again and the distances seen from the people on the ship would agree entirely with your own measurement of distance.

@pganssle In this case I am already using numpy and scipy, and pandas which i think also has some low level bindings.

As far as I can tell none of them do parallel processing out of the box (if they did I probably wouldnt need to do it myself). There were some projects that add it on, parallellal or whatever it was called, modin, and I think one other. Tried all three none of them really helped and had marginal improvements.

With that said I **have** been able to multiprocess this and the performance has went from 2 hours to process a year simulation down to 10 minutes. Not as good as i could get with better parallelization tools, but good enough to work with it for now. My main issue is how convoluted multiprocessing is rather than if it can do it at all.

I tried Dask through modin and it didnt do much speedup, I may need to just bite the bullet and try pure Dask at this point, though im not sure if it will solve my problem. Even if i could get my numpy and pandas operations parallel the core of the issue is realtime processing of streaming data effectively and neither numpy nor pandas handles that well, which suggests to me Dask either wont fix the issue either or if it does it will be even more convoluted than just using multiprocessing.

Either way, for now i am able to get things working with multiprocessing but I really dont like what the code looks like to get it there, or the compromises I had to make that limit me from seeing better performance.

@pganssle Oh and as for dropping into a low level language, if i were to do that, particularly on this project where the multiprocessing component cant be easily isolated fromt eh rest, then there would be very little if any of what im doing actually in python.

At that point I would just pick a language that didnt have these issues but still high level and avoid python all together. If i wanted to code in C I would have.

@pganssle Yea I suppose I should have kept my criticism to the language and the tech and not extend it to the developers, just in the sense of disrespect. So I will take that aspect.

But I stand by what I have said, I have worked with countless languages and know hundreds and of all the relatively mainstream and significantly developed languages out there I've never found a language that feels as sloppily put together as python does.

Don't get me wrong I've used python lightly for years. It has a place and for some things it works well enough to be a non-issue. But overall it feels like it wasnt developed to the level of quality i expect of a mainstream language.

@nate_river I dont think they have any intent. They missed their chance in the move from python2 to python3 which broke backwards compatibility and hopefully they have no intention of doing that a second time, so kinda damned if they do damned if they dont at this point.

With that said it was very doable they just choose not to do it. Even before they wrote python3 there were unofficial python interpreters that already fixed this problem and were drop-in compatible with the official python. the truth is they were just too lazy to do it.

Have I mentioned yet today how much I hate python multiprocessing, or writing cpu-limited algorithms on python in general... my god why could they not fix the GIL lock problem in python3, are the devs really this lazy!

@swiley

After you try to work through it and can formulate your confusion (assuming its still there) feel free to make a public post to the group and myself and others can do our best to try to explain it hopefully... though i wouldnt really hope for too much of an intuitive understanding of tensors honestly, you sort get one a little if you work with it enough but I think thats more just repetition and seeing the patterns than it is actually understanding it :)

@PauITown @Zest

@freemo @Science
My hobbies include, watching time go by. Said no ever.

@khird

I'm not sure we can say its carelessness if they dont understand the math to begin with. Most people who misunderstand it likely arent even doing or considering it in vector math terms. I am more interested in the purely conceptual understanding that a lot of people are curious enough that they do consider it, but often get it wrong.

Understanding it really doesn't require anything nearly as complex as vector math, and even if you do vector math you don't even need to touch or incorporate time dilation directly (you can use energy equations and ignore time dilation and it works out correct). Sure if you want to calculate exact numbers in a complex scenario with multiple objects moving at different speeds and directions then vector math is going to be your go to (with or without time dilation).

Simply understanding intuitively as I have already done in some of the comments or even doing the math without consideration fo vectors by limiting our talks 2D is possible with just a basic intuition and very little rigour (the numbers I cited in some of my comments i just did simple math in my head, there wasnt a vector in site or anything to do with time dialation to cite those numbers).

@Science

@PauITown

My first dilation was in the 4th grade, haven't looked back since :)

The math is actually surprisingly simple once you understand how it works. Just some basic geometry and algebra.

@swiley @Zest

@a1batross I wouldn't be surprised if this was due to a craving for iron.. I would imagine foxes dont eat too well in winter and could have an iron deficiency.

@swiley

I kinda disagree. Personally I have always found special relativity highly intuitive even from a young age (in 4th grade i had re-discovered the equation for time dilation after hearing my teacher mention how it worked as a side comment once and it sounded like an easy concept).

I think intuition goes very well with it but you must learn to have a new intuition of sorts and think about what it is like in space where you have no points of reference around you to consider what is or is not stationary in an absolute sense.

IMO it doesnt start getting to be intuitive until you tack on general relativity, then things are a lot harder to reason through. Length constriction fo special relativity can be a bit unintuitive too, but even that I think you can build up an intuition rather fast once you understand a few things without the need for math or axioms.

@Zest @Science

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.