
-----------------------------------
copthesaint
Sun May 30, 2010 3:44 pm

Unchecked
-----------------------------------
Description: OOT adds the concept of "unchecked" to Turing. Here, you can request that certain run time tests, which take place by default, can be eliminated. This makes the program more efficient at the risk of unreliability. 

Im just wondering, since I have never came across this, what are the +itive and -itive sides of using unchecked in turing?

-----------------------------------
DemonWasp
Sun May 30, 2010 10:01 pm

RE:Unchecked
-----------------------------------
Positive: you can skip array-out-of-bounds checks and the like, making your program faster.

Negative: if things don't work quite right, your program could segfault and just die instead of crashing like normal.

-----------------------------------
copthesaint
Mon May 31, 2010 9:06 am

RE:Unchecked
-----------------------------------
Now when you say 'die' What do you mean? lol

-----------------------------------
DemonWasp
Mon May 31, 2010 11:10 am

RE:Unchecked
-----------------------------------
When a program written in Turing crashes (well, when it generates an exception), the Turing IDE or built-in Turing interpreter in a "compiled" program will catch that exception, alert the user, and gracefully terminate the program, releasing file handles, network sockets, and so forth.

When an unchecked program written in Turing crashes, it could crash "hard", meaning it might leave file handles and sockets and so forth to be cleaned by the operating system. The program's run window would also disappear without a message to the user, unless the operating system chooses to display one. What's happening in this case is that the operating system has detected the fault instead of Turing, and has terminated the process. This isn't an acceptable way for a program to close, EVER.

-----------------------------------
copthesaint
Mon May 31, 2010 5:06 pm

RE:Unchecked
-----------------------------------
ok, but using unchecked will make it faster right? ;p

-----------------------------------
Tony
Mon May 31, 2010 6:45 pm

RE:Unchecked
-----------------------------------
That's not something you'd need to worry about with Turing ;)

-----------------------------------
DemonWasp
Mon May 31, 2010 9:44 pm

RE:Unchecked
-----------------------------------
Making your program unchecked will make it (somewhat) faster.

You'd still be better off re-writing your program in pretty well any other language known to mankind - there's only one language I've ever seen be slower than Turing and that's a fixed problem now.

Seriously. Go learn Python, Java, C, C++, Perl, Ruby, HTML/Javascript or any other language ever.
