Page 1 of 2

TBC - Tokiwa BASIC gui in PureBasic

Posted: Sun Jun 01, 2003 6:36 pm
by TronDoc
http://www.allbasiccode.com/cgi-bin/YaB ... 1050078943

it's not much right now, but I'm not good at PureBasic so
I thought I'd start a little project that I might succeed at.

here's a more direct link.. ..it bypasses all of the pre-discussion
(apologies)
http://www.allbasiccode.com/cgi-bin/YaB ... 3;start=25

Joe

Re: TBC - Tokiwa BASIC gui in PureBasic

Posted: Mon Jun 02, 2003 11:04 am
by PB
What's it all about? I don't understand?

Posted: Mon Jun 02, 2003 7:25 pm
by TronDoc
It's just a GUI interface I am trying to write in PureBasic
for the Tokiwa BASIC compiler. I thought if anyone had
an interest they could provide some input; if not it can
be ignored. :wink:

Posted: Mon Jun 02, 2003 9:44 pm
by fsw
TronDoc wrote:It's just a GUI interface I am trying to write in PureBasic
for the Tokiwa BASIC compiler. I thought if anyone had
an interest they could provide some input; if not it can
be ignored. :wink:
Maybe Fred could give some input :?:

Some times ago he said that it's not allowed to use PureBasic as a GUI toolkit for other programming languages. 8O

:?

Posted: Tue Jun 03, 2003 9:26 am
by TronDoc
interesting.

I did not know that.

I might understand if it was
a product capable of competing
with PureBasic; however, it's not.

that brings up another interesting point.
is it right to say what can or cannot be
programmed in any language?

for example, if I want to write a virus
to test my virus protection software;
is that not allowed by the author of
the language I am programming in?

or, if I were so talented using
PureBasic that I could write a
BASIC that could compete
with PureBasic; would that
be disallowed?

I have no doubt that it would be poor
manners to try to sell my competing
BASIC here on the PureBasic forums.

In any event, I am not so talented
as all that and that is the reason I'm
trying to write a simple program to
teach myself how to program in
PureBASIC. It is something I thought
to be useful to myself and perhaps
others; and never intended to
cause any negative concerns
nor controversy.

I don't recall this type of discussion
being held on this forum before; so if
it has already been hashed and rehashed
please point me links to the postings
so we don't have to waste time,
bandwidth, intellect and emotions here.

if the moderators wish to remove
this thread; please do so.

Joe

Posted: Tue Jun 03, 2003 10:26 am
by Fred
This kind of discussion is not forbidden and what you have to remember
is easy:

You can write a programming langage which compete with PureBasic
directly in PureBasic, no problem. But you can't wrap the PB commands as your commandset for your langage. It means you can of course use all the PB commands to write the compiler itself (including an editor, visual designer etc...) but not base your langage commandset on PB commands. That's fair enough I think.

Posted: Tue Jun 03, 2003 11:36 am
by TronDoc
thanks for clearing things up Fred. :D
I would never try to compete
with PureBasic anyway.

Joe

Posted: Tue Jun 03, 2003 2:51 pm
by wcardoso
Fred:
Why we can´t wrap PB commands ?. When you wrote PB really where "wrapping" ASM commands to produce the exe file. This is the meanning of compilers, isn´t it ?
8O

Posted: Tue Jun 03, 2003 3:31 pm
by freak
wcardoso:
That's not quite true.

You need to look at this from 2 points. The one side is the compiler. here
you are right, the PB compiler is written in ASM, like every compiler is
written in some lower level language. That's not what i call 'wrapping'
something. Fred also said here, that you might write another compiler in PB, that can compete with it, and there would be no problem at all.

The problematic point are the Librarys that come with PB. Some of the
Librarys contain very much code, that Fred spend a great amount of time,
to make them work.

Now think a bit of that... Somebody creates his own compiler using PB,
and it is working fine, and everybody likes it... all is ok so far... now this
guy goes ahead and says: "look, my language also has some cool and
easy Movie commands", but what he really did, was just putting one line
of code in his compiler that calls PB's movie commands.

Now tell me, if this is a fair deal for Fred!

Or even less complex: Somebody from, let's say the BlitzBasic community
says: "look, i wrote some cool commands for easy GUI creating" and sells
a dll with them. But what he really did, was just putting all PB's GUI
commands in a dll.

Is that fair?

I think you got my point. There is a difference between the compiler and
the libs. The PB libs are mean for programming in PB, not for extending
somebody else's programming language.

Timo

Posted: Wed Jun 04, 2003 1:12 am
by blueb
:)

Could not have said it better!

Thanks Timo

--blueb

Posted: Wed Jun 04, 2003 1:03 pm
by wcardoso
freak:
When you use an API function what are you doing ?, you´re calling a Microsoft "hard work" for your own business, isn´t it ?.
Imagine if Microsoft say "You can use our OS as you like, but you can´t use our API calls for doing another compiler". What a nightmare !!
:wink:

Posted: Wed Jun 04, 2003 1:28 pm
by freak
lol, you don't get the point, do you?

API is "Application Programing Interface", and is designed to be used
by all Windows programs.

... But that is actualy not such a bad example...

the WinAPI is designed to be used for Windows Apps. Imagine somebody
would extract the code, and use it for a Program that runs on the Mac or
on Linux.

Don't you think, Microsoft would call it's loyers, and throw that guy into jail?

That's just the same! The PureBasic libraries are designed to be used
with PureBasic! Don't you get that?

@Fred:
Maybe it's time to put up some kind of license that clearly states things like that.

Timo

Posted: Wed Jun 04, 2003 1:46 pm
by Fred
I'm on it, will be included in v3.70.

Posted: Wed Jun 04, 2003 1:58 pm
by tinman
freak wrote:Don't you think, Microsoft would call it's loyers, and throw that guy into jail?
Didn't MS get very annoyed at WINE, which deosn't even replicate the code, just the API? I think they'd get majorly annoyed at stealing code :)

Posted: Wed Jun 04, 2003 2:09 pm
by GedB
When you call an API call you are calling a runtime library that must be preinstalled on Windows. The API calls will not work on Linux.

In order to use it you have to first buy Windows. Microsoft have already been paid for there hard work.

What Fred is referring to is generating a new langauge that is 90% PB and then selling it on without giving Fred a penny for his hard work.

You could write a language based on PB that would only work if you are a registered user of PB. It could be a preprocessor language, for example, that generates PB code for compiling. Similar to Eiffel generating C++ code.

As long as the user was required to register PB to use it, I'm sure there would be no problem (Could someone please confirm).