ARC runtime improvment in Swift 4.2

WWDC Session 401

Great news from Slava.

So in Swift 4.2 we changed the calling convention so that it was no longer the callee’s obligation to release the object. This means all these retains and releases go away, which is a significant reduction in retained release traffic.

That’s cool. Everything is getting more effective and beautiful. Due to the fact I had some time to open XCode now I have one more topic to think about.


Here is my mega-code regarding this enhancement

. . .

Security Mechanisms Provided by iOS9

I hope, some of this information will protect you from making common mistakes during development for iOS9+. You will not find here any detailed instructions. But some topics can stimulate you to go deep within new knowledge.

I’ll also provide a small part of theoretical base of cryptography. For those who are not aware about details – it will be a good point to get new knowledge and to google for new terms. For others – just to refresh.

Theory & History & Good to know

Let’s talk about cryptography base. This science is based on Integer Number Theory, Finite Fields and Probability Theory.

In current context we should also define a term – Negligibility.

In crypto, we consider probabilities that are negligible to be too small to matter. That means if an attack works only with negligible probability, then we consider that attack to be unsuccessful.

Next term we should keep in mind – is PRNG – Pseudorandom number generator or Deterministic Random Bit Generator. The output of PRNG sequence is not truly random. It can be implemented via software algorithms or hardware. Actually the last one can give output much more closer to truly random with higher generation speed.

Negligibility and PRNG – is the foundation of crypto algorithms. And let’s take a look on one old method called OTP (One-time pad).

The main distinct property – is ...

. . .