Skip to content

Instantly share code, notes, and snippets.

View rvsrvs's full-sized avatar

Ronald V. Simmons rvsrvs

View GitHub Profile
@izakpavel
izakpavel / LoadingIndicatorAppleEventStyle.swift
Created October 2, 2020 10:07
A loading indicator in the style of this years Apple Event animation. Created for the first #SwiftUIWeeklyChallenge
//
// ContentView.swift
// SwiftUIWeeklyChallenge01
//
// Created by @myridiphis on 02/10/2020.
//
// not very tidy, but enjoy changing many of magical constants
import SwiftUI

Differentiable Shallow Water PDE Solver

This repository contains source code of a shallow water partial differential equation (PDE) solver. The solver is written in differentiable Swift which allows end-to-end propagation of derivatives through time. In physics this kind of solution is traditionally called adjoint and it unlocks a new class of algorithms for optimal control of PDEs.

More details about the PDE and how to derive it from general Navier-Stokes equations can found for example on Wikipedia.

The following notebook demonstrates how the differentiability of the solver can be leveraged to solve an otherwise tricky optimal control problem.

Showcase.ipynb [![ColabBadge]][ShowcaseColabLink]

@lattner
lattner / TaskConcurrencyManifesto.md
Last active May 19, 2024 07:58
Swift Concurrency Manifesto