None of you are clarifying how complicated Queue ID's help this at all.Anthony said:Queue management/manipulation is one of Denizens strong points. Let's not impede that unnecessarily. Again, we can easily use flags to track queues, but that is indeed another step in the process.
mcmonkey said:None of you are clarifying how complicated Queue ID's help this at all.Anthony said:Queue management/manipulation is one of Denizens strong points. Let's not impede that unnecessarily. Again, we can easily use flags to track queues, but that is indeed another step in the process.
Let me put it in BIG TEXT for you.Anthony said:mcmonkey said:None of you are clarifying how complicated Queue ID's help this at all.Anthony said:Queue management/manipulation is one of Denizens strong points. Let's not impede that unnecessarily. Again, we can easily use flags to track queues, but that is indeed another step in the process.
I'm not suggesting that the complicated and convoluted method of random text strings be maintained... the incremental numbering system is perfectly sufficient imo with the one caveat of having the originating script ID be the queue ID prefix.
mcmonkey said:Let me put it in BIG TEXT for you.
WHY
Anthony said:mcmonkey said:Let me put it in BIG TEXT for you.
WHY
Because it's such a good idea that some genius dev decided that's how queues should be identified already... by name...
[11:00] <BlackCoyote> lets say you have a while loop on the player, with irregular waiting periods in it, if the player logs out, the commands running behind that might error since the player is no longer online, we have 2 choices for this, put a check in front of every single command, or clear the queue when the player goes
[11:01] <BlackCoyote> clearing the queue is the more convenient solution to this in my experience, now we can track the queue in 2 ways
[11:01] <BlackCoyote> by keeping a list ourself, in flags or something, or by putting a prefix on the queue
[11:01] <|Anthony|> i name my queues intentionally for this exact reason
[11:01] <|Anthony|> to avoid having to manage queues in a flag data set
[11:01] <BlackCoyote> keeping the list yourself is tedious, lots of work, and a lot of things to account for just in order to make sure the flag always only shows active queues
[11:02] <|Anthony|> the necessary data should be built right into the name of the queue
Please present your own response or allow the relevant people to present their own answers.AbiDada said:not to butt in here, but I think this answers your question mcmonkey
So that doesn't answer the whole "script title prefix" thing, but it does pose an alternate point which needs a response.Anthony said:An example scenario is this: things such as webget and sql take an amount of time and should be done in the background. Running these functions with a known name allows you to easily and reliably check for a current process if triggered again. A real world example right here relating to webget.
Anthony said:Any opportunity to exclude managing an external lookup table is a performance increase both on the read and the write. It is assumptive logic... a consistent naming convention that removes extra steps in logic is smart coding.
mcmonkey said:Anthony said:Any opportunity to exclude managing an external lookup table is a performance increase both on the read and the write. It is assumptive logic... a consistent naming convention that removes extra steps in logic is smart coding.
By requiring script names (as opposed to numeric IDs), you're creating an /internal/ lookup table... which, in D2, is no more efficient than an external one for most cases.
In fact, writing your own specialized code would be /more/ efficient than a general for-all-queues name-based lookup table!
It is assumptive logic... specialized code that reduces general complexity is smart coding!
BlackCoyote said:Lets meet in the middle, and introduce a 'prefix' option for queue IDs, that are stored externally from queues, but still internally in d2 for the convenience of the scripter. this would only be optional and should only be affecting efficiency rates when actually utilized.
- define queue_prefix "MySpecialQueue" <[run_queue]>
mcmonkey said:BlackCoyote said:Lets meet in the middle, and introduce a 'prefix' option for queue IDs, that are stored externally from queues, but still internally in d2 for the convenience of the scripter. this would only be optional and should only be affecting efficiency rates when actually utilized.
:D ?Code:- define queue_prefix "MySpecialQueue" <[run_queue]>
BlackCoyote said:me and anthony both use <queue.definitions> to return a complete list of arguments passed into a function.
mcmonkey said:BlackCoyote said:me and anthony both use <queue.definitions> to return a complete list of arguments passed into a function.
wh... why?
I can almost understand that in D1 (ALMOST) but in D2... where you can use a MapTag if you need a set of keys and values, ...?
If the input is just 1|2|3, then make the input .... 1|2|3, as a ListTag.BlackCoyote said:The maptag sounds like a neat thing, however it wouldn't work too great for API's wanting to make the user input as simple as possible. being able to pass 1|2|3 is a lot easier for the user than a=1|b=2|c=3. for some of us maptags might be extremely simple, but for beginners who need denizen because things otherwise get too complex, it is only pushing the bar up higher for them.