Skip to content

Instantly share code, notes, and snippets.

View lorentey's full-sized avatar
⚙️

Karoy Lorentey lorentey

⚙️
View GitHub Profile
@xwu
xwu / user-experience-of-new-integer-protocols.md
Last active August 3, 2017 02:07
Notes on the user experience of new integer protocols

Notes on the user experience of new integer protocols

Xiaodi Wu
June 17, 2017

Introduction

The design, re-design, and implementation of [SE-0104][1], a proposal to revise integer protocols in Swift, is now largely complete in shipping previews of Swift 4. As an exercise, I have used the new APIs to develop a [set of additional numeric facilities][2]. Here are some insights gained from that experience--and from two unpublished exercises to implement a BigInt type (one from scratch, one wrapping GMP)--as well as suggestions for improvement.