We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replace Small Basic?
#1
After all discussion I think i should create SharpBasic basic version of CSharp with small basic syntax and library but much more stuff.
So I set this my current goal but I need help of you people on this forum for every step.
So first should we create it on .Net core (8,9,10) or .net framework 4.8

EDIT BY litdev

Split from https://litdev.uk/mybb/showthread.php?ti...16#pid2316 since this is a big new topic
ZS
Reply
#2
Hello, Z-S.

I'm sorry, but I'm a ordinary user. I can't answer you questions like that.
I can only wish good luck to everyone who doesn't forget about newbies in programming and ordinary users.

Good luck to you.  Cool
[-] The following 1 user Likes AbsoluteBeginner's post:
  • z-s
Reply
#3
Before even thinking out writing any code for this a LOT of thinking needs to be done I think.

First would be some basic questions - principally WHAT IS THE OBJECTIVE

1] Who is the target users, do you know what they want?
2] Will it be compatible with existing Small Basic, this is a biggie?
3] Understand fully what the existing compiler does and how Primitive and Arrays currently work - always know what there is and why it is like it is before inventing something new
4] Does this mean a new compiler or standard library, is this a compiler or transcriber to another language?

1] Simple to start but powerful (hard to be both), graduating - simple unintimidating UI - few keywords, but can quickly create interesting programs - good documentation and examples.

2] Show me any other language that can do the following - I believe there is zero chance of reliably transcribing existing SB programs to another language, you would always be chasing edge cases.

Code:
ball = Shapes.AddEllipse(50,50)
TextWindow.WriteLine(ball)
data = "Yes=1;No=0;"
data[ball] = "First"
data["Next"] = "Ellipse2"
ball = Shapes.AddEllipse(50,50)
Shapes.Move(data["Next"],100,100)
TextWindow.WriteLine(data)

No-one in their right mind would allow a programming language do what the code above can, as soon as you limit this it is not compatible.  It is the weird flexibility (almost no syntax rules) that allows the code above and to allow that it requires it to be slow.  But it is the lack of complex syntax rules that make it easy for total beginners.  So WHAT IS THE OBJECTIVE?
[-] The following 1 user Likes litdev's post:
  • AbsoluteBeginner
Reply
#4
I mean to develop a transcribe language which is going to transpile to CSharp and I can make a sb std library with a syntax converter
ZS
Reply
#5
If it is a simplified form of C# with type declarations, then it should be a able to use any .Net library directly with no need for std library.

If it doesn't have type declarations, then it will need the equivalent of SB Primitive.
Reply
#6
Make it on .NET Framework 4.8 for SB compat or maybe use .NET Core for cross-platform (Windows, macOS, Linux, but mobile is an exception and GUI across OSes would need .NET MAUI)
Reply
#7
And maui is approx 1gb so we can never get cross platform sb
ZS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)