Swift’s value types are almost able to represent algebraic data types. Unfortunately, they fall short of the mark when it comes to recursion, and while they’ve announced that their solution, indirect cases, will ship in a later build of Swift 2, there’s still reason to want them today.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Rob Rix
On the Order of Neptune
Inscribe the orbit of Neptune in a square. Now, take a pair of integers as x and y coordinates across this square. Their size in bits determines the resolution at which they can measure this square. An integer of n bits can hold any of 2ⁿ distinct values. 32-bit integers, therefore, would divide the square into a grid of 2³² points. At 32 bits of resolution, adjacent coordinates, e.g. …0101 and …0110, are about a kilometre apart on our square.
Duality
The rules for a variety of polarized classical connectives, in a focused sequent calculus presentation to reflect a variety of dualities, and interpreted via Curry-Howard.
When Howard Met Curry
The Curry-Howard correspondence is a map for moving between logic and type theory, relating propositions with types and proofs with programs. It describes a two-way street, and we can freely move between the two worlds, or perhaps merely two perspectives, so long as we follow the map. Sometimes the road takes us to unexpected places. Here’s a trip I’ve been on recently. Double negation I’ve been working on a language named sequoia, which embeds polarized classical logic in Haskell.
All you need is λ, part one: booleans
Nearly a century ago, Alonzo Church invented the simple, elegant, and yet elusive lambda calculus. Along with Alan Turing, he then proved the Church-Turing thesis: that anything computable with a Turing machine can also be computed in the lambda calculus.
Sequent calculus cheat sheet
Rules for sequent calculus connectives, formatted as a cheat sheet.
Sequent Calculi and Metacircularity
Sequent calculi are powerful and flexible tools for studying logic and, via Curry-Howard, computation. But why, and how? Where does this power come from? We enjoy a variety of idioms to describe the relationship between problems and solutions. For example: “use the right tool for the job,” and “a good impedance match.” Where sequent calculi offer a good impedance match, it may in part be because of how they model the logical primitives and principles we build atop them.
Fighting Fraud with Minimal Tools and Resources
Tina VanBrunt, Alex Butler, and Rob Rix - Big Fish Games; Dan Miller Presentation Smaller, more recently established companies may lack the dedicated developer resources to develop a suite of fraud investigation tools. Big Fish Games shares insights on using solutions such as Excel, SQL, Visual Basic, and scripts to drill down to repeat attributes and catch the worst offenders.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Rob
Contact Rob, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack