Page 1 of 1
Purebasic's Speed
Posted: Thu Mar 03, 2016 1:59 pm
by Frarth
Just wanted to share this to stress the speed of Purebasic.
I just finished a program that computes the positions of the planets and Moons using the huge VSOP87 dataset. Despite this dataset (almost 500kb for Mercury alone - there are 8 more) the executable is *only* 1MB in size. It also took the compiler only a second to compile close to 40,000 lines of code.
The program can search for any planetary alignment not just heliocentric or geocentric. So imagine you are on Jupiter and you want to know when the next time will be when you see Uranus and Neptune conjunct. This alignment is pretty rare. The last time it occurred was in 1991. The next time it will occur is in 2167. It took the program ONLY 5 SECONDS to find it.
If you have no clue as to whether or not this is fast, just have a look at the VSOP87 tables.

Re: Purebasic's Speed
Posted: Thu Mar 03, 2016 2:09 pm
by Keya
Frarth wrote:So imagine you are on Jupiter and you want to know when the next time will be when you see Uranus and Neptune conjunct. This alignment is pretty rare.
that made me wonder when all planets get to closest alignment (no such thing as perfect alignment of course) ... 2492 as it turns out!
The closest the eight planets will come to being aligned will be on May 6, 2492. This image shows what you would see if you were off the coast of New York City and you looked due south at 5:10 am on May 6, 2492, as calculated by the software program Stellarium 0.13.3. As you can see, the planets are not visually sitting on top of each other, which would be the case if they were all located on a line emanating from the earth (as would be needed to maximize their net gravitational force on the earth). Furthermore, they are not even visually sitting on a line in the sky. They are simply in the same general region of the sky.
http://sciencequestionswithsurprisingan ... l-line-up/
that Stellarium program is pretty cool, i used it not long ago to check whether i was seeing Mars or Venus in the early morning sky
oh, and yes PB code can be pretty damn fast

Re: Purebasic's Speed
Posted: Thu Mar 03, 2016 2:11 pm
by Frarth
Keya wrote:Frarth wrote:So imagine you are on Jupiter and you want to know when the next time will be when you see Uranus and Neptune conjunct. This alignment is pretty rare.
that made me wonder when all planets get to closest alignment... 2492 as it turns out!
The closest the eight planets will come to being aligned will be on May 6, 2492. This image shows what you would see if you were off the coast of New York City and you looked due south at 5:10 am on May 6, 2492, as calculated by the software program Stellarium 0.13.3. As you can see, the planets are not visually sitting on top of each other, which would be the case if they were all located on a line emanating from the earth (as would be needed to maximize their net gravitational force on the earth). Furthermore, they are not even visually sitting on a line in the sky. They are simply in the same general region of the sky.
http://sciencequestionswithsurprisingan ... l-line-up/
that Stellarium program is pretty cool, i used it not long ago to check whether i was seeing Mars or Venus in the early morning sky
oh, and yes PB code can be pretty damn fast

Absolutely rare phenomenon!