Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GScript BASIC 1.4 Released

3 views
Skip to first unread message

limtc

unread,
Sep 8, 2008, 12:26:38 AM9/8/08
to
Hi,

I have just uploaded the latest version of GScript BASIC 1.4. This
release focus on Applesoft BASIC like syntax. The aim is to create an
Applesoft-like BASIC language for the new generation, which runs on
browser, iPhone and iPod touch platforms.

This is how the GScript BASIC home page code looks like:

--
hgr

for i = 0 to 31 {
hcolor = i % 15 + 1

// Plot lines

hplot i * 20, 0 to 0, 400 - i * 12.5
hplot i * 20, 0 to 639, i * 12.5
hplot 640 - i * 20, 399 to 639, i * 12.5
hplot 640 - i * 20, 399 to 0, 400 - i * 12.5
}

// Description

hcolor = "red"
hprint "GScript BASIC" at 260, 180

hcolor = "white"
hprint "Applesoft BASIC for the Web" at 200, 200

inverse
print " GScript BASIC 1.4 "
normal
print ""
print "By Lim Thye Chean"
print "http://virtualgs.larwe.com"
--

You can test drive GScript BASIC in any modern browsers (except for
IE), iPhone or iPod touch here:

http://virtualgs.larwe.com/gsbasic/

limtc

unread,
Sep 8, 2008, 2:53:08 AM9/8/08
to
Uploaded a minor revision (strangely I didn't update the version
number...):

Now you can do a for loop with step. For example:

for i = 0 to 639 step 8 {
...
}

limtc

unread,
Sep 9, 2008, 9:34:09 AM9/9/08
to
A new version 1.4.3 is uploaded.

Now support more BASIC-like syntax (eg, you can now create a function/
subroutine without parenthesis) and new way of handling images (please
take a look at the Apple IIGS Pictures for example).

Bill Garber

unread,
Sep 9, 2008, 11:08:01 AM9/9/08
to

"limtc" <thye...@gmail.com> wrote in message news:958ba5fa-2d9a-4874...@a18g2000pra.googlegroups.com...

This is not meant to be offensive, but, when do you expect
a final version to be released? I thought I heard you say
that the last one was, and now this. Is the local file that
is called "gsbasic.zip" this version? I mean, it is getting
quite confusing.

Bill Garber from GS-Electronics
http://www.garberstreet.com

limtc

unread,
Sep 9, 2008, 11:18:27 AM9/9/08
to
Hi,

There is not intended to be a final product - just an on-going project
to make Applesoft way of programming available to my kids, without
using an emulator (for those of you who keep track of how my 7 year
old son Ding Wen grows up from an Applesoft programmer to Apple IIGS
programmers - using emulator - and now become an ActionScript
programmer, you will know what I mean).

You can download the gsbasic.zip that contains GScript BASIC itself
and all the sample scripts and do programming locally, or programming
it on the browser using the 40 column editor window and save it in
cookies (this is primary for testing - like trying our plotting dot or
draw a line - what my 5 years old daughter is doing now).

The project will stop when there is no more interest in this. Remember
I primary do this for 1 audience (my 5 year old daughter) but I think
there might be some other people interested in this - a modern style
Applesoft BASIC inspired language that can do web and iPhone
programming, that's why it is released to the world to play. You have
seen what it can do - Duet, Apple ][ Forever, etc. Right now there is
at least some interests, so it is still on going, it might stop
tomorrow, not sure.

The current version is 1.4.3 (at the time of this reply), it has new
features and more BASIC like syntax over 1.4.2 and before and
before... when a new version is up, I simply announce it here. I am
not sure what;s so confusing about it. Isn't all software evolved over
time? :)

Simply have fun - programming is fun.

mdj

unread,
Sep 9, 2008, 11:21:38 AM9/9/08
to
On Sep 10, 1:08 am, "Bill Garber" <willy4...@comcast.net> wrote:
> "limtc" <thyech...@gmail.com> wrote in messagenews:958ba5fa-2d9a-4874...@a18g2000pra.googlegroups.com...

> >A new version 1.4.3 is uploaded.
>
> > Now support more BASIC-like syntax (eg, you can now create a function/
> > subroutine without parenthesis) and new way of handling images (please
> > take a look at the Apple IIGS Pictures for example).
>
> This is not meant to be offensive, but, when do you expect
> a final version to be released? I thought I heard you say
> that the last one was, and now this. Is the local file that
> is called "gsbasic.zip" this version? I mean, it is getting
> quite confusing.

It might be best to just announce 'major' versions like 1.4, 1.5, etc
with a list of changes between. If you keep a Changelog on your site,
those who are keen for the latest and greatest can always check for it
there.

Matt

limtc

unread,
Sep 9, 2008, 11:27:48 AM9/9/08
to
To run GScript BASIC online, simply go to:

http://virtualgs.larwe.com/gsbasic/

There is nothing you need to do. Just make sure you have a compatible
browser (basically anything but IE at the moment). You can load and
save (see the buttons at the bottom of the editor window) into browser
cookies. Suitable to check out demo and their codes (you can load and
run all demos, see the list on the top left corner). Also suitable to
do some simple test.

To run GScript BASIC locally, simply go to:

http://virtualgs.larwe.com/gsbasic.zip

It will download a copy. Unzip it and run GScript BASIC file and it
will launched in browser (notes it need a compatible browser, as
mentioned above). You can use any text editor, type in a script and
save it as a file ends with ".js" in the scripts folder (you should
also see all the demo files there). To run the script, simply type in
script name (with or without ".js" extension) on the input box on top
left, and click on run button beside. This is suitable for doing
larger projects. You can send me the script to be included in future
version of GScript BASIC - I have already received some demos on this,
you have seen various names in the demo.

The current version is 1.4.3 - I am of course working on future
version, based on feedback or my own needs.

I always have an idea of how I wanted Apple IIGS BASIC to be - as
simple as Applesoft, as modern as current language without the old
garbage. GScript BASIC is my idea of what that language looks like,
hope you like it.

limtc

unread,
Sep 9, 2008, 11:47:48 AM9/9/08
to
The goal of GScript BASIC and what's being accomplished is in this on-
going updated blog post:

http://retromaccast.ning.com/profiles/blog/show?id=1672786%3ABlogPost%3A27721

sfahey

unread,
Sep 9, 2008, 12:14:07 PM9/9/08
to
To: Bill Garber
On 9/9/08 10:08 AM, in article j-udnXZrAY-iDFvV...@comcast.com,
"Bill Garber" <will...@comcast.net> wrote:

> This is not meant to be offensive, but, when do you expect
> a final version to be released? I thought I heard you say
> that the last one was, and now this. Is the local file that
> is called "gsbasic.zip" this version? I mean, it is getting
> quite confusing.

Yah plus it's getting a bit out of control that there are so many threads,
so many posts on a project that seems to be getting daily incremental
updates.

John B. Matthews

unread,
Sep 9, 2008, 3:56:29 PM9/9/08
to
In article
<5bdb1a99-4342-4801...@q26g2000prq.googlegroups.com>,
limtc <thye...@gmail.com> wrote:

This is a good alternative. You might link to the zip and blog from here

<http://virtualgs.larwe.com/gsbasic/>

or here

<http://virtualgs.larwe.com/Virtual_GS/Fun_and_Games.html>

--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews

limtc

unread,
Sep 9, 2008, 8:09:07 PM9/9/08
to
In 1.3 GScript BASIC is just a JavaScript library. In 1.4 it
transformed into a BASIC like syntax where it no longer works like
JavaScript anymore. These are major version, don't need the quotes.
Every "minor" version (0.0.1) I always put it a significant feature
(like ability to load and save to cookies), I actively work on this
project as it is rather fun to me.

Changelog is a good idea. My original idea is simple - I add a new
feature, I come here and post a note. I really have no intention to
make it formal. The more formal it becomes, it started to get the fun
out of the project, not sure whether I wanted to do that.

Anyway, will post again in 1.5 (if ever, but if it need, yes, it will
be a major update).

limtc

unread,
Sep 11, 2008, 8:36:54 AM9/11/08
to
I updated GScript BASIC page with a simple introduction to the
language and an example for comparison with Applesoft BASIC.

http://virtualgs.larwe.com/Virtual_GS/GScript_BASIC.html

1.4.3 remains the latest version.

Bill Garber

unread,
Sep 11, 2008, 11:20:07 AM9/11/08
to

"limtc" <thye...@gmail.com> wrote in message news:a0386d49-db68-44a2...@a2g2000prm.googlegroups.com...

That's great. Now when you add major changes to the system,
you post a quick note here, and we can all go to the page
to see it, and download the latest version changes.

Thank you,

limtc

unread,
Sep 11, 2008, 11:42:00 AM9/11/08
to
Yes, this is what I am doing from now on. I get too excited over the
past few weeks as this evolved from something different (just a
JavaScript library that do canvas programming with some familiar
syntax) to what it is now (it now looks and works like a BASIC
language that I really want Applesoft to be).

I am already using it to teach BASIC programming and let people see it
running on real Apple IIGS and browser - a lot of syntax are similar
enough. 1.4.3 is already good enough (for me and my purpose for
teaching my kids and others) so I plan to let the development slow
down or stop for the moment, as I am back to programming for my
iPhonet.

limtc

unread,
Sep 11, 2008, 8:10:47 PM9/11/08
to
1.4.4 uploaded.

- added confirmation dialog boxes to new/load/save buttons
- change the command naming from lowercase to mixed case (onevent ->
onEvent)

0 new messages