Short: Python-1.4 One Liner Demo for AMIGA ADE Author: wisecracker.bazza@gmail.com (Barry Walker, G0LCU) Uploader: LAG (Lincolnshire Amiga Group) Type: dev/src Version: 1.00.00 Architecture: generic Distribution: Aminet ============================================================================ Architectures: (Classic AMIGAs), WinUAE, FS-UAE, OSX 10.14.3, Linux Mint 19. ---------------------------------------------------------------------------- MINIMUM Requirements Are:- -------------------------- (Stock A1200, 4MB Fastram and HDD; UNTESTED.) Tested on below. WinUAE 3.4.0, minimum. FS-UAE 2.8.1, minimum. Standard AMIGA OS 3.0.x install or better. Python Version 1.4.0 install, (full install on AMINET): http://aminet.net/package/dev/lang/Python_14 Full ADE UNIX environment install, (full install on AMINET): https://aminet.net/package/dev/gcc/ADE Library file ixnet.library version 48.0 Library file ixemul.library version 48.0 Both files are here if you have NOT got them: https://aminet.net/package/util/libs/ixemul-48.0 (It might even work under CygWin but it is untested so you use it at your own risk, see 'The Legal Stuff:-' below.) ---------------------------------------------------------------------------- History:- --------- 12-08-2020. ----------- Version 1.00.00. Probably the one and only upload for this archive. ---------------------------------------------------------------------------- General:- --------- (Apologies for any typos, etc...) People say that complex one liners for python are not easy to do, if at all. This is true but with a little jiggery pokery it is possible to write a one liner that works WITHOUT alteration from Python 1.4.0 to the current 3.8.x version. (Version 3.9.0 is not officially released as of this archive upload date.) Start up an AMIGA CLI and open to full screen and run up ADE and ksh inside the AMIGA CLI/NewShell. From the *NIX style prompt run the script as: [/full/path/to/][./]python [/full/path/to/]Sine.py I have set up python in ADE's "/bin" drawer and Sine.py inside my "/home/Python" drawer and run as the images show in the archive. The code generates a sine wave inside ADE and the 'ksh' shell something like this: * ***** ***** ** ** ** ** * * * * ** ** * * * * * * ** *** * AMIGA:amiga~> * * * * * * * * ** ** * * ** ** ** ** ***** ***** * The peaks may be slightly different due to 32 bit limitations of Python 1.4.0 using the AMIGA's maths libraries. Python 2.0.1 is exactly the same as the above for the AMIGA however as the CPU minimum is 68030 and an FPU are needed for it to run. In the archive are two versions; a direct command line version that only works from Python 2.6.x to 3.8.x for almost all *NIX systems but NOT the AMIGA A1200 and a python one liner script that does the same task for the A1200 and ADE plus almost all the other *NIX platforms, calling any Python from versions 1.4.0 to 3.8.x. This was just an exercise in futility and fun and uploaded so all can have the benefit of Python even though version 1.4.0 is well over 20 years old at the date of this upload. Enjoy... Bazza... ---------------------------------------------------------------------------- Lincolnshire Amiga Group: https://lincsamiga.org.uk/wordpress/ ---------------------------------------------------------------------------- This archive is issued under the CC0 Licence. Public Domain. ---------------------------------------------------------------------------- IMPORTANT:- ----------- The Legal Stuff:- ----------------- This code is CC0 licenced. (Public Domain.) The author is not responsible for any damage to, or loss of, or failure of equipment or data caused in any way by the use of this code. There is NO warranty with the use of this software release and YOU USE IT AT YOUR OWN RISK. ---------------------------------------------------------------------------- Testing Evaluation:- -------------------- All WinUAE, FS-UAE conditions were/are running standard OS 3.0.x and using standard ~topaz 8~ fonts throughout. The minimum hardware and software requirements ARE needed however. The Classic AMIGA has NOT been tested so you try it at your own risk. I have no idea what strange configuration setups will create so refer to the ~The Legal Stuff~ above. ---------------------------------------------------------------------------- Barry Walker, G0LCU. ---------------------------------------------------------------------------- A very useful HardWare related site, (C) Anthony Hoffman, for modifications, schematics, repairs and the like is:- http://amiga.serveftp.net/ ============================================================================