Author Topic: One statement SIN table  (Read 15303 times)

ScriptBasic

  • Guest
Re: One statement SIN table
« Reply #30 on: August 31, 2018, 08:13:20 PM »
I can't get my arms around strings being a stream of atoms.

Script BASIC's flexibility and compatibility far outweighs the slight performance difference of other languages.
« Last Edit: August 31, 2018, 08:34:43 PM by John »

Tomaaz

  • Guest
Re: One statement SIN table
« Reply #31 on: September 01, 2018, 02:10:13 PM »
I can't get my arms around strings being a stream of atoms.

It feels a bit strange at the beginning, but it's easy to get used to.

Script BASIC's flexibility and compatibility far outweighs the slight performance difference of other languages.

Compatibility with what? And what is so inflexible about Python, Perl, Lua or OpenEuphoria?

Tomaaz

  • Guest
Re: One statement SIN table
« Reply #32 on: September 02, 2018, 06:13:17 PM »
Just to be clear. This is not something unique to Euphoria/Phix. You can probably do things like that in any modern language. Python for example:

Code: [Select]
from math import sin
print(list(map(sin, range(1, 1000000))))

Of course, you can always do it in a procedural style:

Code: [Select]
from math import sin
for x in range(1000000):
print(sin(x))

So, I don't know what inflexibility John was talking about...

ScriptBasic

  • Guest
Re: One statement SIN table
« Reply #33 on: September 02, 2018, 07:28:54 PM »
Quote from: Tomaaz
So, I don't know what inflexibility John was talking about...

Flexibility dosen't assume everything else is inflexable.

Scripit BASIC's embedding and C extension APIs for a seamless experience is hard to beat. 

Tomaaz

  • Guest
Re: One statement SIN table
« Reply #34 on: September 02, 2018, 09:15:47 PM »
Flexibility dosen't assume everything else is inflexable.

Flexibility that  "far outweighs the slight performance difference of other languages" kind of does.

Scripit BASIC's embedding and C extension APIs for a seamless experience is hard to beat.

Some time ago, I heard the same about ScriptBasic arrays. Then it turned out that Perl, Python, Ruby not only had the same flexibility, but also plenty of functions for sorting, mapping, filtering... Does ScriptBasic support unicode out of the box? Regular expressions? Threading? What about support for object oriented or functional programming? "Embedding and C extension APIs" of how many languages have you tried? John, don't get me wrong, but I simply don't believe that ScriptBasic is so good and superior to other languages (at least in some areas) and the fact that virtually no one wants to use it is... well, what? Stupidity of 99.9999% programmers? Conspiracy? Bad luck? Come on...

Aurel

  • Guest
Re: One statement SIN table
« Reply #35 on: September 02, 2018, 10:10:23 PM »
I know what ?
Conspiracy

ScriptBasic

  • Guest
Re: One statement SIN table
« Reply #36 on: September 02, 2018, 10:34:50 PM »
Quote
Does ScriptBasic support unicode out of the box? Regular expressions? Threading? What about support for object oriented or functional programming?

Unucode out of the box?  - Nope  (supports UTF-8)

Regular Expressions?  - SB has LIKE/JOKER (high level RE) and a RegEx extension module based on the Peal derivative.

Threading? - SB was designed from the ground up to be thread safe. Check out the SBT extension I wrote. The SB webserver has always been multi-threaded and runs as a process.

OOP? - Check out the VB6 OCX form object I'm interfacing with via COM/OLE automation.

Have you tried Script BASIC or are you like Aurel and just bitch about things you haven't tried?

« Last Edit: September 02, 2018, 10:38:40 PM by John »

Tomaaz

  • Guest
Re: One statement SIN table
« Reply #37 on: September 02, 2018, 10:53:00 PM »
Have you tried Script BASIC or are you like Aurel and just bitch about things you haven't tried?

Yes, I have. And I didn't like it. That's exactly why I "bitch" about it. You will never hear me "bitching" about Haskell, Swift, Rust, C#, Perl 6, Node.js, Ruby On Rails, Django  (and many other languages and frameworks), because I've never tried them.

ScriptBasic

  • Guest
Re: One statement SIN table
« Reply #38 on: September 02, 2018, 11:30:56 PM »
Quote from: Tomaaz
Yes, I have. And I didn't like it. That's exactly why I "bitch" about it.

What didn't you like about it that deserves your criticism?

My take is you don't like BASIC in general.
« Last Edit: September 02, 2018, 11:32:57 PM by John »

Tomaaz

  • Guest
Re: One statement SIN table
« Reply #39 on: September 03, 2018, 12:01:32 AM »
What didn't you like about it that deserves your criticism?

It was not easy to set up and use on Linux. There was a list of things "not implemented yet" that wasn't getting smaller. Many features were missing. It felt dated.

My take is you don't like BASIC in general.

Well, after I learnt other languages my interest in BASIC decreased, but I still like BaCon.

John, I know that you're doing  great job with ScriptBasic. It's just that sometimes you can't accept the fact that other languages are better (at least in some areas). And that people may prefer slightly different syntax and approach to programming. With all the extensions, ScriptBasic is one of the best BASICs around, but for some people being even the best BASIC is still not enough.

ScriptBasic

  • Guest
Re: One statement SIN table
« Reply #40 on: September 03, 2018, 12:07:57 AM »
Script BASIC is a tool not a solution for all programming tasks. It does what it was designed for well and allows unlimited expansion. That's enough for me to keep using it and advocating for the project.

My main fous is to keep things consistant no matter what OS you're running under. That is why there are OS specific extensions modules.
« Last Edit: September 03, 2018, 12:20:45 AM by John »

Tomaaz

  • Guest
Re: One statement SIN table
« Reply #41 on: September 03, 2018, 12:21:38 AM »
I really wish it was more popular, but to make it happen (with all these languages around) is a hard task and, let's be honest, it's not gonna get easier.

ScriptBasic

  • Guest
Re: One statement SIN table
« Reply #42 on: September 03, 2018, 12:24:52 AM »
I need to get Script BASIC included in a major Linux distribution ASAP.

I think SB would do well in the Rasberry Pi market.
« Last Edit: September 03, 2018, 12:28:06 AM by John »

B+

  • Guest
Re: One statement SIN table
« Reply #43 on: September 04, 2018, 02:38:00 PM »
 :o Talk about degenerating threads! sheez

B+

  • Guest
Re: One statement SIN table
« Reply #44 on: September 05, 2018, 12:59:15 PM »
OK so I build my own Range function:
Code: [Select]
_TITLE "test range.bi and bm"
'$include: 'range.bi'

PRINT Range("1 to 100 step 1 do sin")
PRINT "End of sin(1 to 100 stepping by 1) table."

PRINT: PRINT "Sin at 90 degree intervals:"
PRINT Range("0 to 6.2832 step 1.5708 do sin")

PRINT: PRINT "Squares of numbers from 3.5 to 5.5 stepping by .5"
PRINT Range("5.5 to 3.5 step .5 do square")

'$include: 'range.bm'


Here is a test run of it:
« Last Edit: September 05, 2018, 01:02:52 PM by B+ »