-
Posts
5,244 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by PB666
-
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
Fortran is a very viable Pe for things like super computers, and there are extensive apps for it, and very occassionally I see papers that the sup mat has a fortran algorythm in it. The apples and oranges. There are also xwindows/unix boxes that they are using C built apps. Yes, visual stuff are IDE, unlike K2(his statement about the slop in vb in no way denigrates it as a language, and once a very popular one) I dont see that as a problem or a weakness. You can write C in an IDE, but, even in old basic forms you can create an standalone exe without having a runtime files like some later versions of vbasic. I am not a programming ethnocentrist, the question of why fortran did not take off...... but i was there, i saw all the flies swarming around MS, and they cried 'woe are we' everyone is pirating all our software'. But the flies were their lifeblood because it built interest and flooded everything out. The problems with basic all true, but basic was made for machines with 4k of program memory, lol. One of my sisters friend had a singer computer with a 12 inch tv and a tape recodere and a small calculator like keyboard to enter the program. That is were basic comes from. These were novelties. But microsft did keep it evolving. -
Higgs/particle interactions at high energies maybe metastable
PB666 replied to PB666's topic in Science & Spaceflight
Maybe with a new more powerful electron/positron collidor they can get the energies up and take better measurements of the top quark at high energies. I wouldn't call it pure speculation, the higher energy quarks gonna need more statistical power in its measurements. Of course as we are talking the other day, its a function of getting the theory ahead of the data, better to wait on the data. -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
Here comes the arrogance again, the moderators wonder why these conflicts appear? -
Higgs/particle interactions at high energies maybe metastable
PB666 replied to PB666's topic in Science & Spaceflight
The point was that their reading conforms with the average mass, but other readings using more energetic versions indicate a higher resting mass. I think implicit in the metastability is that at the beginning of the universe metastability may have existed, but as it cooled the resulting top quarks typically interacted with higgs in a conformal manner. That was my interpretation. Remember we are trying to find things that might, under unique circumstances, violate conservation of momentum and metastability in the top quark higgs interaction could be one of these. Doesn't mean that it has any relevance for modern universe, simply means that the circumstance might exists under extreme circumstances. More to the point, if those circumstances existed again, most likely we wouldn't care because they would be inconsistent with life in general. And so I placed that as the catch phrase in the title, that is how the article was relevant to me, and maybe relevant to other folks. -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
Basic is a real programming language, If MS had chosen to go with visual fortran and drop VB, we would not be having this conversation now. Basic is gates baby, fortran wasn't, its as simple as that. I learned F 4 in college, not a chance i would drop basic for fortran once quick basic came along. If you were on a PC and you programmed you were married to M$, thats it, cause if u went with other guys lang the next OS may make that program unrunnable. She's quite a jealous wife. Thats why we are talking about linux and stand alone C/C++ programming and dual boot systems, divorce is not an easy thing. Whatever happened to Borlan? Fortran has the social legacy of punch cards, readers, thick stacks of tree killing paper were a misspelling error occurs in line 656 of your code, although it continues to process instructions. It could not make the transition fast enough to on the fly/paperless debugging. The problem of basic is rooted in its early evoluiotion, as the saying goes you cannot be a slave to two lords, on the one hand it was BIOS but on the second hand it was a novelty that could be used by some college student staring at a blank screen and capable of typing the word GWBASIC[return] and all of a sudden gates has potentially another outsource of his next ms-dos extension. -
Could someone help identify what this kit is used for?
PB666 replied to RickyJogging's topic in Science & Spaceflight
i see this so many times, thats how you end up with cesium sources being carried around in the pockets of nine year old kids. In any case, you will probably spend more money shipping it to its buyer than the price of the kit. I hate to see these things wasted, good luck. -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
Funny, but you cant write that in basic either. - - - Updated - - - Allen and Gates killed fortran when the invented Altair basic and ported it as the BIOS of the pc in so creating MS and essentually giving basica and Gwbasic away with every new PC, in 1987 you could buy a vB dirt cheap. Most of the non ms apps i used before 90 were either uncompiled basic routines or stand alone routines compiled from basic. With VB fortran was dead, stick a fork in it. What program did your average garage built pc come with, other than Ms-dos? nough said. Gates basically filtered what people used, wordstar gone, visicalc gone. If you throw your software to the world with all but zero piracy guards on it, then give away the programming language you used to create its kernal, and basically create a national geek fest for all the teenages who think they can program better than you, some of them actually will. Which you know from the start will happen because that is the basis of your own company. So you just scoop up unpatented idea and reverse engineer them into your OS while the hackers end up in corperate using your OS and your software to basically overthrow your competition. C exists because of the limitations of MS basic, plain and simple, after 1987 C was always ahead, and basic was always playing catchup because it was simply easier to improve C than to improve basic and Codeview and the Macroassembler gave the programmer a good reason for doing it. If assembly level programming was practical on the 80286 or later PC we would not be talking about this. C provides the minimal amount of up front structure and the maximum amount of control. -
Need help with an orbital mechanic question!
PB666 replied to Der Anfang's topic in Science & Spaceflight
http://www.masteringphysicssolutions.net/chapter-6-6-the-center-of-mass-of-the-earth-moon-sun-system/ -
http://vixra.org/pdf/1404.0067v4.pdf In any case when you see the "?" it generally means that th poster does not endorse the findings of the paper, if you disagree with the topic move on. if you want to refute it go ahead.
-
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
hmmm, i think the download mentioned the freeware was 2012 or 2013, i will have to check. This entire post will get printed out, "........ Thats the problem with googling, but on the bright side the socket 775 went down in favor of an i5 so at least the CPU has the latest instruction sets When you say the difference is tiny are we talking relative to all game processes or relative a particular process, like perspective change. Anyway i have to see what the full features of the cpu are, and what math functions it supports. After I did a little researching I found that this is microsoft C++ implimentation code. https://msdn.microsoft.com/en-us/library/ayeb3ayc.aspx. Going to upset some folks but cannot be run on ARM machines, so the code would not be portable anyway. So . . . . after a long contentious debate we have gravitated to C++ sparing on the class definitions and focusing on the struct definitions. And so finally we find the sense of C is in C++. - - - Updated - - - hash is a colloquial deprecation, after you try to impliment a class you will know why. - - - Updated - - - Mono was one of the recommened downloads fir ubuntu and Monondevelope IDE is one of two IDE i have installed, i wonder how many other folks have MD on their linux. -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
SSE, jogging the ole memory cells..... i found this http://tommesani.com/index.php/component/content/article/2-simd/46-sse-arithmetic.html So according to this it can do single 32 bit or simultaneously 4 single 32 bit. http://assemblyrequired.crashworks.org/timing-square-root/ So i was correct, at least partially don't trust the msvc or gcc compilers it defaults to the x87 math coprocessor instead of SSE. If you want to optimize this you need a c-compiler wuth a preference for SSE. Its amazing the production SSE came out almost 2 decades ago and the software is still defaulting to the previous generation of math coprocessor. And while it may be the case that he can do it, will i be able to convince some implimentation of c on linux to do it? In this case the fastest was the SSE rsqrtss (x) * x, so does c give access to reciprocal sqrt funtion on the SSE for any implimentation, same can be asked for Java. here is the c++ version http://www.programmingforums.org/thread29168.html The problem with the instruction is that it is unpipelined and tacks several clock cycles, as a consequence everything stalls. processed normally keeps the pipeline open. Amazingly we made it back to the science problem of ithe OP. But at least we have got two steps closer to a resolution. Man i miss the days when i could tell the processor what to do, there would be so little guess work here. -
This is all acedemic anyway. The problem for either is the delta-v retro required to safely seat at the density equilibrium point, assumming the vessel has negative relative pressure inside. Once you are on venus, its going to be really difficult tonget off the moon. Anyway venus is a pn earth like planet that gets too much hv, so called greenhouse effect has substantially turned the outer few kilometers of its surface into basically a greenhouse gas source. Much of this could be reversed, not so for the gas giants.
-
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
I don't know, thats a good experiment. Lets say i am completely clueless, but i have a sprit that knows everything, the sprite knows that sqrt 33333 = 182.57. OK I take the number and round it to either next higher or low square of x10, in this case i know the square root of 40000, so its square root is 200. 33333/200 = 166.65. So I take the average of the two divisors....366.65/2 = 183.33. Close enough, but one more round, 33333/183.33 = 181.82. Average = 182.57 done. For being completely clueless i got to 5 decimal places pretty quickly. BTW the derivative x^2 = 2x so here any deviation i can quickly use calculus to get much closer in the next step. BTW want to see how many steps to calculate pi to the precision limit of a computer startng with the chord of 180 degrees? This is the measure the ancients used instead of the sine. 2, 2.828, 3, ........ about 16 cycles. 6 will suffice. Hint the chord of and angle is precisely equal to the sin of its half-angle. cos of half angle = sqrt(1- sin2). chord of half angle = sqrt ((1-cos)2 + sin2)- sin and cosine are of the half angle. multiply that by the number of times the half angle divides the orginal chord and after a few cycles you have pi() https://en.m.wikipedia.org/wiki/Chord_(geometry) So how would i know. If i take an answer at any step and round it to 4 places, if the rounded number of the next step equals that of the previous step, then no more cycling is required. Essentially iif an ancient way of calculating can beat advanced mathematics to the punch (I don't need to build the acrpolis to more than say the precision of a gnats balls on the scale of the universe) then . . . . -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
I was reading this and noted your comparison. It does seem like C# will not be a bad launching point but I should note that https://www.jwz.org/doc/java.html What does he mean by Java doesn't have free(). - - - Updated - - - I know, I know, but I was trying just to get a class function just to work, I reduced it to the simplist possible. It was a bit of a cheat for VB, but VB got a cheat anyway because the function can be defined in the same module. However I should add, that I tend to create a separate Functions module to keep Subs and Functions separate from the Main routine, so its not really a cheat. The example was just trying to demonstrate the hassle of trying to create an object in C#. - - - Updated - - - I think it is a dev thing, So use everything in C++ but don't use classes for the intense processing stuff use structs instead, which is more of the way I program in VB anyway (using user defined types). -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
I wouldn't call them bad, VB works very well if some one is handing you data on an excel worksheet, as is the lingua franca for most people who process data but don't program. Its only when you have a serial stream of data and you need to do strait line processing, lets not use the word bad, lets call it weak. Here is the basic problem and believe me I have worked it down as small as I can, the variable definition in basic is not very good, in fact it stinks, but C# goes overboard particularly in creating instances. Every Basic function assumes that it has no idea what you are going to send it so it is going to try to convert everything to what it wants to process, then convert it back to what you want. If you know in advance you would convert in advance that long integer into a double if you are doing precision multiplication. I use integers for counters and pointers and try not to mix it into the floating point stuff. But I cannot control the fact that basic doesn't know if its going to be using a single or a integer as a counter. The CLR is clearly and advantage of studio.net, it comes with an enormous overhead. But it makes crossing between the two programming languages easier. I should make a point that a couple of decades ago I purchased Visual C++ and was attempting to cross over, the problem was the next version of Visual basic added most of the features that C++ was strong in, except the speed. I agree. OK so the problem that I have had with doing the good old fashion hard run was upper level control. Even in VB its hard to plan break points, in dos you never worried about it, you had no control, once you allowed the processor to run a function it simply ran until in finished or you hit the reset button. What I plan to hand off to C is going to be some pretty intense processing, so I need the higher level OS breakpoints. But if I want to run C based dll, then basically I need something like C# or VB to hand off once the data is in the machine and needs heavy processing. I believe that MonoDevelope can create C routines, I know it can create C++. Its going to have to be platform specific in one regard I need to have make-file and open file, append file, and close file command. At least multiple times. So if its on linux it needs to be linux compatible filing system. Don't care about android, not care about IPAD, don't care about apple. The MonoDevelop was automatically indenting and not particularly where I would choose to. In VB I always indent, always manually and always remember the consequences, 2 for each level except the If then Else End If in which else is always 1 outdent. I tend not to run recursive code, although I have played with it. "///" on the you tube immediately filled out 5 lines with each element in the definitions passed variables, basically you could describe the types used in the function. I tried the same thing and nothing happened. I don't need these but they are a nice feature. -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
OK, so in preparation I have two SSD drives, one is 500 GB and the other is 120 GB, some of the sequence files I parsed with VB because they were too large for a single 64 GB memory pen. They will have to be recombined. I need basically i386 compatibility and I already have it with windows/linux C#. But the thing is that I have techniques in VB developed that really I will need to get the logic to work, so that it needs to be portable with VB.net into something else with minimal amount of work. The process is that in Studio.Net I can start shaving portions of the VB code into C#. That's a big plus but the structure has to be compatible. Parallel processing would be great, sequence is randomly placed in the file, and I have already split the file into binary code for transport. I have access to 2 computers, but only 6 total processors. (Win 7, Win 10, Ubuntu 14.0.4) Technically speaking I could recombined all the sequence into a single file, and then carve it into 8 smaller files that could be processed individually. The end product will be a text files. - - - Updated - - - Finally, lol ....... [FONT=Monospace] [COLOR=#009695]using[/COLOR][COLOR=#333333] System[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#009695]namespace[/COLOR][COLOR=#333333] Trial[/COLOR] [COLOR=#333333]{[/COLOR] [COLOR=#009695]public [/COLOR][COLOR=#009695]class [/COLOR][COLOR=#3364a4]Class_AddNumbers[/COLOR] [COLOR=#333333]{[/COLOR] [COLOR=#009695]public [/COLOR][COLOR=#009695]int [/COLOR][COLOR=#333333]AddNumbers[/COLOR][COLOR=#333333]([/COLOR][COLOR=#009695]int[/COLOR][COLOR=#333333]number1[/COLOR][COLOR=#333333],[/COLOR][COLOR=#009695]int[/COLOR][COLOR=#333333]number2[/COLOR][COLOR=#333333],[/COLOR][COLOR=#009695]int[/COLOR][COLOR=#333333]number3[/COLOR][COLOR=#333333])[/COLOR] [COLOR=#333333]{[/COLOR] [COLOR=#009695]return[/COLOR][COLOR=#333333] number1[/COLOR][COLOR=#333333] + [/COLOR][COLOR=#333333]number2 [/COLOR][COLOR=#333333]+ [/COLOR][COLOR=#333333]number3[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#333333]}[/COLOR][COLOR=#888888][I]//[/I][/COLOR][COLOR=#888888][I]function[/I][/COLOR][COLOR=#888888][I] AddNumbers[/I][/COLOR] [COLOR=#333333]}[/COLOR][COLOR=#888888][I]//Class_AddNumbers[/I][/COLOR] [COLOR=#333333]}[/COLOR][COLOR=#888888][I]//[/I][/COLOR][COLOR=#888888][I]namespace[/I][/COLOR][COLOR=#888888][I] Trial[/I][/COLOR][/FONT] [FONT=Monospace] [COLOR=#009695] using[/COLOR][COLOR=#333333] System[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#009695]namespace[/COLOR][COLOR=#333333] Trial[/COLOR] [COLOR=#333333]{[/COLOR] [COLOR=#009695]class[/COLOR][COLOR=#3364a4] MainClass[/COLOR] [COLOR=#333333]{[/COLOR] [COLOR=#009695]public [/COLOR][COLOR=#009695]static[/COLOR][COLOR=#009695] void[/COLOR][COLOR=#333333]Main[/COLOR][COLOR=#333333]([/COLOR][COLOR=#009695]string[/COLOR][COLOR=#333333][][/COLOR][COLOR=#333333] args[/COLOR][COLOR=#333333])[/COLOR] [COLOR=#333333]{[/COLOR] [COLOR=#888888][I]//[/I][/COLOR][COLOR=#888888][I]string[/I][/COLOR][COLOR=#888888][I]EndKey[/I][/COLOR][COLOR=#888888][I];[/I][/COLOR] [COLOR=#009695]int [/COLOR][COLOR=#333333]Looper1[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#f57d00]0[/COLOR][COLOR=#333333], [/COLOR][COLOR=#333333]Looper2[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#f57d00]0[/COLOR][COLOR=#333333], [/COLOR][COLOR=#333333]Looper3[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#f57d00]0[/COLOR][COLOR=#333333], [/COLOR][COLOR=#333333]Maxloops[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#f57d00]15[/COLOR][COLOR=#333333], [/COLOR][COLOR=#333333]CummLoop[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#f57d00]0[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#009695]for[/COLOR][COLOR=#333333]([/COLOR][COLOR=#333333]Looper1[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#f57d00]1[/COLOR][COLOR=#333333];[/COLOR][COLOR=#333333] Looper1[/COLOR][COLOR=#333333]<[/COLOR][COLOR=#333333]Maxloops[/COLOR][COLOR=#333333]-[/COLOR][COLOR=#f57d00]1[/COLOR][COLOR=#333333]; [/COLOR][COLOR=#333333]Looper1[/COLOR][COLOR=#333333]++[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#333333]{[/COLOR] [COLOR=#3364a4]Console[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]WriteLine[/COLOR][COLOR=#333333]([/COLOR][COLOR=#333333]Looper1[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#009695]for[/COLOR][COLOR=#333333]([/COLOR][COLOR=#333333]Looper2[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#333333]Looper1[/COLOR][COLOR=#333333]+[/COLOR][COLOR=#f57d00]1[/COLOR][COLOR=#333333];[/COLOR][COLOR=#333333]Looper2[/COLOR][COLOR=#333333]<[/COLOR][COLOR=#333333]Maxloops[/COLOR][COLOR=#333333];[/COLOR][COLOR=#333333]Looper2[/COLOR][COLOR=#333333]++[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333] {[/COLOR] [COLOR=#3364a4]Console[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]Write[/COLOR][COLOR=#333333]([/COLOR][COLOR=#f57d00]"[/COLOR][COLOR=#f57d00]"[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333];[/COLOR][COLOR=#3364a4]Console[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]WriteLine[/COLOR][COLOR=#333333]([/COLOR][COLOR=#333333]Looper2[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#009695]for[/COLOR][COLOR=#333333]([/COLOR][COLOR=#333333]Looper3[/COLOR][COLOR=#333333]=[/COLOR][COLOR=#333333]Looper2[/COLOR][COLOR=#333333]+[/COLOR][COLOR=#f57d00]1[/COLOR][COLOR=#333333];[/COLOR][COLOR=#333333]Looper3[/COLOR][COLOR=#333333]<[/COLOR][COLOR=#333333]Maxloops[/COLOR][COLOR=#333333]+[/COLOR][COLOR=#f57d00]1[/COLOR][COLOR=#333333]; [/COLOR][COLOR=#333333]Looper3[/COLOR][COLOR=#333333]++[/COLOR][COLOR=#333333])[/COLOR] [COLOR=#333333]{[/COLOR] [COLOR=#3364a4]Class_AddNumbers [/COLOR][COLOR=#333333]AddTheseNumbers[/COLOR][COLOR=#333333] = [/COLOR][COLOR=#009695]new [/COLOR][COLOR=#3364a4]Class_AddNumbers[/COLOR][COLOR=#333333]()[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#333333]CummLoop[/COLOR][COLOR=#333333] =[/COLOR][COLOR=#333333] AddTheseNumbers[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]AddNumbers[/COLOR][COLOR=#333333] ([/COLOR][COLOR=#333333]Looper1[/COLOR][COLOR=#333333],[/COLOR][COLOR=#333333] Looper2[/COLOR][COLOR=#333333],[/COLOR][COLOR=#333333] Looper3[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#3364a4]Console[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]Write[/COLOR][COLOR=#333333]([/COLOR][COLOR=#f57d00]"[/COLOR][COLOR=#f57d00]"[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333]; [/COLOR][COLOR=#3364a4]Console[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]Write[/COLOR][COLOR=#333333]([/COLOR][COLOR=#333333]Looper3[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333];[/COLOR][COLOR=#3364a4] Console[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]WriteLine[/COLOR][COLOR=#333333]([/COLOR][COLOR=#f57d00]"[/COLOR][COLOR=#f57d00]-[/COLOR][COLOR=#ff0000]{[/COLOR][COLOR=#ff0000]0[/COLOR][COLOR=#ff0000]}[/COLOR][COLOR=#f57d00]"[/COLOR][COLOR=#333333],[/COLOR][COLOR=#333333]CummLoop[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#333333]}[/COLOR] [COLOR=#333333]}[/COLOR] [COLOR=#333333]}[/COLOR] [COLOR=#3364a4]Console[/COLOR][COLOR=#333333].[/COLOR][COLOR=#333333]ReadLine[/COLOR][COLOR=#333333]()[/COLOR][COLOR=#333333];[/COLOR] [COLOR=#333333]}[/COLOR] [COLOR=#333333]}[/COLOR] [COLOR=#333333]} [/COLOR][/FONT] Class_AddNumbers AddTheseNumbers = new Class_AddNumbers(); Of all the statements this gave me the most trouble, it won't work with a static declaration in the called functional. The archane function here is that you have to assign the type (Class_AddNumbers) and then tell C that also by the way its going to be a new Class_AddNumbers. Lol, no kidding I am defining a type as one thing and then saying by the way its also a new the same thing. I am not trying to be insultive here really, I am going to learn the C# and C++ but just to point out...... in basic Dim X as integer Function AddNumbers (Number1 as integer, Number2 as Integer, Number3 as Integer) as Integer If (Number1 + Number2 + Number3) > 32768 Then AddNumbers = 0 Else AddNumbers = Number1 + Number2 + Number3 'note also added a overrun protection. End Function Sub Main [Rest of program] x = AddNumbers(L1, L2, L3) [Rest of rest of program] End Sub -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
Sometimes you want a barebones stripped application of all its bells and whistles that just crunches massive amount of data. I have 200Gbyte of Desinovan genome that I want to process. I know how to do in in VBasic relatively logically an easily, now I need to get into a version of C that can make it go fast, barring that I will probably never be able to hex code on an i586 processor, i need the next best thing, ergo on linux and learning C. The logic is, if I can port it to C# and work out all the bugs there I can create a C++ application and run it on the console. In response to what one of the other posters says, efficiency is very important, still. Tried running barebones sequence alignment on mtDNA sequences from all Eutherians, and will need to repeat soon, the last time I ran the alignment it took just over 3 days. - - - Updated - - - Which contradicts your previous point. As per say calculating a log or a square root, all I need for certain comparisons is 3 digits, many of these are statistical so if I am off by 0.001 P at the threshold of 0.05 p it doesn't really matter since I will have to reprocess all the positives anyway. It could for a SquareRoot take Newton's shortcut and it would work. I moved to Linux simply to get away from the OS overhead with windows 10. -
C, C++, C# Programming - what is the sense in this
PB666 replied to PB666's topic in Science & Spaceflight
Actually the creators of C# claim that this opinion that C# is just an iteration of Java, they claim that it was patterned off of C++. The reason why I selected C hash was that I want to create high efficiency routines that I can run from VB or VBA, basically, so the efficiency issue is the issue. But exactly to the point, I wanted to tailor structures and classes to the efficiency and accuracy that I needed. The problem is that this has proven to be rather archaic process in either C++ or C#. Microsoft claims that both VB and C# are converted to essentially the same product before finally being converted to assembly language at runtime (Runtime implimentation). Also C hash runs in linux, which means If I have to I can run any vb app in linux as long as I can convert it to C#. Since these are the most similar it seems logical. So let me opinion about the problems of VB in principle and compare with C. 1VB. The If ...... End If structures, unlike For and Next do not have identifiers. For example hypothetically If-1 End If-1. When you have left out a next or end statement, the computer does not recognize that it was missing for an end or next statement, and proclaims that an End if is missing even though it might be a Next. 1C The { ....... } covers not only If and For and while and For each and . . . . . but also covers subroutines, class definitions. so a problem that is bad in VB is a magnitude worse in C. Seriously code segment identifiers are not compiled, they are freebees. 1{ }1 2{ }2 3{ }3 4{ }4 So that if you messed up one of your brackets the programs can tell you 'hey bracket 1 is missing it closing bracket' 2VB. Function definitions. If you are running a function within a module of basic, you simply need to declare the function and variable and a few lines of code. Its relatively simple. For the most part you don't want to run a function except if it will clear several lines of code up. So for example I want to evaluate non-normality, I can create a Skewing function and a Kurtosis function, or combine both into a single function (the output would have to be a string in that case) 2C. Jeeze Louise, lol. Static, Public, Private, implementation requires a new statement for multiple iterations. Why do I need to create a new class exactly to have multiple iterations. The simplest functional math statement and I have run into errors with just about every character of code. Is this really saving clock cycles, calling subroutines as separate classes? In C a function definition is not just a function, it is literally everything, whereas in VB functions are Functions (return calls) and everything else is subroutine, or even a defined type in VB6 (the equivilant of a struct in C). Because the functions are not set apart what has happened (as I see it) every single identifier in a class becomes very context sensitive, so any minor deviation from what the computer expects will generate an error. The problem in C is that class and function are muddled, a function should be something with a return value, it is not it can be any routine called in a class, if a static is not given it runs pretty much like the pi() function, if the static is not given you have to call a new instance of the function (an pray that its going to work). So it seems to me, that say if I am going to need several routines running simultaneously in C, I am going to have to create a whole new class for each, to make sure that the other might-be functions in that class are not going to be carried on for the ride. This makes sense if you need to build really big classes, such as an employee class or product class, but if the function of the iteration is to process some basic parameters. Here's an example: Suppose I need 30 classes (types of objects in a solar system, types of diseases, whatever) Some of these are so simple that I can create structures (which apparently are not used anymore in C) but most will be defined as a class, so, unless I combine them into a dynamic linked library, I'm going to have 30 class files for the program. Not only this I am going to have to be tracking all of these things in memory. So for example suppose I have finished a sector. Even if I create a model without a given class (less say a lessor companion in a binary star system), I am still loading the class. IF I combine functions into classes, then every time I call the celestial routine, I am also pulling a routine for a fluffball which I would not use since a celestial is gravitationally flattened. So in this case fluffball I could run as a structure (struct) and it would not need to process the effects of its own gravity (since this could be handled collectively) on all surrounding gravities, but a celestials gravity would need to be assessed (for example it can toss a fluffball out of the system or tear it apart and eat the fragments), so I would be pulling class routines for doing assessment of gravity effects. In VB6 I would simply define at type fluffer and set variables in a type, then dimension fluffballs Dim fluffball() as fluffer. And in the programm fluffballcount += 1 Redim Preserve fluffball(fluffballcount) With fluffball(fluffballCount) .mass = RND(K): .X = xPos: .Y = yPos: .Z = xPos: .density = 0.01: .velX = 1000: .velY = 2000: .velZ = 10000: .sector = sectorNumber End With Sector fluffball(fluffballcount).sector (parameter list) ' An object its going to examine to see if fluffball interacted with anything, or how is shifted mass or gravity in its space. . . . . . . So now in C, fluffball is now an instance of a class and all its parameters will have to be shipped to the object to be updated, this essentially means making an expensive call for essentially routine equivalencies. - - - Updated - - - Good idea, didn't think of that but I should have. The /// section of definitions I have tried to use this but it doesn't seem to work, it works in the You Tube but not on my computer. -
I am really making a push now to learn C and all its variants. I have may Linux system finally stable and a dual boot system and I am managing (arduously) to learn the language. Learning basic was easy, visual basic without a course was arduous, but I eventually became proficient at it in both Prof and VBA (which I mostly use). I came at MS-basic from basically programming an Apple IIe in machine language, I used an assembly language editor for a time but eventually found I could code directly in hexadecimal. So this is a computer science question. With C what is the sense? if it is supposed to be faster or more powerful, I find many of the functions you have to sort through types, or convert types. And I have been reading online that some of the System.Math functions are really not that efficient, that you could write more efficient classes in your own program. So why doesn't the standard just give the algorhythm and let folks create their own functional classes. Suppose I don't need an answer that is accurate to 20 decimal places, suppose 4 is good enough, why do I want to waste the clock cycles trying to achieve 20 places. One of the functions is you have to take a float, convert it to double, run the math function, when done convert it back to float again. That's very efficient. The other thing, from a Visual basic point of view, the language itself is sort of archane in its structure. For example loops closures go unidentified, I find my self counting closed brackets and things like this. What really is the basis of C's popularity, couldn't we just have a basic portable across many platforms.
-
Muon reactor, non-classical fusion for electric power generation
PB666 replied to PB666's topic in Science & Spaceflight
As the moderator says, if its not your cup of tea move on. To the specifci point, i did raise my own concerns. However I should point out that this is technically not cold fusion, since they are using lasers to condense matter. Science is that which expands science, part of that process is sorting through the caga. Because of the time and money required to impliment fusion reactors people are looking more distally for alternatives as they should, but since its been 60 years and we still don't have a working reactor and couple this to the problem of electric power needed in space, i would say the concept at least is worth consideration [cough] We cover many topics in this forum, of those tpoics the two most important given the obsession with mars venus are power generation and holo-life support. This is followed by landing systems in the case of mars. Interplanetary propulsion decreases time from the hohmann transfer minimum to a high energy intercepts that are highly energy dependent, but reduce time and the need for life support. So the VASIMR or even the mg2+ ION drive require huges amounts of electrical power, a capacity hat we do not have. Nerva have thier own problems. Deuterium is genally considered to be safe at high concentrations and even tritium has been largely deregulated. However, i was going to make this comment on the original post and erased it. if the authors logic is correct we could just make a huge underground sphere and start dumping isotopes (any radioactive or neutron sensitive) into the sphere with water circulating through the bottom shooting lasers into the brew until combinations of neutrons and muons began creating unknown nuclear reactions, you would probably have more electric power generation than either this or the fusion reactor proper, if we did not give a flip about safety. -
On the strength argument, don't forget that criteria may have been implimented, for example in this case what constitutues a large earthquake. If the criteria are drawn along subjective boundaries then the data distribution may require a correction. So it could be true that withbproper correction they have cleared none.
-
For every theory that is notable in the public space there are 1000s of publications. The is something you should know about statistics, is called the dependency correlation relationship, its very basic statistics. Correlations do not prove a dependency. For example magnetic storms and massive earthquakes could be codependent on some other factor. So what happens in statistics is once a researcher shows a relationship, that researcher has to go and collect more data and data along other avenues to show why. One thing they might look for is a parameter(s) that has a stronger r value. You can read more on this in Zar, Biostatistical Analysis, 2nd edition, 261 to 361, notably page 261-262, 306-308. I should point out that the solar winds are twisting plasma, charged particles, and as we know this creates magnetism. Thes are generally agreed to be a apart of the suns magnetic feild even though they are dissociated from the sun. The question better asked is when do the strongest field lines crosses earth magnetic field and does this specifically correspond to a period of higher earyhquakes. What is the gauss ratio?
-
http://www.eurekalert.org/pub_releases/2015-09/uog-snf092515.php fast heavy electron, not, but they call muon. Electrons generally don't decay during transmission. https://en.m.wikipedia.org/wiki/Muon note the part that muons generated by cosmic rays can penetrate several 100 meters underground. Oh well i guess in Iceland theres lots of plaves this is not going to make a diff, but to work at such a place chernobyl comes to mind.