Welcome, Guest. Please login or register.

Author Topic: Amiga Basic  (Read 14698 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline melott

  • Hero Member
  • *****
  • Join Date: Dec 2002
  • Posts: 989
    • Show only replies by melott
Re: Amiga Basic
« Reply #29 on: January 10, 2009, 03:01:18 PM »
Quote

Fester wrote:


Actually, I did mention ACE (Third post from the top). I've used to compile Amiga Basic.[/quote]

Yes you did ... sorry,.. I guess I was just reiterating
what you said.

Mel
 
Stealth ONE  8-)
 

Offline bloodline

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

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Amiga Basic
« Reply #31 on: January 10, 2009, 03:13:23 PM »
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).

It should be compatible with AmosPro in the first iteration with ACE and others set to become available in the new parser generator format later on.
 

Offline Fester

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 586
    • Show only replies by Fester
    • http://www.rdmsnippets.com
Re: Amiga Basic
« Reply #32 on: January 10, 2009, 03:14:21 PM »
Quote

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


? - Never thought about it that way. I don't have a problem with C. I use what I feel like. I'm not programming anything for work or fun these days anyway.
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #33 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 amiga_3k

  • Sr. Member
  • ****
  • Join Date: Apr 2006
  • Posts: 467
    • Show only replies by amiga_3k
    • http://www.elf8.nl
Re: Amiga Basic
« Reply #34 on: January 10, 2009, 03:28:54 PM »
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).
Get a SAM, while you can! The new AMIGA is here!
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #35 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 SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Amiga Basic
« Reply #36 on: January 10, 2009, 03:33:16 PM »
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.
 

Offline amiga_3k

  • Sr. Member
  • ****
  • Join Date: Apr 2006
  • Posts: 467
    • Show only replies by amiga_3k
    • http://www.elf8.nl
Re: Amiga Basic
« Reply #37 on: January 10, 2009, 03:36:22 PM »
@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 :-).
Get a SAM, while you can! The new AMIGA is here!
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #38 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 motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Amiga Basic
« Reply #39 on: January 10, 2009, 03:38:15 PM »
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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #40 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 only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #41 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 motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Amiga Basic
« Reply #42 on: January 10, 2009, 03:53:41 PM »
Tried casting, but can't remember whether it worked. As for the string object, it wouldn't let me turn anything in to a string or a string in to anything else. I gave up after several days of frustration and did the same thing in basic in about 10 minutes.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #43 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 persia

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 3753
    • Show only replies by persia
Re: Amiga Basic
« Reply #44 from previous page: January 10, 2009, 04:01:13 PM »
Just program in malbolge or LOLCODE...

Hello World

malbolge
Quote

(=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**
 hKs_dG5[m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCAA@98\6543W10/.R,+O<


LOLCODE
Quote

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
[SIGPIC][/SIGPIC]

What we\'re witnessing is the sad, lonely crowing of that last, doomed cock.