[swift-dev] [Swift CI] Build Failure: OSS - Swift Package - Ubuntu 14.04 (master) #280

2017-02-17 Thread no-reply--- via swift-dev
Title: Report


  
  
 
 

 [FAILURE] oss-swift-package-linux-ubuntu-14_04 [#280] 


  Build URL:https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/280/
  Project:oss-swift-package-linux-ubuntu-14_04
  Date of build:Fri, 17 Feb 2017 17:54:06 -0800
  Build duration:14 min


Identified problems:Compile Error: This build failed because of a compile error. Below is a list of all errors in the build log:Indication 1




  





  Changes
  

  Commit eae044c07d684a07c9c39dc5da09d43a3704bd76 by jgroff: Sema: Type-check initializer delegation as a covariant _expression_.


  add: test/decl/init/delegate-to-c-func-imported-as-member.swift

  add: test/decl/init/Inputs/c-func-member-init.h

  add: test/decl/init/nonnull-delegate-to-nullable-in-base-class.swift

  edit: lib/AST/Expr.cpp

  edit: lib/SILOptimizer/Mandatory/DIMemoryUseCollector.cpp

  edit: lib/Sema/CSApply.cpp


  
 

  Commit 8fc40ba57822de3ababe2213f86589b6ebf0d024 by jgroff: SILGen: Use unchecked_ref_cast to adjust covariant returns in thunks.


  edit: lib/SILGen/SILGenPoly.cpp

  add: test/SILGen/witness-init-requirement-with-base-class-init.swift


  
 

  Commit 431b7ff2af8e3a762ba0202c4a377a8577bd8f55 by dfarler: [Syntax] Add Equal '=' token location to TypeAliasDecl


  edit: lib/AST/Decl.cpp

  edit: lib/ClangImporter/ImportDecl.cpp

  edit: include/swift/AST/Decl.h

  edit: lib/AST/Module.cpp

  edit: lib/IRGen/IRGenDebugInfo.cpp

  edit: lib/Parse/ParseDecl.cpp

  edit: lib/Sema/TypeCheckProtocol.cpp

  edit: lib/Serialization/Deserialization.cpp


  
 

  Commit 7ee42994c85c3a3b61e75513aafa2c9962977bfa by dfarler: Start the Syntax library and optional full token lexing


  edit: lib/IDE/SyntaxModel.cpp

  add: lib/Syntax/SyntaxData.cpp

  add: tools/swift-format/swift-format.cpp

  add: tools/swift-format/CMakeLists.txt

  add: include/swift/Syntax/SyntaxData.h

  add: lib/Sema/Semantics.cpp

  add: include/swift/Basic/OwnedString.h

  add: include/swift/Syntax/Rewriter.h

  add: include/swift/Syntax/TypeSyntax.h

  edit: lib/AST/ASTPrinter.cpp

  edit: lib/Parse/ParseExpr.cpp

  add: unittests/Syntax/DeclSyntaxTests.cpp

  edit: tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp

  add: lib/Syntax/TokenSyntax.cpp

  edit: lib/CMakeLists.txt

  edit: unittests/CMakeLists.txt

  add: include/swift/Syntax/StmtSyntax.h

  add: lib/Syntax/README.md

  edit: lib/IDE/CodeCompletionResultBuilder.h

  add: include/swift/Syntax/LegacyASTTransformer.h

  add: include/swift/Syntax/GenericSyntax.h

  add: lib/Syntax/StmtSyntax.cpp

  add: lib/Syntax/Trivia.cpp

  edit: lib/IDE/CodeCompletion.cpp

  add: lib/Syntax/TypeSyntax.cpp

  edit: include/swift/IDE/CodeCompletion.h

  edit: lib/Parse/Lexer.cpp

  add: lib/Syntax/RawSyntax.cpp

  add: unittests/Syntax/GenericSyntaxTests.cpp

  edit: include/swift/Subsystems.h

  edit: lib/Sema/CMakeLists.txt

  edit: tools/CMakeLists.txt

  add: lib/Syntax/LegacyASTTransformer.cpp

  edit: lib/Parse/CMakeLists.txt

  add: include/swift/Sema/Semantics.h

  add: include/swift/Syntax/Trivia.h

  add: include/swift/Syntax/DeclSyntax.h

  add: include/swift/Syntax/Format.h

  add: include/swift/Syntax/SyntaxKinds.def

  edit: lib/AST/RawComment.cpp

  add: include/swift/Syntax/RawSyntax.h

  add: tools/swift-syntax-test/CMakeLists.txt

  add: lib/Syntax/CMakeLists.txt

  edit: unittests/Parse/TokenizerTests.cpp

  add: include/swift/Syntax/TokenKinds.h

  add: lib/Syntax/Format.cpp

  add: include/swift/Syntax/References.h

  add: lib/Syntax/Syntax.cpp

  add: unittests/Syntax/TypeSyntaxTests.cpp

  edit: include/swift/AST/ASTVisitor.h

  add: unittests/Syntax/RawSyntaxTests.cpp

  add: include/swift/Syntax/TokenKinds.def

  add: include/swift/Syntax/TokenSyntax.h

  add: lib/Syntax/GenericSyntax.cpp

  edit: lib/AST/Expr.cpp

  edit: lib/Parse/Parser.cpp

  edit: include/swift/Parse/Lexer.h

  add: unittests/Syntax/CMakeLists.txt

  add: include/swift/Syntax/SyntaxFactory.h

  edit: lib/Sema/TypeChecker.cpp

  add: lib/Syntax/DeclSyntax.cpp

  add: tools/swift-syntax-test/swift-syntax-test.cpp

  add: include/swift/Syntax/Syntax.h

  delete: include/swift/Parse/Tokens.def

  edit: include/swift/Parse/Token.h

  add: unittests/Syntax/StmtSyntaxTests.cpp

  edi

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 - Long Test (master) #1102

2017-02-17 Thread David Farler via swift-dev
Should be good now. - DF
> On Feb 17, 2017, at 3:51 PM, David Farler via swift-dev  
> wrote:
> 
> This is me, I have the fix.
> 
> David
> 
>> On Feb 17, 2017, at 3:46 PM, no-re...@swift.org  
>> wrote:
>> 
>> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04-long-test [#1102]
>> 
>> Build URL:   
>> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04-long-test/1102/
>>  
>> 
>> Project: oss-swift-incremental-RA-linux-ubuntu-14_04-long-test
>> Date of build:   Fri, 17 Feb 2017 15:30:03 -0800
>> Build duration:  16 min
>> Identified problems:
>> 
>> Compile Error: This build failed because of a compile error. Below is a list 
>> of all errors in the build log:
>> Indication 1 
>> 
>> Changes
>> 
>> Commit 431b7ff2af8e3a762ba0202c4a377a8577bd8f55 by dfarler:
>> [Syntax] Add Equal '=' token location to TypeAliasDecl
>> 
>> edit: include/swift/AST/Decl.h
>> edit: lib/IRGen/IRGenDebugInfo.cpp
>> edit: lib/Sema/TypeCheckProtocol.cpp
>> edit: lib/Parse/ParseDecl.cpp
>> edit: lib/AST/Module.cpp
>> edit: lib/AST/Decl.cpp
>> edit: lib/Serialization/Deserialization.cpp
>> edit: lib/ClangImporter/ImportDecl.cpp
>> 
>> Commit 7ee42994c85c3a3b61e75513aafa2c9962977bfa by dfarler:
>> Start the Syntax library and optional full token lexing
>> 
>> delete: include/swift/Parse/Tokens.def
>> edit: include/swift/IDE/CodeCompletion.h
>> edit: include/swift/AST/ASTVisitor.h
>> add: unittests/Syntax/RawSyntaxTests.cpp
>> edit: lib/IDE/SyntaxModel.cpp
>> edit: lib/CMakeLists.txt
>> add: unittests/Syntax/CMakeLists.txt
>> add: include/swift/Syntax/StmtSyntax.h
>> edit: unittests/CMakeLists.txt
>> add: lib/Syntax/Format.cpp
>> add: unittests/Syntax/DeclSyntaxTests.cpp
>> edit: lib/Sema/CMakeLists.txt
>> add: include/swift/Syntax/GenericSyntax.h
>> add: include/swift/Syntax/TokenSyntax.h
>> add: include/swift/Syntax/Format.h
>> add: include/swift/Syntax/TypeSyntax.h
>> add: include/swift/Syntax/LegacyASTTransformer.h
>> add: unittests/Syntax/StmtSyntaxTests.cpp
>> add: include/swift/Syntax/SyntaxData.h
>> edit: lib/IDE/CodeCompletionResultBuilder.h
>> add: tools/swift-syntax-test/CMakeLists.txt
>> add: lib/Syntax/SyntaxData.cpp
>> add: lib/Syntax/CMakeLists.txt
>> add: lib/Syntax/RawSyntax.cpp
>> add: include/swift/Syntax/TokenKinds.def
>> add: tools/swift-format/swift-format.cpp
>> add: unittests/Syntax/GenericSyntaxTests.cpp
>> add: include/swift/Basic/OwnedString.h
>> edit: tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp
>> add: lib/Syntax/GenericSyntax.cpp
>> add: include/swift/Syntax/Rewriter.h
>> edit: lib/AST/RawComment.cpp
>> add: include/swift/Syntax/RawSyntax.h
>> add: lib/Syntax/Trivia.cpp
>> add: lib/Syntax/TypeSyntax.cpp
>> edit: lib/IDE/CodeCompletion.cpp
>> add: tools/swift-syntax-test/swift-syntax-test.cpp
>> edit: lib/AST/Expr.cpp
>> add: include/swift/Syntax/Syntax.h
>> add: unittests/Syntax/TypeSyntaxTests.cpp
>> edit: include/swift/Parse/Lexer.h
>> edit: unittests/Parse/TokenizerTests.cpp
>> add: lib/Syntax/StmtSyntax.cpp
>> add: include/swift/Syntax/SyntaxKinds.def
>> add: include/swift/Syntax/Trivia.h
>> add: lib/Sema/Semantics.cpp
>> edit: lib/Sema/TypeChecker.cpp
>> edit: lib/Parse/Lexer.cpp
>> add: include/swift/Syntax/TokenKinds.h
>> edit: include/swift/AST/Expr.h
>> add: lib/Syntax/DeclSyntax.cpp
>> edit: lib/AST/ASTPrinter.cpp
>> add: lib/Syntax/README.md
>> add: lib/Syntax/Syntax.cpp
>> add: include/swift/Syntax/SyntaxFactory.h
>> edit: lib/Parse/ParseExpr.cpp
>> edit: include/swift/Subsystems.h
>> add: lib/Syntax/SyntaxFactory.cpp
>> edit: lib/Parse/Parser.cpp
>> add: include/swift/Syntax/DeclSyntax.h
>> edit: include/swift/Parse/Token.h
>> add: lib/Syntax/TokenSyntax.cpp
>> add: lib/Syntax/LegacyASTTransformer.cpp
>> add: include/swift/Sema/Semantics.h
>> edit: tools/CMakeLists.txt
>> add: tools/swift-format/CMakeLists.txt
>> add: include/swift/Syntax/References.h
>> edit: lib/Parse/CMakeLists.txt
>> 
>> Commit a6df054ae0ed3868cd4542a242513234324f9c9a by dfarler:
>> [Syntax] Add README.md for lib/Syntax
>> 
>> edit: lib/Syntax/README.md
>> 
>> Commit 9627c5eafd482193dec23a6cb013323b5d894a2b by dfarler:
>> [Syntax] Add Status.md document
>> 
>> add: lib/Syntax/Status.md
>> 
>> Commit 71346dc5c1a4424d1e7d9ef3247a2c982c132564 by dfarler:
>> [Syntax] Add round-trip syntax test driver and stdlib roundtrip test
>> 
>> edit: test/CMakeLists.txt
>> edit: tools/swift-syntax-test/swift-syntax-test.cpp
>> add: utils/round-trip-syntax-test
>> edit: test/lit.cfg
>> add: test/Syntax/round_trip_stdlib.swift
>> edit: lib/Syntax/LegacyASTTransformer.cpp
>> 
>> Commit 935a54bace1dd5031f7badd8fd8275c82d793432 by shajrawi:
>> Opaque values: fix a bug in ResultPlanBuilder + support for-each loops
>> 
>> edit: lib/SILGen/SILGenApply.cpp

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.04 (master) #1807

2017-02-17 Thread David Farler via swift-dev
OK - we should be all fixed up now. Sorry for the noise.

David

> On Feb 17, 2017, at 4:29 PM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-16_04 [#1807]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/1807/ 
> 
> Project:  oss-swift-incremental-RA-linux-ubuntu-16_04
> Date of build:Fri, 17 Feb 2017 15:31:35 -0800
> Build duration:   58 min
> Identified problems:
> 
> Regression test failed: This build failed because a regression test in the 
> test suite FAILed. Below is a list of all errors:
> Indication 1 
> 
> Tests:
> 
> Name: Swift(linux-x86_64)
> Failed: 1 test(s), Passed: 8982 test(s), Total: 8983 test(s)
> Failed: Swift(linux-x86_64).swift-format.main.swift 
> 
> Name: Swift-Unit
> Failed: 0 test(s), Passed: 332 test(s), Total: 332 test(s)
> 
> Changes
> 
> Commit 431b7ff2af8e3a762ba0202c4a377a8577bd8f55 by dfarler:
> [Syntax] Add Equal '=' token location to TypeAliasDecl
> 
> edit: lib/ClangImporter/ImportDecl.cpp
> edit: lib/Parse/ParseDecl.cpp
> edit: lib/Serialization/Deserialization.cpp
> edit: include/swift/AST/Decl.h
> edit: lib/IRGen/IRGenDebugInfo.cpp
> edit: lib/AST/Module.cpp
> edit: lib/AST/Decl.cpp
> edit: lib/Sema/TypeCheckProtocol.cpp
> 
> Commit 7ee42994c85c3a3b61e75513aafa2c9962977bfa by dfarler:
> Start the Syntax library and optional full token lexing
> 
> add: include/swift/Syntax/Rewriter.h
> edit: lib/AST/ASTPrinter.cpp
> edit: lib/Parse/Lexer.cpp
> add: unittests/Syntax/CMakeLists.txt
> edit: include/swift/AST/Expr.h
> add: lib/Syntax/Format.cpp
> add: lib/Syntax/README.md
> edit: lib/AST/Expr.cpp
> add: tools/swift-format/CMakeLists.txt
> add: include/swift/Syntax/SyntaxData.h
> add: unittests/Syntax/StmtSyntaxTests.cpp
> add: include/swift/Syntax/LegacyASTTransformer.h
> add: lib/Syntax/Syntax.cpp
> add: lib/Syntax/TokenSyntax.cpp
> add: lib/Syntax/Trivia.cpp
> edit: include/swift/Parse/Lexer.h
> add: unittests/Syntax/DeclSyntaxTests.cpp
> edit: lib/IDE/CodeCompletionResultBuilder.h
> add: lib/Syntax/GenericSyntax.cpp
> edit: include/swift/IDE/CodeCompletion.h
> add: include/swift/Syntax/Trivia.h
> edit: lib/Sema/TypeChecker.cpp
> add: include/swift/Sema/Semantics.h
> add: lib/Sema/Semantics.cpp
> add: tools/swift-format/swift-format.cpp
> add: include/swift/Syntax/TokenKinds.h
> edit: tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp
> add: lib/Syntax/StmtSyntax.cpp
> add: lib/Syntax/DeclSyntax.cpp
> add: include/swift/Basic/OwnedString.h
> add: include/swift/Syntax/TokenKinds.def
> add: lib/Syntax/CMakeLists.txt
> add: lib/Syntax/SyntaxData.cpp
> delete: include/swift/Parse/Tokens.def
> add: include/swift/Syntax/Syntax.h
> edit: lib/CMakeLists.txt
> add: lib/Syntax/LegacyASTTransformer.cpp
> edit: lib/Parse/Parser.cpp
> edit: include/swift/AST/ASTVisitor.h
> edit: lib/Parse/CMakeLists.txt
> edit: lib/Parse/ParseExpr.cpp
> add: lib/Syntax/TypeSyntax.cpp
> add: include/swift/Syntax/GenericSyntax.h
> edit: lib/AST/RawComment.cpp
> edit: lib/Sema/CMakeLists.txt
> edit: unittests/Parse/TokenizerTests.cpp
> edit: lib/IDE/CodeCompletion.cpp
> edit: include/swift/Parse/Token.h
> add: include/swift/Syntax/SyntaxKinds.def
> add: tools/swift-syntax-test/CMakeLists.txt
> add: unittests/Syntax/TypeSyntaxTests.cpp
> edit: lib/IDE/SyntaxModel.cpp
> add: lib/Syntax/SyntaxFactory.cpp
> edit: unittests/CMakeLists.txt
> edit: include/swift/Subsystems.h
> add: include/swift/Syntax/RawSyntax.h
> add: include/swift/Syntax/DeclSyntax.h
> add: lib/Syntax/RawSyntax.cpp
> add: include/swift/Syntax/SyntaxFactory.h
> add: include/swift/Syntax/References.h
> add: tools/swift-syntax-test/swift-syntax-test.cpp
> add: include/swift/Syntax/Format.h
> add: include/swift/Syntax/TokenSyntax.h
> add: unittests/Syntax/RawSyntaxTests.cpp
> add: include/swift/Syntax/TypeSyntax.h
> add: unittests/Syntax/GenericSyntaxTests.cpp
> add: include/swift/Syntax/StmtSyntax.h
> edit: tools/CMakeLists.txt
> 
> Commit a6df054ae0ed3868cd4542a242513234324f9c9a by dfarler:
> [Syntax] Add README.md for lib/Syntax
> 
> edit: lib/Syntax/README.md
> 
> Commit 9627c5eafd482193dec23a6cb013323b5d894a2b by dfarler:
> [Syntax] Add Status.md document
> 
> add: lib/Syntax/Status.md
> 
> Commit 71346dc5c1a4424d1e7d9ef3247a2c982c132564 by dfarler:
> [Syntax] Add round-trip syntax test driver and stdlib roundtrip test
> 
> edit: lib/Syntax/LegacyASTTransformer.cpp
> add: test/Syntax/round_trip_stdlib.swift
> edit: test/CMakeLists.txt
> add: utils/round-trip-syntax-test
> edit: test/lit.cfg
> edit: tools/swift-syntax-test/swift-syntax-test.cpp
> 
> Commit da39d9b17b4845611f79ae7c4b1124e60d7c6672 by dgregor:

[swift-dev] [Swift CI] Build Still Failing: 0. OSS - LLDB Incremental - OS X (master) #5197

2017-02-17 Thread no-reply--- via swift-dev
New issue found!Title: Report


  
  
 
 

 [FAILURE] oss-lldb-incremental-osx [#5197] 


  Build URL:https://ci.swift.org/job/oss-lldb-incremental-osx/5197/
  Project:oss-lldb-incremental-osx
  Date of build:Fri, 17 Feb 2017 15:13:51 -0800
  Build duration:2 hr 1 min


Identified problems:Compile Error: This build failed because of a compile error. Below is a list of all errors in the build log:Indication 1Regression test failed: This build failed because a regression test in the test suite FAILed. Below is a list of all errors:Indication 1




Tests: 
  
   

 Name: Test-rdar-12481949 Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: Test-rdar-9974002 Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: Test11588 Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: Test8638051 Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestAbbreviations Failed: 0 test(s), Passed: 1 test(s), Total: 1 test(s)
  
 Name: TestAddDsymCommand Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestAddDsymMidExecutionCommand Failed: 0 test(s), Passed: 1 test(s), Total: 1 test(s)
  
 Name: TestAddressBreakpoints Failed: 0 test(s), Passed: 1 test(s), Total: 1 test(s)
  
 Name: TestAnonymous Failed: 0 test(s), Passed: 21 test(s), Total: 21 test(s)
  
 Name: TestAppleTypesIsProduced Failed: 0 test(s), Passed: 0 test(s), Total: 3 test(s)
  
 Name: TestApropos Failed: 0 test(s), Passed: 1 test(s), Total: 1 test(s)
  
 Name: TestAproposWithProcess Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestArray Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestArrayTypes Failed: 0 test(s), Passed: 6 test(s), Total: 6 test(s)
  
 Name: TestAsanSwift Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestAttachDenied Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestAttachResume Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestAvoidBreakpointInDelaySlot Failed: 0 test(s), Passed: 0 test(s), Total: 3 test(s)
  
 Name: TestBSDArchives Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBackticksWithoutATarget Failed: 0 test(s), Passed: 1 test(s), Total: 1 test(s)
  
 Name: TestBacktraceAll Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBadAddressBreakpoints Failed: 0 test(s), Passed: 1 test(s), Total: 1 test(s)
  
 Name: TestBadReference Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBatchMode Failed: 0 test(s), Passed: 9 test(s), Total: 9 test(s)
  
 Name: TestBenchmarkContinue Failed: 0 test(s), Passed: 0 test(s), Total: 3 test(s)
  
 Name: TestBenchmarkLibcxxList Failed: 0 test(s), Passed: 0 test(s), Total: 3 test(s)
  
 Name: TestBenchmarkLibcxxMap Failed: 0 test(s), Passed: 0 test(s), Total: 3 test(s)
  
 Name: TestBenchmarkSwiftDictionary Failed: 0 test(s), Passed: 0 test(s), Total: 3 test(s)
  
 Name: TestBitfields Failed: 0 test(s), Passed: 6 test(s), Total: 6 test(s)
  
 Name: TestBlocks Failed: 0 test(s), Passed: 6 test(s), Total: 6 test(s)
  
 Name: TestBoundViolation Failed: 0 test(s), Passed: 0 test(s), Total: 3 test(s)
  
 Name: TestBreakAfterJoin Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBreakpointAPI Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBreakpointCaseSensitivity Failed: 0 test(s), Passed: 3 test(s), Total: 6 test(s)
  
 Name: TestBreakpointCommand Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBreakpointCommandsFromPython Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBreakpointConditions Failed: 0 test(s), Passed: 12 test(s), Total: 12 test(s)
  
 Name: TestBreakpointIDs Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBreakpointIgnoreCount Failed: 0 test(s), Passed: 6 test(s), Total: 6 test(s)
  
 Name: TestBreakpointLanguage Failed: 0 test(s), Passed: 6 test(s), Total: 6 test(s)
  
 Name: TestBreakpointLocations Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBreakpointNames Failed: 0 test(s), Passed: 9 test(s), Total: 9 test(s)
  
 Name: TestBreakpointOptions Failed: 0 test(s), Passed: 3 test(s), Total: 3 test(s)
  
 Name: TestBreakpointSerialization Failed: 0 test(s), Passed: 15

Re: [swift-dev] Profiling ARC

2017-02-17 Thread Michael Gottesman via swift-dev
I am familiar with it, just not all of the benchmarks by name.


> On Feb 17, 2017, at 3:04 PM, David P Grove  wrote:
> 
> Sorry, I shouldn't have assumed that everyone know what the Computer Language 
> Benchmark Game was.
> 
> There's a set of 10 toy benchmarks written in 30 different languages that are 
> available here: http://benchmarksgame.alioth.debian.org/ 
>  The webpage also lets you see the 
> results of regular performance runs and see how the various programs stack up 
> against each other.
> 
> As usual with small benchmarks, there are lots of ways in which the programs 
> aren't realistic. 
> 
> After dispatch became available on Linux with Swift 3, I had a side project 
> of going through the Swift implementations and adding concurrency to a few 
> Swift programs that didn't have it already.
> 
> regex-dna is the main outlier for Swift (which is why I had profiled it). 
> There's enough ARC overhead that using dispatch actually made it slower...
> The sequential version for of regex-dna for Swift is: 
> http://benchmarksgame.alioth.debian.org/u64q/program.php?test=regexdna&lang=swift&id=2
>  
> 
> My slower concurrent version is: 
> http://benchmarksgame.alioth.debian.org/u64q/program.php?test=regexdna&lang=swift&id=3
>  
> 
> 
> I suspect that the main fix for improving the performance of this program is 
> actually doing something in CoreFoundation, but I got sidetracked and didn't 
> finish looking into it.
> 
> --dave
> 
> Michael Gottesman ---02/17/2017 05:32:03 PM---> On Feb 17, 2017, 
> at 11:30 AM, David P Grove via swift-dev  wrote: >
> 
> From: Michael Gottesman 
> To: David P Grove/Watson/IBM@IBMUS
> Cc: Jiho Choi , swift-dev 
> Date: 02/17/2017 05:32 PM
> Subject: Re: [swift-dev] Profiling ARC
> Sent by: mgottes...@apple.com
> 
> 
> 
> 
> On Feb 17, 2017, at 11:30 AM, David P Grove via swift-dev 
> mailto:swift-dev@swift.org>> wrote:
> swift-dev-boun...@swift.org  wrote on 
> 02/16/2017 09:48:28 PM:
> > 
> > I was curious about the overhead of ARC and started profiling some 
> > benchmarks found in the Computer Language Benchmark Game (http://
> > benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift 
> > ).
> >  
> > So far, it seems that ARC sequence optimization is surprisingly good
> > and most benchmarks don't have to perform ARC operations as often as
> > I expected.  I have some questions regarding this finding.
> > 
> > I compiled all benchmarks with "-O -wmo" flags and counted the 
> > number of calls to ARC runtime (e.g., swift_rt_swift_retain) using Pin.
> > 
> > 1. Reference counting is considered to have high overhead due to 
> > frequent counting operations which also have to be atomic.  At least
> > for the benchmarks I tested, it is not the case and there is almost 
> > no overhead.  Is it expected behavior?  Or is it because the 
> > benchmarks are too simple (they are all single-file programs)?  How 
> > do you estimate the overhead of ARC would be?
> > 
> 
> hmm,  I wonder if your method of profiling is really finding all the ARC 
> operations.  The Swift version of regex-dna is about 25x slower than the Java 
> version (on Linux).  I looked at some prof profiles about a month ago and at 
> the time roughly 80% of all execution samples were attributed to 
> swift_retain/swift_release operations coming from CoreFoundation's regex 
> implementation.  
> 
> Question. Where is this regex-dna benchmark, is it in the swift benchmark 
> suite?
> 
> --dave
> 
> (See attached file: regex-dna.svg)
> ___
> swift-dev mailing list
> swift-dev@swift.org 
> https://lists.swift.org/mailman/listinfo/swift-dev 
> 
> 
> 

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 - Long Test (master) #1102

2017-02-17 Thread David Farler via swift-dev
This is me, I have the fix.

David

> On Feb 17, 2017, at 3:46 PM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04-long-test [#1102]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04-long-test/1102/
>  
> 
> Project:  oss-swift-incremental-RA-linux-ubuntu-14_04-long-test
> Date of build:Fri, 17 Feb 2017 15:30:03 -0800
> Build duration:   16 min
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Changes
> 
> Commit 431b7ff2af8e3a762ba0202c4a377a8577bd8f55 by dfarler:
> [Syntax] Add Equal '=' token location to TypeAliasDecl
> 
> edit: include/swift/AST/Decl.h
> edit: lib/IRGen/IRGenDebugInfo.cpp
> edit: lib/Sema/TypeCheckProtocol.cpp
> edit: lib/Parse/ParseDecl.cpp
> edit: lib/AST/Module.cpp
> edit: lib/AST/Decl.cpp
> edit: lib/Serialization/Deserialization.cpp
> edit: lib/ClangImporter/ImportDecl.cpp
> 
> Commit 7ee42994c85c3a3b61e75513aafa2c9962977bfa by dfarler:
> Start the Syntax library and optional full token lexing
> 
> delete: include/swift/Parse/Tokens.def
> edit: include/swift/IDE/CodeCompletion.h
> edit: include/swift/AST/ASTVisitor.h
> add: unittests/Syntax/RawSyntaxTests.cpp
> edit: lib/IDE/SyntaxModel.cpp
> edit: lib/CMakeLists.txt
> add: unittests/Syntax/CMakeLists.txt
> add: include/swift/Syntax/StmtSyntax.h
> edit: unittests/CMakeLists.txt
> add: lib/Syntax/Format.cpp
> add: unittests/Syntax/DeclSyntaxTests.cpp
> edit: lib/Sema/CMakeLists.txt
> add: include/swift/Syntax/GenericSyntax.h
> add: include/swift/Syntax/TokenSyntax.h
> add: include/swift/Syntax/Format.h
> add: include/swift/Syntax/TypeSyntax.h
> add: include/swift/Syntax/LegacyASTTransformer.h
> add: unittests/Syntax/StmtSyntaxTests.cpp
> add: include/swift/Syntax/SyntaxData.h
> edit: lib/IDE/CodeCompletionResultBuilder.h
> add: tools/swift-syntax-test/CMakeLists.txt
> add: lib/Syntax/SyntaxData.cpp
> add: lib/Syntax/CMakeLists.txt
> add: lib/Syntax/RawSyntax.cpp
> add: include/swift/Syntax/TokenKinds.def
> add: tools/swift-format/swift-format.cpp
> add: unittests/Syntax/GenericSyntaxTests.cpp
> add: include/swift/Basic/OwnedString.h
> edit: tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp
> add: lib/Syntax/GenericSyntax.cpp
> add: include/swift/Syntax/Rewriter.h
> edit: lib/AST/RawComment.cpp
> add: include/swift/Syntax/RawSyntax.h
> add: lib/Syntax/Trivia.cpp
> add: lib/Syntax/TypeSyntax.cpp
> edit: lib/IDE/CodeCompletion.cpp
> add: tools/swift-syntax-test/swift-syntax-test.cpp
> edit: lib/AST/Expr.cpp
> add: include/swift/Syntax/Syntax.h
> add: unittests/Syntax/TypeSyntaxTests.cpp
> edit: include/swift/Parse/Lexer.h
> edit: unittests/Parse/TokenizerTests.cpp
> add: lib/Syntax/StmtSyntax.cpp
> add: include/swift/Syntax/SyntaxKinds.def
> add: include/swift/Syntax/Trivia.h
> add: lib/Sema/Semantics.cpp
> edit: lib/Sema/TypeChecker.cpp
> edit: lib/Parse/Lexer.cpp
> add: include/swift/Syntax/TokenKinds.h
> edit: include/swift/AST/Expr.h
> add: lib/Syntax/DeclSyntax.cpp
> edit: lib/AST/ASTPrinter.cpp
> add: lib/Syntax/README.md
> add: lib/Syntax/Syntax.cpp
> add: include/swift/Syntax/SyntaxFactory.h
> edit: lib/Parse/ParseExpr.cpp
> edit: include/swift/Subsystems.h
> add: lib/Syntax/SyntaxFactory.cpp
> edit: lib/Parse/Parser.cpp
> add: include/swift/Syntax/DeclSyntax.h
> edit: include/swift/Parse/Token.h
> add: lib/Syntax/TokenSyntax.cpp
> add: lib/Syntax/LegacyASTTransformer.cpp
> add: include/swift/Sema/Semantics.h
> edit: tools/CMakeLists.txt
> add: tools/swift-format/CMakeLists.txt
> add: include/swift/Syntax/References.h
> edit: lib/Parse/CMakeLists.txt
> 
> Commit a6df054ae0ed3868cd4542a242513234324f9c9a by dfarler:
> [Syntax] Add README.md for lib/Syntax
> 
> edit: lib/Syntax/README.md
> 
> Commit 9627c5eafd482193dec23a6cb013323b5d894a2b by dfarler:
> [Syntax] Add Status.md document
> 
> add: lib/Syntax/Status.md
> 
> Commit 71346dc5c1a4424d1e7d9ef3247a2c982c132564 by dfarler:
> [Syntax] Add round-trip syntax test driver and stdlib roundtrip test
> 
> edit: test/CMakeLists.txt
> edit: tools/swift-syntax-test/swift-syntax-test.cpp
> add: utils/round-trip-syntax-test
> edit: test/lit.cfg
> add: test/Syntax/round_trip_stdlib.swift
> edit: lib/Syntax/LegacyASTTransformer.cpp
> 
> Commit 935a54bace1dd5031f7badd8fd8275c82d793432 by shajrawi:
> Opaque values: fix a bug in ResultPlanBuilder + support for-each loops
> 
> edit: lib/SILGen/SILGenApply.cpp
> edit: test/SILGen/opaque_values_silgen.swift

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #1103

2017-02-17 Thread David Farler via swift-dev
This was a lockstep commit with LLDB - the other half should come in next build.

David

> On Feb 17, 2017, at 3:44 PM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04 [#1103]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/1103/ 
> 
> Project:  oss-swift-incremental-RA-linux-ubuntu-14_04
> Date of build:Fri, 17 Feb 2017 15:28:15 -0800
> Build duration:   16 min
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Changes
> 
> Commit 431b7ff2af8e3a762ba0202c4a377a8577bd8f55 by dfarler:
> [Syntax] Add Equal '=' token location to TypeAliasDecl
> 
> edit: lib/Sema/TypeCheckProtocol.cpp
> edit: lib/IRGen/IRGenDebugInfo.cpp
> edit: lib/ClangImporter/ImportDecl.cpp
> edit: lib/Serialization/Deserialization.cpp
> edit: lib/Parse/ParseDecl.cpp
> edit: lib/AST/Module.cpp
> edit: lib/AST/Decl.cpp
> edit: include/swift/AST/Decl.h
> 
> Commit 7ee42994c85c3a3b61e75513aafa2c9962977bfa by dfarler:
> Start the Syntax library and optional full token lexing
> 
> add: include/swift/Sema/Semantics.h
> add: include/swift/Syntax/GenericSyntax.h
> edit: lib/Sema/CMakeLists.txt
> edit: lib/Sema/TypeChecker.cpp
> add: include/swift/Syntax/SyntaxFactory.h
> add: lib/Syntax/TypeSyntax.cpp
> edit: include/swift/AST/ASTVisitor.h
> add: unittests/Syntax/RawSyntaxTests.cpp
> edit: lib/Parse/Lexer.cpp
> add: include/swift/Syntax/Syntax.h
> add: include/swift/Syntax/TokenKinds.def
> add: include/swift/Basic/OwnedString.h
> add: include/swift/Syntax/Trivia.h
> add: unittests/Syntax/DeclSyntaxTests.cpp
> add: include/swift/Syntax/LegacyASTTransformer.h
> add: include/swift/Syntax/SyntaxKinds.def
> add: include/swift/Syntax/TypeSyntax.h
> edit: lib/Parse/ParseExpr.cpp
> edit: lib/AST/ASTPrinter.cpp
> edit: lib/CMakeLists.txt
> add: include/swift/Syntax/Rewriter.h
> add: include/swift/Syntax/References.h
> add: include/swift/Syntax/DeclSyntax.h
> edit: include/swift/Subsystems.h
> add: lib/Sema/Semantics.cpp
> edit: include/swift/Parse/Token.h
> add: lib/Syntax/LegacyASTTransformer.cpp
> add: tools/swift-syntax-test/swift-syntax-test.cpp
> add: include/swift/Syntax/TokenKinds.h
> edit: lib/AST/RawComment.cpp
> delete: include/swift/Parse/Tokens.def
> add: include/swift/Syntax/RawSyntax.h
> edit: lib/IDE/CodeCompletion.cpp
> edit: lib/Parse/CMakeLists.txt
> add: include/swift/Syntax/StmtSyntax.h
> add: tools/swift-format/CMakeLists.txt
> add: tools/swift-syntax-test/CMakeLists.txt
> add: lib/Syntax/CMakeLists.txt
> edit: lib/IDE/SyntaxModel.cpp
> add: lib/Syntax/Syntax.cpp
> edit: lib/Parse/Parser.cpp
> add: unittests/Syntax/StmtSyntaxTests.cpp
> edit: lib/IDE/CodeCompletionResultBuilder.h
> add: lib/Syntax/SyntaxFactory.cpp
> add: unittests/Syntax/GenericSyntaxTests.cpp
> edit: lib/AST/Expr.cpp
> add: lib/Syntax/Trivia.cpp
> add: lib/Syntax/DeclSyntax.cpp
> add: lib/Syntax/GenericSyntax.cpp
> edit: include/swift/Parse/Lexer.h
> edit: tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp
> add: lib/Syntax/Format.cpp
> edit: include/swift/AST/Expr.h
> add: lib/Syntax/RawSyntax.cpp
> edit: tools/CMakeLists.txt
> add: lib/Syntax/SyntaxData.cpp
> add: lib/Syntax/TokenSyntax.cpp
> add: unittests/Syntax/CMakeLists.txt
> add: include/swift/Syntax/TokenSyntax.h
> edit: unittests/CMakeLists.txt
> add: lib/Syntax/README.md
> add: include/swift/Syntax/SyntaxData.h
> edit: include/swift/IDE/CodeCompletion.h
> add: lib/Syntax/StmtSyntax.cpp
> add: unittests/Syntax/TypeSyntaxTests.cpp
> edit: unittests/Parse/TokenizerTests.cpp
> add: tools/swift-format/swift-format.cpp
> add: include/swift/Syntax/Format.h
> 
> Commit a6df054ae0ed3868cd4542a242513234324f9c9a by dfarler:
> [Syntax] Add README.md for lib/Syntax
> 
> edit: lib/Syntax/README.md
> 
> Commit 9627c5eafd482193dec23a6cb013323b5d894a2b by dfarler:
> [Syntax] Add Status.md document
> 
> add: lib/Syntax/Status.md
> 
> Commit 71346dc5c1a4424d1e7d9ef3247a2c982c132564 by dfarler:
> [Syntax] Add round-trip syntax test driver and stdlib roundtrip test
> 
> add: test/Syntax/round_trip_stdlib.swift
> edit: test/lit.cfg
> edit: tools/swift-syntax-test/swift-syntax-test.cpp
> add: utils/round-trip-syntax-test
> edit: lib/Syntax/LegacyASTTransformer.cpp
> edit: test/CMakeLists.txt
> 
> Commit da39d9b17b4845611f79ae7c4b1124e60d7c6672 by dgregor:
> [GenericSig Builder] Rework RequirementSource to describe requirement
> 
> edit: test/Generics/superclass_constraint.swift
> edit: test/Generics/requirement_inference.swift
> edit: lib/AST/Decl.cpp
> edit: lib/AST/GenericSignatureBuilder.cpp
> edit: test/Generics/associated_type_typo.swift
> edit: lib/Sema/TypeCheckAttr.cpp
> edit: lib/SILGen/SILGenPoly.cpp
> edit: l

Re: [swift-dev] Swift Syntax Structured Editing Library

2017-02-17 Thread David Farler via swift-dev
Hi all,

I've now merged this to master. Just want to say I appreciate the enthusiasm - 
I'm really excited about all of the things this work will enable.

You can track progress in the following places:

https://github.com/apple/swift/tree/master/lib/Syntax/README.md
For an overview of the APIs, implementation, and testing information.

https://github.com/apple/swift/tree/master/lib/Syntax/Status.md
For implementation status and referenced SRs.

https://bugs.swift.org/browse/SR-3968?filter=10739
I'll be using the 'Syntax', 'Format', and 'Migrator' labels to track tasks and 
bugs. I'll be working quickly but I'll try to peel off some starter bugs and 
give a shout out when I can.

Stay Swifty-
DF

> On Feb 10, 2017, at 2:16 PM, David Farler via swift-dev  
> wrote:
> 
> Good day swift-dev!
> 
> A truly modern compiler has to have excellent IDE and tools integration, as 
> we have done through the SourceKit layer, providing code completion, 
> documentation comments, syntax highlighting, and more. There's no reason to 
> stop there, so I'd like to announce work on the Swift Syntax and Structured 
> Editing library, which will be growing in lib/Syntax in the coming weeks. The 
> overall goal of the library is to provide a representation and a body of APIs 
> for structured editing on Swift syntax.
> 
> The immediate goals of the library are to provide infrastructure for the 
> Swift Migrator and for a first-class formatting tool, which we'll be bringing 
> to the open source tree and developing publicly.
> 
> Eventually, I also want to use this as the main representation for syntax, 
> which will allow us to incrementally re-parse after edits. This will improve 
> responsiveness in editors when working on large files, which can have linear 
> performance due to re-parsing and re-type-checking. The current AST doesn't 
> make a clear distinction between syntactic and semantic information–by 
> separating these concerns, we have a better hope of incrementally/lazily 
> type-checking only the parts of a syntax tree necessary after edits.
> 
> Some key attributes of new Syntax nodes to note. In summary, they:
> 
>   • back all of the purely syntactic information for a piece of source
>   • are free of semantic information
>   • have "full fidelity" access to all of the "trivia", like whitespace 
> and comments
>   • are immutable, thread-safe, and can share substructure
>   • have straightforward structured editing APIs
> 
> Syntax transformation passes can be combined to form a pipeline. This 
> foundation has served us well in the Migrator–composition makes it easy to 
> build up complex batch operations but it also makes it easier to reason 
> about, test, and maintain smaller transformations as well. We consider this 
> superior to Clang migrators, where textual edits are based on buffer ranges. 
> These do not compose well: the way to pipeline transformation passes there is 
> to rebuild a new AST from scratch.
> 
> The properties of the Syntax tree, the information that it captures, make it 
> a good match to be used for other functionality like indentation and code 
> formatting.
> 
> In order to minimize disruption to the compiler pipeline in the short term, 
> we would like to propose making this Syntax tree outside of the normal 
> compile workflow, on demand, which will gather the source trivia as it does 
> so. This is similar to how the migrator works today. As it develops further, 
> it will be integrated into other areas.
> 
> 
> Structured Editing APIs
> 
> So, what do we mean by "structured editing"? Here are a few examples:
> 
>   • Add an argument label to a function declaration
>   • Change a global function call to a method call based on import 
> attributes, such as we did for CoreGraphics "import-as-member"
>   • Change a generic parameter name in a generic struct declaration
>   • Add a requirement to a generic where clause
>   • Indent or reformat any syntax according to declarative formatting 
> rules
> 
> These kinds of diverse operations are critical to the Migrator, which needs 
> to be able to accurately make changes at all granularities of the Syntax tree.
> 
> There are a few major use patterns that will come up first:
> 
>   • Creating new Syntax nodes and tokens. These will be exposed in a 
> single place, the SyntaxBuilder, for better discoverability and code 
> completion.
>   • Building up Syntax nodes in a single call. I call these "Make APIs".
>   • Building up Syntax nodes gradually as it appears, finalizing the 
> process at any point, marking expected syntax as 'missing'. The parser is a 
> typical manifestation of this use case. I call these "Builder APIs".
>   • Modifying Syntax nodes. Effectively setters but, since Syntax nodes 
> are immutable, these are called "With APIs".
> 
> Higher level APIs and syntax rewriter abstractions will be built on top of 
> these as more of the grammar is built up in the library.

Re: [swift-dev] Profiling ARC

2017-02-17 Thread David P Grove via swift-dev

Sorry, I shouldn't have assumed that everyone know what the Computer
Language Benchmark Game was.

There's a set of 10 toy benchmarks written in 30 different languages that
are available here: http://benchmarksgame.alioth.debian.org/   The webpage
also lets you see the results of regular performance runs and see how the
various programs stack up against each other.

As usual with small benchmarks, there are lots of ways in which the
programs aren't realistic.

After dispatch became available on Linux with Swift 3, I had a side project
of going through the Swift implementations and adding concurrency to a few
Swift programs that didn't have it already.

regex-dna is the main outlier for Swift (which is why I had profiled it).
There's enough ARC overhead that using dispatch actually made it slower...
The sequential version for of regex-dna for Swift is:
http://benchmarksgame.alioth.debian.org/u64q/program.php?test=regexdna&lang=swift&id=2
My slower concurrent version is:
http://benchmarksgame.alioth.debian.org/u64q/program.php?test=regexdna&lang=swift&id=3

I suspect that the main fix for improving the performance of this program
is actually doing something in CoreFoundation, but I got sidetracked and
didn't finish looking into it.

--dave



From:   Michael Gottesman 
To: David P Grove/Watson/IBM@IBMUS
Cc: Jiho Choi , swift-dev 
Date:   02/17/2017 05:32 PM
Subject:Re: [swift-dev] Profiling ARC
Sent by:mgottes...@apple.com




  On Feb 17, 2017, at 11:30 AM, David P Grove via swift-dev <
  swift-dev@swift.org> wrote:



  swift-dev-boun...@swift.org wrote on 02/16/2017 09:48:28 PM:
  >
  > I was curious about the overhead of ARC and started profiling some
  > benchmarks found in the Computer Language Benchmark Game (http://
  > benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift).

  > So far, it seems that ARC sequence optimization is surprisingly
  good
  > and most benchmarks don't have to perform ARC operations as often
  as
  > I expected.  I have some questions regarding this finding.
  >
  > I compiled all benchmarks with "-O -wmo" flags and counted the
  > number of calls to ARC runtime (e.g., swift_rt_swift_retain) using
  Pin.
  >
  > 1. Reference counting is considered to have high overhead due to
  > frequent counting operations which also have to be atomic.  At
  least
  > for the benchmarks I tested, it is not the case and there is almost

  > no overhead.  Is it expected behavior?  Or is it because the
  > benchmarks are too simple (they are all single-file programs)?  How

  > do you estimate the overhead of ARC would be?
  >

  hmm,  I wonder if your method of profiling is really finding all the
  ARC operations.  The Swift version of regex-dna is about 25x slower
  than the Java version (on Linux).  I looked at some prof profiles
  about a month ago and at the time roughly 80% of all execution
  samples were attributed to swift_retain/swift_release operations
  coming from CoreFoundation's regex implementation.


Question. Where is this regex-dna benchmark, is it in the swift benchmark
suite?



  --dave

  (See attached file: regex-dna.svg)


  ___
  swift-dev mailing list
  swift-dev@swift.org
  https://lists.swift.org/mailman/listinfo/swift-dev


___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] Profiling ARC

2017-02-17 Thread Roman Levenstein via swift-dev

> On Feb 17, 2017, at 2:31 PM, Michael Gottesman via swift-dev 
>  wrote:
> 
>> 
>> On Feb 17, 2017, at 11:30 AM, David P Grove via swift-dev 
>> mailto:swift-dev@swift.org>> wrote:
>> 
>> swift-dev-boun...@swift.org  wrote on 
>> 02/16/2017 09:48:28 PM:
>> > 
>> > I was curious about the overhead of ARC and started profiling some 
>> > benchmarks found in the Computer Language Benchmark Game (http://
>> > benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift 
>> > ).
>> >  
>> > So far, it seems that ARC sequence optimization is surprisingly good
>> > and most benchmarks don't have to perform ARC operations as often as
>> > I expected.  I have some questions regarding this finding.
>> > 
>> > I compiled all benchmarks with "-O -wmo" flags and counted the 
>> > number of calls to ARC runtime (e.g., swift_rt_swift_retain) using Pin.
>> > 
>> > 1. Reference counting is considered to have high overhead due to 
>> > frequent counting operations which also have to be atomic.  At least
>> > for the benchmarks I tested, it is not the case and there is almost 
>> > no overhead.  Is it expected behavior?  Or is it because the 
>> > benchmarks are too simple (they are all single-file programs)?  How 
>> > do you estimate the overhead of ARC would be?
>> > 
>> 
>> hmm,  I wonder if your method of profiling is really finding all the ARC 
>> operations.  The Swift version of regex-dna is about 25x slower than the 
>> Java version (on Linux).  I looked at some prof profiles about a month ago 
>> and at the time roughly 80% of all execution samples were attributed to 
>> swift_retain/swift_release operations coming from CoreFoundation's regex 
>> implementation.  
>> 
> Question. Where is this regex-dna benchmark, is it in the swift benchmark 
> suite?

Here is a Swift version:
http://benchmarksgame.alioth.debian.org/u64q/program.php?test=regexdna&lang=swift&id=2
 



And here is a Java version:
http://benchmarksgame.alioth.debian.org/u64q/program.php?test=regexdna&lang=java&id=7
 


And, BTW, Swift version is not multi-threaded, but Java version is.
>> 
>> --dave
>> 
>> (See attached file: regex-dna.svg)
>> 
>> ___
>> swift-dev mailing list
>> swift-dev@swift.org 
>> https://lists.swift.org/mailman/listinfo/swift-dev 
>> 
> 
> ___
> swift-dev mailing list
> swift-dev@swift.org 
> https://lists.swift.org/mailman/listinfo/swift-dev 
> 
___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] Profiling ARC

2017-02-17 Thread Michael Gottesman via swift-dev

> On Feb 17, 2017, at 11:30 AM, David P Grove via swift-dev 
>  wrote:
> 
> swift-dev-boun...@swift.org wrote on 02/16/2017 09:48:28 PM:
> > 
> > I was curious about the overhead of ARC and started profiling some 
> > benchmarks found in the Computer Language Benchmark Game (http://
> > benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift). 
> > So far, it seems that ARC sequence optimization is surprisingly good
> > and most benchmarks don't have to perform ARC operations as often as
> > I expected.  I have some questions regarding this finding.
> > 
> > I compiled all benchmarks with "-O -wmo" flags and counted the 
> > number of calls to ARC runtime (e.g., swift_rt_swift_retain) using Pin.
> > 
> > 1. Reference counting is considered to have high overhead due to 
> > frequent counting operations which also have to be atomic.  At least
> > for the benchmarks I tested, it is not the case and there is almost 
> > no overhead.  Is it expected behavior?  Or is it because the 
> > benchmarks are too simple (they are all single-file programs)?  How 
> > do you estimate the overhead of ARC would be?
> > 
> 
> hmm,  I wonder if your method of profiling is really finding all the ARC 
> operations.  The Swift version of regex-dna is about 25x slower than the Java 
> version (on Linux).  I looked at some prof profiles about a month ago and at 
> the time roughly 80% of all execution samples were attributed to 
> swift_retain/swift_release operations coming from CoreFoundation's regex 
> implementation.  
> 
Question. Where is this regex-dna benchmark, is it in the swift benchmark suite?
> 
> --dave
> 
> (See attached file: regex-dna.svg)
> ___
> swift-dev mailing list
> swift-dev@swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


[swift-dev] Reduce app startup time by combining swift-libs

2017-02-17 Thread Michel Loenngren via swift-dev
All,

When starting an app that includes swift these libs are being loaded:

*libswiftCoreGraphics.dylib *
*libswiftDispatch.dylib  *
*libswiftObjectiveC.dylib*
*libswiftCore.dylib*
*libswiftDarwin.dylib*
*libswiftFoundation.dylib*

which adds considerable delay to our app startup time (compared to running
a pure objective-c codebase). Is anybody aware of a way to reduce startup
by combining these libs into a single lib for faster load time?

Kind regards

Michel
___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] Profiling ARC

2017-02-17 Thread David P Grove via swift-dev



swift-dev-boun...@swift.org wrote on 02/16/2017 09:48:28 PM:
>
> I was curious about the overhead of ARC and started profiling some
> benchmarks found in the Computer Language Benchmark Game (http://
> benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift).
> So far, it seems that ARC sequence optimization is surprisingly good
> and most benchmarks don't have to perform ARC operations as often as
> I expected.  I have some questions regarding this finding.
>
> I compiled all benchmarks with "-O -wmo" flags and counted the
> number of calls to ARC runtime (e.g., swift_rt_swift_retain) using Pin.
>
> 1. Reference counting is considered to have high overhead due to
> frequent counting operations which also have to be atomic.  At least
> for the benchmarks I tested, it is not the case and there is almost
> no overhead.  Is it expected behavior?  Or is it because the
> benchmarks are too simple (they are all single-file programs)?  How
> do you estimate the overhead of ARC would be?
>

hmm,  I wonder if your method of profiling is really finding all the ARC
operations.  The Swift version of regex-dna is about 25x slower than the
Java version (on Linux).  I looked at some prof profiles about a month ago
and at the time roughly 80% of all execution samples were attributed to
swift_retain/swift_release operations coming from CoreFoundation's regex
implementation.

--dave

(See attached file: regex-dna.svg)


regex-dna.svg
Description: Binary data
___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.10 (master) #1959

2017-02-17 Thread Alex L via swift-dev
Should be fixed now by cherry-pick db7d8d26a585aacc0a77b230d7f3887dbe873dbf!

On 17 February 2017 at 09:34, Alex L  wrote:

> That's an issue with my commit, I will fix it.
>
> On 17 February 2017 at 09:26,  wrote:
>
>> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-16_10 [#1959]
>> Build URL: https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubun
>> tu-16_10/1959/
>> Project: oss-swift-incremental-RA-linux-ubuntu-16_10
>> Date of build: Fri, 17 Feb 2017 09:25:38 -0800
>> Build duration: 31 sec Identified problems:
>>
>>- Compile Error: This build failed because of a compile error. Below
>>is a list of all errors in the build log:
>>   - Indication 1
>>   
>> 
>>
>> Tests:
>> Name: *Swift(linux-x86_64)*
>> Failed: 0 test(s), Passed: 8981 test(s), Total: 8981 test(s)
>> Name: *Swift-Unit*
>> Failed: 0 test(s), Passed: 310 test(s), Total: 310 test(s)
>>
>> Changes
>>
>>- Commit *15525c0d68d80fa137834a8054d9d379afa35749* by *nmersethcook:*
>>
>>[stdlib] Correct documentation for ReversedIndex.base
>>- *edit*: stdlib/public/core/Reverse.swift
>>   - *edit*: stdlib/public/core/Builtin.swift
>>
>>- Commit *cb5800aa6992b7de3ac8293cccdfb1d6c4033bc5* by *hughbellars:*
>>
>>[CMake] remove some unused functions
>>- *edit*: cmake/modules/SwiftDarwin.cmake
>>   - *edit*: cmake/modules/SwiftList.cmake
>>
>>- Commit *aba6d4164874877df7401acb61e97c3901df141f* by *hughbellars:*
>>
>>[CMake] remove redundant generator expression checks
>>- *edit*: cmake/modules/AddSwift.cmake
>>   - *edit*: CMakeLists.txt
>>
>>- Commit *2b1c5efe4b7ff15975c5a58a61e45b64a6923bde* by *hughbellars:*
>>
>>[CMake] remove redundant USES_TERMINAL checks
>>- *edit*: test/CMakeLists.txt
>>   - *edit*: cmake/modules/SwiftSharedCMakeConfig.cmake
>>
>>- Commit *38d9cb5d33ad8852eb51b141cc4b7fc9b314818b* by *hughbellars:*
>>
>>[CMake] remove dead version specific checks
>>- *edit*: cmake/modules/SwiftSharedCMakeConfig.cmake
>>
>>- Commit *0c82511b04859c03b36a16ade2200ecdae8b3bfb* by *hughbellars:*
>>
>>[CMake] remove redundant job pooling check
>>- *edit*: CMakeLists.txt
>>
>>- Commit *e6c6c85fe54ce299fd1ea48df833c13ab7e02119* by *hughbellars:*
>>
>>Convert python-lint to python, not bash, file
>>- *edit*: utils/python-lint
>>
>>- Commit *4c67c1d45b6f9649cc39bbb296d63663c1ef841f* by *rjmccall:*
>>
>>Add the initial revision of the ownership manifesto document.
>>- *add*: docs/OwnershipManifesto.md
>>
>>- Commit *4003b49150bc78080c279d47ad9efc0e42780dc6* by *arphaman:*
>>
>>Use correct fix-it location for -Wblock-capture-autoreleasing
>>- *edit*: test/SemaObjC/arc.m
>>   - *edit*: lib/Sema/SemaExpr.cpp
>>
>>
>>
>
___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.10 (master) #1959

2017-02-17 Thread Alex L via swift-dev
That's an issue with my commit, I will fix it.

On 17 February 2017 at 09:26,  wrote:

> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-16_10 [#1959]
> Build URL: https://ci.swift.org/job/oss-swift-incremental-RA-linux-
> ubuntu-16_10/1959/
> Project: oss-swift-incremental-RA-linux-ubuntu-16_10
> Date of build: Fri, 17 Feb 2017 09:25:38 -0800
> Build duration: 31 sec Identified problems:
>
>- Compile Error: This build failed because of a compile error. Below
>is a list of all errors in the build log:
>   - Indication 1
>   
> 
>
> Tests:
> Name: *Swift(linux-x86_64)*
> Failed: 0 test(s), Passed: 8981 test(s), Total: 8981 test(s)
> Name: *Swift-Unit*
> Failed: 0 test(s), Passed: 310 test(s), Total: 310 test(s)
>
> Changes
>
>- Commit *15525c0d68d80fa137834a8054d9d379afa35749* by *nmersethcook:*
>
>[stdlib] Correct documentation for ReversedIndex.base
>- *edit*: stdlib/public/core/Reverse.swift
>   - *edit*: stdlib/public/core/Builtin.swift
>
>- Commit *cb5800aa6992b7de3ac8293cccdfb1d6c4033bc5* by *hughbellars:*
>
>[CMake] remove some unused functions
>- *edit*: cmake/modules/SwiftDarwin.cmake
>   - *edit*: cmake/modules/SwiftList.cmake
>
>- Commit *aba6d4164874877df7401acb61e97c3901df141f* by *hughbellars:*
>
>[CMake] remove redundant generator expression checks
>- *edit*: cmake/modules/AddSwift.cmake
>   - *edit*: CMakeLists.txt
>
>- Commit *2b1c5efe4b7ff15975c5a58a61e45b64a6923bde* by *hughbellars:*
>
>[CMake] remove redundant USES_TERMINAL checks
>- *edit*: test/CMakeLists.txt
>   - *edit*: cmake/modules/SwiftSharedCMakeConfig.cmake
>
>- Commit *38d9cb5d33ad8852eb51b141cc4b7fc9b314818b* by *hughbellars:*
>
>[CMake] remove dead version specific checks
>- *edit*: cmake/modules/SwiftSharedCMakeConfig.cmake
>
>- Commit *0c82511b04859c03b36a16ade2200ecdae8b3bfb* by *hughbellars:*
>
>[CMake] remove redundant job pooling check
>- *edit*: CMakeLists.txt
>
>- Commit *e6c6c85fe54ce299fd1ea48df833c13ab7e02119* by *hughbellars:*
>
>Convert python-lint to python, not bash, file
>- *edit*: utils/python-lint
>
>- Commit *4c67c1d45b6f9649cc39bbb296d63663c1ef841f* by *rjmccall:*
>
>Add the initial revision of the ownership manifesto document.
>- *add*: docs/OwnershipManifesto.md
>
>- Commit *4003b49150bc78080c279d47ad9efc0e42780dc6* by *arphaman:*
>
>Use correct fix-it location for -Wblock-capture-autoreleasing
>- *edit*: test/SemaObjC/arc.m
>   - *edit*: lib/Sema/SemaExpr.cpp
>
>
>
___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.04 (master) #1799

2017-02-17 Thread Ankit Aggarwal via swift-dev
Hmm, I have not seen this assertion before. My commits did not change anything 
in 'Basic' module.

> On 17-Feb-2017, at 7:34 PM, no-re...@swift.org wrote:
> 
> [FAILURE] oss-swift-incremental-RA-linux-ubuntu-16_04 [#1799]
> 
> Build URL:
> https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/1799/ 
> 
> Project:  oss-swift-incremental-RA-linux-ubuntu-16_04
> Date of build:Fri, 17 Feb 2017 05:17:38 -0800
> Build duration:   46 min
> Identified problems:
> 
> Compile Error: This build failed because of a compile error. Below is a list 
> of all errors in the build log:
> Indication 1 
> 
> Changes
> 
> Commit 361da07093c6d7e25c2c5f436ecfda24b745920d by ankit_aggarwal:
> Add compatible swift versions to manifest
> 
> edit: Tests/PackageLoadingTests/ManifestTests.swift
> edit: Sources/PackageDescription/Package.swift
> edit: Sources/PackageLoading/PackageBuilder.swift
> edit: Sources/PackageLoading/PackageDescription4Loader.swift
> edit: Sources/PackageModel/Module.swift
> edit: Tests/BuildTests/BuildPlanTests.swift
> edit: Tests/PackageLoadingTests/ConventionTests.swift
> edit: Sources/PackageDescription4/Package.swift
> edit: Tests/PackageLoadingTests/PD4LoadingTests.swift
> edit: Sources/Build/BuildPlan.swift
> edit: Sources/PackageModel/Manifest.swift
> edit: Sources/PackageLoading/PackageDescriptionLoader.swift
> 
> Commit f5e2826f348d62dfaa698f2c8273f59caa62 by ankit_aggarwal:
> [FunctionalTests] Add a tools version test
> 
> edit: Tests/FunctionalTests/XCTestManifests.swift
> add: Tests/FunctionalTests/ToolsVersionTests.swift

___
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev