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?


  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Brno - Czech Republic
    Rep Power

    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

    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Milan - Italy
    Rep Power

    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. | |
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  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 :-\


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

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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