15 May 2018, 15:15 | #421 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
Quote:
Looks too complicated (a shell script should be simple, easy to read text and not full object-oriented program), and still unable to send commands to programs like Arexx does. |
|
15 May 2018, 15:46 | #422 | ||||||||||||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,880
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
I most certainly will. Quote:
In the peecee world I somehow wouldn't be surprised. Quote:
Quote:
Quote:
Sure you can. WinXP already allows that. Which you have to add, because Workbench doesn't offer that functionalty out of the box. That's not practical, because everthing uses suffixes. Quote:
Yes, and while they work great, Workbench doesn't offer an option to make them. Quote:
Quote:
It's not functionalty. It's similar to eye candy. Quote:
Quote:
Quote:
In the end, I wouldn't on bit surprised if the Lua VM is a good bit faster than Amiga dos scripts and Arexx. |
||||||||||||||||
15 May 2018, 16:03 | #423 | |||
Registered User
Join Date: May 2017
Location: Munich/Bavaria
Posts: 2,460
|
Quote:
You are comparing apples and oranges. Arexx is also much slower than native. Quote:
Quote:
|
|||
15 May 2018, 16:31 | #424 | ||||||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
Quote:
Quote:
Quote:
Quote:
And where is the icon stored then ? Quote:
Not on Amiga, no. That doesn't need to be one (in the windows sense of it). Quote:
Quote:
That does not enhance end user experience dramatically... Not that much, if used properly. Programs that are often used can have bigger icons than ones that are rarely used. Makes running them a smoother experience. Then use names only, not icons. They will be aligned. Besides, they will be aligned but not necessarily in the order you want. In WB you can put any icon anywhere in a directory and expect it to remain there if you save it. In windows, only icons in the desktop are located where you place them. Quote:
And I wouldn't be surprised that by the time it takes to load and run the Lua VM, the normal script has already ended |
||||||||
15 May 2018, 16:42 | #425 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
It is not designed to replace ordinary shell scripts.
It's not me doing that ! Lua is full programming language, not shell script ! It does not need to be fast. It just sends commands in public ports. It is not truly a programming language. Lua is. Seems "feature creep" rather than "powerful". Yet a test such as suggested below could tell more. Ok. Let's say i want to send commands to some audio player, like i can easily do with Delitracker. What program to choose and how to do this ? |
16 May 2018, 16:21 | #426 | |||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,880
|
Certainly. Windows undoubtedly has bugs and design flaws.
Of course, but that's still a software problem. Yes, but didn't you change the algorithm too? It would be a combination of shell script language and Arexx. I don't have a single clue But you can still change the icons, including folder icons. Hypothetical future anything can add anything. Quote:
It's not needed, but it would be nice. Indeed, but that might be because WB can't make them for this purpose. Quote:
Not dramatically, but it's still nice to have. Saves some extra clicking. Quote:
Never gonna happen Quote:
Quote:
If it keeps reloading the whole thing, then yes (depending on the script of course). Then again, as a simple replacement it's quite pointless. |
|||||
16 May 2018, 16:48 | #427 | |||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
Not really. Made less passes to process the map, removed unneeded changes, used auto-incremented pointers rather than indexes, but the basis is still the same.
Then just use Arexx. It's perfectly able to run cli commands. Quote:
Indeed. But... isn't this the whole point of this thread ? Quote:
That's true. Quote:
Not having file type recognition by extension isn't a big deal either, so we're equal here Quote:
That's why both options should be available. And i don't miss the grid thing. Seems we just have a different way of doing Quote:
Because if it needs a file, it simply can't replace the shell ! I wonder how a startup-sequence would look like in lua. I frankly doubt it could execute faster... |
|||||
16 May 2018, 17:12 | #428 | |||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,880
|
Quote:
I don't like Arexx Quote:
Yes, but this was about out of the box. Quote:
Quote:
Not when you're feeling lazy Yes, it seems like it's always one or the other for no good reason. Quote:
Quote:
Quote:
As I said, you can expose OS calls and write whole GUI based programs with the thing. On Amiga I use it mainly as a programmable calculator with 384 bit floats. You can also use it as a memory viewer and a whatever. So yes, overkill indeed. |
|||||||
16 May 2018, 17:13 | #429 | ||
Registered User
Join Date: May 2017
Location: Munich/Bavaria
Posts: 2,460
|
Nor is AREXX or whatever - your comparison makes no sense here.
Quote:
AREXX is also turing-complete, which makes it a "full programming language". Lua is mainly used to "script" other programs - to remote control them. So it is the same use case as AROS. Only the method of doing so differs in most cases - but you could also make Lua talk to AREXX- or message-ports. Quote:
https://www.steinberg.net/forums/vie...46951&start=25 for Renoise probably Lua works best: https://github.com/renoise/xrnx Last edited by Gorf; 16 May 2018 at 17:22. |
||
16 May 2018, 17:54 | #430 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,880
|
|
16 May 2018, 18:05 | #431 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,009
|
MorphOS has a nice Amiga style integration of Lua with ARexx support commands. I've rewritten many of my ARexx scripts to Lua scripts, and also written new scripts in both Lua and Arexx versions.
Here's more information about MorphOS' Lua implementation: https://library.morph.zone/Getting_Started_with_Lua And if anyone is interested, here are many scripts I've written in both scripting languages: http://jpv.wmhost.com/jpv_software/ |
16 May 2018, 18:10 | #432 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
But without noticing, because it's so easy to write crap in compiled languages.
I fail to see why. You can't expect an OS which has hardly seen an update in 20 years (and runs on underpowered hardware) to have all the bells and whistles of current OSes. However it can be extended in a much easier way, and by its users. THAT is a great advantage windows will never have. You can extract a few registry keys if you know what you're doing, but i'm afraid it'll never be up to the point you only have to transfer a few files. Quote:
Perhaps i should give it another go then. But i have no pointers how to do that on the miggy (and no good reference doc either). My only experience is a little scripting for Freeciv customization (and i admit it wasn't exactly something i liked !). |
|
16 May 2018, 18:14 | #433 | ||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
It's not me who had the quite senseless idea to use it as shell replacement.
Quote:
You can't simply have your startup-sequence rewritten in lua. And while arexx can't do this either, at least you can send shell commands directly with "address command". Wondering also what the minimum config is for lua. I doubt it'll perform so well on unexpanded A500, will it ? Quote:
I was more expecting simple download link, and simple command to type, rather than just an imprecise forum thread or some github link. When something is simple to use, it's simple to explain. |
||
16 May 2018, 18:31 | #434 | |||
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,009
|
Quote:
https://library.morph.zone/Getting_Started_with_Lua Quote:
Quote:
Last edited by jPV; 16 May 2018 at 18:41. |
|||
16 May 2018, 18:34 | #435 | |||||
Registered User
Join Date: May 2017
Location: Munich/Bavaria
Posts: 2,460
|
Quote:
Quote:
Quote:
Would you like to rewrite it in AREXX or C or Assembler? Nobody suggested such a thing in the first place. Quote:
I bet Lua on MorphOS can already do that. Quote:
http://www.eluaproject.net |
|||||
16 May 2018, 18:45 | #436 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
So it's approx. 3 times arexx, which i already find too big for what it does (rexxsyslib.library is 33k on 3.0 and contains most of the bulk).
|
16 May 2018, 18:47 | #437 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,366
|
|
16 May 2018, 19:03 | #438 |
Registered User
Join Date: May 2017
Location: Munich/Bavaria
Posts: 2,460
|
After some research
I did some digging and found something interesting.
I was thinking the Transmeta CPUs were the last approach of doing things like I proposed earlier in this thread (here). I turnes out that Nvidia Tegra is doing quite the same - still today! These CPUs are just mimicking an ARM-CPU. https://en.wikipedia.org/wiki/Project_Denver "Denver's binary translation layer runs in software, at a lower level than the operating system, and stores commonly accessed, already optimized code sequences in a 128 MB cache stored in main memory" ARM code is translated either by a hardware translator or through software emulation to an instruction set that is internal to Project Denver. ARM instructions can be reordered, removed if they do not contribute to the end result, or otherwise optimized if software emulation is used. So this is very very close to what I suggested and planing to test on an CPU+FPGA-Hybrid. not so stupid after all Last edited by Gorf; 16 May 2018 at 19:16. |
17 May 2018, 11:09 | #439 | |||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,880
|
Quote:
Seems so old fashioned, end not in a good way. Quote:
Quote:
Quote:
The official decs are reasonable: https://www.lua.org/manual/5.3/ Quote:
I did for some bizarre reason |
|||||
17 May 2018, 11:14 | #440 |
Registered User
Join Date: May 2017
Location: Munich/Bavaria
Posts: 2,460
|
Ah - I was reading your text as „should be able to use“ and not as „replace it with lua“ ... but i guess it is enough said already about lua
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Has anyone got an Amiga 1200 T12 Gen II? | ccorkin | support.Hardware | 10 | 14 April 2017 23:18 |
What do people think about this as next Gen AMIGA? | Gunnar | Amiga scene | 111 | 05 July 2014 20:59 |
Classic 1st Gen EA games for the Amiga | illy5603 | support.Games | 8 | 03 July 2010 02:59 |
Next-gen Amiga development | LaundroMat | Coders. General | 3 | 05 October 2002 00:30 |
|
|