1. To Euphoria Porters!
- Posted by Travis Beaty <tbeaty at mach3ww.com> Sep 30, 2002
- 429 views
Hello! I'm working on a project which needs to be designed so that it will run on all platforms to which Euphoria is ported. This will of course mean that the library will need to be aware of what system it is being run on. The logical way to do this is to use the platform() routine. Here is where the question and suggestion comes in. RDS has already created three constants for platform, possibly four for BSD (Rob?): DOS32, WIN32, and LINUX. I am hoping that any people out there creating ports will agree upon other values; ie, MAC_OS = 5, BEOS = 6, TAKE_A_WILD_GUESS = 7. If two people make their own ports for two different operating systems, and each port returns the value 5 for platform(), this will cause a great deal of angst and gnashing of teeth. If ye-who-port can't come to a gentleman's agreement on this, I foresee all heck breaking loose about five years from now. :( Travis Beaty, Mason City, Iowa. "Always remember that you are unique; just like everyone else."
2. Re: To Euphoria Porters!
- Posted by petelomax at blueyonder.co.uk Sep 30, 2002
- 418 views
{{{ On Mon, 30 Sep 2002 13:24:54 -0500, Travis Beaty <tbeaty at mach3ww.com> wrote:
I'm working on a project which needs to be designed so that it will run
on all platforms to which Euphoria is ported.
on all platforms to which Euphoria is ported.
Do tell. I'd love to see something nice & single source which runs just on both Winduz & Linux. Nice meaning reasonable GUI.
Pete PS I do believe some peeps are working on this so an update on their progress would be nice too.
3. Re: To Euphoria Porters!
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Oct 01, 2002
- 419 views
Some time ago, I suggested a new platform() function, that would return OS type, version, machine architecture (eg. i386, m68k, IA64 etc.), but no one seemed interested. Martin ----- Original Message ----- From: "Travis Beaty" <tbeaty at mach3ww.com> To: "EUforum" <EUforum at topica.com> Subject: To Euphoria Porters! > > Hello! > > I'm working on a project which needs to be designed so that it will run > on all platforms to which Euphoria is ported. This will of course mean > that the library will need to be aware of what system it is being run > on. The logical way to do this is to use the platform() routine. > > Here is where the question and suggestion comes in. RDS has already > created three constants for platform, possibly four for BSD (Rob?): > DOS32, WIN32, and LINUX. I am hoping that any people out there > creating ports will agree upon other values; ie, MAC_OS = 5, BEOS = 6, > TAKE_A_WILD_GUESS = 7. If two people make their own ports for two > different operating systems, and each port returns the value 5 for > platform(), this will cause a great deal of angst and gnashing of teeth. > > If ye-who-port can't come to a gentleman's agreement on this, I foresee > all heck breaking loose about five years from now. :( > > Travis Beaty, > Mason City, Iowa. > > "Always remember that you are unique; just like everyone else." > > > >
4. Re: To Euphoria Porters!
- Posted by francis at gmx.co.uk Oct 01, 2002
- 416 views
You can verify independant architecure statistics from the machine itself, I don't see why this should be a language function. If it was a language function it would only bulk up the actual interpreter slightly, and not everyone is going to use it as it is not a "critical" language function. However, I agree these "constants" should be hardcoded in the distributed Euphoria source, for future extentions regardless of whether Rob ported it or a third party did. It would be fairly easy to define a few more constants in "misc.e". 10/2/02 4:09:02 AM, Martin Stachon <martin.stachon at worldonline.cz> wrote: > >Some time ago, I suggested a new platform() function, that would return >OS type, version, machine architecture (eg. i386, m68k, IA64 etc.), but >no one seemed interested. > > Martin >
5. Re: To Euphoria Porters!
- Posted by Kat <kat at kogeijin.com> Oct 01, 2002
- 415 views
On 2 Oct 2002, at 5:34, francis at gmx.co.uk wrote: > > You can verify independant architecure statistics from the machine itself, I > don't see why this should be a language function. If it was a language > function > it would only bulk up the actual interpreter slightly, and not everyone is > going > to use it as it is not a "critical" language function. As i get more into *nix, but am able to test on only win95, being able to code and upload, knowing the program will run on whatever the OS is on the remote box, is a great advantage. Kat
6. Re: To Euphoria Porters!
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Oct 02, 2002
- 416 views
But sometimes you might want to know something about ex* version before you do anything. And I don't like the current platform() because it will get complicated as more architectures/OS combinations will appear. I.e you would have LINUX_x86 LINUX_Alpha LINUX_PPX Wouldn't be nice to do if platform_info(OS_FAMILY) = UNIX then exec("rm -r -f /") end if ... if platform_info(MACH_ARCH) = i386 then call(#blabla) elsif platform_info(MACH_ARCH) = mc68000 then call(#xyxyxy) else -- I give up end if .... And you can have also fields for EX* version, porter name etc. -- Martin ----- Original Message ----- From: <francis at gmx.co.uk> To: "EUforum" <EUforum at topica.com> Sent: Tuesday, October 01, 2002 7:34 PM Subject: Re: To Euphoria Porters! > > You can verify independant architecure statistics from the machine itself, I > don't see why this should be a > language function. If it was a language function it would only bulk up the > actual interpreter slightly, and not > everyone is going to use it as it is not a "critical" language function. > > However, I agree these "constants" should be hardcoded in the distributed > Euphoria source, for future extentions > regardless of whether Rob ported it or a third party did. It would be fairly > easy to define a few more constants > in "misc.e". > > > 10/2/02 4:09:02 AM, Martin Stachon <martin.stachon at worldonline.cz> wrote: > > > > >Some time ago, I suggested a new platform() function, that would return > >OS type, version, machine architecture (eg. i386, m68k, IA64 etc.), but > >no one seemed interested. > > > > Martin > > > > > >
7. Re: To Euphoria Porters!
- Posted by jbrown105 at speedymail.org Oct 02, 2002
- 414 views
On 0, petelomax at blueyonder.co.uk wrote: > > On Mon, 30 Sep 2002 13:24:54 -0500, Travis Beaty <tbeaty at mach3ww.com> > wrote: > > >I'm working on a project which needs to be designed so that it will run > >on all platforms to which Euphoria is ported. > > Do tell. I'd love to see something nice & single source which runs > just on both Winduz & Linux. Nice meaning reasonable GUI. > > Pete > PS I do believe some peeps are working on this so an update on their > progress would be nice too. > If you mean Llama/GTK that would be me. Right now Llama is way above the last version written by David Cuny, and very far behind Win32Lib. There is a file in the package, updates.txt, which describes in detail the changes I have made to it. jbrown --