6/21/2023 0 Comments Compiling code in xcode 10![]() Advanced language features usually let us do more by writing less and very expressive code. Most of the time, these advanced features save software development boutiques enormous amounts of time and resources. Sure, once in a while you’ll have a use case where advanced code features don’t pay off, i.e., code is badly written or not used for the intended purpose. There are costs to these high-level features, but I would argue that in most cases, language compiler optimizations, operating systems enhancements, and faster hardware (like solid state drives and multi-core processors), make up for the costs. Do we realize that there are great tools like Xcode Instruments that help us find awkward implementations of these techniques and give us the opportunity to come up with our own optimizations? Yes. ![]() So do we give up all hope or do we accept the fact that compiler designers have come up with brilliant optimizations that ameliorate the use of such high-level technologies? We should believe in Swift’s compiler designers. On a subconscious level, the curmudgeons don’t understand these technologies. On a conscious level, the curmudgeons usually reject these technique because of their supposed “massive” performance cost. ![]() I still run across curmudgeons who flat out reject techniques like object-oriented programming (especially inheritance and polymorphism), protocols and protocol-oriented programming (especially composition), generics, and closures.
0 Comments
Leave a Reply. |