Small Basic Forum
Updating SB - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: C# Moving from Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=6)
+--- Thread: Updating SB (/showthread.php?tid=127)



Updating SB - z-s - 09-09-2024

Today I got an idea why someone can't help in updating SB.
We have a community here so any good csharp developer can do this but not me.
I could help in writing standard library for SB.
Making it a high-level programing language.
I have some goals that can be in SB
Addition of function like struct new keywords.
And large standard library seperate dll.
Many csharp functionality.
As I thought sb just use csc.exe to compile a small basic program after converting it to csharp am I right????.


RE: Updating SB - litdev - 09-09-2024

On your last point.  No, SB compiles to IL which is what C#, VB and all .Net languages also compile to.  IL is a low level language , just one step above machine code.  IL is then converted to machine code by the .Net runtime and therfore may be architectuire independent if appropriate runtime is available.  You will have to do some googling and reading on this to understand how SmallBasicCompiler.exe works, it can be decompiled.

My thoughts were that if someone wants C# functionality beyond what can done in SB, then they should move to C#, as you have.

sVB did extend the compiler a bit (you can also decomplie its compiler), but extending further to me doesn't really make sense since once you understand how to use SB, the jump to C# or other language is not such a big leap and there are way more resources to help than there ever will be for niche versions of SB.


RE: Updating SB - z-s - 09-09-2024

Yes you are right.
But I got some though time with C# as it requires ide only we have visual studio or sharp develop.
And for a simple program we have to make a new project.
SB was really the easiest basic but I wanted it should also be fastest and most powerful basic.

This is what you said
https://en.m.wikipedia.org/wiki/Common_Intermediate_Language
And I found SB name in this list
https://en.m.wikipedia.org/wiki/List_of_CLI_languages