Amiga programming languages

Forum rules
This is an open forum. Everything said here can be read by everyone

Amiga programming languages

Postby orangeBuzzard » Sat Apr 02, 2011 3:51 pm

Just out of curiosity, what programming languages are supported by the current Amiga platform?

Correct me if I'm wrong but these are the ones I know of:

General purpose: C, C++
Scripting: Python, ARexx
BASIC (not sure if these are still around): AMOS, BlitzBasic
Web languages: ?????

And a few that I guess are specific to the classic Amigas:
68k Assembly, Modula-2

Also wasn't there a language called E? Is that still around and available for AmigaOS 4?

I guess Xena programming will be through C libraries?

Any others? What about Ada or Java?
User avatar
orangeBuzzard
Beta Tester
Beta Tester
 
Posts: 34
Joined: Mon Dec 20, 2010 5:06 pm
Location: Oxfordshire, United Kingdom

Re: Amiga programming languages

Postby tonyw » Mon Apr 04, 2011 11:38 pm


General purpose: C, C++
Scripting: Python, ARexx
BASIC (not sure if these are still around): AMOS, BlitzBasic
Web languages: ?????

Yes, except for AMOS, BlitzBasic - I don't think these still work under OS4+. For those who like to program in interpreted languages, there are a couple of BASIC packages on Aminet and/or OS4Depot, but Python is the language of choice these days.
I don't know of any support for web langauges on the Amiga, but Aminet may have something. You only need an IDE, after all.

Also wasn't there a language called E? Is that still around and available for AmigaOS 4?

Yes, it's written and maintained by ChrisH (a regular on amigaworld.net and amigans.net). It's OS4-native, ie compiled for OS4.

I guess Xena programming will be through C libraries?

Your guess is as good as ours at this stage. We are all eagerly waiting.

Any others? What about Ada or Java?

No, neither has an up-to-date port. The trouble with open-source projects like Ada or Java is that the source tree is so large, and changing continually, that only the simplest of ports (download, configure, install and run) can be maintained by a small number of people.

Some years ago I managed to bring a version of Kaffe up to date for AmigaOS 3.9, but the job took a year or more and it was impossible for me to keep up with their changes. Kaffe is now moribund due to Sun's source code release, but I think my port is still on Aminet.

Ada has a number of open-source ports but no one has ever tried to port it to the Amiga AFAIK. The main problem is that the Amiga does not have a well-known, well-documented GUI interface like X-Windows, so every port from Linux has to be re-written for our GUI.

If you want to get into languages, Simon Archer ("Rigo") has a package called "Codebench" that provides a very useful programming environment, with editors and debugging support. Although it's intended for use with C/C++, I believe you can get some plugins for other languages - to support syntax highlighting, for instance. You can find it at www.codebench.co.uk.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 463
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Amiga programming languages

Postby Thomas Frieden » Tue Apr 05, 2011 12:23 pm

orangeBuzzard wrote:And a few that I guess are specific to the classic Amigas:
68k Assembly, Modula-2


You can also program in PowerPC assembly, if you are really brave.

orangeBuzzard wrote:I guess Xena programming will be through C libraries?[(quote]

As far as I know, it's programmed in C, yes.

orangeBuzzard wrote:Any others? What about Ada or Java?


There's Fortran, Ada and Modula-2 backends for gcc, so in theory, these could be ported as well (check adtools on SourceForge).

java is also supported by gcc, but Java itself isn't the big deal (there's a lot of open source implementations, and I think a few like cacao even have PPC JIT). The problem is the class library.
User avatar
Thomas Frieden
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 90
Joined: Fri Dec 10, 2010 3:21 pm

Re: Amiga programming languages

Postby orangeBuzzard » Wed Apr 06, 2011 9:01 pm

Thanks for all the info Tony! 8-)

I'll have to have a play around with E when I get my X1000. Nice work with the Kaffe port - that must have been quite a job! Was it the version with the GMP library and does that mean that the GMP library was/has also been ported to Amiga OS (4)? I know the latest GCC uses this library. In fact I was compiling GCC 4.5.2 recently on a Linux box and needed to compile GMP first and ended up in a whole tangle of library dependency issues, as is usually the way. Which actually makes me think of another couple of questions:

Does AmigaOS 4 come with GCC installed or do we have to get it with the SDK? What version is it (or is it closest to)? Is it the default/recommended (C/C++) compiler?

I can't wait to do some development work with the X1000! :D :D :D

Thomas Frieden wrote:...You can also program in PowerPC assembly, if you are really brave.


eek! I'm not sure I am that brave! :)

Thomas Frieden wrote:...There's Fortran, Ada and Modula-2 backends for gcc, so in theory, these could be ported as well (check adtools on SourceForge).

java is also supported by gcc, but Java itself isn't the big deal (there's a lot of open source implementations, and I think a few like cacao even have PPC JIT). The problem is the class library.


Ada is a great language - it would be good to see it on our favourite platform one day. As to Java - it makes sense about the problem being the class library. It's HUGE and would be a real beast of a problem to port to any other platform and for small teams working in their spare time I guess it would be near impossible. I like Java - it's a nice language conceptually, even if the syntax can be quite "unwieldy" at times, but the API is hugely bloated.
Last edited by orangeBuzzard on Thu Apr 14, 2011 9:32 pm, edited 1 time in total.
User avatar
orangeBuzzard
Beta Tester
Beta Tester
 
Posts: 34
Joined: Mon Dec 20, 2010 5:06 pm
Location: Oxfordshire, United Kingdom

Re: Amiga programming languages

Postby Olrick » Thu Apr 07, 2011 8:08 am

orangeBuzzard wrote:Thanks for all the info Tony! 8-)
Does AmigaOS 4 come with GCC installed or do we have to get it with the SDK? What version is it (or is it closest to)? Is it the default/recommended (C/C++) compiler?


For the time being (OS4.1.2), the compiler comes with the SDK and it's GCC 4.2.4.
God grant me the Serenity to accept the things I cannot change; Courage to change the things I can; and Wisdom to know the difference.
User avatar
Olrick
Beta Tester
Beta Tester
 
Posts: 51
Joined: Mon Mar 07, 2011 3:24 pm
Location: Rennes, France

Re: Amiga programming languages

Postby orangeBuzzard » Sat Apr 09, 2011 3:50 pm

Olrick wrote:For the time being (OS4.1.2), the compiler comes with the SDK and it's GCC 4.2.4.


Thanks! :) According to the GCC releases page that is the latest of the 4.2 series, released May 19, 2008 - so quite up to date and more importantly the most stable of that release series. I'm pleased with that! And to answer my own question from earlier - it seems that the GMP library was introduced to GCC from 4.3.x onwards...
User avatar
orangeBuzzard
Beta Tester
Beta Tester
 
Posts: 34
Joined: Mon Dec 20, 2010 5:06 pm
Location: Oxfordshire, United Kingdom

Re: Amiga programming languages

Postby ChrisH » Sun Apr 24, 2011 11:17 pm

orangeBuzzard wrote:Also wasn't there a language called E? Is that still around and available for AmigaOS 4?

Yup!
http://cshandley.co.uk/portable/

(It's not the original E, but rather a close copy of the 68k original.)
User avatar
ChrisH
Beta Tester
Beta Tester
 
Posts: 868
Joined: Mon Dec 20, 2010 9:09 pm

Re: Amiga programming languages

Postby orangeBuzzard » Sat Apr 30, 2011 3:00 pm

ChrisH wrote:Yup!
http://cshandley.co.uk/portable/

(It's not the original E, but rather a close copy of the 68k original.)


Great! Thanks for the link. I'll definitely try it out when I have my X1000. :)
User avatar
orangeBuzzard
Beta Tester
Beta Tester
 
Posts: 34
Joined: Mon Dec 20, 2010 5:06 pm
Location: Oxfordshire, United Kingdom

Re: Amiga programming languages

Postby jaokim » Sun Jun 19, 2011 10:42 am

It's been a while since JAmiga got updated, but I'm trying to work on it now and then. Help is appreciated!:)
http://code.google.com/p/jamiga2/

I have tried to port JamVM, but haven't succeded yet, and since the JAmiga-VM work, I mostly work on the class-libraries. I'm trying to atleast think of not tying it to close to the JAmiga-VM. Now I'm using the GNU Classpath, but I'm also looking at OpenJDK.
jaokim
 
Posts: 19
Joined: Sat Jun 18, 2011 12:41 am

Re: Amiga programming languages

Postby corto » Sun Jun 19, 2011 3:31 pm

orangeBuzzard wrote:Just out of curiosity, what programming languages are supported by the current Amiga platform?

Correct me if I'm wrong but these are the ones I know of:

General purpose: C, C++
Scripting: Python, ARexx
BASIC (not sure if these are still around): AMOS, BlitzBasic
Web languages: ?????

And a few that I guess are specific to the classic Amigas:
68k Assembly, Modula-2


BlitzBasic is now AmiBlitz.

About scripting languages, I would like to add I ported a basic version of Ruby a long time ago : it is a great language.

And about asm, PowerPC is great here too.
corto
 
Posts: 7
Joined: Sun Jun 19, 2011 8:53 am

Next

Return to Off Topic

Who is online

Users browsing this forum: No registered users and 1 guest

cron