View unanswered posts | View active topics It is currently Fri Apr 17, 2026 10:04 am



Reply to topic  [ 7 posts ] 
 TWX and REXX 
Author Message
Ensign

Joined: Wed Nov 06, 2002 3:00 am
Posts: 270
Unread post TWX and REXX
I was reading in an old post that the speed of TWX scripts against REXX scripts in ZOC are about the same. Did I understand that right? REXX looks a lot harder to script in though.


Sun May 27, 2012 3:14 am
Profile
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: TWX and REXX
SteveH_66 wrote:
I was reading in an old post that the speed of TWX scripts against REXX scripts in ZOC are about the same. Did I understand that right? REXX looks a lot harder to script in though.


REXX was my first language, so I think it's pretty easy. Download the Revered's Zoc script pack and take a look at what he's done. His have not been updated for quite some time, so a lot of them no longer run.

Either way, REXX or TWX, scripts run very fast in ZOC. I'll sometimes have Swath, TWX and Zoc all open to the same game file and toggle between Swath for the maps & Fed/SS chat and Zoc for speed scripting.

_________________

BOTE 1998 Champs: Team Fament
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
HHT 2018 Champs: Rock Stars
Big Game 2019 Champs: Draft Team


Classic Style Games Here:
telnet://crunchers-twgs.com:2002

Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
Discord: https://discord.gg/4dja5Z8
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Sun May 27, 2012 7:33 am
Profile ICQ WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWX and REXX
I'm probably the wrong guy to comment on this, but I do not believe that assertion to be true. Rev and I have worked together a number of times on various projects, and at times we've written parallel code - he in REXX and I in TWX. My recollection, which is terrible admittedly, is that optimized TWX code was significantly faster than optimized REXX code. I'll invite Rev to comment though, and I encourage you to trust his memory over mine.

Aside from speed, the TWX language is made up of about 100 commands, of which most scripts probably use 20 or fewer commands. Constructs like loops and arrays are likely similar, and therefore required learning regardless of scripting language. There is no easier way to script for TW. If you are looking for the simple way, the easy way, the short-cut way... TWX IS the easy way.

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Sun May 27, 2012 11:56 am
Profile WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: TWX and REXX
Still hoping for that list of those 20 twx scripting commands....
H

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Sun May 27, 2012 12:34 pm
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWX and REXX
Dig up that old thread or start a new one, and I'll dig up my list for ya. I wrote a script that parsed all of my scripts and counted the frequency of the commands used. I thought I'd shared that previously. Maybe we can follow it up with some scripting sessions based around the most commonly used commands... as in recorded videos for posterity.

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Sun May 27, 2012 1:07 pm
Profile WWW
Ensign

Joined: Wed Nov 06, 2002 3:00 am
Posts: 270
Unread post Re: TWX and REXX
Thanks for that reply EP, I am using TWX now because of it's speed and 'new scripter friendliness' I guess you would call it of TWX. I was just interested in the speed comparison of the 2 for a later time, like if I ever manage to take some programming classes or somehow pick up more programming knowledge.

I had read somewhere that REXX has more 'programmer' type functions in it and some of the posts talk about how that would be handy for making scripts shorter and less 'complicated' for a programmer. So, was just curious if REXX was as fast as TWX for scripting. Thanks for the heads up that it probably isn't :D


Mon Jun 25, 2012 9:47 am
Profile
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: TWX and REXX
I wouldn't worry about helper speed too much. Even a decent ping time of 50ms is an eternity to your CPU.

Imagine you're playing a board game, but you're a block away from the board and you have assistants running back and forth to make your moves and find out what's going on. Making faster decisions might gain you a little, but having a more sophisticated system will gain you a lot.

_________________
Suddenly you're Busted!


Mon Jun 25, 2012 10:46 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.