Results 1 to 4 of 4

Thread: Which language?

  1. #1

    Which language?

    First of all which language is better to use for the module development?

    We can choose from C and PB, both language have strength and weakness.

    Mainly with C language we can found a large amount of code to inspect and contemplate, instead with PB we have a lot of interface work (I mean how handle IN/OUT arrays) already done.

    So isn't a simple choice, is it?

    Cheers,
    Roberto
    http://www.thinbasic.com

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,828
    Blog Entries
    3
    Rep Power
    696

    Re: Which language?

    Hi Roberto,

    your question is interesting. I think the result will be quite similar using both languages. I have very basic knowledge of the statistic, but it doesn't seems that any of this languages has less power to implement it good and fast.

    Long time ago, I made some comparsions between PB and C code to compare speed of both languages, and the results were good for PB in many cases. But that was in times of DOS versions of this languages. Some test projects under DevC++ ( don't know which compiler it uses ) were better for C on another side. So maybe it is just question of personal preference

    Best for speed could be write it in pure assembler but I don't know how much time it would take ;D


    Bye,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    51
    Posts
    8,334
    Blog Entries
    2
    Rep Power
    10

    Re: Which language?

    Too late, we have already decided. Try to guess? ... PowerBasic
    Roberto have already prepared first version. It is very fast.

    time to fill an array of 10 million EXT in a script loop: 14 sec
    time to calculate the mean in STAT module: 0.125 sec

    Anyhow, will be released next update.
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  4. #4

    Re: Which language?

    Hi Petr,

    as Eros said, we choose PB, mainly for data compatibility reasons.
    Moreover both C and PB language allow 'fine controll' (I mean the possibility to code in assembler directly).
    C language offers also a good source level debugger and compiler optimization :-\

    Ciao,
    Roberto
    http://www.thinbasic.com

Similar Threads

  1. thinBasic interface under CGG C/C++ language
    By RobertoBianchi in forum Module SDK (GCC C /C++)
    Replies: 8
    Last Post: 29-04-2009, 14:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •