Author Topic: Scriptbasic Build Linux  (Read 1916 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 2339
    • ScriptBasic Open Source Project
Re: Scriptbasic Build Linux
« Reply #150 on: January 12, 2019, 11:30:21 AM »
False Alarm

Code: Script BASIC
  1. numhex =  0x1D4A9EBC4E94E60
  2. PRINT numhex,"\n"
  3. PRINT HEX(numhex),"\n"
  4. PRINT FORMAT("%X",numhex),"\n"
  5. PRINT FORMAT("%0.17f", 0.131917119186620000),"\n"
  6.  


$ scriba phex.sb
131917119186620000
       C4E94E60
1D4A9EBC4E94E60
0.13191711918662005
$



Offline John

  • Forum Support / SB Dev
  • Posts: 2339
    • ScriptBasic Open Source Project
Re: Scriptbasic Build Linux
« Reply #151 on: January 12, 2019, 12:36:51 PM »
I would like to create a SB test suite that validates the complete core syntax. This would be an ongoing project that would benefit all SB platform maintainers.

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: Scriptbasic Build Linux
« Reply #152 on: January 15, 2019, 07:11:01 PM »
Remove the 'l'.  The macros don't process all of the valid printf/sprintf format identifiers correctly.

Offline John

  • Forum Support / SB Dev
  • Posts: 2339
    • ScriptBasic Open Source Project
Re: Scriptbasic Build Linux
« Reply #153 on: January 15, 2019, 07:41:14 PM »
My problem was trying to run ./setup with an existing bin directory. It seems to work now with the fix you suggested.

Code: C
  1. sprintf(STRINGVALUE(RESULT),"%lX",lStore);
  2.  

Code: Script BASIC
  1. numhex = 0x1D4A9EBC4E94E60
  2. PRINT numhex,"\n"
  3. PRINT HEX(numhex),"\n"
  4.  


$ scriba phex.sb
131917119186620000
1D4A9EBC4E94E60
$


Offline John

  • Forum Support / SB Dev
  • Posts: 2339
    • ScriptBasic Open Source Project
Re: Scriptbasic Build Linux
« Reply #154 on: January 15, 2019, 09:58:12 PM »
Maintaining the Linux distribution of Script BASIC is more dynamic then it seems. The desktop side is only a small portion compared to the web scripting aspect. Trying to take on Windows as well is more than I have time for.
« Last Edit: January 15, 2019, 10:00:03 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: Scriptbasic Build Linux
« Reply #155 on: January 15, 2019, 10:44:33 PM »
Maintaining the Linux distribution of Script BASIC is more dynamic then it seems. The desktop side is only a small portion compared to the web scripting aspect. Trying to take on Windows as well is more than I have time for.

What you really need to do, in my opinion, is put up full working apps showing why SB could be an option when deciding how to approach a given problem domain.

You used to do that on the SB forum; take some of those and put them in a centralized location, for starters.  At the very least, create a sticky post with links to each one with a brief blurb.


Offline John

  • Forum Support / SB Dev
  • Posts: 2339
    • ScriptBasic Open Source Project
Re: Scriptbasic Build Linux
« Reply #156 on: January 15, 2019, 10:48:31 PM »
I would rather invest my time getting SB into a major Linux distribution by years end.

SB on Windows needs some love from someone that still believes in the platform.

« Last Edit: January 16, 2019, 12:37:56 PM by John »