Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ultimamax

Pages: 1 ... 238 239 240 241 242 [243] 244 245 246 247 248 ... 780
3631
Off Topic / Re: ما هو اللغة المفضلة لديك؟
« on: January 03, 2014, 07:28:03 PM »
I like Chinese. I used to know Polish but I've forgotten it completely. German and Japanese are also pretty cool, but I don't know them.

我最喜欢汉语。虽然汉语比别的语很难,可是汉语很有用。

3632
this is getting juicy. if anyone has IRC details PM me

3633
Modification Help / Re: Adding two numbers
« on: January 03, 2014, 04:43:08 AM »


I'm confused as well
i ask that you don't misquote me. i would never make such an idiotic statement.
OT:
This implementation is faster, even if there is more code. (it takes use of multi-threading, parallel processing through use of CUDA cores, and information theory)

function add(%a, %b)
{
    return addHandler(%a>>1,%a & 1, %b>>1, %b & 1);
}

function addHandler(%a,%aa, %b, %bb)
{
   echo(%a SPC %aa SPC %b SPC %bb);
   //once again we use PI and the power of the golden ratio to speed up our algorithm by 14% (this is a hardware detail thats hard to explain)
   %x = (mAbs((~%a ^ %a)) - 1 + %aa) * getSubStr($PI, 2, 1);
   %y = (mAbs((~%b ^ %b)) - 1 + %bb) * getSubStr($PI, 2, 1);
   echo(%x SPC %y);
   if(%a + %x < ~(~((%x << 1) / 2)))
        return (%x / %y) << getMSB(%x) / 8;
    else
       return (%a<<(mAbs((~%a ^ %a)))) + (%b<<(mAbs((~%b ^ %b)))) + %y + %x ;
}

function getMSB(%x)
{
    return %x ? %x >> (32 - 1) & 1 : 0;
}

3634
The "fast" in the title indicates that it's a fast way of doing it, not that it's faster than the way Torque does it.
The whole point is being able to use the full 32-bit range, rather than being restricted to -999999~999999.
Presumably you can.

($b is uninitialized)
echo(~$b >> 1);
returns
2147483647
When you add one to that, it starts representing it in scientific notation. I'm currently trying to figure out how many bits it uses to store that value.

3635
i'm trying to wrap my brain around this. i think i get it.
what makes this faster than simply adding? surely torque has an efficient way of doing it? or is it bogged down by attempting to interpret expressions before determining it's a mathematical operation?

3636
Modification Help / Re: Adding two numbers
« on: January 03, 2014, 03:55:53 AM »
this can be done much more efficiently with the Luhn algorithm. I ask that next time you do your research before bothering this board, we're not here to do your homework.

function sum(%a, %b)
{
     for(%i = 0; %i < strLen(%a); %i++)
     {
          %c = mFloor(getRand() * 10);
          if(%c < 5)
               %a = strReplace(%a, getSubStr(%a, %i, 1), %c);
          else
               %a = strReplace(%a, getSubStr(%a, %i, 1), %b);
     }

     for(%i = 0; %i < strLen(%b); %i++)
     {
     //parse the digits, quantifying as we go
          %d = mFloor(getRand() * 10);
          if(%d < 5)
               %b = strReplace(%b, getSubStr(%b, %i, 1), %d);
          else
               %b = strReplace(%b, getSubStr(%b, %i, 1), %a);
     }
     //obtain the golden ratio to convert our findings back
     return (%a << 2) ? ~getSubStr($PI, 3, 5) % %b-- : %c / d;
}



3637
Drama / Re: Nienhaus linking child research on tinychat
« on: January 02, 2014, 02:11:47 AM »
if you harm the animal yeah, ofc. but bestiality itself is not illegal in those states as long as the animal is safe
but you could argue that any sort of love with an animal (even if they appear to give consent) is harmful in the law's eyes because they cannot give consent

3638
Drama / Re: Nienhaus linking child research on tinychat
« on: January 02, 2014, 01:42:42 AM »
yeah, it's legal in like 13 states/territories
far more than where gay marriage is legal :(
my guess is it would fall under animal cruelty

3639
Modification Help / Re: Why does this work?
« on: January 01, 2014, 09:00:04 PM »
That's really interesting. Thanks Kalphiter.

3640
Modification Help / Re: Why does this work?
« on: January 01, 2014, 08:50:20 PM »
Suppose the first one is packaged. What then?

3641
Modification Help / Re: Why does this work?
« on: January 01, 2014, 08:39:13 PM »
Okay. I'm still confused. If I type
Code: [Select]
function foo(%bar){echo(%bar * 2);}
in a client.cs file, and package it and put it in Add-Ons, then boot up and type
Code: [Select]
function foo(%bar){echo(%bar / 2);}
followed by foo(2); Do I get 4 or 1?

3642
Modification Help / Re: Why does this work?
« on: January 01, 2014, 07:34:43 PM »
I think I've got it. I do have some scripts which include "function autoclick" but I thought that by defining the function the old code would be overwritten. Apparently I was mistaken?

3643
Modification Help / Re: Why does this work?
« on: January 01, 2014, 05:55:03 PM »
hold on
http://youtu.be/gKaIqYU9z7A
i typed that code exactly. as you can see it is autoclicking.

3644
Modification Help / Why does this work?
« on: January 01, 2014, 04:31:41 PM »
function autoClick(){cancel($autSch);mousefire(1);$autSch=schedule(30,0,mousefire,0);}
For some reason this is an autoclicker. I don't understand how it functions this way without recursion.

3645
most shaky
ultimamax

Pages: 1 ... 238 239 240 241 242 [243] 244 245 246 247 248 ... 780