Python-1.4 One Liner Demo for AMIGA ADE
- Size
- 821K (840,547 bytes)
- Added
- 2026-11-20 02:44
- Downloads
- 2
- Long Description
- ============================================================================ 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<CR> 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