Results 1 to 11 of 11

Thread: choosing language to use

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    85

    Question 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.

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    85

    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.

  4. #4
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: choosing language to use

    Use the language that contaion the OOPS concept.

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    85

    Re: choosing language to use

    Quote 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?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    85

    Re: choosing language to use

    Quote 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)

  8. #8
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: choosing language to use

    Quote 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

  9. #9
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: choosing language to use

    Quote 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.

  10. #10
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    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

  11. #11
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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
  •  



Click Here to Expand Forum to Full Width