|
-
Jan 20th, 2007, 04:37 AM
#1
Thread Starter
Lively Member
choosing language to use
I am going to be rewriting/having rewritten an app that is currently done in VB6. the App deals with large numbers as in 700 digits. none of the numbers have decimals.
the App has to be able to do "basic math" on these numbers (add, subtract, divide, multiply)
on the division I need my result to be in the form of 2 integers 1 being the result the other being the remainder.
very little of the data will be written to a file.
my main concern if going to be run speed. I am not worried about development speed or the fact that I will need to learn/buy a new language.
I look forward to your feedback on this.
-
Jan 20th, 2007, 05:21 PM
#2
Re: choosing language to use
What's wrong with the one you currently have?
-
Jan 21st, 2007, 02:06 AM
#3
Thread Starter
Lively Member
Re: choosing language to use
as I said in my first post i am after run speed. VB6 is too slow for this.
I am currently debating between Fortran and one of the C's. I am also open to other sujestions that might be better suited for this.
-
Jan 21st, 2007, 02:37 AM
#4
Re: choosing language to use
Use the language that contaion the OOPS concept.
-
Jan 21st, 2007, 02:43 AM
#5
Re: choosing language to use
If your algorithms are inefficient, it's going to make no difference what language you use. Just re-write the performance-critical parts of your application. No languages are slow at basic maths; unless they're interpreted, and badly, at that.
-
Jan 21st, 2007, 02:45 AM
#6
Thread Starter
Lively Member
Re: choosing language to use
 Originally Posted by shakti5385
Use the language that contaion the OOPS concept.
which language would that be? and what advantage would that give me in this case?
-
Jan 21st, 2007, 02:50 AM
#7
Thread Starter
Lively Member
Re: choosing language to use
 Originally Posted by penagate
If your algorithms are inefficient, it's going to make no difference what language you use. Just re-write the performance-critical parts of your application. .
I intend to rework myu algorithems.
No languages are slow at basic maths; unless they're interpreted, and badly, at that
I know some languages are faster than others at certain tasks. and to deal with such large numbers may mean string handing on some degree(which is always slow in VB6)
-
Jan 21st, 2007, 03:37 AM
#8
Re: choosing language to use
 Originally Posted by n1ghtowl
which language would that be? and what advantage would that give me in this case?
Select Dot Net language there are 22 language you can Select one of then but I suggest you that if your C is good then go with the C#.NET
-
Jan 21st, 2007, 08:29 AM
#9
Re: choosing language to use
 Originally Posted by n1ghtowl
... VB6 is too slow for this...
I don't buy it - slow for what? Be more specific please if you want to get more or less reasonable suggestion.
As pen said you may only need to re-write some performance critical algorithm - that's all.
-
Jan 21st, 2007, 02:38 PM
#10
Re: choosing language to use
It sounds to me like you are looking for C++. VB6 can be reasonably fast, but you don't see any truly high speed, math intensive, programs being written in that language. There would be another feature in that C++ allows operator overloading. This may not be an issue for you, but you could create a class for those massive numbers, and implement overloaded +, -, *, and / operators for the class such that you could write this:
BANum1 = BANum2 + BANum3 / BANum4
and it would do as you want (assuming you wrote it well). Then, once the class is created and working right, you would be able to drop it into any other app, as needed, which is what OO is all about.
My usual boring signature: Nothing
 
-
Jan 23rd, 2007, 04:25 PM
#11
Re: choosing language to use
Write multibyte arithmetic routines in assembler, then call them in anything you like and they'll still be fast doing the arithmetic.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|