Swift in the Cloud
Published by
John Wiley & Sons, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256 www.wiley.com
Copyright 2017 by IBM Corporation. All rights reserved.
The following terms are trademarks or registered trademarks of IBM Corporation in the United States, other countries, or both: IBM, the IBM Press logo, DB2, AIX, WebSphere, Rational, IBM MobileFirst, Bluemix, z/OS, z Systems, IBM LinuxONE, CICS, and IMS. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. Other company, product, or service names may be trademarks or service marks of others. A current list of IBM trademarks is available on the web at copyright and trademark information as www.ibm.com/legal/copytrade.shtml.
Published by John Wiley & Sons, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-1-119-31937-5
ISBN: 978-1-119-36853-3 (ebk)
ISBN: 978-1-119-36847-2 (ebk)
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or website may provide or recommendations it may make. Further, readers should be aware that Internet websites listed in this work may have changed or disappeared between when this work was written and when it is read.
For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a
CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com.
Library of Congress Control Number: 2017946220
Trademarks: Wiley and the Wiley logo are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Swift is a trademark of Apple, Inc. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.
Karl would like to dedicate this book to his supportive wife, Samantha,
and their crazy kiddos, who still gave him enough time to write.
Leigh dedicates this book to his wife, Cheryl, always his compass
through life, and his daughter, Claire, the light of his life.
About the Authors
Leigh Williamson is an IBM Distinguished Engineer who has been working in the companys Austin, Texas lab since 1989, contributing to major software projects for IBM, including OS/2, DB2, AIX, Java, WebSphere, Rational, and MobileFirst products. He is currently leading a cross-disciplinary team of IBM Cloud Consultants who assist clients with cloud computing strategy and execution. Leigh is an active mentor and leader in the IBM technical community, working with international mentees; working in the Advanced Technical Eminence program; leading multiple patent brainstorming teams; publishing technical blogs and articles; conducting external broadcast webinars; and speaking at IBM and non-IBM conferences.
This is the fourth IBM Press book on which Leigh has collaborated over the past 15 years, with works covering Java standards, WebSphere Application Server, and enterprise-class mobile application development. He holds a B.S. in Computer Science from Nova University and an M.S. in Computer Engineering from The University of Texas at Austin.
You can follow Leigh on Twitter at @leighawillia. His LinkedIn address is https://www.linkedin .com/in/leigh-williamson-9048654.
John Ponzo is an IBM Fellow and Chief Technology Officer for Mobile who has shaped the future of IBM business in mobile computing and delivered innovative products and services to web browser and server-based standards. He is a pioneer in technology that promotes end-user interaction through mobility, web programming, web application middleware, and software tools. John led the development of key software technologies including HTML/JavaScript runtime libraries, XML middleware, web services runtime libraries, Eclipse Web Integration, and Web 2.0 enterprise collaboration services. He also authored the Enterprise Mobile and the Mobile First theses that are the cornerstone of mobile strategy and execution at IBM. John also serves as the IBM technology ambassador to Kenya.
John is the primary technical collaborator between Apple and IBM in the effort to define and enhance the Swift programming language for both mobile client development and cloud services development.
Patrick Bohrer is a Distinguished Engineer in the IBM Cloud division. His responsibilities include serving as the technical lead for the companys global efforts around Swift@IBM (developer.ibm .com/swift). He formerly served as the technical lead of the Mobile Innovation Lab in Austin, Texas. Patrick also helped lead IBM Researchs Mobile Research agenda after co-leading the 2012 Global Technology Outlook topic entitled Mobile First, which helped set the technical direction for current mobile and cloud efforts at IBM. Patrick received a B.A in Computer Science from The University of Texas at Austin.
Karl Weinmeister is the Program Director for Engineering, based in Austin, Texas. He is passionate about improving peoples lives and experiences with technology. In his role, he has helped to enable Swift to extend from its mobile roots to become a full-stack language ecosystem.
Previously, Karl led engineering for the IBM Mobile Innovation Lab. He is a diehard Duke basketball fan and enjoys spending time with his family.
Next page