Poll

Should there be a Coding Discussion subforum?

Yes.
No.

Author Topic: Not actually a help topic: Should there be a Coding Discussion subforum?  (Read 2107 times)

Apparently the overhead for calling a function is high enough that getMin runs far slower than its direct equivalent.

==>%r=getRealTime();for(%i=0;%i<999999;%i++)%d=getMin(getRandom(),getRandom());echo(vectorDist(getRealTime(),%r));
7040
==>%r=getRealTime();for(%i=0;%i<999999;%i++)%d=(%a=getRandom()<%b=getRandom()?%a:%b);echo(vectorDist(getRealTime(),%r));
448

None of my scripts should ever be trying to call getMin 999,999 times per seven seconds, so it's not that large of an issue - I just found it interesting.


Also I feel like there should be a seperate forum for coding discussion that's not actually for help or for mods, which is apparently what this thread is now about.
« Last Edit: March 23, 2014, 03:51:42 PM by Xalos »

Also I feel like there should be a seperate forum for coding discussion that's not actually for help or for mods.
Eh. We would certainly have use for a section like that, but coding help is a slow enough board as is

Eh. We would certainly have use for a section like that, but coding help is a slow enough board as is

It would still be nice. We could put "resource" posts there as well.

This explains a lot about why function calls are so slow.
http://www.cuppadev.co.uk/2012/10/optimizing-torquescript/
« Last Edit: March 23, 2014, 03:54:09 PM by Port »

The reason that this is so slow is that every argument is converted into a string, reallocated and pushed onto the string stack, no matter of it's type.

Ew. This is why God coders invented strongly typed variables.

Eh. We would certainly have use for a section like that, but coding help is a slow enough board as is
It's slower than Help.

What would the subforum feature? What is there to discuss? Maybe Coding Help should be renamed to Coding Discussion & Help?

Coding discussion could potentially include discussions for all languages and projects.

This is the blockland forum, not a coding forum. I don't think it warrants an entire subforum/board. Maybe a megathread?

No there shouldn't be a coding discussion sub forum.

It's slower than Help.
No, it's not,



I think there shouldn't as there would be another board to accidentally post in or another board to search through, it's just hectic finding out where to put threads also.

This is the blockland forum, not a coding forum. I don't think it warrants an entire subforum/board. Maybe a megathread?
It's also the #1 source for TorqueScript help on the entire internet.

It's also the #1 source for TorqueScript help on the entire internet.
That doesn't warrant a new subforum. That's just proof that we're the most active game left that actively uses Torquescript.

That doesn't warrant a new subforum. That's just proof that we're the most active game left that actively uses Torquescript.
It's high time to transition to Torque 3D.
But of course Badspot will never do that and we will end up using a 20-year-old game engine.

It's high time to transition to Torque 3D.
But of course Badspot will never do that and we will end up using a 20-year-old game engine.
Badspot and Rotondo discussed this a long time ago and decided that it wouldn't be a good thing to switch to torque 3d. And rotondo was pretty damn high in the rankings for the torque engine.