Skip to content

Instantly share code, notes, and snippets.

@lattner
lattner / lifetimes-keyword-renaming.md
Last active December 4, 2024 06:15
Resyntaxing argument conventions and References

Resyntaxing argument conventions and References

Date: October 2024

Previous revision: [June 2023]

The design of the Mojo references subsystem is starting to come together. To finalize the major points, it helps to come back and re-evaluate several early decisions in Mojo to make the design more self consistent. This is a proposal to gain consensus and alignment on naming topics, etc without diving deep into

@lattner
lattner / LLVMDecisionMaking.md
Last active May 24, 2020 22:31
[PITCH] Improvements to LLVM Decision Making

MOVED

This doc has been moved to A Google doc to allow easier commenting and collaboration.

@lattner
lattner / TaskConcurrencyManifesto.md
Last active December 20, 2024 19:52
Swift Concurrency Manifesto
@lattner
lattner / async_swift_proposal.md
Last active December 9, 2024 06:26 — forked from oleganza/async_swift_proposal.md
Concrete proposal for async semantics in Swift

Async/Await for Swift

Introduction

Modern Cocoa development involves a lot of asynchronous programming using closures and completion handlers, but these APIs are hard to use. This gets particularly problematic when many asynchronous operations are used, error handling is required, or control flow between asynchronous calls gets complicated. This proposal describes a language extension to make this a lot more natural and less error prone.

This paper introduces a first class Coroutine model to Swift. Functions can opt into to being async, allowing the programmer to compose complex logic involving asynchronous operations, leaving the compiler in charge of producing the necessary closures and state machines to implement that logic.