Author: Chris Lattner
Papers I like Pt. 1 Papers I like Pt. 2
Let's start meta:
- Lamport - State the Problem Before Describing the Solution (1978). … 1-page memo. Read it.
- Herlihy - Wait-free synchronization (1991) … Truly seminal. Lucid + enough good ideas for 4 papers easily.
- Cook - How complex systems fail (1998) … 4 pages that anyone working on/with complex systems should read.
extension Dictionary { | |
func map<K: Hashable, V>(_ transform: (Element) throws -> (key: K, value: V)) rethrows -> [K : V] { | |
var transformed = [K : V]() | |
for pair in self { | |
let transformedPair = try transform(pair) | |
transformed[transformedPair.key] = transformedPair.value | |
} | |
return transformed |
This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
- ReactSwift by @ColinEberhardt
- https://github.com/ColinEberhardt/ReactSwift
This is a reference of all the useful links to follow my UIKonf'17 talk on Code Generation in Swift
- Slides on SpeakerDeck
- Keynote Live URL
- All the other files in this GIST contains the code snippets I used in my slides, referenced by slide number.
class Number /* class cluser */ { | |
class Int8: Number { | |
var value: Swift.Int8 | |
init(_ value: Swift.Int8) { self.value = value } | |
} | |
class Int: Number { | |
var value: Swift.Int | |
init(_ value: Swift.Int) { self.value = value } | |
} |
/** | |
* Copyright (c) John Sundell 2017 | |
* Licensed under the MIT license | |
*/ | |
import Foundation | |
import XCTest | |
/** | |
* Assert that an expression throws a given error |
Purpose of this list is to gather a source of information on how many people are working on iOS application.
I often wonder how many people are behind Facebook's app or Twitter's. If you're as curious as me, please share and please add apps 😉.
*
- it's a rumoured value only. Needs confirmation from someone inside the company.
- Fishbrain - 3
- Artsy - 5
- Truecaller - 5
- Lifesum - 4 or 5
- Spotify - 50*
/* | |
Code below can be run directly into LINQPad - https://www.linqpad.net/ | |
Return the owner and repo name of the most starred project with more than 100 contributors, for each language | |
The declarative implementation can be solved using the Select, Where, Aggregate and GroupBy LINQ extension methods | |
*/ | |
void Main() | |
{ | |
var repos = new List<Repo> { |
Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x