Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: ThinBASIC 1.9.14.0

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    What I can say is that next beta version will be dedicated to solve this problem.
    ThinBASIC bundling (creation of a kind of EXE containing all files needed to execute a script without having ThinBASIC installed) was developed many years ago and never updated in recent versions.
    I will give a ... full refresh.


    Quote Originally Posted by John Spikowski View Post
    This may sound nuts but have you ever considered a ThinBASIC to PoweBASIC translator to allow your users to compile their apps? It might help add some excitement to the PowerBASIC community in these troubled times.
    You are not far from what I have in mind but ... (a lot of vaporware here):
    1. without involving PB (too many possible legal issues)
    2. limited to the minimum in order to substitute just thinBasic.exe with a dynamic main executable compiled on the fly and able to encode user script and call Core module in memory.
    Last edited by ErosOlmi; 21-10-2014 at 07:21.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #12
    Member
    Join Date
    Nov 2012
    Location
    Missouri, USA
    Posts
    113
    Rep Power
    29
    Eros,

    I think it would be a disservice if you make a translator
    for the free scripts created in thinBasic to an external
    Basic language you have to pay for. PowerBasic is not
    freeware, at least not the last I seen. It would be like
    getting a free slice of bread and have to pay $100 for
    the butter to spread on it.

    Except for one of his post, I have been bundling RobbeK's
    recent posts. I have to uncheck "Obfuscate" for them
    to bundle though.

    No, put the compiler in thinBasic.

    Just Make thinBasic Better,

    Bill
    Last edited by Billbo; 21-10-2014 at 05:24.

  3. #13
    limited to the minimum in order to substitute just thinBasic.exe with a dynamic main executable compiled on the fly and able to encode user script and call Core module in memory.
    That sure sounds like it has a O2 ring to it.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

  4. #14
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Quote Originally Posted by Billbo View Post
    Eros,

    I think it would be a disservice if you make a translator
    for the free scripts created in thinBasic to an external
    Basic language you have to pay for. PowerBasic is not
    freeware, at least not the last I seen. It would be like
    getting a free slice of bread and have to pay $100 for
    the butter to spread on it.

    Except for one of his post, I have been bundling RobbeK's
    recent posts. I have to uncheck "Obfuscate" for them
    to bundle though.

    No, put the compiler in thinBasic.

    Just Make thinBasic Better,

    Bill
    And will be like that!
    No translator to other languages, nothing to pay for.
    Just a different way (stable, secure, easy and possibly with more options) to create the Bundled Executable.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #15
    And will be like that!
    No translator to other languages, nothing to pay for.
    Just a different way (stable, secure, easy and possibly with more options) to create the Bundled Executable.
    Maybe a first step would be to do something like Script BASIC and append the script to the end of the interpreter and alway check for attachments before processing any comand line options. SB stores its pre-tokenized script image in a binary form using the scriba -Eo mypgm.exe mypgm.bas command line option. (no compiling needed) This works great for creating in-line batch file scripts that support redirection. (stdin/out/err) Windows batch file processing isn't a fan of interpreters inline.

    Since ThinBASIC interprets on the fly, your text scripts could be attached as a compressed text image with JIT decompression at runtime.
    Last edited by John Spikowski; 21-10-2014 at 09:17.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

  6. #16
    Member
    Join Date
    Nov 2012
    Location
    Missouri, USA
    Posts
    113
    Rep Power
    29
    Thank you, Eros, that's great to hear.

    Bill

  7. #17
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Quote Originally Posted by John Spikowski View Post
    Maybe a first step would be to do something like Script BASIC and append the script to the end of the interpreter and alway check for attachments before processing any comand line options. SB stores its pre-tokenized script image in a binary form using the scriba -Eo mypgm.exe mypgm.bas command line option. (no compiling needed) This works great for creating in-line batch file scripts that support redirection. (stdin/out/err) Windows batch file processing isn't a fan of interpreters inline.

    Since ThinBASIC interprets on the fly, your text scripts could be attached as a compressed text image with JIT decompression at runtime.
    That is (more or less) what is done now: there is a compiled EXE created in-memory to which needed files are attached as EXE resources.
    At run time, resources are saved as hidden files on disk and script executed.
    At the end of script execution, files on disk are removed.

    Attached files to the main executable are:
    • thinbasic.exe
    • thincore.exe
    • zlib.exe
    • obfuscated user script
    • <all thinbasic modules used by the script>


    At run time, thinBasic.exe is executed passing obfuscated script.
    Thinbasic.exe invoke thincore.dll and execute the script.

    I want:
    • remove the need to have thinbasic.exe
    • main exe will call thincore.dll passing to is a memory representation of the obfuscated script avoiding to explode script on disk
    • having the possibility to add whatever icon and version info to the main executable


    Anyway, I'm very close to this.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  8. #18
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Yes, yes, yes
    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

  9. #19
    Member
    Join Date
    Nov 2012
    Location
    Missouri, USA
    Posts
    113
    Rep Power
    29
    Hey All,

    I need to clarify what I've indicated about my bundling.
    I have the exe to be created in thinBasic's root directory.
    It will run there, but not if the exe is in another directory.
    It cannot find the included file(s), sub-directories, etc. So,
    it is correct that thinBasic does not create stand-alone exe's.

    I sure am hoping and praying that Eros gets it all sorted out.

    Bill
    Last edited by Billbo; 21-10-2014 at 20:54.

  10. #20
    I sure am hoping and praying that Eros gets it all sorted out.
    You can rest assured that if it can be done, Eros will do it. ThinBASIC doesn't ask for a credit card to enjoy the code only feedback is Eros's reward.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

Page 2 of 3 FirstFirst 123 LastLast

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
  •