Commit Graph

2929 Commits

Author SHA1 Message Date
Holly Borla
0c00d45d53 [CSDiag] Remove CalleeCandidateInfo::diagnoseSimpleErrors, which is
dead code now.
2020-01-22 10:57:52 -08:00
Holly Borla
86cf6dc03e [ConstraintSystem] Finish porting member failure diagnostics.
Remove special cases for AnyObject member and dynamic member lookup
failures - these are now all handled in the new diagnostic
infrastructure.
2020-01-22 10:57:52 -08:00
Richard Wei
dfb6f2078b [Docs] [AutoDiff] Allow implicitly inherited '@differentiable' on non-public declarations.
Currently, when a conforming type implements a `@differentiable` protocol requirement, the corresponding conforming implemnetation is required to have at least a `@differentiable` that covers all differentiability parameters in the protocol requirement.  However, this is not a great design for usability because developers almost always start with missing `@differentiable` and getting an compilation error.  This also makes ML models built with libraries that use differentiable programming more verbose than those built with other ML frameworks.

We agreed during this Friday's design review to allow `@differentiable` to be implicitly inherited from protocols when the conforming implementation is non-public.
2020-01-18 20:39:59 -08:00
swift-ci
1b0eee95e7 Merge pull request #28925 from apple/derivative-registration-typing-rules 2020-01-18 20:38:19 -08:00
Richard Wei
2a13bb0432 Remove duplicate paragraph. 2020-01-18 18:53:33 -08:00
Richard Wei
b5912e8267 Add missing 'T == T.TangentVector' requirement. 2020-01-18 18:50:50 -08:00
Richard Wei
893dd36327 Fix typo: 'foo' -> 'sinf' 2020-01-18 18:43:50 -08:00
Richard Wei
6df28a2816 Clarify the use of parameter indices and self. 2020-01-18 18:42:53 -08:00
Ross Bayer
bb4e5fe86b [Python: flake8] Appease the utils/python_lint.py script. 2020-01-17 01:03:20 -08:00
Mishal Shah
6126fdbe3c Merge pull request #29125 from apple/hyp-patch-1
Mention where LLVM commits should go to in the branches document
2020-01-15 01:18:42 -08:00
Pavel Yaskevich
20443ad923 Merge pull request #29166 from xedin/port-array-dict-literal-diagnostics
[Diagnostics] Port diagnostics for array/dictionary literals
2020-01-13 16:40:32 -08:00
Pavel Yaskevich
07865c7948 [TypeChecker.rst] NFC: Mark that array/dictionary diagnostics have been ported 2020-01-13 12:42:48 -08:00
Dan Zheng
d8d0f902fc [Docs] [AutoDiff] Fix typos in differentiable programming manifesto.
Add sections:
- Effect on ABI stability
- Effect on API resilience

These sections were incorrectly formatted when converting the doc to Markdown.
2020-01-13 06:53:38 -08:00
Alex Lorenz
9c9528ab1d Mention specifically the Swift/vs non Swift llvm-project changes 2020-01-10 13:13:38 -08:00
Alex Lorenz
8b3cdb4b12 Mention where LLVM commits should go to in the branches document 2020-01-10 11:31:35 -08:00
Pavel Yaskevich
66fe1ec2b2 Merge pull request #29053 from xedin/port-ternary-diags
[Diagnostics] Detect and diagnose ternary branch type mismatches
2020-01-08 00:27:32 -08:00
Pavel Yaskevich
f85dfbb95a [TypeChecker.rst] NFC: Mark that if/ternary diagnostics have been ported 2020-01-07 13:50:53 -08:00
Saleem Abdulrasool
ab11bb68cd docs: remove unused file 2020-01-07 10:05:15 -08:00
yostane
8c2854f8f2 Added more details to "Building Swift on Windows" (#28496)
* Added more details to "Building Swift on Windows"
2020-01-07 10:03:43 -08:00
Saleem Abdulrasool
e3b58be4e7 Merge pull request #28997 from compnerd/git-cannot-be-subverted
docs: remove GitWorkflows
2020-01-05 09:38:16 -08:00
Cruz
3fda9059e1 [Docs] Update TypeChecker.rst document with lower cased of optional case 2020-01-04 14:01:31 +09:00
Saleem Abdulrasool
78de8f959d docs: remove GitWorkflows
The Swift project has entirely migrated to GitHub for development.  This
document covering the migration aspects of subversion are no longer
really relevant.  Prune the obsoleted documentation.
2020-01-03 13:51:40 -08:00
Saleem Abdulrasool
f3a264df0c Merge pull request #28969 from breandan/patch-1
Fix broken link
2020-01-02 12:10:32 -08:00
Robert Widmann
67b6afbe59 Merge pull request #28976 from kastiglione/patch-1
Minor syntax updates to OptimizationTips
2020-01-02 14:01:37 -05:00
Dave Lee
daadc3763d Minor syntax updates to OptimizationTips 2020-01-02 08:37:34 -08:00
Austin Conlon
efb5e1e70b Fix outdated mention of Bug Reporter
Bug Reporter is now Feedback Assistant.
2020-01-01 07:45:13 -08:00
breandan
03fbf6598c Fix broken link 2019-12-30 06:38:02 -05:00
Richard Wei
a8e233fe47 [Docs] [AutoDiff] Add derivative/transpose registration typing rules. 2019-12-22 12:21:35 -08:00
Prashant Rane
7466aa5f34 Fix a typo in ${NEW} variable in Post-processing tools for diagnostics section
While reading up I realized there is a typo in: `how to use  utils/process-stats-dir.py`. The example asks to use OLD and NEW compiler but the documentation uses only ${OLD} compiler in example
2019-12-14 16:26:55 +05:30
swift-ci
9424f44ac8 Merge pull request #28768 from rxwei/correct-ad-builtins 2019-12-13 02:31:50 -08:00
Richard Wei
d4eb63fa03 [Docs] [AutoDiff] Correct AD builtins.
* `Builtin.autodiffApply*` has been renamed to `Builtin.applyDerivative*`.
  * The reason I'm not adding `_jvp` is because there will no longer be `_vjp`, which will make this suffix entirely unnecessary.
* The transpose application builtin is named `Builtin.applyTranspose*`.
2019-12-12 23:09:06 -08:00
Richard Wei
aa5ad262d6 Update docs/DifferentiableProgramming.md
Co-Authored-By: Bart Chrzaszcz <bart.chr@gmail.com>
2019-12-12 15:29:45 -08:00
Richard Wei
b40f076c1e Update docs/DifferentiableProgramming.md
Co-Authored-By: Bart Chrzaszcz <bart.chr@gmail.com>
2019-12-12 14:33:18 -08:00
Richard Wei
df68958ee8 Address review feedback. 2019-12-12 13:47:13 -08:00
Richard Wei
ec887ccdd7 Fix mis-reverted merge. 2019-12-12 13:38:39 -08:00
Richard Wei
e3b129efc7 Fix typo. 2019-12-12 13:37:48 -08:00
Richard Wei
be21aaf64b Merge branch 'master' of github.com:apple/swift into default-derivative 2019-12-12 13:36:31 -08:00
Richard Wei
f5d304c6ec [Docs] [AutoDiff] Add default derivative subsection and fix minor issues. 2019-12-12 13:33:10 -08:00
Dan Zheng
25bb2ca001 [Docs] [AutoDiff] Fix typos in differentiable programming manifesto.
- `@differential(linear)` -> `@differentiable(linear)`
- Fix derivative registration for `ElementaryFunctions` requirements.
2019-12-12 00:07:49 -08:00
Saleem Abdulrasool
49c26c295a Merge pull request #28722 from compnerd/spm-docs
docs: Update WindowsBuild.md
2019-12-11 18:58:40 -08:00
Saleem Abdulrasool
87cc554d5b docs: Update WindowsBuild.md
Improve rules for swiftpm and tsc builds.
2019-12-11 15:43:12 -08:00
Richard Wei
fb38f92eaa [Docs] [AutoDiff] Fix incorrectly rendered table and dead link 2019-12-11 15:16:17 -08:00
Richard Wei
e5935fba6c [Docs] [AutoDiff] Move higher-order functions out of future directions.
Differentiating higher-order functions is no longer a future direction, as the theory paper ([The Differentiable Curry](https://www.semanticscholar.org/paper/The-Differentiable-Curry-Plotkin-Brain/187078bfb159c78cc8c78c3bbe81a9176b3a6e02)) is now public.
2019-12-10 19:28:23 -08:00
Holly Borla
edb4e70d66 Merge pull request #28600 from hborla/tuple-mismatch-diagnostics
[ConstraintSystem] Port tuple type mismatch diagnostics
2019-12-09 13:26:34 -08:00
Pavel Yaskevich
cb8177e06b [TypeChecker.rst] NFC: Mark that @dynamicCallable diagnostics have been ported 2019-12-06 16:43:18 -08:00
Holly Borla
ff53718c6b [Docs] Remove visitTupleExpr from the New Diagnostic Architecture
to-do list.
2019-12-06 13:12:57 -08:00
Pavel Yaskevich
35c437b9c1 [TypeChecker.rst] NFC: Mark that diagnoseClosureExpr has been ported 2019-12-04 14:25:36 -08:00
swift-ci
fcfd555a23 Merge pull request #28522 from dan-zheng/docs 2019-12-02 14:43:16 -08:00
swift-ci
f4002c80ea Merge pull request #19735 from kevints/SR-8925 2019-12-02 13:15:24 -08:00
Dan Zheng
51ebf99f5d [Docs] Fix typos in differentiable programming manifesto.
- Fix `Sequential` function builder usage.
- Fix grammatical error.
- `powerful machine learning` -> `expressive machine learning`
2019-12-02 12:39:50 -08:00