Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
20 crawler(s) on-line.
 60 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 yoodoo2:  18 mins ago
 vox:  31 mins ago
 amigakit:  52 mins ago
 tlosm:  53 mins ago
 21stcentury:  1 hr ago
 bhabbott:  1 hr 9 mins ago
 pixie:  1 hr 11 mins ago
 BigD:  1 hr 20 mins ago
 kiFla:  1 hr 30 mins ago
 kolla:  2 hrs 2 mins ago

hardware OS4   hardware OS4 : Portable - AmigaE metacompiler initiative
   posted by Error on 23-Jul-2006 19:46:38 (5978 reads)
Its been some time now since Chris started working on something that could save AmigaE coders lots of time, effort and - whats most important - the language they know and use.


A new metacompiler was born - PortablE - that in theory was built to translate E into any other language (currently original E language and C++ are being worked out and should be supported).

PortablE may help us turn lots of E programs into the code that will later work on all of our platforms - this is a solution for the software that has grown too complicated and mature to be rewritten.

For those of you, who are interested in the project: you can download current beta release of portable here.

You can also join the AmigaE mailing list:

positron@freelists.org

to help with the development.

Cheers
Tom
    

STORYID: 3202
Related Links
· More about hardware OS4
· News by Error


Most read story about hardware OS4
20 Answers with Alan Redhouse of Eyetech

Last news about hardware OS4
Sam460LE updates
Printer Friendly Page  Send this Story to a Friend

PosterThread
Samwel 
Re: Portable - AmigaE metacompiler initiative
Posted on 23-Jul-2006 23:07:25
#1 ]
Elite Member
Joined: 7-Apr-2004
Posts: 3404
From: Sweden

I think E is just great. I used E to code myself. Almost as easy as ARexx IMHO.
I jumped directly from ARexx anyway and had my first program working less
than a month after.

Too bad PortablE for OS4 isn't finished now..

Last edited by Samwel on 23-Jul-2006 at 11:08 PM.


_________________
/Harry

[SOLD] µA1-C - 750GX 800MHz - 512MB - Antec Aria case

Avatar by HNL_DK!

 Status: Offline
Profile     Report this post  
yak 
Re: Portable - AmigaE metacompiler initiative
Posted on 24-Jul-2006 1:42:17
#2 ]
Regular Member
Joined: 15-Mar-2006
Posts: 322
From: Bochum, Germany

I've never learned E, I jumped directly from Amos to 64k asm and from there there was only one way - C.

But I would like to see the final version of PortablE available for all Amiga and Amiga-like systems. If it's really such an easy language, it would attract some people to create some tools for Amiga. Some of them would catch the bug and learn more to create some larger programs. And as you know we will never get enough of those.

So, keep it up! More languages available can only do good.

 Status: Offline
Profile     Report this post  
Keyserling 
Re: Portable - AmigaE metacompiler initiative
Posted on 24-Jul-2006 7:15:24
#3 ]
Member
Joined: 11-Mar-2003
Posts: 95
From: Paris, Europe

It would be really great if someone make an E compiler for x86 and others PPC system...


_________________
[Z?] Tales from the dark side, spooky news and geek stuff. In french.

What part of "Phnglui Mglw'nafl Cthulhu R'lyeh w'hag nagl Fhtagn" don't you understand?

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 24-Jul-2006 7:50:17
#4 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

I wasn't expecting a news item about PortablE quite yet, but if you want to find out more about PortablE, this AmigaWorld thread should help:
The PortablE compiler - AmigaE reborn!

@Keyserling
If you don't use AmigaDOS calls, and you remove the few fixed references to DOS from the C++ code created by PortablE, then you can ALREADY run some E programs on Windows! In fact, if there was someone familiar with Windows DOS calls, it should be easy to add support to PortablE for "AmigaDOS" calls on Windows.

And of course the C++ code should be compilable for OS4, etc, with the AmigaDOS calls intact. However, with the large number of C++ compilers out there, it may take some time to ensure the generated code works flawlessly on all of them. Sadly StormC v3 has turned out to be too bugged to be useful.

Note that although the supported AmigaOS calls is currently limited, most of the work required to support more OS calls (and 3rd-party libraries) can be done by ANYONE! So there is no need to wait for me to add support.

Last edited by ChrisH on 24-Jul-2006 at 08:52 AM.
Last edited by ChrisH on 24-Jul-2006 at 07:59 AM.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 24-Jul-2006 8:50:23
#5 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

BTW, anyone wanting to join the AmigaE mailing list can do so from here:
http://www.freelists.org/list/positron

I had been intending to start my own mailing list for PortablE, but it sounds like a good suggestion that people interested in PortablE (and so E in general) should join the AmigaE mailing list instead.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: Portable - AmigaE metacompiler initiative
Posted on 24-Jul-2006 9:18:24
#6 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3205
From: Beds, UK

@ChrisH

The C++ code isn't quite correct for compiling on OS4/gcc (example.cpp). It complains about the return type of ::main not being int. Further up the code, #include <pragma/exec_pragmas.h> needs to be #include <proto/exec.h> for OS4 (this should work on 3.x as well)

I'll have a go at running my own stuff through PortablE later.

Chris

Last edited by Chris_Y on 24-Jul-2006 at 09:19 AM.


_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 24-Jul-2006 9:22:50
#7 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

The code should still compile, even if it complains about main not returning an integer.

Thanks for the tip about the #include, since this was pure guess-work based upon what includes StormC provided & what code people had posted on-line. You can fix the #include yourself, by editing the module 'PE/target/CPP_AmigaOS3.e'

BTW, I've just noticed that New() & FastNew() don't clear their memory for C++. This is easily fixed, but I don't see a point in release another update so soon, unless I know it causes a problem for someone.

Last edited by ChrisH on 24-Jul-2006 at 10:01 AM.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
spotUP 
Re: Portable - AmigaE metacompiler initiative
Posted on 24-Jul-2006 19:09:42
#8 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

Wow! This is some seriously good news!
Some cool apps that are tied tightly to the 68k will hopefully be 'freed' now. :) ... or then, rather when portablE gets released.


_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
rdolores 
Re: Portable - AmigaE metacompiler initiative
Posted on 25-Jul-2006 4:40:39
#9 ]
Member
Joined: 31-May-2006
Posts: 81
From: Wheaton, MD USA

Chris, Do you have a website yet where you can put the status of your project as well as documentation and downloads? Thanks. If not, I believe some here can help you set up one (me included).


_________________
A1000 - 2 Floppy, 2 MB RAM, OS1.0-1.3
A500 - 60 MB HD, 8 MB RAM, OS1.3
A2000 - 350 MB HD, 8 MB RAM, A2630, OS2.04
A2500 - 540 MB HD, 8 MB RAM, A2630, OS3.9
A1200 - 4 GB HD, 64 MB RAM, Blizzard IV, OS3.1
Amithlon - 20 GB HD, 512 MB RAM, PIII-1000

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 25-Jul-2006 10:39:56
#10 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

@rdolores
No, as I still don't know if there is enough interest to justify a web site. I would suggest that anyone interested in PortablE joins the AmigaE mailing list; if the traffic for PortablE gets too high, then it might be worth thinking about a web site.

P.S. Can people please be careful not to post my email address on any public forums, as I have already had some spam, although I don't know how.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 28-Jul-2006 11:55:20
#11 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

BTW, I am more than happy to answer any questions that someone may have about PortablE, although I hope that the included documentation will be sufficient in most cases.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 29-Jul-2006 9:14:02
#12 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

A minor warning, but also good news:

The generated C++ code does not seem to work with GCC (nor StormC), however I am close to overcoming these problems, so the next release should be much more compatible. Please join the AmigaE mailing list if you wish to hear about the next release, when it is done. The next release should also have improved backwards-compatibility with AmigaE.

Last edited by ChrisH on 29-Jul-2006 at 09:14 AM.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 30-Jul-2006 10:21:57
#13 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

@Samwel who said Quote:
I think E is just great. I used E to code myself. Almost as easy as ARexx IMHO.

When moving from ARexx (or BASIC) to AmigaE, the main difficulty is that creating new strings is not as simple as just typing: bigString = 'first string' + 'second string'. You have to do something like this:


DEF bigString[50]:STRING
StrCopy(bigString, 'first string')
StrAdd(bigString, 'second string')

Now, although you have to do something like this in C as well, AmigaE lacks any sort of type checking, so that common mistakes made by beginners are not reported by the compiler, and his program will just crash. The *next* release of PortablE will detect the worst kind of mistakes with strings, and thus it will be much more beginner-friendly than AmigaE ever was.

Oh, and if anyone is thinking that the above code is very messy for such a common case as adding two strings together, it is very easy to write a procedure that allows you to write: bigString = strJoin('first string', 'second string'). In the distant future I may overload the + operator, like Java does, which will make things look even nicer.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: Portable - AmigaE metacompiler initiative
Posted on 5-Aug-2006 19:05:40
#14 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

Okey, one final update

A new version of PortablE has been released, which you will know how to get if you joined the AmigaE mailing list. There are two major improvements:

1. It is now compatible with GCC & StormC (and hopefully OS4 too).

2. It is much more compatible with AmigaE, thanks to additions like STRINGs, LISTs & immediate lists, and improvements to the compatibility mode, such as supporting EXCEPT, exceptioninfo & bug fixes to pointer arithmetic.


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle