Welcome, Guest. Please login or register.

Author Topic: Amiga Basic  (Read 14676 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« on: January 08, 2009, 08:44:22 AM »
Quote

LoadWB wrote:
hrmmmmm interesting thought: an Amiga Basic emulator for Windows which does not require a full AmigaOS in UAE setup.


No... Please no... AmigaBasic has no right to live...

Why not use this project as an excuse to learn C? Bloodshed's Dev C++ is a nice IDE...

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #1 on: January 08, 2009, 10:08:34 AM »
Quote

JJ wrote:
Or VB, nothing wrong with latest versions of VB .net good place to start.


Or ECMAScript which I personally prefer to VB, since it's more structured and portable...

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #2 on: January 08, 2009, 11:47:56 AM »
Quote

JJ wrote:
Isnt that basically javascript and mainly web geared ?


The latest JavaScript is a form of ECMAScript, but ECMA Script is not limited to the DOM as used by browsers... Though with HTML 5 comming through, the DOM is set to become a REALLY powerful system (chrome)... Expect to see lots more apps written in this!!! :-o
 i

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #3 on: January 10, 2009, 03:04:09 PM »
Is C really so hard, that you want to stick with BASIC?

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #4 on: January 10, 2009, 03:26:23 PM »
Quote

SamuraiCrow wrote:
Quote

bloodline wrote:
Is C really so hard, that you want to stick with BASIC?


YES IT IS!  I've been programming in C for years and still want to go back to Basic.  So badly, in fact, that I'm writing a compiler for Basic (with the help of Sidewinder).


But if you ignore pointers, references and datatypes (none of which you need for simple programs anyway), then there is nothing conceptually difficult about C... The syntax looks a little odd at first, but it is simple and consistant... If you have managed to get a handle on BASIC, then there is nothing difficult to understand in C!  

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #5 on: January 10, 2009, 03:32:06 PM »
Quote

amiga_3k wrote:
The question: Is C really that difficult? I'd answer: Yes. It's great for doing al sorts of calcultions, sorting etc... what makes it really difficult is getting the results on screen when you want it in pixels / lines instead of characters.

That's why I use VisualBASIC to create the interface and draw-up any graphical output I want. The calculation functions I do with VisualC and create a .dll.

On the Amiga site, I never got into C programming. I stuck to Amiga BASIC and ACE (Amos was fun to play with but as it didn't allow for OS friendly programs to be created I ditched it).


If it is simple graphics functions you are missing, then just include SDL!!! Seriously I never got into C until I discovered SDL :-)

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #6 on: January 10, 2009, 03:38:00 PM »
Quote

SamuraiCrow wrote:
Quote

bloodline wrote:
But if you ignore pointers, references and datatypes (none of which you need for simple programs anyway), then there is nothing conceptually difficult about C... The syntax looks a little odd at first, but it is simple and consistant... If you have managed to get a handle on BASIC, then there is nothing difficult to understand in C!  


If you ignore the problem, that doesn't make it go away.  It took me years to learn C even after I learned Basic and Pascal.  I should have just stuck with Pascal and learned Delphi instead of C.  C++ is also a pain.


Eh? I mean that you don't need things like pointers, references and datatypes if you want to write simple programs in C... Just like you don't need them in BASIC... Though BlitzBasic also had these features... Then once you are used to the C syntax then you an learn about the more advanced concepts...

You have to be kidding about C++ is is a huge improvment over C!!!

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #7 on: January 10, 2009, 03:40:10 PM »
Quote

amiga_3k wrote:
@bloodline:

Pardon my ignorance... but I've never heard of SDL :-S. Would it provide functions for, for instance, drawing a line between two coordinates? Could you point me to a good starting-point for information on this? I'm willing to learn :-).


Yes exacty, it is a C library that provides these functions! :-)

Head over to SDLorg website, if you need any help let me know!

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #8 on: January 10, 2009, 03:44:59 PM »
Quote

motorollin wrote:
Quote

bloodline wrote:
Is C really so hard, that you want to stick with BASIC?

Yes. C is vile. Something as simple as converting a variable from one type to another is so complicated in C that it makes me want to smash my computer up. I once spent a whole day trying to find out how to use a variable which, for some perverse reason, had to be a "const char *" (whatever that is) as an argument to a function which wanted a string variable. There was seemingly no simple way of doing it. Trying to understad the difference between the different variable types seemed to require me to read pages and pages of documentation, and not one single method I found to convert the variable worked.

So yes, C is ghastly. Basic any day please.

--
moto


Wash your mouth out young man! :-)

You need to cast then, for example

float real_number = 92.4;
int number = (int) real_number;

The "(int)", converts the floating point number into an integer... Easy :-)

But if you are doing something string heavy.. Then use C++, the string object is wonderful :-)

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #9 on: January 10, 2009, 04:00:26 PM »
char* just means that the function wants a pointer to the string rather than passing the whole string (which would be slow)... You proabably should have  referenced the string :-)

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #10 on: January 10, 2009, 04:06:26 PM »
:lol: @LOLCODE :-D

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #11 on: January 10, 2009, 06:09:42 PM »
Quote

SamuraiCrow wrote:
Quote

bloodline wrote:

Eh? I mean that you don't need things like pointers, references and datatypes if you want to write simple programs in C... Just like you don't need them in BASIC... Though BlitzBasic also had these features... Then once you are used to the C syntax then you an learn about the more advanced concepts...

You have to be kidding about C++ is is a huge improvment over C!!!


I learned Assembly on the 68000 before I learned C.  That's the only way I could understand it.  Otherwise I'd still be learning it.


I could never go back to ASM now :-) I like all the creature comforts of C/C++ too much now!

Quote

As for C++, it is an improvement over C.  It isn't an improvement over an Object Oriented Basic like VB.NET or anything like that.


Well, I can't really comment... I think VB is a crime against nature... Though I did like BlitzBasic a bit... That would be quite good with some OOP features added...

Actually... AmigaE always looked more like a dialect BASIC, than anything else to my eyes... :-D

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #12 on: January 10, 2009, 07:04:17 PM »
Quote

melott wrote:
An interesting discussion ..
Am enjoying and learning from it.

Mel


People forget Amiga.org has lots of really really talented coders in many languages.. if anyone has any problems I expect someone here can help... I know I've had loads of help from people here (Which makes me want to return the favour) :-)

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #13 on: January 10, 2009, 07:55:01 PM »
Quote

amiga_3k wrote:
@bloodline:

I'm ashamed to admit that I'm using a WinXP machine at the moment  :oops:. Any tip on what freeware c/c++ version to use on WinXP? I don't want to go through the hassle of installing VisualStudio.


I used to use MinGW and Bloodshed's Dev C++ on WinXP... it's a great IDE system and really fun to use.

If you use a Mac... then XCode is great... GDB makes life so simple...

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com