basicprogramming.org


Welcome, Guest. Please login or register.
Did you miss your activation email?
Forum time; Jul 31. 2010, 05:58
Home Help Search Calendar Login Register
News: Have you got suggestions for BasicProgramming.org? Let's hear them!
Interested in creating your own programming language? Check out the QDepartment group!

+  BASIC programming forum
|-+  Interpreter Development
| |-+  yaBasic development forum. (Moderator: Thomas Larsen)
| | |-+  Standard Library Ideas
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Reply Print
Author Topic: Standard Library Ideas  (Read 424 times)
psnake
Sr. Member
****
Offline Offline

Posts: 438



« on: Dec 19. 2007, 11:41 » Reply with quote

Seems like the hard part is come up with ideas to a standard library so I mindstormed a little and this list ocurred to me. I hope someone will add up to this list or even volunter to take care of a certain topic.

 - System interface: we can send commands to the system through the system() function but what about a library that wraps some common calls in a consistent and OS abstracted way. For example: clear() -> it would clear the shell both in Linux and Windows. (I know we have the clear screen command already Smiley)

 - Math

 - Eye candy: some graphics functions (?) like GUI's (this should prove a lot of work but its still an idea Smiley)

 - Strings: some more advanced functions for string manipulation.

That's the end of my imagination  Wink for now. I'll add more as they pop in my mind. Add up your ideas too.

Best Regards,
psnake
« Last Edit: Dec 19. 2007, 11:42 by psnake » Report to moderator   Logged

twitter: @PSnake89
E.K.Virtanen
Blah
Hero Member
*****
Offline Offline

Posts: 2441



WWW
« Reply #1 on: Dec 19. 2007, 11:59 » Reply with quote

System interfaces rocks. We need perfect way to solve which OS user has, then we can build these.
Report to moderator   Logged

psnake
Sr. Member
****
Offline Offline

Posts: 438



« Reply #2 on: Dec 19. 2007, 12:19 » Reply with quote

System interfaces rocks. We need perfect way to solve which OS user has, then we can build these.

There's already a way:
Code:
peek$("os")
It gives either "windows" or "unix"

psnake
Report to moderator   Logged

twitter: @PSnake89
E.K.Virtanen
Blah
Hero Member
*****
Offline Offline

Posts: 2441



WWW
« Reply #3 on: Dec 19. 2007, 12:42 » Reply with quote

Yes, but can we get more detailed OS specification like win95&98, xp, linux&unix?
Report to moderator   Logged

psnake
Sr. Member
****
Offline Offline

Posts: 438



« Reply #4 on: Dec 19. 2007, 17:16 » Reply with quote

Yes, but can we get more detailed OS specification like win95&98, xp, linux&unix?

For now, no. The info you get with peek$() is the information used in compilation, but I'll look into it tomorrow, now I'm too tired.

Regards,
psnake
Report to moderator   Logged

twitter: @PSnake89
Derek
Administrator
Hero Member
*****
Offline Offline

Posts: 1001



WWW
« Reply #5 on: Feb 17. 2008, 03:58 » Reply with quote

Hi,

any more ideas?

Derek.
Report to moderator   Logged

wget http://*
flo
Newbie
*
Offline Offline

Posts: 6


« Reply #6 on: Feb 07. 2010, 12:52 » Reply with quote

Hi everyone

i have got some ideas, too !

i could give some math funktions to the community

for example a funktion for the Binomial koefficient
sadly i have to say, that this funktion needs another funktion
which returns the factorial worth of its input

Code:
Sub Factorial(z)
If z=0 Then
y=1
endif
If z>0 Then
m=z
f=z-1
For x=2 to m
y=z*f
z=y
f=f-1
Next x
endif
return y
End Sub
//-----------------------------------
Sub Binomial(x,y)
m=(Factorial(x)/(Factorial((x-y))*Factorial(y)))
return m
End Sub
« Last Edit: Feb 07. 2010, 12:52 by flo » Report to moderator   Logged
flo
Newbie
*
Offline Offline

Posts: 6


« Reply #7 on: Feb 07. 2010, 13:02 » Reply with quote

Could you post some Math-functions onto the board, which aren't implemented as yabasic subs yet ?
Report to moderator   Logged
Pages: [1] Go Up Reply Print 
« previous next »
Jump to:  
Atom RDF RSS 0.91 RSS 2.0


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!