Programming Languages for MOS.
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    matt3
    Posts: 659 from 2004/2/10
    I figure I best dust off my programming glasses and start consider
    progamming again. I really enjoyed it as a hobby but, haven't had
    much time to spend on hobbies these days.

    I would like to know what programming languages are native to MOS?

    In particular I was thinking of porting an old starship combat
    simulator game I made eons ago. I need to use a language that is
    developed enough to handle disk I/O, arrays, mathmatical logic, audio,
    and graphics. It's look/feel/play are very similar to Mechforce by
    Ralph Reed (pretty sure that was his name). Any old time Amiga folks
    will remember that it was the conversion of FASA's
    Battletech. It was the overhead view of the playing board.

    Anyways thanks for the help.

    Matt
  • »24.01.05 - 03:38
    Profile
  • opi
  • Butterfly
    Butterfly
    opi
    Posts: 100 from 2003/3/9
    From: Lodz, Poland
    Quote:

    I would like to know what programming languages are native to MOS?

    FreePascal, GCC (so you've got C and C++). I don't know Rebol port status. Java's not here. Well, that's all, I guess. ;p
  • »24.01.05 - 04:14
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 157 from 2003/3/3
    IIRC 68k Amiga Rebol works on Pegasos, but even with JIT it's kinda slow ... I doun't Native port ever happens.

    IMHO it's a shame things has gone as they are.. BlitzMax (adwanced Blitz basic with OpenGL support) would look nice on Pegasos. But as it is.. I'm not gonna ask for a port :-(

    PS: In case someone has Mac and is planing to make programs for it (and port them to Windowse+linux)
    http://www.blitzbasic.co.nz/
    http://somequicknotes.blogspot.com/index.html
  • »24.01.05 - 07:36
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    marcik
    Posts: 268 from 2003/4/12
    From: Kielce/Krakow,...
    All? You forgot about asm ;-)
  • »24.01.05 - 08:52
    Profile
  • pOS
  • Order of the Butterfly
    Order of the Butterfly
    pOS
    Posts: 216 from 2003/11/14
    From: Bavaria
    I suppose, with "native" you mean either an interpreter that exists as a ppc native binary or a compiler that can output PPC binaries.
    AFAIK these are your choices:

    Assembler
    C
    C++
    Draco ( in combination with a C compiler)
    E
    (Free)Pascal (other Pascal Dialects in combination with a C compiler)
    Java (Compiler, but incomplete Runtime Environment)
    Perl
    PowerD
    Python
    Hollywood
    Lisp
    Oberon (not sure about this)
    OPS5 ( in combination with a C compiler)
    OCAML ( in combination with a C compiler)

    a Modula2 compiler seems to being worked at.
  • »24.01.05 - 08:57
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    matt3
    Posts: 659 from 2004/2/10
    Thanks for the great feedback.

    Looks like C may be the best choice.

    I already own SAS C. What version of C do you guys use on MOS and
    what is the best version to use with MOS?

    Why would you need a C compiler with Free Pascal?


    Best Regards,

    Matt
  • »24.01.05 - 12:35
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    As Mechforce (later renamed to Battleforce) is a clone of FASA's Battletech, would your space strategy game be a copy of FASA's Renegade Legion Interceptor then? :-)

    Quote:

    I already own SAS C. What version of C do you guys use on MOS and what is the best version to use with MOS?

    Basically it's gcc or vbcc. I think I would recommend gcc, as I use it more (and it comes with MOS SDK)
  • »24.01.05 - 13:20
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    matt3
    Posts: 659 from 2004/2/10
    Hi Jupp3,

    I really did like Renegade Legion Intercepter but, this game is based
    on the Star Trek Combat Simulator that FASA created.

    One last lazy question, where do I get the latest gcc and MOS SDK?

    Thanks!

    Matt

    p.s. if I ever get this game to a playable state would you like to try
    a beta version?
  • »24.01.05 - 13:34
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    Quote:

    I really did like Renegade Legion Intercepter

    Yes, armour was done in quite nice way (although I guess it would work better on computer game than on a board game...)
    Quote:

    One last lazy question, where do I get the latest gcc and MOS SDK?

    You can get the SDK from http://mdc.morphos.net
    There's updated gcc available somewhere else, but I think you should first install the only one...

    And I didn't have any problems with the "old" gcc on any of my own projects (ldview, puzzle, blockmorph etc.) anyway...
  • »24.01.05 - 13:45
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Quote:

    Why would you need a C compiler with Free Pascal?

    Actually you don't need a C compiler with Free Pascal. But you might need one for other Pascal compilers (eg. for GNU Pascal) but i don't think that's available for MorphOS anyway. (It could be ported, but no one did that until now, AFAIK.)
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »25.01.05 - 13:29
    Profile Visit Website
  • pOS
  • Order of the Butterfly
    Order of the Butterfly
    pOS
    Posts: 216 from 2003/11/14
    From: Bavaria
    Pascal:

    There are some Pascal -> C Compilers in Aminet...


    To complete my list of PPC languages: there's also a Forth (PPCcForth) interpreter.
  • »25.01.05 - 21:13
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Pascal -> C compilers usually support much less Pascal constructs, due to the nature of the conversion they're doing (eg. no Pascal-style strings, no OOP, no function/operator overloading, etc). Also most of the standard Pascal run-time library functions are missing in this case. So i generally do not recommend using such "compilers". :)
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »27.01.05 - 02:40
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    matt3
    Posts: 659 from 2004/2/10
    Thanks for all the help!

    I'm just waiting for a response a password for the morph developer website. Haven't heard anything yet however...

    Sounds like the free pascal isn't ready for development on so I guess I'll use c.

    Matt



    [ Edited by matt3 on 2005/1/26 22:26 ]
  • »27.01.05 - 03:25
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    judas
    Posts: 175 from 2005/1/14
    From: core of universe
    I never got a reply from the morphos.dev site for 2 month. Let me know, if you get any
    reply .....
    Why is there any barrier to get docs to progg for an OS ?
    Linux doesn't have any .. so it's programmers heaven ..
  • »27.01.05 - 06:48
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    matt3
    Posts: 659 from 2004/2/10
    Is there any way else to acquire the C compiler and docs?
  • »27.01.05 - 13:22
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Kaczus
    Posts: 199 from 2003/9/6
    From: Poland / Lodz
    Buy GoldED :)
    Kaczus/BlaBla & AUG-Lodz Happy Pegasos User
  • »27.01.05 - 14:28
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    Quote:

    There are some Pascal -> C Compilers in Aminet...

    Hey, there's even Amos -> C converter out there! :-)

    And it does work quite nicely, but only makes moving a project from Amos to C easier, it doesn't produce "ready-to-compile" code.
  • »28.01.05 - 08:08
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Velcro_SP
    Posts: 929 from 2003/7/13
    From: Universe
    Jupp3 says:

    Quote:

    Hey, there's even Amos -> C converter out there! :-)


    Funny that there should be such a thing, but too bad that it doesn't produce ready-to-compile code, as you said.

    Some time ago I tried Pure Basic and AmiBlitz. Each of those programs launched at partially ran but were not quite usable, some functions didn't work or they would crash if you tried to do certain things. It seemed to me that it wouldn't be terribly difficult for the maintainers of those languages to make MOS versions that work, if they had developer Pegasoses. I don't really know though.

    I think that AmiBlitz can be a good development environment for MOS *on a 68K Amiga system* which is what I think Thilo Köhler did to make the great action game AsteroidsTR.

    Hollywood may be an option, like somebody said. Hollywood has some rough edges IMO, but it does support 68K and Amithlon and MorphOS.
    Pegasos2 G3, 512 megs RAM
  • »28.01.05 - 08:45
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    brotheris
    Posts: 142 from 2003/2/24
    From: Vilnius, Lithu...
    Now you can add E language. PPC compiler has been put to public use.

    http://home.swipnet.se/blubbe/ECX
    Home sweet home is Pegasos User Group Lithuania
  • »29.01.05 - 21:10
    Profile Visit Website
  • MorphOS Developer
    Henes
    Posts: 507 from 2003/6/14
    >I never got a reply from the morphos.dev site for 2 month. Let me
    >know, if you get any reply .....
    >Why is there any barrier to get docs to progg for an OS ? Linux
    >doesn't have any .. so it's programmers heaven..

    You could try to contact bbrv/genesi about it.
    They fully administrate the mdc website.
  • »29.01.05 - 21:28
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    takemehomegrandma
    Posts: 2720 from 2003/2/24
    Quote:


    brotheris wrote:
    Now you can add E language. PPC compiler has been put to public use.

    http://home.swipnet.se/blubbe/ECX



    That's cool! I never was much of a serious programmer but I tinkered a bit with E on the Amiga way back, and I liked it a lot. Has anyone tested this on PPC/MorphOS? Is everything working, is it fully PPC and does it generate as compact binaries as the 68k E compiler did? Pros/cons?
    MorphOS is Amiga done right! :-)
    MorphOS NG will be AROS done right! :-)
  • »30.01.05 - 10:48
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    brotheris
    Posts: 142 from 2003/2/24
    From: Vilnius, Lithu...
    Quote:

    takemehomegrandma wrote:

    Has anyone tested this on PPC/MorphOS?


    http://www.amigazeux.org/ folks seem to use it already.
    Home sweet home is Pegasos User Group Lithuania
  • »31.01.05 - 11:20
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    analogkid
    Posts: 657 from 2004/11/3
    From: near myself
    hi,

    I don't know much about E, how difficult is it to learn, is it comparable with Pascal or M2 ?
  • »31.01.05 - 13:08
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    brotheris
    Posts: 142 from 2003/2/24
    From: Vilnius, Lithu...
    To my experience it's somewhere in between Pascal and C. There is good documentation on Aminet and many modules for various library functions.
    Home sweet home is Pegasos User Group Lithuania
  • »31.01.05 - 16:22
    Profile Visit Website
  • pOS
  • Order of the Butterfly
    Order of the Butterfly
    pOS
    Posts: 216 from 2003/11/14
    From: Bavaria
    Well, E is more than that !

    Most languages have a specific philisophy they obey.

    The one of E is practical usability. It tries to combine the advantages of quite different languages in one single language:
    It is a procedural, modular language with a Wirth (Pascal/Modula/Oberon) like syntax.
    It has OOP.
    It has lots of functions known from C.
    AND from the Lisp world.
    It is a (nearly) typeless language: You don't have to declare the type used (as in C) all the time.
    It also has some BASIC like functions.
    It has a LIST datatype that is useful for declaring taglists (used by many OS functions).
    Also C like Macros (#define) are supported
    Inline Assembler (68K and PPC) is also part of the language. You don't have to declare specific Assembler sections in your code, but you can mix it up with other E functions !

    The compiler is really fast (old EC compiler compiled my 4000 lines of code in less than a second on a blank Amiga 500).
    All compilers create fast code, too.

    It's well suited for the development of applications (even shared libraries) for AmigaOS (or compatible OS).
    You really should have a look at it.

    The only disadvantage is the non-availability for other platforms (Win,Mac,*nix).
    But if portability is not that important for you (programs utilizing the specific advantages of the OS are in general not that portable...), E is quite a good choice.

    The ECX 1.4 compiler seems to have still some bugs; it also only supports the language set of the original E compiler (EC). The additions of the creativE compiler (that is based on EC source) however are not supported.
  • »01.02.05 - 15:06
    Profile Visit Website